Submission #651685

#TimeUsernameProblemLanguageResultExecution timeMemory
651685LucaGregMemory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include "grader.h" #include "memory.h" vector<int> l[60]; void play() { for(int i=1;i<=50;i++){ char c; c = faceup(i); l[c - 'A'].push_back(i); } for(int i=0;i<25;i++){ for(int j=0;j<(int)l[i].size();j++){ faceup(l[i][j]); } } }

Compilation message (stderr)

memory.cpp:4:1: error: 'vector' does not name a type
    4 | vector<int> l[60];
      | ^~~~~~
memory.cpp: In function 'void play()':
memory.cpp:9:8: error: 'l' was not declared in this scope
    9 |        l[c - 'A'].push_back(i);
      |        ^
memory.cpp:12:27: error: 'l' was not declared in this scope
   12 |        for(int j=0;j<(int)l[i].size();j++){
      |                           ^