memory.cpp:7:1: error: 'map' does not name a type
7 | map<char,pair<int,int>> m;
| ^~~
memory.cpp: In function 'void play()':
memory.cpp:16:17: error: 'm' was not declared in this scope
16 | m[a[i]] = make_pair(i,j);
| ^
memory.cpp:16:27: error: 'make_pair' was not declared in this scope; did you mean 'std::make_pair'?
16 | m[a[i]] = make_pair(i,j);
| ^~~~~~~~~
| std::make_pair
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from memory.cpp:4:
/usr/include/c++/9/bits/stl_pair.h:524:5: note: 'std::make_pair' declared here
524 | make_pair(_T1&& __x, _T2&& __y)
| ^~~~~~~~~
memory.cpp:24:16: error: 'm' was not declared in this scope
24 | faceup(m[c].first);
| ^