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

Function main

test/test_dynamic_conn.cpp:7–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "dynamic-conn.h"
6
7int main(){
8 QueryTree t(11, 5);
9 t.add_query(query(0, 1), 1, 10);
10 t.add_query(query(1, 2), 2, 7);
11 t.add_query(query(2, 3), 3, 10);
12 t.add_query(query(3, 4), 4, 9);
13 t.add_query(query(4, 0), 5, 10);
14 auto ans = t.solve();
15 assert(ans[0] == 5);
16 assert(ans[6] == 1);
17 assert(ans[8] == 1);
18 assert(ans[10] == 2);
19 return 0;
20}
21

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected