0_0_39627962_11810.cpp:11:5: error: 'string' was not declared in this scope
11 | map<string, int>mp;
| ^~~~~~
0_0_39627962_11810.cpp:7:1: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
6 | #include<map>
+++ |+#include <string>
7 | using namespace std;
0_0_39627962_11810.cpp:11:16: error: template argument 1 is invalid
11 | map<string, int>mp;
| ^
0_0_39627962_11810.cpp:11:16: error: template argument 3 is invalid
0_0_39627962_11810.cpp:11:16: error: template argument 4 is invalid
0_0_39627962_11810.cpp: In function 'int main()':
0_0_39627962_11810.cpp:54:28: error: request for member 'clear' in 'mp', which is of non-class type 'int'
54 | mp.clear();
| ^~~~~
|