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

Compile Error

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