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

Автор jack9104, история, 5 лет назад, По-английски

I am trying to do an interactive question, thinking to type last code, I put the "cout << endl" into a method, but it got ILE. Link:ILE. But when I move it out, the ILE problem disappears. Link:WA Does anyone know what the reason is or a link that explains this problem? Because I can't find any past answers in CF.

Thanks a lot. Appreciate any answer or suggestions on how to improve the way I ask questions.

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

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

Just Give space after "?" & "!"

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

change

cout << "!" << " " << minx << " " << miny << " " << maxx << " " << maxy << "\n";

to

cout << "!" << " " << minx << " " << miny << " " << maxx << " " << maxy << endl;

in the line 88.

but your solution is still wrong.

endl flushes the output but "\n" doesn't