Pagini recente » Borderou de evaluare (job #2787775) | Borderou de evaluare (job #1042815) | Borderou de evaluare (job #1507271) | Borderou de evaluare (job #2403215) | Borderou de evaluare (job #1289722)
Borderou de evaluare (job #1289722)
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 |
1 | 12ms | 300kb | Raspuns incorect | 0 |
2 | 12ms | 300kb | Raspuns incorect | 0 |
3 | 16ms | 304kb | Raspuns incorect | 0 |
4 | 12ms | 308kb | Raspuns incorect | 0 |
5 | 12ms | 304kb | Raspuns incorect | 0 |
Punctaj total | 0 |