Submission #956080

#TimeUsernameProblemLanguageResultExecution timeMemory
956080CaiWinDaoMemory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include "memory.h" #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:10:21: error: 'faceup' was not declared in this scope
   10 |         char card = faceup(i);
      |                     ^~~~~~
memory.cpp:15:9: error: 'faceup' was not declared in this scope
   15 |         faceup(v[0]);
      |         ^~~~~~