Borderou de evaluare (job #1608888)

Utilizator gabriela.leonteLeonte Gabriela gabriela.leonte Data 22 februarie 2016 13:50:11
Problema Roata Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 12

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", s); ^ user.cpp:28:34: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%lld ", i); ^ user.cpp:9:37: warning: unused variable ‘mini’ [-Wunused-variable] long long int n,a[100002],c,s=0,mini=100001,poz1; ^ user.cpp:9:49: warning: unused variable ‘poz1’ [-Wunused-variable] long long int n,a[100002],c,s=0,mini=100001,poz1; ^ user.cpp:7:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("roata.in", "r", stdin); ^ user.cpp:8:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("roata.out", "w", stdout); ^ user.cpp:10:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &n); ^ user.cpp:11:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &c); ^ user.cpp:14:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &a[i]); ^ user.cpp:34:9: warning: ‘ok’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(ok==1) n++; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms444kbCerinta 1 corecta !1
20ms444kbCerinta 1 corecta !1
30ms444kbCerinta 1 corecta !1
40ms444kbCerinta 1 corecta !1
50ms444kbCerinta 2 incorecta !3
636ms444kbCerinta 1 corecta !1
70ms444kbCerinta 1 corecta !1
80ms444kbCerinta 1 corecta !1
90ms448kbCerinta 1 corecta !1
100ms448kbCerinta 1 corecta !1
11Depăşit472kbTime limit exceeded.0
12Depăşit448kbTime limit exceeded.0
13Depăşit532kbTime limit exceeded.0
14Depăşit628kbTime limit exceeded.0
15Depăşit788kbTime limit exceeded.0
16Depăşit936kbTime limit exceeded.0
17Depăşit1208kbTime limit exceeded.0
18Depăşit1204kbTime limit exceeded.0
19Depăşit1208kbTime limit exceeded.0
20Depăşit1208kbTime limit exceeded.0
Punctaj total12

Ceva nu functioneaza?