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_37030744_3331.cpp: In function 'void solve()':
0_0_37030744_3331.cpp:46:26: error: no matching function for call to 'Node::Node(<brace-enclosed initializer list>)'
   qa.push(Node{a[i], i, 1});
                          ^
0_0_37030744_3331.cpp:46:26: note: candidates are:
0_0_37030744_3331.cpp:15:8: note: Node::Node()
 struct Node {
        ^
0_0_37030744_3331.cpp:15:8: note:   candidate expects 0 arguments, 3 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(const Node&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 3 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(Node&&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 3 provided
0_0_37030744_3331.cpp:48:34: error: no matching function for call to 'Node::Node(<brace-enclosed initializer list>)'
   qab.push(Node{a[i] + b[i], i, 1});
                                  ^
0_0_37030744_3331.cpp:48:34: note: candidates are:
0_0_37030744_3331.cpp:15:8: note: Node::Node()
 struct Node {
        ^
0_0_37030744_3331.cpp:15:8: note:   candidate expects 0 arguments, 3 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(const Node&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 3 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(Node&&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 3 provided
0_0_37030744_3331.cpp:74:34: error: no matching function for call to 'Node::Node(<brace-enclosed initializer list>)'
    qi.push(Node{-cur.x, cur.id, 1});
                                  ^
0_0_37030744_3331.cpp:74:34: note: candidates are:
0_0_37030744_3331.cpp:15:8: note: Node::Node()
 struct Node {
        ^
0_0_37030744_3331.cpp:15:8: note:   candidate expects 0 arguments, 3 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(const Node&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 3 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(Node&&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 3 provided
0_0_37030744_3331.cpp:77:36: error: no matching function for call to 'Node::Node(<brace-enclosed initializer list>)'
    qb.push(Node{b[cur.id], cur.id,2});
                                    ^
0_0_37030744_3331.cpp:77:36: note: candidates are:
0_0_37030744_3331.cpp:15:8: note: Node::Node()
 struct Node {
        ^
0_0_37030744_3331.cpp:15:8: note:   candidate expects 0 arguments, 3 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(const Node&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 3 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(Node&&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 3 provided
0_0_37030744_3331.cpp:87:38: error: no matching function for call to 'Node::Node(<brace-enclosed initializer list>)'
    qi.push(Node{-a[cur.id], cur.id, 1});
                                      ^
0_0_37030744_3331.cpp:87:38: note: candidates are:
0_0_37030744_3331.cpp:15:8: note: Node::Node()
 struct Node {
        ^
0_0_37030744_3331.cpp:15:8: note:   candidate expects 0 arguments, 3 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(const Node&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 3 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(Node&&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 3 provided
0_0_37030744_3331.cpp:88:38: error: no matching function for call to 'Node::Node(<brace-enclosed initializer list>)'
    qi.push(Node{-b[cur.id], cur.id, 2});
                                      ^
0_0_37030744_3331.cpp:88:38: note: candidates are:
0_0_37030744_3331.cpp:15:8: note: Node::Node()
 struct Node {
        ^
0_0_37030744_3331.cpp:15:8: note:   candidate expects 0 arguments, 3 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(const Node&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 3 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(Node&&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 3 provided
0_0_37030744_3331.cpp:92:36: error: no matching function for call to 'Node::Node(<brace-enclosed initializer list>)'
     qa.push(Node{-cur2.x, cur2.id,1});
                                    ^
0_0_37030744_3331.cpp:92:36: note: candidates are:
0_0_37030744_3331.cpp:15:8: note: Node::Node()
 struct Node {
        ^
0_0_37030744_3331.cpp:15:8: note:   candidate expects 0 arguments, 3 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(const Node&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 3 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(Node&&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 3 provided
0_0_37030744_3331.cpp:95:33: error: no matching function for call to 'std::priority_queue<Node>::push(<brace-enclosed initializer list>)'
     qb.push({-cur2.x, cur2.id,2});
                                 ^
0_0_37030744_3331.cpp:95:33: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
                 from 0_0_37030744_3331.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = Node; _Sequence = std::vector<Node, std::allocator<Node> >; _Compare = std::less<Node>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = Node]
       push(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const Node&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = Node; _Sequence = std::vector<Node, std::allocator<Node> >; _Compare = std::less<Node>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = Node]
       push(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<Node>::value_type&& {aka Node&&}'
0_0_37030744_3331.cpp:99:51: error: no matching function for call to 'Node::Node(<brace-enclosed initializer list>)'
     qab.push(Node{a[cur2.id] + b[cur2.id], cur2.id});
                                                   ^
0_0_37030744_3331.cpp:99:51: note: candidates are:
0_0_37030744_3331.cpp:15:8: note: Node::Node()
 struct Node {
        ^
0_0_37030744_3331.cpp:15:8: note:   candidate expects 0 arguments, 2 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(const Node&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(Node&&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 2 provided
0_0_37030744_3331.cpp:107:34: error: no matching function for call to 'Node::Node(<brace-enclosed initializer list>)'
    qi.push(Node{-cur.x, cur.id, 2});
                                  ^
0_0_37030744_3331.cpp:107:34: note: candidates are:
0_0_37030744_3331.cpp:15:8: note: Node::Node()
 struct Node {
        ^
0_0_37030744_3331.cpp:15:8: note:   candidate expects 0 arguments, 3 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(const Node&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 3 provided
0_0_37030744_3331.cpp:15:8: note: constexpr Node::Node(Node&&)
0_0_37030744_3331.cpp:15:8: note:   candidate expects 1 argument, 3 provided


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 21:39:04, Gzip enabled