Submission #722361

#TimeUsernameProblemLanguageResultExecution timeMemory
722361tvladm2009Hotter Colder (IOI10_hottercolder)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; int HC(int n) { int low = 1, high = n; while (low < high) { int mid = (low + high) / 2; Guess(low); int verdict = Guess(high); if (verdit == 0) { return mid; } else if (verdict == 1) { low = mid + 1; } else { high = mid; } } return low; }

Compilation message (stderr)

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:11:5: error: 'Guess' was not declared in this scope
   11 |     Guess(low);
      |     ^~~~~
hottercolder.cpp:13:9: error: 'verdit' was not declared in this scope; did you mean 'verdict'?
   13 |     if (verdit == 0) {
      |         ^~~~~~
      |         verdict