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

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

Hello Code forces,

I am trying this problem 1359C - Смешиваем воду. 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
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится +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.

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

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