Problem peakfinding
User Avinash
Submission Time 2026-01-30 13:03:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

peakfinding.cpp: In function ‘int main()’:
peakfinding.cpp:8:2: error: ‘maxheight’ was not declared in this scope
8 | maxheight, height = 0;
| ^~~~~~~~~
peakfinding.cpp:8:13: error: ‘height’ was not declared in this scope
8 | maxheight, height = 0;
| ^~~~~~
peakfinding.cpp: At global scope:
peakfinding.cpp:20:1: error: expected declaration before ‘}’ token
20 | }
| ^