Problem peakfinding
User ShaquilleOatmeal34
Submission Time 2025-03-14 15:05:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

peakfinding.cpp: In function ‘int main()’:
peakfinding.cpp:9:34: error: too many initializers for ‘long long int [5]’
9 | int scores[5] = {5, 4, 7, 6, 3, 1};
| ^
peakfinding.cpp:11:8: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
11 | cin >> n;
| ^
| yn
peakfinding.cpp:14:8: error: ‘a’ was not declared in this scope
14 | cin >> a[i];
| ^
peakfinding.cpp:16:9: error: ‘a’ was not declared in this scope
16 | cout << a[2];
| ^