Problem | globalwarming |
---|---|
User | ethanlinHoucheng |
Submission Time | 2025-08-22 08:52:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
globalwarming.cpp: In function ‘void solve()’:
globalwarming.cpp:23:73: error: expected ‘;’ before ‘}’ token
23 | if(i<p.size()-1&&p[i].first != p[i+1].first) ans = max(ans,curr)
| ^
| ;
24 | }
| ~
globalwarming.cpp:25:17: error: ‘u’ was not declared in this scope
25 | curr += u.second;
| ^
globalwarming.cpp: At global scope:
globalwarming.cpp:27:5: error: ‘ans’ does not name a type
27 | ans = max(ans,curr);
| ^~~
globalwarming.cpp:28:5: error: ‘cout’ does not name a type
28 | cout<< ans;
| ^~~~
globalwarming.cpp:30:1: error: expected declaration before ‘}’ token
30 | }
| ^