Problem | fenwicktree_easy |
---|---|
User | Blender |
Submission Time | 2024-04-17 14:23:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fenwicktree_easy.cpp: In function ‘void update(long long int, long long unsigned int, long long int)’:
fenwicktree_easy.cpp:13:14: error: invalid types ‘long long int[long long unsigned int]’ for array subscript
13 | array[index] += value;
| ^
fenwicktree_easy.cpp: In function ‘long long int queryRange(long long int*, long long unsigned int, long long unsigned int)’:
fenwicktree_easy.cpp:31:16: error: invalid conversion from ‘long long unsigned int’ to ‘long long int*’ [-fpermissive]
31 | return query( end ) - query( start - 1 );
| ^~~
| |
| long long unsigned int
fenwicktree_easy.cpp:31:20: error: too few arguments to function ‘long long int query(long long int*, long long unsigned int)’
31 | return query( end ) - query( start - 1 );
| ^
fenwicktree_easy.cpp:18:9: note: declared here
18 | VALUE_T query( VALUE_T array[], RA