Problem globalwarming
User ChickenCoder
Submission Time 2023-05-30 18:22:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

globalwarming.cpp: In function ‘int main()’:
globalwarming.cpp:25:9: error: ‘ind’ was not declared in this scope; did you mean ‘int’?
25 | while(ind < n && sheights[ind].first == sheights[i].first){
| ^~~
| int
globalwarming.cpp:36:7: error: ‘ind’ was not declared in this scope; did you mean ‘int’?
36 | i = ind;
| ^~~
| int
globalwarming.cpp: At global scope:
globalwarming.cpp:40:2: error: ‘cout’ does not name a type
40 | cout << max_ans << endl;
| ^~~~
globalwarming.cpp:41:1: error: expected declaration before ‘}’ token
41 | }
| ^