Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

Strange WA

$
0
0

Hello, I've got very strange WA submitting this problem. After hours spent on searching of error, I replaced gets(a) with scanf("%s", a) and got AC. a - char[100000]. I think that this error is very strange, isn't it? Now I added to my first program this string: assert(n != 15); and got WA too. It means that my program makes error at test №1. May be administrators could add more information to errors? I mean if my program crashes on test samples it would be better to know that I don't pass samples. Or, may be, this is very strange issue of gets or bug in g++/testing system?


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>