Ad Code

Responsive Advertisement

Get Accepted in every answer in Uri! (Uri Guide)



It's really so frustrating to get not Accepted in URI or beecrowd. In some cases, there is literally no wrong answer but URI does not Accept your answer. Let's discuss some common Errors you are making right now and let's solve them with some short examples.

There are mainly 4 types of  error message URI (beecrowd) will give: 

  1. Wrong answer (n%)
  2. Presentation error(n%)
  3. Compilation error
  4. Runtime error
Let's try to solve all these error messages one by one.

Wrong answer (n%): Wrong answer 5%,100%, or whatever you did miss something from the problem question. Read the question properly.

In this problem, you need a double variable type not floating. Sometimes you will not get this type of hint so if you are getting the wrong answer try the double variable type.

Presentation error: There is nothing wrong with your code. Your calculation, logic, and syntax everything are fine. You just did not add a "\nin printf("").
You are not going to get this hint in every problem. just be aware of this.

Compilation error: Your syntax has some problems and luckily you will get to know what wrong you really did. like this for example



Runtime error: Mainly caused by the "return 0;". If your code doesn't have a return URI will give this error message.

So that's all. At least I got all these types of error messages previously. I hope from now on you don't have to fire your brain for this type of silly error. Thanks and peace out.

Ad Code

Responsive Advertisement