Problem peakfinding
User andikawahyudi
Submission Time 2026-01-22 20:57:58
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;
| ^
peakfinding.cpp:14:13: error: expected ‘}’ at end of input
14 | cout << max;
| ^
peakfinding.cpp:5:15: note: to match this ‘{’
5 | signed main() {
| ^