Submission #1008339

#TimeUsernameProblemLanguageResultExecution timeMemory
1008339ALTAKEXEHotter Colder (IOI10_hottercolder)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
int HC(int N)
{
   int g = Guess(1);
   int h = Guess(N);
   if (g == 0)
      return N / 2;
   if (g < 0)
      return N / 4;
   if (g > 0)
      return 3 * N / 4;
   return 0;
}

Compilation message (stderr)

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:5:12: error: 'Guess' was not declared in this scope
    5 |    int g = Guess(1);
      |            ^~~~~
hottercolder.cpp:6:8: warning: unused variable 'h' [-Wunused-variable]
    6 |    int h = Guess(N);
      |        ^