Problem cousin
User PlayVoltz
Submission Time 2024-03-07 10:03:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cousin.cpp: In function ‘void init(int, int*)’:
cousin.cpp:79:29: error: no matching function for call to ‘wavelet_tree::wavelet_tree(std::vector<long long int>&)’
79 | wt = new wavelet_tree(depth);
| ^
cousin.cpp:21:2: note: candidate: ‘wavelet_tree::wavelet_tree(std::vector<long long int>, long long int, long long int)’
21 | wavelet_tree(vector<int> vect, int x, int y){
| ^~~~~~~~~~~~
cousin.cpp:21:2: note: candidate expects 3 arguments, 1 provided
cousin.cpp:16:8: note: candidate: ‘wavelet_tree::wavelet_tree(const wavelet_tree&)’
16 | struct wavelet_tree{//1 indexed
| ^~~~~~~~~~~~
cousin.cpp:16:8: note: no known conversion for argument 1 from ‘std::vector<long long int>’ to ‘const wavelet_tree&’
cousin.cpp:16:8: note: candidate: ‘wavelet_tree::wavelet_tree(wavelet_tree&&)’
cousin.cpp:16:8: note: no known conversion for argument 1 from ‘std::vector<