Borderou de evaluare (job #1458789)

Utilizator tiby10Tibi P tiby10 Data 8 iulie 2015 14:20:42
Problema Jocul Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:24:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&n); ^ user.cpp:27:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&a[i]), s+=a[i]; ^ user.cpp:42:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d %d",most1,s-most1); ^ user.cpp:42:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:44:55: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] most1 > s-most1 ? printf("%d %d",s-most1,most1) : printf("%d %d",most1,s-most1) ; ^ user.cpp:44:55: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:44:87: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] most1 > s-most1 ? printf("%d %d",s-most1,most1) : printf("%d %d",most1,s-most1) ; ^ user.cpp:44:87: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:29:9: warning: unused variable ‘maX’ [-Wunused-variable] int maX=0; ^ user.cpp:22:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("jocul.in","r",stdin); ^ user.cpp:23:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("jocul.out","w",stdout); ^ user.cpp:24:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:27:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[i]), s+=a[i]; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms444kbOK1040
20ms448kbOK10
30ms448kbOK10
48ms452kbOK10
536ms448kbOK100
60ms448kbOK10
7Depăşit428kbTime limit exceeded.0
88ms452kbIncorect0
90ms448kbIncorect00
10Depăşit428kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?