Submission #722362

# Submission time Handle Problem Language Result Execution time Memory
722362 2023-04-11T20:39:45 Z tvladm2009 Hotter Colder (IOI10_hottercolder) C++17
Compilation error
0 ms 0 KB
#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 (verdict == 0) {
      return mid;
    } else if (verdict == 1) {
      low = mid + 1;
    } else {
      high = mid;
    }
  }
  return low;
}

Compilation message

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:11:5: error: 'Guess' was not declared in this scope
   11 |     Guess(low);
      |     ^~~~~