Problem | chickensoup |
---|---|
User | yhkhoo |
Submission Time | 2023-12-06 11:56:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
chickensoup.cpp: In function ‘long double query(long double*, long double)’:
chickensoup.cpp:5:21: error: invalid operands of types ‘long double’ and ‘long double’ to binary ‘operator&’
5 | #define lsb(x) ((x) & (-x))
| ~~~ ^ ~~~~
| |
| long double
chickensoup.cpp:14:19: note: in expansion of macro ‘lsb’
14 | for(; p; p -= lsb(p)) sum = mod(sum + ft[p]);
| ^~~
chickensoup.cpp:14:47: error: invalid types ‘long double*[long double]’ for array subscript
14 | for(; p; p -= lsb(p)) sum = mod(sum + ft[p]);
| ^
chickensoup.cpp:14:33: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
14 | for(; p; p -= lsb(p)) sum = mod(sum + ft[p]);
| ^~~
| modf
chickensoup.cpp: In function ‘vo