Submission #956079

#TimeUsernameProblemLanguageResultExecution timeMemory
956079CaiWinDaoMemory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include <map> #include <vector> using namespace std; void play() { map<char, vector<int> > pos; for (int i = 1; i <= 50; i++) { char card = faceup(i); pos[card].push_back(i); } for (auto& p: pos) { vector<int> v = p.second; faceup(v[0]); faceup(v[1]); } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:9:21: error: 'faceup' was not declared in this scope
    9 |         char card = faceup(i);
      |                     ^~~~~~
memory.cpp:14:9: error: 'faceup' was not declared in this scope
   14 |         faceup(v[0]);
      |         ^~~~~~