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_38184693_7399.cpp: In function 'int main()':
0_0_38184693_7399.cpp:75:30: error: no matching function for call to 'Trie<char>::push(<unresolved overloaded function type>, std::basic_string<char>::size_type, int&)'
   t.push(b.data,b.length(),ka);
                              ^
0_0_38184693_7399.cpp:75:30: note: candidate is:
0_0_38184693_7399.cpp:23:7: note: void Trie<T>::push(T*, int, int) [with T = char]
  void push(T* s, int len, int value = 0)
       ^
0_0_38184693_7399.cpp:23:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'char*'
0_0_38184693_7399.cpp:86:33: error: no matching function for call to 'Trie<char>::find(<unresolved overloaded function type>, std::basic_string<char>::size_type)'
    if (t.find(b.data, b.length()) == 0)cout << b;
                                 ^
0_0_38184693_7399.cpp:86:33: note: candidate is:
0_0_38184693_7399.cpp:39:6: note: int Trie<T>::find(T*, int) [with T = char]
  int find(T* s, int len)
      ^
0_0_38184693_7399.cpp:39:6: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'char*'
0_0_38184693_7399.cpp:87:44: error: no matching function for call to 'Trie<char>::find(<unresolved overloaded function type>, std::basic_string<char>::size_type)'
    else cout << a[t.find(b.data, b.length())];
                                            ^
0_0_38184693_7399.cpp:87:44: note: candidate is:
0_0_38184693_7399.cpp:39:6: note: int Trie<T>::find(T*, int) [with T = char]
  int find(T* s, int len)
      ^
0_0_38184693_7399.cpp:39:6: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'char*'


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-30 03:22:07, Gzip enabled