/**
* Author: Ulf Lundstrom
* Date: 2009-04-08
* License: CC0
* Source:
* Description: Returns the center of mass for a polygon.
* Time: O(n)
* Status: Tested
*/#pragma once
#include"src/geometry/Point.h"typedefPoint<double>P;PpolygonCenter(constvector<P>&v){Pres(0,0);doubleA=0;for(inti=0,j=sz(v)-1;i<sz(v);j=i++){res=res+(v[i]+v[j])*v[j].cross(v[i]);A+=v[j].cross(v[i]);}returnres/A/3;}
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/PolygonCenter.h:line10:#pragmaoncefoundinanon-firstline