Problem globalwarming
User TingAn1212
Submission Time 2023-10-30 19:22:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

globalwarming.cpp: In function ‘int gw(int, int*)’:
globalwarming.cpp:2:5: error: ‘vector’ was not declared in this scope
2 | vector<int> peaks;
| ^~~~~~
globalwarming.cpp:2:12: error: expected primary-expression before ‘int’
2 | vector<int> peaks;
| ^~~
globalwarming.cpp:3:12: error: expected primary-expression before ‘int’
3 | vector<int> valleys;
| ^~~
globalwarming.cpp:11:17: error: ‘peaks’ was not declared in this scope
11 | peaks.push_back(H[i]);
| ^~~~~
globalwarming.cpp:16:17: error: ‘peaks’ was not declared in this scope
16 | peaks.push_back(H[i]);
| ^~~~~
globalwarming.cpp:25:21: error: ‘valleys’ was not declared in this scope
25 | valleys.push_back(H[i]);
| ^~~~~~~
globalwarming.cpp:31:21: error: ‘peaks’ w