Problem fenwicktree_easy
User Blender
Submission Time 2024-04-17 14:25:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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 ‘int main()’:
fenwicktree_easy.cpp:66:20: error: invalid conversion from ‘long long int*’ to ‘long long int’ [-fpermissive]
66 | cout << update( arr, a, b ) << '\n';
| ^~~
| |
| long long int*
fenwicktree_easy.cpp:9:22: note: initializing argument 1 of ‘void update(long long int, long long unsigned int, long long int)’
9 | void update( VALUE_T array, RANGE_T index, VALUE_T value )
| ^
fenwicktree_easy.cpp:66:9: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘v