Problem peakfinding
User mth4z
Submission Time 2023-03-01 16:42:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

peakfinding.cpp: In function ‘int main()’:
peakfinding.cpp:8:7: error: ‘x’ was not declared in this scope
8 | for(x=0; x<n; x++){
| ^
peakfinding.cpp:10:6: error: expected ‘;’ before ‘mountain’
10 | cin mountain;{
| ^~~~~~~~~
| ;