Problem peakfinding
User Harshith
Submission Time 2026-04-06 17:04:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

peakfinding.cpp: In function ‘int main()’:
peakfinding.cpp:9:6: error: conflicting declaration ‘long long int a [0]’
9 | int a[0] = y;
| ^
peakfinding.cpp:8:6: note: previous declaration as ‘long long int a [x]’
8 | int a[x];
| ^
peakfinding.cpp:11:15: error: expected ‘;’ before ‘i’
11 | for(int i = 1 i > x;i++){
| ^~
| ;