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_38478160_22678.cpp: In function 'void dfs(ll, ll, ll, ll)':
0_0_38478160_22678.cpp:17:12: error: expected unqualified-id before '[' token
  for (auto [v, val] : g[u]) {
            ^
0_0_38478160_22678.cpp:17:12: error: expected ';' before '[' token
0_0_38478160_22678.cpp:17:13: error: 'v' was not declared in this scope
  for (auto [v, val] : g[u]) {
             ^
0_0_38478160_22678.cpp:17:16: error: 'val' was not declared in this scope
  for (auto [v, val] : g[u]) {
                ^
0_0_38478160_22678.cpp: In lambda function:
0_0_38478160_22678.cpp:17:21: error: expected '{' before ':' token
  for (auto [v, val] : g[u]) {
                     ^
0_0_38478160_22678.cpp: In function 'void dfs(ll, ll, ll, ll)':
0_0_38478160_22678.cpp:17:21: error: expected ';' before ':' token
0_0_38478160_22678.cpp:17:21: error: expected primary-expression before ':' token
0_0_38478160_22678.cpp:17:21: error: expected ')' before ':' token
0_0_38478160_22678.cpp:17:21: error: expected primary-expression before ':' token
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/c++allocator.h:33:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/allocator.h:46,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_38478160_22678.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = node; _Args = {long long int&, long long int&}; _Tp = node]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/alloc_traits.h:253:4:   required from 'static std::_Require<typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type> std::allocator_traits<_Alloc>::_S_construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = node; _Args = {long long int&, long long int&}; _Alloc = std::allocator<node>; std::_Require<typename std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::type> = void]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/alloc_traits.h:399:57:   required from 'static decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) std::allocator_traits<_Alloc>::construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = node; _Args = {long long int&, long long int&}; _Alloc = std::allocator<node>; decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) = <type error>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/vector.tcc:97:40:   required from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long int&, long long int&}; _Tp = node; _Alloc = std::allocator<node>]'
0_0_38478160_22678.cpp:35:27:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/new_allocator.h:120:4: error: new initializer expression list treated as compound expression [-fpermissive]
  { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
    ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/new_allocator.h:120:4: error: no matching function for call to 'node::node(long long int&)'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/new_allocator.h:120:4: note: candidates are:
0_0_38478160_22678.cpp:11:8: note: node::node()
 struct node {
        ^
0_0_38478160_22678.cpp:11:8: note:   candidate expects 0 arguments, 1 provided
0_0_38478160_22678.cpp:11:8: note: constexpr node::node(const node&)
0_0_38478160_22678.cpp:11:8: note:   no known conversion for argument 1 from 'long long int' to 'const node&'
0_0_38478160_22678.cpp:11:8: note: constexpr node::node(node&&)
0_0_38478160_22678.cpp:11:8: note:   no known conversion for argument 1 from 'long long int' to 'node&&'


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-26 12:06:10, Gzip enabled