Problem globalwarming
User goose
Submission Time 2026-02-11 10:42:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

globalwarming.cpp: In function ‘int main()’:
globalwarming.cpp:23:100: error: expected ‘;’ before ‘[’ token
23 | } else if ((*it).second != 0 && (*it).second != n-1 && a[(*it).second-1] >= a[(*it).second]) && a[(*it).second+1] >= a[(*it).second])) {
| ^
| ;
globalwarming.cpp:23:99: error: label ‘a’ used but not defined
23 | } else if ((*it).second != 0 && (*it).second != n-1 && a[(*it).second-1] >= a[(*it).second]) && a[(*it).second+1] >= a[(*it).second])) {
| ^