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_39310356_14496.cpp: In function 'Info operator+(const Info&, const Info&)':
0_0_39310356_14496.cpp:167:77: error: could not convert '{114514}' from '<brace-enclosed initializer list>' to 'Info'
  167 |     friend Info operator+(const Info &lhs, const Info &rhs) { return {114514}; }
      |                                                                             ^
      |                                                                             |
      |                                                                             <brace-enclosed initializer list>
0_0_39310356_14496.cpp: In function 'void solve(int)':
0_0_39310356_14496.cpp:216:23: error: no matching function for call to 'LazySegtree<Info, Tag>::modify(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&, <brace-enclosed initializer list>)'
  216 |             seg.modify(in[x], out[x], {y});
      |             ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
0_0_39310356_14496.cpp:52:10: note: candidate: 'void LazySegtree<Info, Tag>::modify(int, int, const Tag&) [with Info = Info; Tag = Tag]'
   52 |     void modify(int ml, int mr, const Tag &t) { modify(ml, mr, t, 1, 1, n); }
      |          ^~~~~~
0_0_39310356_14496.cpp:52:44: note:   no known conversion for argument 3 from '<brace-enclosed initializer list>' to 'const Tag&'
   52 |     void modify(int ml, int mr, const Tag &t) { modify(ml, mr, t, 1, 1, n); }
      |                                 ~~~~~~~~~~~^
0_0_39310356_14496.cpp:53:10: note: candidate: 'void LazySegtree<Info, Tag>::modify(int, int, const Tag&, int, int, int) [with Info = Info; Tag = Tag]'
   53 |     void modify(int ml, int mr, const Tag &t, int id, int l, int r) {
      |          ^~~~~~
0_0_39310356_14496.cpp:53: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-24 23:53:57, Gzip enabled