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

Compile Error

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