You are not logged in. Please login at to post your questions!


Error in interactive problem

What does it mean when -1.000000 comes as an error in an interactive problem?

asked 03 Feb, 11:49

ankur314's gravatar image

accept rate: 0%

"Then, you should read a line containing a single integer. If this integer is non-negative, it denotes the answer to your query. Otherwise, it means that you exceeded the limit on the number of queries, the coordinates you printed are invalid or some other error occured."

Also don't forget to flush your outputs as @taran_1407 has mentioned in his blog here.

Hope this helps :)


answered 03 Feb, 13:45

akashbhalotia's gravatar image

accept rate: 11%

edited 03 Feb, 13:49

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 03 Feb, 11:49

question was seen: 161 times

last updated: 03 Feb, 13:49