Borderou de evaluare (job #1525788)

Utilizator silkMarin Dragos silk Data 15 noiembrie 2015 16:26:05
Problema Vase Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 65

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d",&vas[i]); ^ user.cpp:30:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n",maximul); ^ user.cpp:32:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] if(sus>0) { printf("%d S\n",sus); ^ user.cpp:33:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] if(jos>=0) printf("%d S",jos); ^ user.cpp:34:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] else printf("%d D",jos*(-1)); } ^ user.cpp:36:54: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] else if(sus<=0) printf("%d D\n%d D",jos*(-1),sus*(-1)); ^ user.cpp:36:54: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] user.cpp:5:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("vase.in","r",stdin); ^ user.cpp:6:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("vase.out","w",stdout); ^ user.cpp:10:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:12:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&vas[i]); ^ user.cpp:13:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf(" %c",&dir[i]); ^ user.cpp:16:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x); ^ user.cpp:28:52: warning: ‘jos’ may be used uninitialized in this function [-Wmaybe-uninitialized] else if(dir[i]=='S') { sus-=vas[i]/2; jos-=vas[i]/2; } ^ user.cpp:28:37: warning: ‘sus’ may be used uninitialized in this function [-Wmaybe-uninitialized] else if(dir[i]=='S') { sus-=vas[i]/2; jos-=vas[i]/2; } ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
140ms1152kbRaspuns gresit0
20ms280kbOK5
340ms1152kbRaspuns gresit0
440ms1152kbRaspuns gresit0
50ms280kbOK5
60ms280kbOK5
70ms276kbOK5
80ms284kbPrimul numar corect1
912ms632kbPrimul numar corect1
1016ms720kbOK5
110ms300kbOK5
1232ms992kbPrimul numar corect1
1332ms964kbOK5
140ms296kbPrimul numar corect1
150ms280kbOK5
160ms284kbOK5
1740ms1152kbPrimul numar corect1
1840ms1144kbOK5
1928ms1000kbOK5
200ms280kbOK5
Punctaj total65

Ceva nu functioneaza?