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

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

my code for that problem is working on custom test of cf and even in my system compiler.. and i'm getting required answer to all test cases but on submission at cf I got strange massage saying wrong answer... And that comment is

Can't find file K:\ramdisk\codeforces61\9c5383c0192771e8d22775984f40362f\check-e068a9b89c80e5d690845be2e470a589\run\output.txt invokerId=ef4de2e8346ee1a664bb563100318fea, location=203279215

plz help me to get rid of this..

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

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

The problem probably requires reading/writing from a specified file. Can you link the problem and your submission?

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

You can use this piece of code for accessing input and output files.

ifstream in;
ofstream out;
in.open("input.txt");
out.open("output.txt");

Because, as far as I think, #ifndef ONLINE_JUDGE is ignored by codeforces compiler. Even if we write this in codes with input and output from stdin and stdout, it works (ignoring the command to accept input from files).

And also, your submission diagnostics say that, code is executed with error 'out of bounds'. So you must also check that issue.

Hope this helps.