Submission #633807

#TimeUsernameProblemLanguageResultExecution timeMemory
633807ZflopMemory (IOI10_memory)C++14
Compilation error
0 ms0 KiB
#include "memory.h" #include "grader.h" #include <stdio.h> #include <stdlib.h> void play() { int i; char b; vector <set<int>> A(24); for(int i = 1; i <= 50;++i){ b = faceup(i); A[b - 'A'].ins(i); } for(auto& x:A){ faceup(*x.begin()); faceup(*x.rbegin()); } return; }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:9:4: error: 'vector' was not declared in this scope
    9 |    vector <set<int>> A(24);
      |    ^~~~~~
memory.cpp:9:12: error: 'set' was not declared in this scope
    9 |    vector <set<int>> A(24);
      |            ^~~
memory.cpp:9:16: error: expected primary-expression before 'int'
    9 |    vector <set<int>> A(24);
      |                ^~~
memory.cpp:12:5: error: 'A' was not declared in this scope
   12 |     A[b - 'A'].ins(i);
      |     ^
memory.cpp:14:14: error: 'A' was not declared in this scope
   14 |  for(auto& x:A){
      |              ^
memory.cpp:7:8: warning: unused variable 'i' [-Wunused-variable]
    7 |    int i;
      |        ^