Problem goodchef
User Pan
Submission Time 2024-07-04 09:38:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

goodchef.cpp: In function ‘int main()’:
goodchef.cpp:55:43: error: expected ‘;’ before ‘)’ token
55 | for (auto it = mm.begin(); it!=mm.end()) ret += it->s.top();
| ^
| ;
goodchef.cpp:59:44: error: expected ‘;’ before ‘)’ token
59 | for (auto it = mm.begin(); it!=mm.end()){
| ^
| ;
goodchef.cpp:66:10: error: ‘ret’ was not declared in this scope
66 | print(ret, '\n');
| ^~~
goodchef.cpp:16:38: note: in definition of macro ‘print’
16 | #define print(x, y) printf("%lld%c", x, y);
| ^
goodchef.cpp: At global scope:
goodchef.cpp:69:2: error: expected unqualified-id before ‘return’
69 | return 0;
| ^~~~~~
goodchef.cpp:70:1: error: expected declaration b