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_39310359_27916.cpp: In function 'Info operator+(const Info&, const Info&)':
0_0_39310359_27916.cpp:169:77: error: could not convert '{114514}' from '<brace-enclosed initializer list>' to 'Info'
  169 |     friend Info operator+(const Info &lhs, const Info &rhs) { return {114514}; }
      |                                                                             ^
      |                                                                             |
      |                                                                             <brace-enclosed initializer list>
0_0_39310359_27916.cpp: In function 'void solve(int)':
0_0_39310359_27916.cpp:218: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>)'
  218 |             seg.modify(in[x], out[x], {y});
      |             ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
0_0_39310359_27916.cpp:54:10: note: candidate: 'void LazySegtree<Info, Tag>::modify(int, int, const Tag&) [with Info = Info; Tag = Tag]'
   54 |     void modify(int ml, int mr, const Tag &t) { modify(ml, mr, t, 1, 1, n); }
      |          ^~~~~~
0_0_39310359_27916.cpp:54:44: note:   no known conversion for argument 3 from '<brace-enclosed initializer list>' to 'const Tag&'
   54 |     void modify(int ml, int mr, const Tag &t) { modify(ml, mr, t, 1, 1, n); }
      |                                 ~~~~~~~~~~~^
0_0_39310359_27916.cpp:55:10: note: candidate: 'void LazySegtree<Info, Tag>::modify(int, int, const Tag&, int, int, int) [with Info = Info; Tag = Tag]'
   55 |     void modify(int ml, int mr, const Tag &t, int id, int l, int r) {
      |          ^~~~~~
0_0_39310359_27916.cpp:55: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-25 00:09:27, Gzip enabled