Borderou de evaluare (job #1265718)

Utilizator atatomirTatomir Alex atatomir Data 17 noiembrie 2014 17:49:18
Problema Petrecere Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:74:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld",&n); ^ user.cpp:93:26: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%ld",Ans.C[i]); ^ user.cpp:96:69: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%ld%ld%ld",Ans.C[i]/100,(Ans.C[i]/10)%10,Ans.C[i]%10); ^ user.cpp:96:69: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=] user.cpp:96:69: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘long long int’ [-Wformat=] user.cpp:95:14: warning: unused variable ‘x’ [-Wunused-variable] long x = Ans.C[i]; ^ user.cpp:71:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("petrecere.in","r",stdin); ^ user.cpp:72:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("petrecere.out","w",stdout); ^ user.cpp:74:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms516kbOK5
20ms520kbOK5
30ms512kbIncorect0
40ms512kbIncorect0
50ms520kbIncorect0
60ms512kbIncorect0
70ms512kbIncorect0
80ms516kbIncorect0
90ms520kbIncorect0
104ms516kbIncorect0
118ms516kbIncorect0
1212ms520kbIncorect0
1320ms528kbIncorect0
1432ms520kbIncorect0
1548ms516kbIncorect0
16Depăşit492kbTime limit exceeded.0
17Depăşit488kbTime limit exceeded.0
18Depăşit492kbTime limit exceeded.0
19Depăşit476kbTime limit exceeded.0
20Depăşit480kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?