Submission #722361

# Submission time Handle Problem Language Result Execution time Memory
722361 2023-04-11T20:39:30 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 (verdit == 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);
      |     ^~~~~
hottercolder.cpp:13:9: error: 'verdit' was not declared in this scope; did you mean 'verdict'?
   13 |     if (verdit == 0) {
      |         ^~~~~~
      |         verdict