Submission #335591

#TimeUsernameProblemLanguageResultExecution timeMemory
335591JoshcMemory (IOI10_memory)C++11
Compilation error
0 ms0 KiB
#include <vector> using namespace std; void play() { int c = getC(); vector<int> x[26]; for (int i=1; i<=50; i++) { x[faceup(i)-'A'+1].push_back(i); } for (int i=1; i<=25; i++) { faceup(x[i][0]); faceup(x[i][1]); } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:5:11: error: 'getC' was not declared in this scope
    5 |   int c = getC();
      |           ^~~~
memory.cpp:8:7: error: 'faceup' was not declared in this scope
    8 |     x[faceup(i)-'A'+1].push_back(i);
      |       ^~~~~~
memory.cpp:11:5: error: 'faceup' was not declared in this scope
   11 |     faceup(x[i][0]);
      |     ^~~~~~
memory.cpp:5:7: warning: unused variable 'c' [-Wunused-variable]
    5 |   int c = getC();
      |       ^