Borderou de evaluare (job #2864225)
Utilizator | Data | 7 martie 2022 18:20:03 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void Union(int, int)':
main.cpp:14:2: error: 'cnt' was not declared in this scope; did you mean 'int'?
14 | cnt[x] += cnt[y];
| ^~~
| int
main.cpp: In function 'int main()':
main.cpp:36:6: error: 'i' was not declared in this scope
36 | for(i = 1;i <= n * n;i++)
| ^
main.cpp:37:9: error: 'cnt' was not declared in this scope; did you mean 'int'?
37 | cnt[i] = 1;
| ^~~
| int
main.cpp:39:15: error: 'lin' was not declared in this scope
39 | while(cin >> lin[i] >> col[i])
| ^~~
main.cpp:39:19: error: 'i' was not declared in this scope
39 | while(cin >> lin[i] >> col[i])
| ^
main.cpp:39:25: error: 'col' was not declared in this scope; did you mean 'sol'?
39 | while(cin >> lin[i] >> col[i])
| ^~~
| sol
main.cpp:43:13: error: 'lin' was not declared in this scope
43 | x = lin[i];
| ^~~
main.cpp:44:13: error: 'col' was not declared in this scope; did you mean 'sol'?
44 | y = col[i];
| ^~~
| sol
main.cpp:45:9: error: 'a' was not declared in this scope
45 | a[x][y] = 1;
| ^
main.cpp:46:13: error: 'k' was not declared in this scope
46 | for(k = 0;k < 4;k++)
| ^
main.cpp:61:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
61 | for(int i = 1;i <= m;i++)
| ^~~
main.cpp:63:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
63 | return 0;
| ^~~~~~
main.cpp:34:9: warning: unused variable 'conex' [-Wunused-variable]
34 | int conex;
| ^~~~~
main.cpp:38:6: warning: unused variable 'op' [-Wunused-variable]
38 | int op, x, y, maxim = 1, j, q;
| ^~
main.cpp:38:16: warning: unused variable 'maxim' [-Wunused-variable]
38 | int op, x, y, maxim = 1, j, q;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !