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_39128096_26424.cpp: In instantiation of 'auto lower(const auto:19&, const auto:20&) [with auto:19 = std::vector<long long int>; auto:20 = long long int]':
0_0_39128096_26424.cpp:42:21:   required from 'auto solve(const auto:23&) [with auto:23 = std::vector<long long int>]'
0_0_39128096_26424.cpp:63:19:   required from here
0_0_39128096_26424.cpp:15:63: error: invalid type argument of unary '*' (have 'long long int')
   15 |                 auto py = lower_bound(v.begin(), v.end(), p - *px);
      |                                                               ^~~
0_0_39128096_26424.cpp: In instantiation of 'auto upper(const auto:21&, const auto:22&) [with auto:21 = std::vector<long long int>; auto:22 = long long int]':
0_0_39128096_26424.cpp:42:44:   required from 'auto solve(const auto:23&) [with auto:23 = std::vector<long long int>]'
0_0_39128096_26424.cpp:63:19:   required from here
0_0_39128096_26424.cpp:28:63: error: invalid type argument of unary '*' (have 'long long int')
   28 |                 auto py = upper_bound(v.begin(), v.end(), p - *px);
      |                                                               ^~~


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-23 06:56:19, Gzip enabled