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

In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71: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++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_26941737_794.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = Edge*; _Iterator2 = Edge*; _Compare = main()::<lambda(node&, node&)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1846:27:   required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(node&, node&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(node&, node&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(node&, node&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = Edge*; _Compare = main()::<lambda(node&, node&)>]'
0_0_26941737_794.cpp:214:10:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:121:46: error: no match for call to '(main()::<lambda(node&, node&)>) (Edge&, Edge&)'
         { return bool(_M_comp(*__it1, *__it2)); }
                                              ^
0_0_26941737_794.cpp:212:25: note: candidates are:
         sort(a+1, a+n, [](node &a, node &b) {
                         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71: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++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_26941737_794.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:121:46: note: bool (*)(node&, node&) <conversion>
         { return bool(_M_comp(*__it1, *__it2)); }
                                              ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:121:46: note:   candidate expects 3 arguments, 3 provided
0_0_26941737_794.cpp:212:43: note: main()::<lambda(node&, node&)>
         sort(a+1, a+n, [](node &a, node &b) {
                                           ^
0_0_26941737_794.cpp:212:43: note:   no known conversion for argument 1 from 'Edge' to 'node&'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71: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++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_26941737_794.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Val_comp_iter<_Compare>::operator()(_Value&, _Iterator) [with _Value = Edge; _Iterator = Edge*; _Compare = main()::<lambda(node&, node&)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1827:34:   required from 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = Edge*; _Compare = __gnu_cxx::__ops::_Val_comp_iter<main()::<lambda(node&, node&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1855:46:   required from 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(node&, node&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70:   required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(node&, node&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(node&, node&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4716:78:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = Edge*; _Compare = main()::<lambda(node&, node&)>]'
0_0_26941737_794.cpp:214:10:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:166:37: error: no match for call to '(main()::<lambda(node&, node&)>) (Edge&, Edge&)'
  { return bool(_M_comp(__val, *__it)); }
                                     ^
0_0_26941737_794.cpp:212:25: note: candidates are:
         sort(a+1, a+n, [](node &a, node &b) {
                         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71: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++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_26941737_794.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:166:37: note: bool (*)(node&, node&) <conversion>
  { return bool(_M_comp(__val, *__it)); }
                                     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:166:37: note:   candidate expects 3 arguments, 3 provided
0_0_26941737_794.cpp:212:43: note: main()::<lambda(node&, node&)>
         sort(a+1, a+n, [](node &a, node &b) {
                                           ^
0_0_26941737_794.cpp:212:43: note:   no known conversion for argument 1 from 'Edge' to 'node&'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71: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++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_26941737_794.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_val<_Compare>::operator()(_Iterator, _Value&) [with _Iterator = Edge*; _Value = Edge; _Compare = main()::<lambda(node&, node&)>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:129:76:   required from 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = Edge*; _Distance = long long int; _Tp = Edge; _Compare = __gnu_cxx::__ops::_Iter_comp_val<main()::<lambda(node&, node&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:230:51:   required from 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = Edge*; _Distance = long long int; _Tp = Edge; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(node&, node&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:334:15:   required from 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(node&, node&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1673:49:   required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(node&, node&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1932:59:   required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = Edge*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(node&, node&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1947:59:   required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = Edge*; _Size = long long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<main()::<lambda(node&, node&)> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1969:11:   required from 'void std::__sort(_RandomAccessItera


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 09:38:02, Gzip enabled