Borderou de evaluare (job #1289722)

Utilizator ghimpeleSeteanu Radu ghimpele Data 10 decembrie 2014 11:05:11
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void update(int, int)’: user.cpp:3:21: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) (x & ( x - 1 ) ^ x) ^ user.cpp:10:26: note: in expansion of macro ‘zeros’ for ( ; x <= N; x += zeros(x) ) ^ user.cpp: In function ‘int query(int)’: user.cpp:3:21: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) (x & ( x - 1 ) ^ x) ^ user.cpp:16:21: note: in expansion of macro ‘zeros’ for (; x > 0; x -= zeros(x)) ^ user.cpp: In function ‘int main()’: user.cpp:23:25: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(IN, "r", stdin); ^ user.cpp:24:27: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(OUT, "w", stdout); ^ user.cpp:26:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &M); ^ user.cpp:29:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &val); ^ user.cpp:37:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &t, &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
112ms300kbRaspuns incorect0
212ms300kbRaspuns incorect0
316ms304kbRaspuns incorect0
412ms308kbRaspuns incorect0
512ms304kbRaspuns incorect0
Punctaj total0

Ceva nu functioneaza?