Submission #1008339

# Submission time Handle Problem Language Result Execution time Memory
1008339 2024-06-26T09:37:25 Z ALTAKEXE Hotter Colder (IOI10_hottercolder) C++17
Compilation error
0 ms 0 KB
#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

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);
      |        ^