Problem payraise
User jmuzhen
Submission Time 2025-12-15 16:39:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

payraise.cpp: In function ‘int main()’:
payraise.cpp:76:9: error: base operand of ‘->’ has non-pointer type ‘Fenwick<long long int>’
76 | root->add(i, i, v[preorder_to_node[i]]);
| ^~
payraise.cpp:88:11: error: base operand of ‘->’ has non-pointer type ‘Fenwick<long long int>’
88 | root->add(l, r, x);
| ^~
payraise.cpp:95:19: error: base operand of ‘->’ has non-pointer type ‘Fenwick<long long int>’
95 | cout << root->query(v, v) << "\n";
| ^~