Borderou de evaluare (job #1470497)

Utilizator BorleaAndreiBorlea Andrei Daniel BorleaAndrei Data 11 august 2015 16:01:06
Problema Pioni Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:38:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(f,"%d %d %d",&t,&n,&m); ^ user.cpp:38:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:38:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=] user.cpp:42:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(f,"%d %d",&i,&j); ^ user.cpp:42:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:59:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(f,"%d",&c); ^ user.cpp:62:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(f,"%d",&i);date[1][i]++;c--; ^ user.cpp:81:3: warning: statement has no effect [-Wunused-value] {k==0; ^ user.cpp:104:9: warning: statement has no effect [-Wunused-value] k==0; ^ user.cpp:38:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d %d",&t,&n,&m); ^ user.cpp:42:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&i,&j); ^ user.cpp:59:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&c); ^ user.cpp:62:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&i);date[1][i]++;c--; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms448kbEroare in fisierul de iesire0
20ms476kbEroare in fisierul de iesire0
30ms500kbEroare in fisierul de iesire0
44ms604kbEroare in fisierul de iesire0
58ms728kbEroare in fisierul de iesire0
68ms784kbEroare in fisierul de iesire0
720ms956kbEroare in fisierul de iesire0
80ms496kbEroare in fisierul de iesire0
90ms508kbEroare in fisierul de iesire0
100ms432kbEroare in fisierul de iesire0
Punctaj total0

Ceva nu functioneaza?