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

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

my code has worked on codeblocks and when I send it. it is getting wrong answer on test 1 and the test message form is: " Wrong outout formats (0 elements printed ) unexpected end of file "

any help would be great

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

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

Auto comment: topic has been updated by secomo (previous revision, new revision, compare).

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

Please provide the problem link. It's not possible to find out the error without problem statement.

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

The code is unreadable, and you didn't provide the statement to the problem, it really looks like you don't want to be helped.

Fortunately for you, your mistake was simple: you used #define cout cerr. Cout writes in the standard output, which codeforces reads. Cerr writes in the error output which it doesn't.

I don't know why you would put that line in and i recomend not using defines at all until you're experienced enough to understand when you shouldn't use it.

»
3 года назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится
  1. format the code.
  2. add problem link.