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

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

Hello Code forces,

I am trying this problem 1359C - Mixing Water. My IDE returns right values with my code, but CF judge said that function returns nothing(In test 2). So what should I do?

Here is my code
My submission

Please give me helpful suggestions.

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

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

It seems that your code finished the while loop without ever executing the return f; statement. In that case the code expects you to return a value at the end of the function but there is no return statement.

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

Binsearch should return ll, but in your code it returns nothing