Borderou de evaluare (job #1754917)

Utilizator stefantagaTaga Stefan stefantaga Data 8 septembrie 2016 23:08:15
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:8:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf ( "%d %d" , &n , &m ); ^ user.cpp:8:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:10:35: 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:10:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:12:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf ( "%d" , &x ); ^ user.cpp:16:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] for (i=0;i<n;i++) scanf ("%d",&C[i]); ^ user.cpp:30:4: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if ((s>>i)&1) ^ user.cpp:24:5: warning: unused variable ‘pp’ [-Wunused-variable] int pp=0; ^ user.cpp:7:38: 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:8:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ( "%d %d" , &n , &m ); ^ user.cpp:10:36: 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:12:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ( "%d" , &x ); ^ user.cpp:16:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i=0;i<n;i++) scanf ("%d",&C[i]); ^ user.cpp:40:35: 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
10ms288kbOK10
20ms288kbOK10
30ms288kbOK10
40ms292kbOK10
50ms292kbOK10
60ms296kbOK10
70ms292kbOK10
80ms292kbOK10
90ms296kbOK10
100ms284kbOK10
Punctaj total100

Ceva nu functioneaza?