Borderou de evaluare (job #1907504)

Utilizator CammieCamelia Lazar Cammie Data 6 martie 2017 19:35:02
Problema Grad Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void Descompune(int, int)’: user.cpp:26:10: error: lvalue required as decrement operand j++; ^ user.cpp: In function ‘void Read()’: user.cpp:35:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[262]’ [-Wformat=] fscanf(fin, "%s", &s); ^ user.cpp:42:9: error: expected primary-expression before ‘for’ for (int i = 0; s[i] != NULL; i++) ^ user.cpp:42:9: error: expected ‘;’ before ‘for’ user.cpp:42:27: error: ‘i’ was not declared in this scope for (int i = 0; s[i] != NULL; i++) ^ user.cpp:42:42: error: expected ‘;’ before ‘)’ token for (int i = 0; s[i] != NULL; i++) ^ user.cpp:61:29: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[262]’ [-Wformat=] fscanf(fin, "%s", &s); ^ user.cpp:32:9: warning: unused variable ‘inv’ [-Wunused-variable] int inv, cop, nn, nr; ^ user.cpp:32:14: warning: unused variable ‘cop’ [-Wunused-variable] int inv, cop, nn, nr; ^ user.cpp:32:23: warning: unused variable ‘nr’ [-Wunused-variable] int inv, cop, nn, nr; ^ user.cpp:35:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%s", &s); ^ user.cpp:61:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%s", &s); ^

Ceva nu functioneaza?