F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 18:28:44, Gzip enabled