Borderou de evaluare (job #1378026)

Utilizator oldcatanca popescu oldcat Data 6 martie 2015 10:10:32
Problema Alee Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:19:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(fin,"%d%d",&n,&c); ^ user.cpp:19:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:22:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(fin,"%d%d",&i,&j); ^ user.cpp:22:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:25:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(fin,"%d%d%d%d",&x1,&y1,&x2,&y2); ^ user.cpp:25:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:25:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=] user.cpp:25:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘short int*’ [-Wformat=] user.cpp:19:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d%d",&n,&c); ^ user.cpp:22:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d%d",&i,&j); ^ user.cpp:25:43: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d%d%d%d",&x1,&y1,&x2,&y2); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbIncorect0
20ms264kbIncorect0
30ms288kbIncorect0
40ms384kbKilled by signal 11(SIGSEGV).0
50ms340kbIncorect0
60ms384kbKilled by signal 11(SIGSEGV).0
78ms404kbKilled by signal 11(SIGSEGV).0
80ms384kbKilled by signal 11(SIGSEGV).0
90ms388kbKilled by signal 11(SIGSEGV).0
100ms392kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?