MCPcopy Create free account
hub / github.com/cp-algorithms/cp-algorithms / main

Function main

test/test_nearest_points.cpp:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "nearest_pair_rec.h"
10
11int main() {
12 n = 5;
13 a = {{0, 2, 0}, {6, 67, 1}, {43, 71, 2}, {39, 107, 3}, {189, 140, 4}};
14
15 #include "nearest_pair_main.h"
16 assert(abs(mindist - 36.2215) < 1e-3);
17}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected