memory.cpp: In function 'void play()':
memory.cpp:5:20: error: 'pair' was not declared in this scope; did you mean 'std::pair'?
5 | map <char, pair<int, int>>m;
| ^~~~
| std::pair
In file included from /usr/include/c++/13/bits/stl_algobase.h:64,
from /usr/include/c++/13/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
from memory.cpp:3:
/usr/include/c++/13/bits/stl_pair.h:187:12: note: 'std::pair' declared here
187 | struct pair
| ^~~~
memory.cpp:5:9: error: 'map' was not declared in this scope
5 | map <char, pair<int, int>>m;
| ^~~
memory.cpp:5:9: note: suggested alternatives:
In file included from /usr/include/c++/13/map:63,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:152:
/usr/include/c++/13/bits/stl_map.h:102:11: note: 'std::map'
102 | class map
| ^~~
/usr/include/c++/13/map:80:13: note: 'std::pmr::map'
80 | using map
| ^~~
memory.cpp:5:14: error: expected primary-expression before 'char'
5 | map <char, pair<int, int>>m;
| ^~~~
memory.cpp:8:21: error: 'm' was not declared in this scope
8 | if (m[c].first == 0) {
| ^
memory.cpp:15:23: error: 'm' was not declared in this scope
15 | for (auto x : m) {
| ^