summaryrefslogtreecommitdiff
path: root/datastructures
diff options
context:
space:
mode:
authorNoobie99 <noob999noob999@gmail.com>2022-10-24 17:59:01 +0200
committerNoobie99 <noob999noob999@gmail.com>2022-10-24 17:59:01 +0200
commitabfceb94c35ce01f7ecd61e9f6c88f04a6f35f9f (patch)
tree4a8aa9ab18559049bc9ba8b153bf234aa8c4d103 /datastructures
parentda9133c3934b7e95cc2ce1382432d824eb9e3234 (diff)
fixed dynamic convex hull
Diffstat (limited to 'datastructures')
-rw-r--r--datastructures/dynamicConvexHull.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/datastructures/dynamicConvexHull.cpp b/datastructures/dynamicConvexHull.cpp
index 18a46d0..d8a1a3b 100644
--- a/datastructures/dynamicConvexHull.cpp
+++ b/datastructures/dynamicConvexHull.cpp
@@ -44,7 +44,7 @@ struct HullDynamic : public multiset<Line> {
}
ll query(ll x) { // Laufzeit: O(log(n))
- auto l = *lower_bound((Line) {x, MIN});
+ auto l = *lower_bound((Line) {x, LLONG_MIN});
return l.m * x + l.b;
}
};