Problem labs
User varsh05442
Submission Time 2025-06-18 17:01:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

labs.cpp: In function ‘int main()’:
labs.cpp:2:1: error: ‘map’ was not declared in this scope
2 | map<string,int> trainers;
| ^~~
labs.cpp:2:5: error: ‘string’ was not declared in this scope
2 | map<string,int> trainers;
| ^~~~~~
labs.cpp:2:12: error: expected primary-expression before ‘int’
2 | map<string,int> trainers;
| ^~~
labs.cpp:3:5: error: expected primary-expression before ‘int’
3 | map<int,int> labs;
| ^~~
labs.cpp:6:1: error: ‘cin’ was not declared in this scope
6 | cin >> n;
| ^~~
labs.cpp:12:15: error: expected ‘;’ before ‘name’
12 | string name;
| ^~~~~
| ;
labs.cpp:14:16: error: ‘name’ was not declared in this scope
14 | cin >> name >> lab;
| ^~~~
labs.cpp:15:13: error: ‘trainers’ was not declared in this scope