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&'
|