Submission #720330

#TimeUsernameProblemLanguageResultExecution timeMemory
720330Yell0Memory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; void play() { map<char,vector<int>> mp; for(int i=1;i<=50;++i) { char c=faceup(i); mp[c].push_back(i); } for(int i='A';i<'Z';++i) { if(mp[i][1]%2==0&&mp[i][0]==mp[i][1]-1) continue; faceup(mp[i][0]); faceup(mp[i][1]); } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:8:12: error: 'faceup' was not declared in this scope
    8 |     char c=faceup(i);
      |            ^~~~~~
memory.cpp:13:5: error: 'faceup' was not declared in this scope
   13 |     faceup(mp[i][0]);
      |     ^~~~~~