| Problem | peakfinding |
|---|---|
| User | Jayden000 |
| Submission Time | 2026-10-31 16:15:11 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
peakfinding.cpp: In function ‘int main()’:
peakfinding.cpp:8:10: error: ‘i’ was not declared in this scope
8 | for (i = 0, i<n, i++) {cin >> x;
| ^
peakfinding.cpp:13:1: error: expected primary-expression before ‘}’ token
13 | }
| ^
peakfinding.cpp:12:16: error: expected ‘)’ before ‘}’ token
12 | cout << mx;
| ^
| )
13 | }
| ~
peakfinding.cpp:8:9: note: to match this ‘(’
8 | for (i = 0, i<n, i++) {cin >> x;
| ^
peakfinding.cpp:13:1: error: expected primary-expression before ‘}’ token
13 | }
| ^