You are not logged in. Please login at www.codechef.com 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

4★ankur314
21
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 :)

link

answered 03 Feb, 13:45

akashbhalotia's gravatar image

4★akashbhalotia
68112
accept rate: 14%

edited 03 Feb, 13:49

toggle preview
Preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×72

question asked: 03 Feb, 11:49

question was seen: 134 times

last updated: 03 Feb, 13:49