Problem magicstring
User Potato3218
Submission Time 2023-08-23 15:39:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

magicstring.cpp: In function ‘int main()’:
magicstring.cpp:40:28: error: no matching function for call to ‘node::query(int)’
40 | cout<<root->query(k - 'a') << '\n';
| ^
magicstring.cpp:26:6: note: candidate: ‘long long int node::query(long long int, long long int)’
26 | int query(int _s, int _e){
| ^~~~~
magicstring.cpp:26:6: note: candidate expects 2 arguments, 1 provided