Borderou de evaluare (job #1678712)

Utilizator botex98Lovasz Botond botex98 Data 7 aprilie 2016 15:07:18
Problema Vase Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 34

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:16:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&n); ^ user.cpp:18:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&v[i]); ^ user.cpp:55:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d\n",sum/2); ^ user.cpp:57:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d S\n",-t[ker][0]); ^ user.cpp:58:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] else printf("%d D\n",t[ker][0]); ^ user.cpp:60:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d S\n",-t[ker][1]); ^ user.cpp:61:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] else printf("%d D\n",t[ker][1]); ^ user.cpp:13: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:14: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:16:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:18:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v[i]); ^ user.cpp:20:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c",&c); ^ user.cpp:21:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c",&c); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit1048kbTime limit exceeded.0
20ms476kbOK5
3Depăşit1048kbTime limit exceeded.0
4Depăşit1048kbTime limit exceeded.0
50ms476kbPrimul numar corect1
60ms476kbPrimul numar corect1
70ms480kbOK5
80ms476kbPrimul numar corect1
9Depăşit724kbTime limit exceeded.0
10Depăşit824kbTime limit exceeded.0
114ms500kbOK5
12Depăşit964kbTime limit exceeded.0
13Depăşit948kbTime limit exceeded.0
140ms492kbPrimul numar corect1
150ms476kbOK5
160ms476kbOK5
17Depăşit1048kbTime limit exceeded.0
18Depăşit1044kbTime limit exceeded.0
19Depăşit980kbTime limit exceeded.0
200ms468kbOK5
Punctaj total34

Ceva nu functioneaza?