0_0_35309225_30845.cpp:22:6: error: prototype for 'void SegmentTree::init(int, int)' does not match any in class 'SegmentTree'
void SegmentTree::init(int arr_length, int max_length) {
^
0_0_35309225_30845.cpp:11:10: error: candidate is: void SegmentTree::init(int)
void init(int max_length);
^
0_0_35309225_30845.cpp: In function 'int main(int, const char**)':
0_0_35309225_30845.cpp:107:38: error: no matching function for call to 'SegmentTree::init(int, const int&)'
ptree->init(50000, MAX_NODE_COUNT);
^
0_0_35309225_30845.cpp:107:38: note: candidate is:
0_0_35309225_30845.cpp:11:10: note: void SegmentTree::init(int)
void init(int max_length);
^
0_0_35309225_30845.cpp:11:10: note: candidate expects 1 argument, 2 provided
|