GCC Code Coverage Report


Directory: ./
File: tasks/urin_o_graham_passage/common/include/common.hpp
Date: 2026-04-02 17:12:27
Exec Total Coverage
Lines: 0 2 0.0%
Functions: 0 0 -%
Branches: 0 8 0.0%

Line Branch Exec Source
1 #pragma once
2
3 #include <cmath>
4 #include <string>
5 #include <tuple>
6 #include <vector>
7
8 #include "task/include/task.hpp"
9
10 namespace urin_o_graham_passage {
11
12 struct Point {
13 double x;
14 double y;
15
16 Point() : x(0.0), y(0.0) {}
17 Point(double x_val, double y_val) : x(x_val), y(y_val) {} // Исправлено: x_, y_ -> x_val, y_val
18
19 bool operator==(const Point &other) const {
20 const double eps = 1e-10;
21 return std::abs(x - other.x) < eps && std::abs(y - other.y) < eps;
22 }
23
24 bool operator!=(const Point &other) const {
25 return !(*this == other);
26 }
27 };
28
29 using InType = std::vector<Point>;
30 using OutType = std::vector<Point>;
31 using TestType = std::tuple<int, std::string>;
32 using BaseTask = ppc::task::Task<InType, OutType>;
33
34 } // namespace urin_o_graham_passage
35