Borderou de evaluare (job #2989241)
Utilizator | Data | 6 martie 2023 11:48:45 | |
---|---|---|---|
Problema | Paduri de multimi disjuncte | Status | done |
Runda | Arhiva educationala | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void init()':
main.cpp:14:20: error: 'N' was not declared in this scope
14 | for(int i=1;i<=N;i++)
| ^
main.cpp: In function 'int do_find(int)':
main.cpp:21:18: error: 'repr' was not declared in this scope; did you mean 'rpr'?
21 | dad[nod]=repr;// compresia drumurilor
| ^~~~
| rpr
main.cpp:20:13: warning: unused variable 'rpr' [-Wunused-variable]
20 | int rpr=do_find(dad[nod]);
| ^~~
main.cpp: In function 'int do_union(int, int)':
main.cpp:34:23: error: 'rnl' was not declared in this scope; did you mean 'rnk'?
34 | } else if(rnk[rx]<rnl[ry]){
| ^~~
| rnk
main.cpp:40:1: warning: no return statement in function returning non-void [-Wreturn-type]
40 | }
| ^
main.cpp: In function 'int main()':
main.cpp:44:10: error: 'N' was not declared in this scope
44 | fin>>N>>M;
| ^
main.cpp:44:13: error: 'M' was not declared in this scope
44 | fin>>N>>M;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !