memory.cpp: In function 'void play()':
memory.cpp:7:4: error: 'vector' was not declared in this scope
7 | vector<int>v[26];
| ^~~~~~
memory.cpp:7:4: note: suggested alternatives:
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from memory.cpp:2:
/usr/include/c++/11/bits/stl_vector.h:389:11: note: 'std::vector'
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
In file included from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from memory.cpp:2:
/usr/include/c++/11/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
memory.cpp:7:11: error: expected primary-expression before 'int'
7 | vector<int>v[26];
| ^~~
memory.cpp:9:7: error: 'v' was not declared in this scope
9 | v[i].clear();
| ^
memory.cpp:13:7: error: 'v' was not declared in this scope
13 | v[c - 'A'].push_back(i);
| ^
memory.cpp:18:10: error: 'v' was not declared in this scope
18 | if(v[i].size() < 2) continue;
| ^
memory.cpp:19:14: error: 'v' was not declared in this scope
19 | faceup(v[i][0]);
| ^