(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.

제출 #1105794

#제출 시각아이디문제언어결과실행 시간메모리
1105794iyedooMemory (IOI10_memory)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; 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; } } }

컴파일 시 표준 에러 (stderr) 메시지

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