Borderou de evaluare (job #2989252)

Utilizator IandruIanis Ianachis Iandru Data 6 martie 2023 11:55:25
Problema Paduri de multimi disjuncte Status done
Runda Arhiva educationala Compilator cpp-32 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:14:1: error: expected initializer before 'void' 14 | void init() | ^~~~ main.cpp: In function 'int do_union(int, int)': main.cpp:34:8: error: 'rnk' was not declared in this scope; did you mean 'rbk'? 34 | if(rnk[rx]==rnk[ry]) | ^~~ | rbk main.cpp:45:1: warning: no return statement in function returning non-void [-Wreturn-type] 45 | } | ^ main.cpp: In function 'int main()': main.cpp:48:10: error: 'N' was not declared in this scope 48 | fin>>N>>M; | ^ main.cpp:48:13: error: 'M' was not declared in this scope 48 | fin>>N>>M; | ^ main.cpp:49:5: error: 'init' was not declared in this scope; did you mean 'int'? 49 | init(); | ^~~~ | int main.cpp:64:17: error: 'fout' was not declared in this scope 64 | fout<<"DA\n"; | ^~~~ main.cpp:66:17: error: 'fout' was not declared in this scope 66 | fout<<"NU\n"; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?