Submission #1353644

#TimeUsernameProblemLanguageResultExecution timeMemory
1353644ChinguunMemory (IOI10_memory)C++20
Compilation error
0 ms0 KiB
#include "grader.h"
#include "memory.h"

void play() {
	vector<int> v[26];
   for (int i = 1; i <= 50; i++) {
   		int a = faceup(i) - 'A' + 1;
   		v[a].push_back(i);
   }
   for (int i = 1; i <= 25; i++) {
   		faceup(v[i].begin());
   		faceup(v[i].end());
   }
}

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:5:9: error: 'vector' was not declared in this scope
    5 |         vector<int> v[26];
      |         ^~~~~~
memory.cpp:5:16: error: expected primary-expression before 'int'
    5 |         vector<int> v[26];
      |                ^~~
memory.cpp:8:17: error: 'v' was not declared in this scope
    8 |                 v[a].push_back(i);
      |                 ^
memory.cpp:11:24: error: 'v' was not declared in this scope
   11 |                 faceup(v[i].begin());
      |                        ^