Problem peakfinding
User ShaquilleOatmeal34
Submission Time 2025-03-14 16:09:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

peakfinding.cpp: In function ‘int main()’:
peakfinding.cpp:11:39: error: expected ‘;’ before ‘for’
11 | sort(gopal+n, gopal+n, greater<int>())
| ^
| ;
12 | for(int i = 0; i < n; i++){
| ~~~
peakfinding.cpp:12:16: error: ‘i’ was not declared in this scope
12 | for(int i = 0; i < n; i++){
| ^