Problem | peakfinding |
---|---|
User | ybc |
Submission Time | 2023-11-20 09:12:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
peakfinding.cpp: In function ‘int main()’:
peakfinding.cpp:10:1: error: expected ‘,’ or ‘;’ before ‘for’
10 | for (int i = 0; i<N; i+=1){
| ^~~
peakfinding.cpp:10:17: error: ‘i’ was not declared in this scope
10 | for (int i = 0; i<N; i+=1){
| ^
peakfinding.cpp:15:12: error: expected ‘}’ at end of input
15 | cout << sum;
| ^
peakfinding.cpp:4:12: note: to match this ‘{’
4 | int main (){
| ^