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

Compile Error

payraise.cpp:16:25: error: ISO C++ forbids declaration of ‘FenwickRURQ’ with no type [-fpermissive]
16 | FenwickRURQ(int n_=0) { init(n_); }
| ^
payraise.cpp: In function ‘int main()’:
payraise.cpp:73:3: error: template placeholder type ‘Fenwick<...auto...>’ must be followed by a simple declarator-id
73 | Fenwick *root = new Fenwick(n);
| ^~~~~~~
payraise.cpp:14:8: note: ‘template<class T> struct Fenwick’ declared here
14 | struct Fenwick {
| ^~~~~~~
payraise.cpp:73:32: error: class template argument deduction failed:
73 | Fenwick *root = new Fenwick(n);
| ^
payraise.cpp:73:32: error: no matching function for call to ‘Fenwick(long long int&)’
payraise.cpp:14:8: note: candidate: ‘template<class T> Fenwick(Fenwick<T>)-> Fenwick<T>’
14 | struct Fenwick {
| ^~~~~~~
payraise.cpp:14:8: n