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_18096639_4345.cpp: In function 'int find_trie(char*)':
0_0_18096639_4345.cpp:54:12: error: no match for 'operator=' (operand types are 'trie' and 'int')
         id = str[i] - 'a';
            ^
0_0_18096639_4345.cpp:54:12: note: candidates are:
0_0_18096639_4345.cpp:20:16: note: trie& trie::operator=(const trie&)
 typedef struct trie
                ^
0_0_18096639_4345.cpp:20:16: note:   no known conversion for argument 1 from 'int' to 'const trie&'
0_0_18096639_4345.cpp:20:16: note: trie& trie::operator=(trie&&)
0_0_18096639_4345.cpp:20:16: note:   no known conversion for argument 1 from 'int' to 'trie&&'
0_0_18096639_4345.cpp:55:19: error: no match for 'operator[]' (operand types are 'trie* [26]' and 'trie')
         if(p->next[id]==NULL)
                   ^
0_0_18096639_4345.cpp:57:20: error: no match for 'operator[]' (operand types are 'trie* [26]' and 'trie')
         p = p->next[id];
                    ^


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-10-06 21:28:03, Gzip enabled