Submission #592141

#TimeUsernameProblemLanguageResultExecution timeMemory
592141MahtimursuMemory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include "grader.h" #include "memory.h" void play() { vector<char> v(51); for (int i = 1; i <= 50; ++i) { v[i] = faceup(i); } for (int i = 1; i <= 50; ++i) { for (int j = i + 1; j <= 50; ++j) { if (v[i] == v[j]) { faceup(i); faceup(j); } } } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:5:5: error: 'vector' was not declared in this scope
    5 |     vector<char> v(51);
      |     ^~~~~~
memory.cpp:5:12: error: expected primary-expression before 'char'
    5 |     vector<char> v(51);
      |            ^~~~
memory.cpp:8:9: error: 'v' was not declared in this scope
    8 |         v[i] = faceup(i);
      |         ^
memory.cpp:13:17: error: 'v' was not declared in this scope
   13 |             if (v[i] == v[j]) {
      |                 ^