Borderou de evaluare (job #1458032)

Utilizator theprdvtheprdv theprdv Data 6 iulie 2015 06:34:18
Problema Baruri Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void update(int, int)’: user.cpp:5:31: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) (x ^ (x - 1) & x) ^ user.cpp:12:22: note: in expansion of macro ‘zeros’ for (; i <= N; i += zeros(i)) ^ user.cpp: In function ‘int query(int)’: user.cpp:5:31: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) (x ^ (x - 1) & x) ^ user.cpp:18:17: note: in expansion of macro ‘zeros’ for (; i; i -= zeros(i)) ^ user.cpp: In function ‘int main()’: user.cpp:24:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("baruri.in", "r", stdin); ^ user.cpp:25:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("baruri.out", "w", stdout); ^ user.cpp:27:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &T); ^ user.cpp:30:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ user.cpp:33:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] update(i, x); ^ user.cpp:35:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &M); ^ user.cpp:39:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &type); ^ user.cpp:42:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &a, &b); ^ user.cpp:46:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &a, &b); ^ user.cpp:50:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &a, &b); ^ user.cpp:54:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &a, &b, &c); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms292kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?