Problem peakfinding
User AndyChen
Submission Time 2026-07-23 19:57:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

peakfinding.cpp: In function ‘int main()’:
peakfinding.cpp:10:18: error: expected ‘;’ before numeric constant
10 | for (int i =n 0; i < n ; i++){
| ^~
| ;
peakfinding.cpp:10:27: error: expected ‘)’ before ‘;’ token
10 | for (int i =n 0; i < n ; i++){
| ~ ^~
| )
peakfinding.cpp:10:30: error: ‘i’ was not declared in this scope
10 | for (int i =n 0; i < n ; i++){
| ^