Problem mountains
User WANCH5789W
Submission Time 2026-04-06 16:52:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mountains.cpp: In function ‘int main()’:
mountains.cpp:10:2: error: expected ‘,’ or ‘;’ before ‘cin’
10 | cin >> n;
| ^~~
mountains.cpp:15:8: error: ‘i’ was not declared in this scope
15 | if (a[i] > a[i+1] && a[i] >a[i - 1]){
| ^