What is the problem in my code? I got "Probably, the solution is executed with error 'uninitialized value usage' on the line 36" for 35A solution. I got right answer for 1st test case in codeblocks...But here I got WA.. Please help me... Here is my code- https://codeforces.net/contest/35/submission/81884064
The question states that it requires input and output via files. Hence, after main(), if you write this:
ifstream cin("input.txt");ofstream cout("output.txt");
then the problem should get resolved.
oh...Thanks