0_0_39051066_7207.cpp: In member function 'void trie::insert(char*, int)':
0_0_39051066_7207.cpp:17:32: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
17 | exist[p]++;
| ~~~~~~~^
0_0_39051066_7207.cpp: In function 'int main()':
0_0_39051066_7207.cpp:40:28: error: no matching function for call to 'trie::insert(char [15])'
40 | tree.insert(s);
| ~~~~~~~~~~~^~~
0_0_39051066_7207.cpp:9:14: note: candidate: 'void trie::insert(char*, int)'
9 | void insert(char* s,int l){
| ^~~~~~
0_0_39051066_7207.cpp:9:14: note: candidate expects 2 arguments, 1 provided
0_0_39051066_7207.cpp:42:48: error: no matching function for call to 'trie::find(char [15])'
42 | printf("%d\n",tree.find(s));
| ~~~~~~~~~^~~
0_0_39051066_7207.cpp:21:13: note: candidate: 'int trie::find(char*, int)'
21 | int find(char* s,int l){
| ^~~~
0_0_39051066_7207.cpp:21:13: note: candidate expects 2 arguments, 1 provided
|