memory.cpp: In function 'void play()':
memory.cpp:5:18: error: 'vector' was not declared in this scope; did you mean 'std::vector'?
5 | std::map<char,vector<int>>mp;
| ^~~~~~
| std::vector
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/queue:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from memory.cpp:3:
/usr/include/c++/10/bits/stl_vector.h:389:11: note: 'std::vector' declared here
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
memory.cpp:5:28: error: template argument 2 is invalid
5 | std::map<char,vector<int>>mp;
| ^~
memory.cpp:5:28: error: template argument 4 is invalid
memory.cpp:8:9: error: invalid types 'int[char]' for array subscript
8 | mp[a].push_back(i);
| ^
memory.cpp:11:16: error: invalid types 'int[char]' for array subscript
11 | faceup(mp[a][0]);
| ^
memory.cpp:12:16: error: invalid types 'int[char]' for array subscript
12 | faceup(mp[a][1]);
| ^