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_37321830_10988.cpp: In function 'std::pair<long long int, std::vector<int> > dmst(int, int, std::vector<Edge>&)':
0_0_37321830_10988.cpp:64:56: error: too many arguments to function 'constexpr std::tuple<typename std::__decay_and_strip<_Elements>::__type ...> std::make_tuple(_Elements&& ...) [with _Elements = {}]'
         cycs.push_front(make_tuple(u,t,{&Q[qi],&Q[end]}));
                                                        ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
                 from 0_0_37321830_10988.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:893:5: note: declared here
     make_tuple(_Elements&&... __args)
     ^
0_0_37321830_10988.cpp:64:57: error: no matching function for call to 'std::deque<std::tuple<int, int, std::vector<Edge, std::allocator<Edge> > > >::push_front(std::tuple<>)'
         cycs.push_front(make_tuple(u,t,{&Q[qi],&Q[end]}));
                                                         ^
0_0_37321830_10988.cpp:64:57: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:67,
                 from 0_0_37321830_10988.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1367:7: note: void std::deque<_Tp, _Alloc>::push_front(const value_type&) [with _Tp = std::tuple<int, int, std::vector<Edge, std::allocator<Edge> > >; _Alloc = std::allocator<std::tuple<int, int, std::vector<Edge, std::allocator<Edge> > > >; std::deque<_Tp, _Alloc>::value_type = std::tuple<int, int, std::vector<Edge, std::allocator<Edge> > >]
       push_front(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1367:7: note:   no known conversion for argument 1 from 'std::tuple<>' to 'const value_type& {aka const std::tuple<int, int, std::vector<Edge, std::allocator<Edge> > >&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1380:7: note: void std::deque<_Tp, _Alloc>::push_front(std::deque<_Tp, _Alloc>::value_type&&) [with _Tp = std::tuple<int, int, std::vector<Edge, std::allocator<Edge> > >; _Alloc = std::allocator<std::tuple<int, int, std::vector<Edge, std::allocator<Edge> > > >; std::deque<_Tp, _Alloc>::value_type = std::tuple<int, int, std::vector<Edge, std::allocator<Edge> > >]
       push_front(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1380:7: note:   no known conversion for argument 1 from 'std::tuple<>' to 'std::deque<std::tuple<int, int, std::vector<Edge, std::allocator<Edge> > > >::value_type&& {aka std::tuple<int, int, std::vector<Edge, std::allocator<Edge> > >&&}'


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-23 05:23:06, Gzip enabled