Submission #1010518

#TimeUsernameProblemLanguageResultExecution timeMemory
1010518Muaath_5Memory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include "memory.h" int faceup(int c); vector<int> cc[51]; void play() { for (int i = 1; i <= 50; i++) cc[faceup(i)].push_back(i); for (int i = 1; i <= 50; i++) faceup(cc[i][0], cc[i][1]); }

Compilation message (stderr)

memory.cpp:5:1: error: 'vector' does not name a type
    5 | vector<int> cc[51];
      | ^~~~~~
memory.cpp: In function 'void play()':
memory.cpp:8:5: error: 'cc' was not declared in this scope
    8 |     cc[faceup(i)].push_back(i);
      |     ^~
memory.cpp:10:12: error: 'cc' was not declared in this scope
   10 |     faceup(cc[i][0], cc[i][1]);
      |            ^~