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

Compile Error

contestcalc.cpp:3:10: error: expected initializer before ‘<’ token
3 | void 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);
| ^~~~~~~