Borderou de evaluare (job #621882)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Bile1 (clasa a 7-a) | Compilator | cpp-32 |
Rundă | lasm_21_12_2021_cl12 | Status | evaluat |
Dată | 21 dec. 2021 13:10:26 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:10: error: 'DIM' was not declared in this scope
8 | int Next[DIM], col[DIM], lin[2001], v[2001];
| ^~~
main.cpp:8:10: note: the macro 'DIM' had not yet been defined
main.cpp:11: note: it was later defined here
11 | #define DIM 10005
|
main.cpp:8:20: error: 'DIM' was not declared in this scope
8 | int Next[DIM], col[DIM], lin[2001], v[2001];
| ^~~
main.cpp:8:20: note: the macro 'DIM' had not yet been defined
main.cpp:11: note: it was later defined here
11 | #define DIM 10005
|
main.cpp: In function 'int main()':
main.cpp:16:21: error: 'col' was not declared in this scope
16 | cin >> x >> col[i];
| ^~~
main.cpp:17:9: error: 'Next' was not declared in this scope
17 | Next[i] = lin[x];
| ^~~~
main.cpp:27:23: error: 'col' was not declared in this scope
27 | int obs = col[x];
| ^~~
main.cpp:31:17: error: 'Next' was not declared in this scope
31 | x = Next[x];
| ^~~~