Borderou de evaluare (job #1574638)

Utilizator radudurlesteanuDurlesteanu Radu Stefan radudurlesteanu Data 20 ianuarie 2016 18:54:15
Problema Secventa 6 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:15:14: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] scanf("%u",&n); ^ user.cpp:18:35: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=] for (i=0;i<m;i++) scanf("%u",&a[i]); ^ user.cpp:34:15: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] printf("%u",nr); ^ user.cpp:13:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("secv6.in","r",stdin); ^ user.cpp:14:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("secv6.out","w",stdout); ^ user.cpp:15:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%u",&n); ^ user.cpp:18:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i=0;i<m;i++) scanf("%u",&a[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbOK5
20ms280kbIncorect0
30ms288kbOK5
40ms324kbIncorect0
50ms332kbIncorect0
60ms336kbOK5
78ms336kbOK5
828ms340kbIncorect0
944ms336kbIncorect0
1056ms336kbOK5
11160ms336kbIncorect0
12272ms340kbOK5
13380ms336kbIncorect0
14596ms336kbIncorect0
15640ms376kbIncorect0
16Depăşit364kbTime limit exceeded.0
17Depăşit312kbTime limit exceeded.0
18Depăşit348kbTime limit exceeded.0
19Depăşit312kbTime limit exceeded.0
20Depăşit348kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?