Pagini recente » Borderou de evaluare (job #2451802) | Borderou de evaluare (job #3352448) | Borderou de evaluare (job #2437549) | Borderou de evaluare (job #3034302) | Borderou de evaluare (job #3352484)
Borderou de evaluare (job #3352484)
Raport evaluator
Compilare:
main.cpp: In function 'void add(int, int)':
main.cpp:2:26: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
2 | #define zeros(x) (x^(x-1)&x)
| ^
main.cpp:7:33: note: in expansion of macro 'zeros'
7 | for(int i = x; i <= n; i += zeros(i))
| ^~~~~
main.cpp: In function 'int sum(int)':
main.cpp:2:26: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
2 | #define zeros(x) (x^(x-1)&x)
| ^
main.cpp:12:28: note: in expansion of macro 'zeros'
12 | for(int i = x; i; i -= zeros(i))
| ^~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 14ms | 692kb | Corect! | 20 |
| 2 | 14ms | 692kb | Corect! | 20 |
| 3 | 14ms | 688kb | Corect! | 20 |
| 4 | 14ms | 692kb | Corect! | 20 |
| 5 | 14ms | 696kb | Corect! | 20 |
| Punctaj total | 100 |