mdahabib's blog

By mdahabib, history, 4 years ago, In English

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

  • Vote: I like it
  • +2
  • Vote: I do not like it

»
4 years ago, # |
  Vote: I like it +1 Vote: I do not like it

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.