Problem | fenwicktree |
---|---|
User | waffles1823 |
Submission Time | 2023-11-10 14:09:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fenwicktree.cpp: In function ‘long long int query(long long int, long long int)’:
fenwicktree.cpp:10:41: error: ‘s’ was not declared in this scope
10 | for (; y >0; y -= lsb(y)) sum -= ft[s];
| ^
fenwicktree.cpp:11:13: error: expected primary-expression before ‘>’ token
11 | for (; >0; x -= lsb(x)) sum -= ft[s];
| ^
fenwicktree.cpp:11:40: error: ‘s’ was not declared in this scope
11 | for (; >0; x -= lsb(x)) sum -= ft[s];
| ^
fenwicktree.cpp: In function ‘int32_t main()’:
fenwicktree.cpp:32:22: error: invalid operands of types ‘long long int’ and ‘const char [2]’ to binary ‘operator<<’
32 | query(x, y+1)<<"\n";
| ~~~~~~~~~~~~~^~~~~~
| | |
| | const char [2]
| long long int