(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 #1105798

#TimeUsernameProblemLanguageResultExecution timeMemory
1105798iyedooMemory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include <memory.h> using namespace std; void play() { int candy = 0; for (int i = 1; i <= 50; ++i) { for (int j = i + 1; j <= 50; ++j) { int res1 = faceup(i); int res2 = faceup(j); if (res1 == res2) candy++; if (candy == 25) return; } } }

Compilation message (stderr)

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