(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

Submission #1105795

#TimeUsernameProblemLanguageResultExecution timeMemory
1105795iyedooMemory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
void play() { int candy = 0; for (int i = 1; i <= 50; ++i) { int res1 = faceup(i); for (int j = i + 1; j <= 50; ++j) { int res2 = faceup(j); if (res1 == res2) candy++; if (candy == 25) return; } } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:5:16: error: 'faceup' was not declared in this scope
    5 |     int res1 = faceup(i);
      |                ^~~~~~