Problem contestcalc
User ryoshu
Submission Time 2026-11-05 14:28:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

contestcalc.cpp: In function ‘int main()’:
contestcalc.cpp:8:5: error: ‘map’ was not declared in this scope
8 | map<string, int> leon(n);
| ^~~
contestcalc.cpp:2:1: note: ‘std::map’ is defined in header ‘<map>’; did you forget to ‘#include <map>’?
1 | #include <iostream>
+++ |+#include <map>
2 | using namespace std;
contestcalc.cpp:8:15: error: expected primary-expression before ‘,’ token
8 | map<string, int> leon(n);
| ^
contestcalc.cpp:8:17: error: expected primary-expression before ‘int’
8 | map<string, int> leon(n);
| ^~~
contestcalc.cpp:9:24: error: ‘leon’ was not declared in this scope
9 | for (auto &thing : leon){
| ^~~~
contestcalc.cpp:15:22: error: expected ‘;’ before ‘<’ token
15 | for (int i = 0, i<m, i++)
| ^