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_39552232_32182.cpp: In function 'void idol_produce(ll)':
0_0_39552232_32182.cpp:438:27: error: call of overloaded 'query(ll&, ll&)' is ambiguous
  438 |         next[i] = st.query(lv, rv);
      |                   ~~~~~~~~^~~~~~~~
0_0_39552232_32182.cpp:298:16: note: candidate: 'ISegmentTree<T, V>::value_type ISegmentTree<T, V>::query(size_t, size_t, size_t) [with T = long long int; V = long long int; value_type = long long int; size_t = long long unsigned int]'
  298 |     value_type query(size_t l, size_t r, size_t x = 1) {
      |                ^~~~~
0_0_39552232_32182.cpp:323:16: note: candidate: 'ISegmentTree<T, V>::value_type ISegmentTree<T, V>::query(int, int) [with T = long long int; V = long long int; value_type = long long int]'
  323 |     value_type query(int l, int r) {
      |                ^~~~~
0_0_39552232_32182.cpp:439:18: error: call of overloaded 'change(ll, ll, ll&)' is ambiguous
  439 |         st.change(get(a[i]), get(a[i]), i);
      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
0_0_39552232_32182.cpp:286:10: note: candidate: 'void ISegmentTree<T, V>::change(size_t, size_t, T, size_t) [with T = long long int; V = long long int; size_t = long long unsigned int]'
  286 |     void change(size_t l, size_t r, T val, size_t x = 1) {
      |          ^~~~~~
0_0_39552232_32182.cpp:317:10: note: candidate: 'void ISegmentTree<T, V>::change(int, int, element_type) [with T = long long int; V = long long int; element_type = long long int]'
  317 |     void change(int l, int r, element_type val) {
      |          ^~~~~~


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-09-20 13:31:51, Gzip enabled