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_39193554_8695.cpp: In function 'void solve(int)':
0_0_39193554_8695.cpp:222:19: error: no matching function for call to 'LazySegtree<Info, Tag>::modify(std::tuple_element<2, std::array<double, 4> >::type&, std::tuple_element<3, std::array<double, 4> >::type&, <brace-enclosed initializer list>)'
  222 |         seg.modify(ml, mr, {o ? -1.0 : 1.0});
      |         ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
0_0_39193554_8695.cpp:55:10: note: candidate: 'void LazySegtree<Info, Tag>::modify(int, int, const Tag&) [with Info = Info; Tag = Tag]'
   55 |     void modify(int ml, int mr, const Tag &t) { modify(ml, mr, t, 1, 1, n); }
      |          ^~~~~~
0_0_39193554_8695.cpp:55:44: note:   no known conversion for argument 3 from '<brace-enclosed initializer list>' to 'const Tag&'
   55 |     void modify(int ml, int mr, const Tag &t) { modify(ml, mr, t, 1, 1, n); }
      |                                 ~~~~~~~~~~~^
0_0_39193554_8695.cpp:56:10: note: candidate: 'void LazySegtree<Info, Tag>::modify(int, int, const Tag&, int, int, int) [with Info = Info; Tag = Tag]'
   56 |     void modify(int ml, int mr, const Tag &t, int id, int l, int r) {
      |          ^~~~~~
0_0_39193554_8695.cpp:56:10: note:   candidate expects 6 arguments, 3 provided


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-26 07:02:59, Gzip enabled