Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Блог пользователя mdahabib

Автор mdahabib, история, 4 года назад, По-английски

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.me/contest/35/submission/81884064

  • Проголосовать: нравится
  • +2
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

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.