Submission #1267518

#TimeUsernameProblemLanguageResultExecution timeMemory
1267518ti24dung_ntMemory (IOI10_memory)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; void play() { int couple[25]; for(int i = 0; i < 25; ++i) couple[i] = -1; for(int i = 1; i <= 50; ++i) { cout << faceup(i); cout.flush(); char c; cin >> c; int base = int(c) - 65; if(couple[base] > -1) { cout << faceup(couple[base]) << "\n" << faceup(i); } else couple[base] = i; cout << "\n"; } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:11:17: error: 'faceup' was not declared in this scope
   11 |         cout << faceup(i);
      |                 ^~~~~~