Borderou de evaluare (job #1907513)

Utilizator virtualityBbbbbbbbbbbbbbbbbb virtuality Data 6 martie 2017 19:38:28
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:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d %ld", &n, &b); ^ user.cpp:19:27: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:21:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld", &p[i]); ^ user.cpp:38:22: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%ld", min); ^ user.cpp:17:36: 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:38: 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:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %ld", &n, &b); ^ user.cpp:21:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld", &p[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms424kbOK10
20ms424kbOK10
30ms428kbOK10
40ms432kbOK10
50ms460kbIncorect0
64ms464kbIncorect0
720ms736kbIncorect0
820ms728kbIncorect0
948ms1124kbIncorect0
1044ms1124kbIncorect0
Punctaj total40

Ceva nu functioneaza?