| Problem | globalwarming |
|---|---|
| User | R9q5P8 |
| Submission Time | 2026-04-10 16:10:24 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
globalwarming.cpp: In function ‘int main()’:
globalwarming.cpp:27:16: error: expected initializer before ‘-’ token
27 | bool center - a[i+1]>sea;
| ^
globalwarming.cpp:28:8: error: ‘center’ was not declared in this scope
28 | if (center && !left && !right) count++;
| ^~~~~~
globalwarming.cpp:29:8: error: ‘center’ was not declared in this scope
29 | if (center && left && right) count--;
| ^~~~~~
globalwarming.cpp:30:9: error: ‘center’ was not declared in this scope
30 | if (!center) all = false;
| ^~~~~~
globalwarming.cpp:32:22: error: expected ‘;’ before ‘sea’
32 | hi = max(hi, count)
| ^
| ;
33 | sea--;
| ~~~