library

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub sash2104/library

:warning: 三角形の五心の座標
(geometry/triangle.hpp)

Depends on

Required by

Code

/**
 * @title 三角形の五心の座標
 */
#pragma once
#include "template.circle.hpp"

// 外接円
Circle circumcircle(const Point &a, const Point &b, const Point &c) {
  Real a1,a2,b1,b2,c1,c2;
  a1=2*(b.X-a.X);
  b1=2*(b.Y-a.Y);
  c1=a.X*a.X-b.X*b.X+a.Y*a.Y-b.Y*b.Y;
  a2=2*(c.X-a.X);
  b2=2*(c.Y-a.Y);
  c2=a.X*a.X-c.X*c.X+a.Y*a.Y-c.Y*c.Y;
  Real px = (b1*c2-b2*c1)/(a1*b2-a2*b1);
  Real py = (c1*a2-c2*a1)/(a1*b2-a2*b1);
  Point circumcenter(px, py); // 外心
  Real r = distance(a, circumcenter);
  return Circle(circumcenter, r);
}
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/onlinejudge_verify/documentation/build.py", line 71, in _render_source_code_stat
    bundled_code = language.bundle(stat.path, basedir=basedir, options={'include_paths': [basedir]}).decode()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/onlinejudge_verify/languages/cplusplus.py", line 187, in bundle
    bundler.update(path)
  File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/onlinejudge_verify/languages/cplusplus_bundle.py", line 312, in update
    raise BundleErrorAt(path, i + 1, "#pragma once found in a non-first line")
onlinejudge_verify.languages.cplusplus_bundle.BundleErrorAt: geometry/triangle.hpp: line 4: #pragma once found in a non-first line
Back to top page