Problem contestcalc
User Andrew
Submission Time 2024-10-29 21:18:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

contestcalc.cpp:3:1: error: ‘map’ does not name a type
3 | map< string,int > results[100005];
| ^~~
contestcalc.cpp: In function ‘int main()’:
contestcalc.cpp:10:16: error: ‘results’ was not declared in this scope
10 | cin >> results[i],first >> results[i].second;
| ^~~~~~~
contestcalc.cpp:10:27: error: ‘first’ was not declared in this scope
10 | cin >> results[i],first >> results[i].second;
| ^~~~~
contestcalc.cpp:18:23: error: ‘results’ was not declared in this scope
18 | totalMarks += results.at(person);
| ^~~~~~~