Borderou de evaluare (job #1745105)

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

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:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d", dr); ^ 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
10ms452kbIncorect0
20ms452kbOK10
30ms456kbOK10
40ms452kbOK10
50ms472kbIncorect0
60ms472kbIncorect0
716ms604kbIncorect0
816ms608kbIncorect0
936ms808kbIncorect0
1036ms800kbIncorect0
Punctaj total30

Ceva nu functioneaza?