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

Compile Error

payraise.cpp: In function ‘int main()’:
payraise.cpp:55:6: error: ‘struct fenwickTree’ has no member named ‘initialize’
55 | fwt.initialize(n, arr);
| ^~~~~~~~~~
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 | cout << fwt.qry(preorder[x]) << "\n";
| ^
payraise.cpp:36:6: note: candidate: ‘long long int fenwickTree::qry(long long int, long long int)’
36 | int qry(int l, int r){