Pagini recente » Borderou de evaluare (job #390147) | Cod sursa (job #1669805) | Borderou de evaluare (job #1289724)
Borderou de evaluare (job #1289724)
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 | 80ms | 308kb | Corect! | 20 |
2 | 80ms | 300kb | Corect! | 20 |
3 | 80ms | 304kb | Corect! | 20 |
4 | 80ms | 308kb | Corect! | 20 |
5 | 80ms | 300kb | Corect! | 20 |
Punctaj total | 100 |