Problem skips
User AliLam
Submission Time 2025-06-17 09:00:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

skips.cpp:5:1: error: expected initializer before ‘int’
5 | int n, d;
| ^~~
skips.cpp:6:1: error: ‘cin’ does not name a type; did you mean ‘sin’?
6 | cin >> n >> d;
| ^~~
| sin
skips.cpp:8:15: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
8 | long long arr[n];
| ^
| yn
skips.cpp:9:1: error: expected unqualified-id before ‘for’
9 | for(int i = 0; i < n; i++) {
| ^~~
skips.cpp:9:16: error: ‘i’ does not name a type
9 | for(int i = 0; i < n; i++) {
| ^
skips.cpp:9:23: error: ‘i’ does not name a type
9 | for(int i = 0; i < n; i++) {
| ^
skips.cpp:14:1: error: expected unqualified-id before ‘for’
14 | for(int i = 0; i < n; i += 2) {
| ^~~
skips.cpp:14:16: error: ‘i’ does not name a type
14 | for(int i = 0; i < n; i += 2) {