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_17590346_11841.cpp: In function 'ANS divide_conquer(int, int)':
0_0_17590346_11841.cpp:92:45: error: no matching function for call to 'ANS::update(ANS)'
   dis.update(getDistance(num[l], num[l + 1]));
                                             ^
0_0_17590346_11841.cpp:92:45: note: candidate is:
0_0_17590346_11841.cpp:47:7: note: void ANS::update(ANS&)
  void update(ANS &b)
       ^
0_0_17590346_11841.cpp:47:7: note:   no known conversion for argument 1 from 'ANS' to 'ANS&'
0_0_17590346_11841.cpp:93:45: error: no matching function for call to 'ANS::update(ANS)'
   dis.update(getDistance(num[l + 1], num[r]));
                                             ^
0_0_17590346_11841.cpp:93:45: note: candidate is:
0_0_17590346_11841.cpp:47:7: note: void ANS::update(ANS&)
  void update(ANS &b)
       ^
0_0_17590346_11841.cpp:47:7: note:   no known conversion for argument 1 from 'ANS' to 'ANS&'
0_0_17590346_11841.cpp:94:41: error: no matching function for call to 'ANS::update(ANS)'
   dis.update(getDistance(num[l], num[r]));
                                         ^
0_0_17590346_11841.cpp:94:41: note: candidate is:
0_0_17590346_11841.cpp:47:7: note: void ANS::update(ANS&)
  void update(ANS &b)
       ^
0_0_17590346_11841.cpp:47:7: note:   no known conversion for argument 1 from 'ANS' to 'ANS&'


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-11 11:09:59, Gzip enabled