Submission #720331

#TimeUsernameProblemLanguageResultExecution timeMemory
720331Yell0Memory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "memory.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:9:12: error: 'faceup' was not declared in this scope
    9 |     char c=faceup(i);
      |            ^~~~~~
memory.cpp:14:5: error: 'faceup' was not declared in this scope
   14 |     faceup(mp[i][0]);
      |     ^~~~~~