Submission #275370

#TimeUsernameProblemLanguageResultExecution timeMemory
275370barsboldMemory (IOI10_memory)C++11
Compilation error
0 ms0 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> vector<int> f[100]; void play() { for(int i = 1; i<=50; i++){ char now = faceup(i); f[now - 'A'].push_back(i); } for(int i =0; i<25; i++){ faceup(f[i][0]); faceup(f[i][1]); } }

Compilation message (stderr)

memory.cpp:4:1: error: 'vector' does not name a type
    4 | vector<int> f[100];
      | ^~~~~~
memory.cpp: In function 'void play()':
memory.cpp:8:9: error: 'f' was not declared in this scope
    8 |         f[now - 'A'].push_back(i);
      |         ^
memory.cpp:11:16: error: 'f' was not declared in this scope
   11 |         faceup(f[i][0]);
      |                ^