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_34897638_3883.cpp: In member function 'void dobala::ac_automaton<Char, Hash, Pred>::insert(const string_type&)':
0_0_34897638_3883.cpp:52:68: error: expected ')' before ';' token
             if (auto iter_child = nodes_[index].children.find(item); iter_child != nodes_[index].children.end())
                                                                    ^
0_0_34897638_3883.cpp:52:70: error: 'iter_child' was not declared in this scope
             if (auto iter_child = nodes_[index].children.find(item); iter_child != nodes_[index].children.end())
                                                                      ^
0_0_34897638_3883.cpp:52:112: error: expected ';' before ')' token
             if (auto iter_child = nodes_[index].children.find(item); iter_child != nodes_[index].children.end())
                                                                                                                ^
0_0_34897638_3883.cpp: In member function 'bool dobala::ac_automaton<Char, Hash, Pred>::find(const string_type&) const':
0_0_34897638_3883.cpp:76:68: error: expected ')' before ';' token
             if (auto iter_child = nodes_[index].children.find(item); iter_child != nodes_[index].children.end())
                                                                    ^
0_0_34897638_3883.cpp:76:70: error: 'iter_child' was not declared in this scope
             if (auto iter_child = nodes_[index].children.find(item); iter_child != nodes_[index].children.end())
                                                                      ^
0_0_34897638_3883.cpp:76:112: error: expected ';' before ')' token
             if (auto iter_child = nodes_[index].children.find(item); iter_child != nodes_[index].children.end())
                                                                                                                ^
0_0_34897638_3883.cpp:80:13: error: 'else' without a previous 'if'
             else
             ^
0_0_34897638_3883.cpp: In member function 'void dobala::ac_automaton<Char, Hash, Pred>::dump()':
0_0_34897638_3883.cpp:125:30: error: expected unqualified-id before '[' token
             for (const auto& [k, v] : nodes_[i].children)
                              ^
0_0_34897638_3883.cpp:125:30: error: expected ';' before '[' token
0_0_34897638_3883.cpp:125:31: error: 'k' was not declared in this scope
             for (const auto& [k, v] : nodes_[i].children)
                               ^
0_0_34897638_3883.cpp:125:34: error: 'v' was not declared in this scope
             for (const auto& [k, v] : nodes_[i].children)
                                  ^
0_0_34897638_3883.cpp: In lambda function:
0_0_34897638_3883.cpp:125:37: error: expected '{' before ':' token
             for (const auto& [k, v] : nodes_[i].children)
                                     ^
0_0_34897638_3883.cpp: In member function 'void dobala::ac_automaton<Char, Hash, Pred>::dump()':
0_0_34897638_3883.cpp:125:37: error: expected ';' before ':' token
0_0_34897638_3883.cpp:125:37: error: expected primary-expression before ':' token
0_0_34897638_3883.cpp:125:37: error: expected ')' before ':' token
0_0_34897638_3883.cpp:125:37: error: expected primary-expression before ':' token
0_0_34897638_3883.cpp: In member function 'void dobala::ac_automaton<Char, Hash, Pred>::rebuild()':
0_0_34897638_3883.cpp:135:26: error: expected unqualified-id before '[' token
         for (const auto& [ch, next]: nodes_[0].children)
                          ^
0_0_34897638_3883.cpp:135:26: error: expected ';' before '[' token
0_0_34897638_3883.cpp:135:27: error: 'ch' was not declared in this scope
         for (const auto& [ch, next]: nodes_[0].children)
                           ^
0_0_34897638_3883.cpp:135:31: error: 'next' was not declared in this scope
         for (const auto& [ch, next]: nodes_[0].children)
                               ^
0_0_34897638_3883.cpp:135:31: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/stdexcept:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/array:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:41,
                 from 0_0_34897638_3883.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:   'std::next'
     next(_ForwardIterator __x, typename
     ^
0_0_34897638_3883.cpp: In lambda function:
0_0_34897638_3883.cpp:135:36: error: expected '{' before ':' token
         for (const auto& [ch, next]: nodes_[0].children)
                                    ^
0_0_34897638_3883.cpp: In member function 'void dobala::ac_automaton<Char, Hash, Pred>::rebuild()':
0_0_34897638_3883.cpp:135:36: error: expected ';' before ':' token
0_0_34897638_3883.cpp:135:36: error: expected primary-expression before ':' token
0_0_34897638_3883.cpp:135:36: error: expected ')' before ':' token
0_0_34897638_3883.cpp:135:36: error: expected primary-expression before ':' token
0_0_34897638_3883.cpp:146:30: error: expected unqualified-id before '[' token
             for (const auto& [ch, next]: nodes_[current.second].children)
                              ^
0_0_34897638_3883.cpp:146:30: error: expected ';' before '[' token
0_0_34897638_3883.cpp:146:31: error: 'ch' was not declared in this scope
             for (const auto& [ch, next]: nodes_[current.second].children)
                               ^
0_0_34897638_3883.cpp:146:35: error: 'next' was not declared in this scope
             for (const auto& [ch, next]: nodes_[current.second].children)
                                   ^
0_0_34897638_3883.cpp:146:35: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/stdexcept:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/array:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:41,
                 from 0_0_34897638_3883.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:   'std::next'
     next(_ForwardIterator __x, typename
     ^
0_0_34897638_3883.cpp: In lambda function:
0_0_34897638_3883.cpp:146:40: error: expected '{' before ':' token
             for (const auto& [ch, next]: nodes_[current.second].children)
                                        ^
0_0_34897638_3883.cpp: In member function 'void dobala::ac_automaton<Char, Hash, Pred>::rebuild()':
0_0_34897638_3883.cpp:146:40: error: expected ';' before ':' token
0_0_34897638_3883.cpp:146:40: error: expected primary-expression before ':' token
0_0_34897638_3883.cpp:146:40: error: expected ')' before ':' token
0_0_34897638_3883.cpp:146:40: error: expected primary-expression before ':' token
0_0_34897638_3883.cpp: In instantiation of 'void dobala::ac_automaton<Char, Hash, Pred>::insert(const string_type&) [with Char = char; Hash = std::hash<char>; Pred = std::equal_to<char>; dobala::ac_automaton<Char, Hash, Pred>::string_type = std::basic_string<char>]':
0_0_34897638_3883.cpp:190:24:   required from here
0_0_34897638_3883.cpp:52:13: error: could not convert 'iter_child' from 'std::__detail::_Node_iterator<std::pair<const char, long long unsigned int>, false, false>' to 'bool'
             if (auto iter_child = nodes_[index].children.find(item); iter_child != nodes_[index].children.end())
             ^


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-28 17:18:07, Gzip enabled