/**
* Author: Mattias de Zalenski
* Date: Unknown
* Source: Geometry in C
* Description: Computes the Delaunay triangulation of a set of points.
* Each circumcircle contains none of the input points.
* If any three points are collinear or any four are on the same circle, behavior is undefined.
* Time: O(n^2)
* Status: stress-tested
*/#pragma once
#include"src/geometry/Point.h"
#include"src/geometry/3dHull.h"template<classP,classF>voiddelaunay(vector<P>&ps,Ftrifun){if(sz(ps)==3){intd=(ps[0].cross(ps[1],ps[2])<0);trifun(0,1+d,2-d);}vector<P3>p3;for(Pp:ps)p3.emplace_back(p.x,p.y,p.dist2());if(sz(ps)>3)for(autot:hull3d(p3))if((p3[t.b]-p3[t.a]).cross(p3[t.c]-p3[t.a]).dot(P3(0,0,1))<0)trifun(t.a,t.c,t.b);}
Traceback(mostrecentcalllast):File"/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/onlinejudge_verify/documentation/build.py",line71,in_render_source_code_statbundled_code=language.bundle(stat.path,basedir=basedir,options={'include_paths':[basedir]}).decode()~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/onlinejudge_verify/languages/cplusplus.py",line187,inbundlebundler.update(path)~~~~~~~~~~~~~~^^^^^^File"/opt/hostedtoolcache/Python/3.14.0/x64/lib/python3.14/site-packages/onlinejudge_verify/languages/cplusplus_bundle.py",line312,inupdateraiseBundleErrorAt(path,i+1,"#pragma once found in a non-first line")onlinejudge_verify.languages.cplusplus_bundle.BundleErrorAt:src/geometry/DelaunayTriangulation.h:line11:#pragmaoncefoundinanon-firstline