Submission #805236

#TimeUsernameProblemLanguageResultExecution timeMemory
805236QwertyPiHotter Colder (IOI10_hottercolder)C++14
Compilation error
0 ms0 KiB
#pragma once int HC(int N){ int L = 1, R = N; while(L != R){ Guess(L); int g = Guess(R); if(g == 1){ L = (L + R) / 2 + 1; }else if(g == -1){ R = (L + R - 1) / 2; }else{ L = R = (L + R) / 2; } } return L; }

Compilation message (stderr)

hottercolder.cpp:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:6:3: error: 'Guess' was not declared in this scope
    6 |   Guess(L); int g = Guess(R);
      |   ^~~~~