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_39153195_7331.cpp:5:7: error: 'charsize' does not name a type
    5 | const charsize=26;
      |       ^~~~~~~~
0_0_39153195_7331.cpp:7:17: error: 'charsize' was not declared in this scope
    7 |         int nxt[charsize];
      |                 ^~~~~~~~
0_0_39153195_7331.cpp: In function 'void insert(std::string, int)':
0_0_39153195_7331.cpp:17:31: error: 'struct node' has no member named 'nxt'
   17 |                 if(!tree[now].nxt[x]){
      |                               ^~~
0_0_39153195_7331.cpp:18:35: error: 'struct node' has no member named 'nxt'
   18 |                         tree[now].nxt[x]=++cnt;
      |                                   ^~~
0_0_39153195_7331.cpp:20:31: error: 'struct node' has no member named 'nxt'
   20 |                 now=tree[now].nxt[x];
      |                               ^~~
0_0_39153195_7331.cpp: In function 'bool search(std::string, int)':
0_0_39153195_7331.cpp:29:31: error: 'struct node' has no member named 'nxt'
   29 |                 if(!tree[now].nxt[x]){
      |                               ^~~
0_0_39153195_7331.cpp:32:31: error: 'struct node' has no member named 'nxt'
   32 |                 now=tree[now].nxt[x];
      |                               ^~~
0_0_39153195_7331.cpp: In function 'int main()':
0_0_39153195_7331.cpp:45:29: error: no matching function for call to 'search(bool)'
   45 |                 cout<<search(search(s,s.size()))<endl;
      |                       ~~~~~~^~~~~~~~~~~~~~~~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:61,
                 from .\stdc++.h:51:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:4137:5: note: candidate: 'template<class _FIter1, class _FIter2> constexpr _FIter1 std::search(_FIter1, _FIter1, _FIter2, _FIter2)'
 4137 |     search(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
      |     ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:4137:5: note:   template argument deduction/substitution failed:
0_0_39153195_7331.cpp:45:29: note:   candidate expects 4 arguments, 1 provided
   45 |                 cout<<search(search(s,s.size()))<endl;
      |                       ~~~~~~^~~~~~~~~~~~~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:4178:5: note: candidate: 'template<class _FIter1, class _FIter2, class _BinaryPredicate> constexpr _FIter1 std::search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate)'
 4178 |     search(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
      |     ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:4178:5: note:   template argument deduction/substitution failed:
0_0_39153195_7331.cpp:45:29: note:   candidate expects 5 arguments, 1 provided
   45 |                 cout<<search(search(s,s.size()))<endl;
      |                       ~~~~~~^~~~~~~~~~~~~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:4273:5: note: candidate: 'template<class _ForwardIterator, class _Searcher> constexpr _ForwardIterator std::search(_ForwardIterator, _ForwardIterator, const _Searcher&)'
 4273 |     search(_ForwardIterator __first, _ForwardIterator __last,
      |     ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:4273:5: note:   template argument deduction/substitution failed:
0_0_39153195_7331.cpp:45:29: note:   candidate expects 3 arguments, 1 provided
   45 |                 cout<<search(search(s,s.size()))<endl;
      |                       ~~~~~~^~~~~~~~~~~~~~~~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:73:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/pstl/glue_algorithm_defs.h:112:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _BinaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::search(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator2, _BinaryPredicate)'
  112 | search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first,
      | ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/pstl/glue_algorithm_defs.h:112:1: note:   template argument deduction/substitution failed:
0_0_39153195_7331.cpp:45:29: note:   candidate expects 6 arguments, 1 provided
   45 |                 cout<<search(search(s,s.size()))<endl;
      |                       ~~~~~~^~~~~~~~~~~~~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/pstl/glue_algorithm_defs.h:117:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::search(_ExecutionPolicy&&, _ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator2)'
  117 | search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first,
      | ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/pstl/glue_algorithm_defs.h:117:1: note:   template argument deduction/substitution failed:
0_0_39153195_7331.cpp:45:29: note:   candidate expects 5 arguments, 1 provided
   45 |                 cout<<search(search(s,s.size()))<endl;
      |                       ~~~~~~^~~~~~~~~~~~~~~~~~~~
0_0_39153195_7331.cpp:25:6: note: candidate: 'bool search(std::string, int)'
   25 | bool search(string s,int len){
      |      ^~~~~~
0_0_39153195_7331.cpp:25:6: 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 14:45:18, Gzip enabled