Submission #335590

#TimeUsernameProblemLanguageResultExecution timeMemory
335590JoshcMemory (IOI10_memory)C++11
Compilation error
0 ms0 KiB
#include <vector> #include <cstdio> using namespace std; int main() { 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 'int main()':
memory.cpp:6:11: error: 'getC' was not declared in this scope; did you mean 'gets'?
    6 |   int c = getC();
      |           ^~~~
      |           gets
memory.cpp:9:7: error: 'faceup' was not declared in this scope
    9 |     x[faceup(i)-'A'+1].push_back(i);
      |       ^~~~~~
memory.cpp:12:5: error: 'faceup' was not declared in this scope
   12 |     faceup(x[i][0]);
      |     ^~~~~~
memory.cpp:6:7: warning: unused variable 'c' [-Wunused-variable]
    6 |   int c = getC();
      |       ^