Borderou de evaluare (job #1678726)

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

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&n); ^ user.cpp:19:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&v[i]); ^ user.cpp:27:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d\n",sum/2); ^ user.cpp:58: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:59: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:61: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:62: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:14: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:15: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:17:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:19:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v[i]); ^ user.cpp:21:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c",&c); ^ user.cpp:22: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ăşit1072kbTime limit exceeded.0
20ms480kbOK5
3Depăşit1072kbTime limit exceeded.0
4Depăşit1068kbTime limit exceeded.0
50ms472kbPrimul numar corect1
60ms476kbPrimul numar corect1
70ms480kbPrimul numar corect1
80ms468kbPrimul numar corect1
9Depăşit752kbTime limit exceeded.0
10Depăşit848kbTime limit exceeded.0
114ms500kbPrimul numar corect1
12Depăşit992kbTime limit exceeded.0
13Depăşit976kbTime limit exceeded.0
140ms500kbPrimul numar corect1
150ms480kbPrimul numar corect1
160ms476kbOK5
17Depăşit1072kbTime limit exceeded.0
18Depăşit1068kbTime limit exceeded.0
19Depăşit1000kbTime limit exceeded.0
200ms476kbOK5
Punctaj total22

Ceva nu functioneaza?