Problem peakfinding
User andikawahyudi
Submission Time 2026-01-22 20:58:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

peakfinding.cpp: In function ‘int main()’:
peakfinding.cpp:7:9: error: ‘N’ was not declared in this scope
7 | cin >> N;
| ^
peakfinding.cpp:8:6: error: ‘i’ was not declared in this scope
8 | for(i=0; i < N; i++) {
| ^
peakfinding.cpp:9:10: error: ‘A’ was not declared in this scope
9 | cin >> A;
| ^
peakfinding.cpp:11:10: error: ‘a’ was not declared in this scope
11 | max = a;
| ^