Borderou de evaluare (job #2200644)

Utilizator bodea.georgianaBodea Georgiana bodea.georgiana Data 2 mai 2018 01:20:24
Problema Paduri de multimi disjuncte Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int reunire(int, int)’: user.cpp:30:9: error: return-statement with no value, in function returning ‘int’ [-fpermissive] return; ^~~~~~ user.cpp: In function ‘void read()’: user.cpp:47:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] fscanf(f,"%d %d %d",caz,x,y); ^ user.cpp:47:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘int’ [-Wformat=] user.cpp:47:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘int’ [-Wformat=] user.cpp:49:42: error: ‘reunesc’ was not declared in this scope reunesc(multime(x),multime(y)); ^ user.cpp: In function ‘int main()’: user.cpp:61:9: warning: unused variable ‘i’ [-Wunused-variable] int i,caz; ^ user.cpp:61:11: warning: unused variable ‘caz’ [-Wunused-variable] int i,caz; ^~~ user.cpp: In function ‘void read()’: user.cpp:42:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&n,&m); ^ user.cpp:47:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d %d",caz,x,y); ^

Ceva nu functioneaza?