Borderou de evaluare (job #1458560)

Utilizator tiby10Tibi P tiby10 Data 7 iulie 2015 21:34:01
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:43: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:43:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:45: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:45:55: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:45: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:45: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
10ms440kbOK1040
20ms440kbOK10
30ms440kbOK10
412ms444kbOK10
548ms440kbOK100
60ms436kbOK10
7Depăşit420kbTime limit exceeded.0
812ms444kbIncorect0
94ms444kbIncorect00
10Depăşit424kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?