Borderou de evaluare (job #1669253)

Utilizator vlady1997Vlad Bucur vlady1997 Data 30 martie 2016 16:18:00
Problema Urat Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 32

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:23:34: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] printf("%lld\n%d\n",sol1,sol2); ^ user.cpp:24:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] if (n%2==0) printf("%d ",k); ^ user.cpp:25:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] else printf("%d ",k+1); ^ user.cpp:30:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d %d ",k+i+1,i); ^ user.cpp:30:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] user.cpp:32:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d",k+1); ^ user.cpp:38:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d %d ",k+i+1,i); ^ user.cpp:38:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] user.cpp:17:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("urat.in","r",stdin); ^ user.cpp:18:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("urat.out","w",stdout); ^ user.cpp:19:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld",&n); k=n/2; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms292kbValoare incorecta cerinta 3!8
20ms292kbValoare incorecta cerinta 3!8
30ms288kbValoare corecta cerinta 1!2
44ms292kbValoare corecta cerinta 1!2
58ms284kbValoare corecta cerinta 1!2
616ms292kbValoare corecta cerinta 1!2
736ms292kbValoare corecta cerinta 1!2
856ms296kbValoare corecta cerinta 1!2
972ms292kbValoare corecta cerinta 1!2
1092ms292kbValoare corecta cerinta 1!2
Punctaj total32

Ceva nu functioneaza?