Borderou de evaluare (job #1745104)

Utilizator wilson182Alexandrina Panfil wilson182 Data 21 august 2016 11:46:50
Problema Buget Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:19:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] scanf("%d %d", &n, &b); ^ user.cpp:33:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d", min); ^ user.cpp:17:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("buget.in", "r", stdin); ^ user.cpp:18:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("buget.out", "w", stdout); ^ user.cpp:19:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &b); ^ user.cpp:20:44: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i = 1; i <= n; i++) scanf("%d", &p[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms456kbOK10
20ms460kbOK10
30ms460kbOK10
40ms460kbOK10
50ms476kbIncorect0
60ms476kbIncorect0
716ms616kbIncorect0
816ms608kbIncorect0
940ms808kbIncorect0
1036ms804kbIncorect0
Punctaj total40

Ceva nu functioneaza?