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_37706208_6541.cpp: In member function 'void SegmentTree::Tree<Node, Tag>::build(const std::vector<_RealType>&, int, int, int)':
0_0_37706208_6541.cpp:33:16: error: expected '(' before 'constexpr'
             if constexpr(HasTag) clear_tag(t[i]);
                ^
0_0_37706208_6541.cpp: In member function 'void SegmentTree::Tree<Node, Tag>::modify(int, const Node&, int, int, int)':
0_0_37706208_6541.cpp:53:20: error: expected '(' before 'constexpr'
                 if constexpr(Cover) a[i] = v; else a[i] += v;
                    ^
0_0_37706208_6541.cpp:53:47: error: expected '}' before 'else'
                 if constexpr(Cover) a[i] = v; else a[i] += v;
                                               ^
0_0_37706208_6541.cpp: In member function 'void SegmentTree::Tree<Node, Tag>::update(int, int, const Tag&, int, int, int)':
0_0_37706208_6541.cpp:68:15: error: expected '(' before 'constexpr'
            if constexpr(HasTag) push_down(i);
               ^
0_0_37706208_6541.cpp: In member function 'Node SegmentTree::Tree<Node, Tag>::query(int, int, int, int, int)':
0_0_37706208_6541.cpp:77:16: error: expected '(' before 'constexpr'
             if constexpr(HasTag) push_down(i);
                ^
0_0_37706208_6541.cpp: In member function 'Node SegmentTree::Tree<Node, Tag>::ask(int, int, int, int)':
0_0_37706208_6541.cpp:87:16: error: expected '(' before 'constexpr'
             if constexpr(HasTag) push_down(i);
                ^


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-25 07:00:52, Gzip enabled