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_34725222_28633.cpp: In function 'bool solve()':
0_0_34725222_28633.cpp:46:64: error: no matching function for call to 'Node::Node(<brace-enclosed initializer list>)'
             inqs.push(new Node{0, f->val - 1, 0, lastToMerge, f});
                                                                ^
0_0_34725222_28633.cpp:46:64: note: candidates are:
0_0_34725222_28633.cpp:12:8: note: constexpr Node::Node()
 struct Node {
        ^
0_0_34725222_28633.cpp:12:8: note:   candidate expects 0 arguments, 5 provided
0_0_34725222_28633.cpp:12:8: note: constexpr Node::Node(const Node&)
0_0_34725222_28633.cpp:12:8: note:   candidate expects 1 argument, 5 provided
0_0_34725222_28633.cpp:12:8: note: constexpr Node::Node(Node&&)
0_0_34725222_28633.cpp:12:8: note:   candidate expects 1 argument, 5 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.001001(s) query 1, Server time : 2025-02-18 23:39:25, Gzip enabled