baal-hammon's blog

By baal-hammon, history, 9 years ago, In English

hello

I'm getting an error that I couldn't inderstand : "wrong output format Unexpected end of file — int32 expected"

here is my code : (http://codeforces.net/contest/550/submission/11450063)

can anyone help me

thanks!

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

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

It seems to be pretty straightforward.

Unexpected end of file — int32 expected

Checker expected an int when it encountered EOF. Why it was expecting an integer? Probably because you said that there will X integers and then didn't output the correct number of integers. In this problem you're saying to checker how many numbers you will output (b), so check that for every possible k you output exactly the same number of ints as you tell.