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 gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/c++allocator.h:33,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/allocator.h:46,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/string:41,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/locale_classes.h:40,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/ios_base.h:41,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ios:42,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/istream:38,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/sstream:38,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/complex:45,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ccomplex:39,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_38654168_7208.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = Node; _Args = {int&, int, int, int}; _Tp = Node]':
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/alloc_traits.h:475:4:   required from 'static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = Node; _Args = {int&, int, int, int}; _Tp = Node; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<Node>]'
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/deque.tcc:168:30:   required from 'std::deque<_Tp, _Alloc>::reference std::deque<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, int, int, int}; _Tp = Node; _Alloc = std::allocator<Node>; std::deque<_Tp, _Alloc>::reference = Node&]'
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_queue.h:263:56:   required from 'decltype(auto) std::queue<_Tp, _Sequence>::emplace(_Args&& ...) [with _Args = {int&, int, int, int}; _Tp = Node; _Sequence = std::deque<Node, std::allocator<Node> >]'
0_0_38654168_7208.cpp:13:28:   required from here
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ext/new_allocator.h:136:4: error: new initializer expression list treated as compound expression [-fpermissive]
  { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ext/new_allocator.h:136:4: error: no matching function for call to 'Node::Node(int)'
0_0_38654168_7208.cpp:5:8: note: candidate: 'Node::Node()'
 struct Node {
        ^~~~
0_0_38654168_7208.cpp:5:8: note:   candidate expects 0 arguments, 1 provided
0_0_38654168_7208.cpp:5:8: note: candidate: 'constexpr Node::Node(const Node&)'
0_0_38654168_7208.cpp:5:8: note:   no known conversion for argument 1 from 'int' to 'const Node&'
0_0_38654168_7208.cpp:5:8: note: candidate: 'constexpr Node::Node(Node&&)'
0_0_38654168_7208.cpp:5:8: note:   no known conversion for argument 1 from 'int' to 'Node&&'
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/c++allocator.h:33,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/allocator.h:46,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/string:41,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/locale_classes.h:40,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/ios_base.h:41,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ios:42,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/istream:38,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/sstream:38,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/complex:45,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ccomplex:39,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_38654168_7208.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = Node; _Args = {int&, int&, int&, int}; _Tp = Node]':
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/alloc_traits.h:475:4:   required from 'static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = Node; _Args = {int&, int&, int&, int}; _Tp = Node; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<Node>]'
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/deque.tcc:168:30:   required from 'std::deque<_Tp, _Alloc>::reference std::deque<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, int&, int&, int}; _Tp = Node; _Alloc = std::allocator<Node>; std::deque<_Tp, _Alloc>::reference = Node&]'
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_queue.h:263:56:   required from 'decltype(auto) std::queue<_Tp, _Sequence>::emplace(_Args&& ...) [with _Args = {int&, int&, int&, int}; _Tp = Node; _Sequence = std::deque<Node, std::allocator<Node> >]'
0_0_38654168_7208.cpp:26:83:   required from here
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ext/new_allocator.h:136:4: error: new initializer expression list treated as compound expression [-fpermissive]
  { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/ext/new_allocator.h:136:4: error: no matching function for call to 'Node::Node(int)'
0_0_38654168_7208.cpp:5:8: note: candidate: 'Node::Node()'
 struct Node {
        ^~~~
0_0_38654168_7208.cpp:5:8: note:   candidate expects 0 arguments, 1 provided
0_0_38654168_7208.cpp:5:8: note: candidate: 'constexpr Node::Node(const Node&)'
0_0_38654168_7208.cpp:5:8: note:   no known conversion for argument 1 from 'int' to 'const Node&'
0_0_38654168_7208.cpp:5:8: note: candidate: 'constexpr Node::Node(Node&&)'
0_0_38654168_7208.cpp:5:8: note:   no known conversion for argument 1 from '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-24 20:58:21, Gzip enabled