Submission #521848

#TimeUsernameProblemLanguageResultExecution timeMemory
521848antonioqbabMemory (IOI10_memory)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int main(){ vector<int> c[25]; for(int i=1;i<=50;++i) c[faceup(i)-'A'].emplace_back(i); for(int i=0;i<25;++i) faceup(c[i][0]), faceup(c[i][1]); }

Compilation message (stderr)

memory.cpp: In function 'int main()':
memory.cpp:8:11: error: 'faceup' was not declared in this scope
    8 |         c[faceup(i)-'A'].emplace_back(i);
      |           ^~~~~~
memory.cpp:10:9: error: 'faceup' was not declared in this scope
   10 |         faceup(c[i][0]), faceup(c[i][1]);
      |         ^~~~~~