Problem payraise
User Kiameimon
Submission Time 2024-02-22 19:31:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

payraise.cpp: In function ‘int main()’:
payraise.cpp:55:17: error: no matching function for call to ‘fenwickTree::init(long long int&, long long int [(n + 1)])’
55 | fwt.init(n, arr);
| ^
payraise.cpp:19:7: note: candidate: ‘void fenwickTree::init(long long int*)’
19 | void init(int a[]){
| ^~~~
payraise.cpp:19:7: note: candidate expects 1 argument, 2 provided
payraise.cpp:61:41: error: no matching function for call to ‘fenwickTree::upd(long long int&, long long int&, long long int&)’
61 | fwt.upd(preorder[pos], end1[pos], val);
| ^
payraise.cpp:26:7: note: candidate: ‘void fenwickTree::upd(long long int, long long int)’
26 | void upd(int pos, int val){
| ^~~
payraise.cpp:26:7: note: candidate expects 2 arguments, 3 provided
payraise.cpp:65:31: error: no matching function for call to ‘fenwickTree::qry(long long int&)’
65 |