memory.cpp: In function 'void play()':
memory.cpp:5:5: error: 'map' was not declared in this scope
5 | map<char, vector<int>> v;
| ^~~
memory.cpp:5:5: note: suggested alternatives:
In file included from /usr/include/c++/10/map:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:81,
from memory.cpp:3:
/usr/include/c++/10/bits/stl_map.h:100:11: note: 'std::map'
100 | class map
| ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:81,
from memory.cpp:3:
/usr/include/c++/10/map:78:13: note: 'std::pmr::map'
78 | using map
| ^~~
memory.cpp:5:9: error: expected primary-expression before 'char'
5 | map<char, vector<int>> v;
| ^~~~
memory.cpp:6:12: error: too few arguments to function 'char faceup(int)'
6 | faceup();
| ^
In file included from memory.cpp:1:
grader.h:1:6: note: declared here
1 | char faceup(int C);
| ^~~~~~
memory.cpp:7:5: error: 'string' was not declared in this scope
7 | string s = "abcdefghijklmnopqrstuvwxyz";
| ^~~~~~
memory.cpp:7:5: note: suggested alternatives:
In file included from /usr/include/c++/10/iosfwd:39,
from /usr/include/c++/10/ios:38,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from memory.cpp:3:
/usr/include/c++/10/bits/stringfwd.h:79:33: note: 'std::string'
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from memory.cpp:3:
/usr/include/c++/10/string:67:11: note: 'std::pmr::string'
67 | using string = basic_string<char>;
| ^~~~~~
memory.cpp:10:9: error: 'v' was not declared in this scope
10 | v[r].push_back(i);
| ^
memory.cpp:12:19: error: 's' was not declared in this scope
12 | for (char j : s) {
| ^
memory.cpp:13:22: error: 'v' was not declared in this scope
13 | for (int k : v[j]) {
| ^