Borderou de evaluare (job #1200450)

Utilizator ovidiuz98Zamfir Ovidiu ovidiuz98 Data 22 iunie 2014 15:06:49
Problema Reteta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:9:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d %d", &n, &m); ^ user.cpp:9:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:12:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d %d", &t[i],&nr_med); ^ user.cpp:12:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:14:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&x),l[i]|=1<<(x-1); ^ user.cpp:17:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&c[i]); ^ user.cpp:33:15: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if((s>>i)&1) ^ user.cpp:26:9: warning: unused variable ‘pp’ [-Wunused-variable] int pp=0; ^ user.cpp:8:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("reteta.in","r",stdin); ^ user.cpp:9:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); ^ user.cpp:12:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &t[i],&nr_med); ^ user.cpp:14:42: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x),l[i]|=1<<(x-1); ^ user.cpp:17:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&c[i]); ^ user.cpp:42:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("reteta.out","w",stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbOK10
20ms272kbOK10
30ms268kbOK10
40ms272kbOK10
50ms272kbOK10
60ms268kbOK10
70ms276kbOK10
80ms272kbOK10
90ms272kbOK10
100ms268kbOK10
Punctaj total100

Ceva nu functioneaza?