Borderou de evaluare (job #1314614)

Utilizator badea_adi1999Badea Adrian Catalin badea_adi1999 Data 12 ianuarie 2015 00:50:14
Problema Mcript Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void citire()’: user.cpp:26:36: warning: format ‘%s’ expects argument of type ‘char*’, but argument 4 has type ‘char (*)[10]’ [-Wformat=] fscanf(f,"%d\n%s\n%d ",&n,&c,&m); ^ user.cpp: In function ‘int rez()’: user.cpp:39:26: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[10]’ [-Wformat=] fscanf(f,"%s ",&l); ^ user.cpp: In function ‘int main()’: user.cpp:54:9: warning: unused variable ‘i’ [-Wunused-variable] int i,j; ^ user.cpp:54:11: warning: unused variable ‘j’ [-Wunused-variable] int i,j; ^ user.cpp: In function ‘void citire()’: user.cpp:26:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d\n%s\n%d ",&n,&c,&m); ^ user.cpp:28:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%s",t); ^ user.cpp: In function ‘int rez()’: user.cpp:37:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&p); ^ user.cpp:39:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%s ",&l); ^ user.cpp: In function ‘int main()’: user.cpp:56:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d\n",&k); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms440kbOK10
20ms572kbOK10
34ms1456kbIncorect0
412ms3196kbIncorect0
524ms3480kbIncorect0
640ms3504kbIncorect0
756ms3504kbIncorect0
8172ms3508kbIncorect0
9500ms3504kbIncorect0
10436ms3504kbIncorect0
Punctaj total20

Ceva nu functioneaza?