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_32872650_31930.cpp:32:27: error: 'lower_bound' function uses 'auto' type specifier without trailing return type
     auto lower_bound(vec v) { w[0].x = v.x; w[0].y = v.y; return s.lower_bound(0); }
                           ^
0_0_32872650_31930.cpp:32:27: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_32872650_31930.cpp: In instantiation of 'll dyn_convex_hull_half<pr>::crxmax(vec) [with pr = std::less<vec>; ll = long long int]':
0_0_32872650_31930.cpp:73:32:   required from here
0_0_32872650_31930.cpp:59:36: error: invalid use of 'auto'
         return v ^ w[*lower_bound(v)];
                                    ^
0_0_32872650_31930.cpp: In instantiation of 'll dyn_convex_hull_half<pr>::crxmax(vec) [with pr = std::greater<vec>; ll = long long int]':
0_0_32872650_31930.cpp:73:47:   required from here
0_0_32872650_31930.cpp:59:36: error: invalid use of 'auto'
0_0_32872650_31930.cpp: In instantiation of 'int dyn_convex_hull_half<pr>::get_pos(vec, int&, int&) [with pr = std::less<vec>]':
0_0_32872650_31930.cpp:47:30:   required from 'bool dyn_convex_hull_half<pr>::insert(vec) [with pr = std::less<vec>]'
0_0_32872650_31930.cpp:70:48:   required from here
0_0_32872650_31930.cpp:37:32: error: invalid use of 'auto'
         auto it = lower_bound(v);
                                ^
0_0_32872650_31930.cpp: In instantiation of 'int dyn_convex_hull_half<pr>::get_pos(vec, int&, int&) [with pr = std::greater<vec>]':
0_0_32872650_31930.cpp:47:30:   required from 'bool dyn_convex_hull_half<pr>::insert(vec) [with pr = std::greater<vec>]'
0_0_32872650_31930.cpp:70:68:   required from here
0_0_32872650_31930.cpp:37:32: error: invalid use of 'auto'


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-29 19:30:49, Gzip enabled