Borderou de evaluare (job #1732527)

Utilizator DenisONIcBanu Denis Andrei DenisONIc Data 21 iulie 2016 20:14:15
Problema Sum Max Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void df(long int)’: user.cpp:19:13: warning: variable ‘dr’ set but not used [-Wunused-but-set-variable] long st,dr; ^ user.cpp: In function ‘int main()’: user.cpp:43:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld",&t); ^ user.cpp:44:33: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld%ld%ld",&n,&st,&dr); ^ user.cpp:44:33: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:44:33: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:52:30: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld",&v[j]); ^ user.cpp:42:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("summax.in","r",stdin); ^ user.cpp:43:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&t); ^ user.cpp:44:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld%ld",&n,&st,&dr); ^ user.cpp:52:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&v[j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms520kbOK5
2104ms3848kbOK5
3248ms6364kbOK5
4308ms9504kbOK5
50ms524kbOK5
68ms548kbOK5
716ms616kbOK5
812ms708kbOK5
9168ms1960kbOK5
10244ms2828kbOK5
11336ms3856kbOK5
12120ms4420kbOK5
13144ms4488kbOK5
14396ms4548kbOK5
15156ms5036kbOK5
16184ms5684kbOK5
17572ms6372kbOK5
18308ms7864kbOK5
19772ms8664kbOK5
20860ms9508kbOK5
Punctaj total100

Ceva nu functioneaza?