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_34897652_1145.cpp: In member function 'void dobala::ac_automaton<Char, Hash, Pred>::insert(const string_type&)':
0_0_34897652_1145.cpp:52:68: error: expected ')' before ';' token
             if (auto iter_child = nodes_[index].children.find(item); iter_child != nodes_[index].children.end())
                                                                    ^
0_0_34897652_1145.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_34897652_1145.cpp:52:112: error: expected ';' before ')' token
             if (auto iter_child = nodes_[index].children.find(item); iter_child != nodes_[index].children.end())
                                                                                                                ^
0_0_34897652_1145.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_34897652_1145.cpp:196:24:   required from here
0_0_34897652_1145.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:13:25, Gzip enabled