Borderou de evaluare (job #1632167)

Utilizator Andrei2001Andrei Parvulescu Andrei2001 Data 5 martie 2016 22:13:38
Problema Vase Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 36

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:40:40: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%d S\n",s-s1); ^ user.cpp:41:66: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] if (s1+v[i].vol<s) fprintf(g,"%d S",s-s1-v[i].vol); ^ user.cpp:42:71: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] else if (s1+v[i].vol>s) fprintf(g,"%d D",s1+v[i].vol-s); ^ user.cpp:47:58: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%d D\n%d D",s1-s,s1+v[i].vol-s); ^ user.cpp:47:58: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long long int’ [-Wformat=] user.cpp:51:71: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] if (s1+v[i].vol<s) fprintf(g,"0 S\n%d S",s-s1-v[i].vol); ^ user.cpp:52:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] else fprintf(g,"0 D\n%d D",s1+v[i].vol-s); ^ user.cpp:16:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%lld",&n); ^ user.cpp:19:46: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%lld%c%c%c",&x,&c1,&c2,&c3); ^ user.cpp:33:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%lld",&x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
140ms1216kbPrimul numar corect1
20ms440kbOK5
336ms1220kbPrimul numar corect1
436ms1224kbPrimul numar corect1
50ms444kbPrimul numar corect1
60ms436kbPrimul numar corect1
70ms440kbOK5
80ms444kbPrimul numar corect1
912ms440kbPrimul numar corect1
1016ms828kbOK5
110ms456kbPrimul numar corect1
1232ms1068kbPrimul numar corect1
1328ms1044kbPrimul numar corect1
140ms456kbPrimul numar corect1
150ms440kbPrimul numar corect1
160ms444kbPrimul numar corect1
1740ms1220kbPrimul numar corect1
1840ms1216kbPrimul numar corect1
1928ms1084kbPrimul numar corect1
200ms440kbOK5
Punctaj total36

Ceva nu functioneaza?