Borderou de evaluare (job #1649313)

Utilizator pibogaBogdan piboga Data 11 martie 2016 13:12:00
Problema Defrag Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d %d %d %d",&q,&p,&s,&c); ^ user.cpp:14:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:14:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:20:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d %d",&a,&b); ^ user.cpp:20:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:11:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("defrag.in","r",stdin); ^ user.cpp:12:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("defrag.out","w",stdout); ^ user.cpp:14:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d",&q,&p,&s,&c); ^ user.cpp:20:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&a,&b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms244kbIncorect0
20ms240kbIncorect0
30ms244kbIncorect0
40ms244kbIncorect0
50ms244kbIncorect0
60ms244kbIncorect0
70ms244kbIncorect0
80ms244kbIncorect0
90ms244kbIncorect0
100ms244kbIncorect0
110ms244kbIncorect0
120ms240kbIncorect0
130ms240kbIncorect0
140ms244kbIncorect0
150ms248kbIncorect0
160ms244kbIncorect0
170ms240kbIncorect0
180ms240kbIncorect0
190ms244kbIncorect0
200ms240kbIncorect0
Punctaj total0

Ceva nu functioneaza?