Borderou de evaluare (job #1254363)

Utilizator span7aRazvan span7a Data 2 noiembrie 2014 16:35:11
Problema Dir Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int cmp(coord, coord)’: user.cpp:33:52: warning: converting ‘false’ to pointer type for argument 2 of ‘int strcmp(const char*, const char*)’ [-Wconversion-null] if(strcmp(text[a.sol],text[b.sol]<0) ^ user.cpp:33:52: warning: null argument where non-null required (argument 2) [-Wnonnull] user.cpp:34:20: error: expected ‘)’ before ‘return’ return 1; ^ user.cpp: In function ‘int main()’: user.cpp:39:21: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[2502]’ [-Wformat=] fscanf(f,"%s",&s); ^ user.cpp: In function ‘int cmp(coord, coord)’: user.cpp:36:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:39:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%s",&s); ^

Ceva nu functioneaza?