rings.cpp:1:1: error: 'clude' does not name a type
clude<bits/stdc++.h>
^~~~~
rings.cpp:9:2: error: 'vector' does not name a type
vector<int> rep, deg;
^~~~~~
rings.cpp: In member function 'int Graph::find(int)':
rings.cpp:13:10: error: 'rep' was not declared in this scope
return rep[x] < 0 ? x : find(rep[x]);
^~~
rings.cpp: In member function 'int Graph::get_cycle()':
rings.cpp:18:11: error: 'rep' was not declared in this scope
return -rep[find(bicomp)];
^~~
rings.cpp: In member function 'void Graph::join(int, int)':
rings.cpp:28:12: error: 'rep' was not declared in this scope
if(rep[x] > rep[y]) swap(x, y);
^~~
rings.cpp:28:29: error: 'swap' was not declared in this scope
if(rep[x] > rep[y]) swap(x, y);
^~~~
rings.cpp:29:3: error: 'rep' was not declared in this scope
rep[x] += rep[y];
^~~
rings.cpp: In member function 'void Graph::add_edge(int, int)':
rings.cpp:37:28: error: 'deg' was not declared in this scope
max_deg = max(max_deg, ++deg[a]);
^~~
rings.cpp:37:13: error: 'max' was not declared in this scope
max_deg = max(max_deg, ++deg[a]);
^~~
rings.cpp: In constructor 'Graph::Graph(int, int)':
rings.cpp:42:33: error: class 'Graph' does not have any field named 'rep'
Graph(int n = 0, int e = -1) : rep(n, -1), deg(n), excluded(e) {}
^~~
rings.cpp:42:45: error: class 'Graph' does not have any field named 'deg'
Graph(int n = 0, int e = -1) : rep(n, -1), deg(n), excluded(e) {}
^~~
rings.cpp: At global scope:
rings.cpp:46:1: error: 'vector' does not name a type
vector<pair<int, int>> edges;
^~~~~~
rings.cpp:48:1: error: 'vector' does not name a type
vector<Graph> without;
^~~~~~
rings.cpp: In function 'void Link(int, int)':
rings.cpp:56:2: error: 'edges' was not declared in this scope
edges.emplace_back(A, B);
^~~~~
rings.cpp:60:13: error: 'struct Graph' has no member named 'deg'
if(graph.deg[A] != 3)
^~~
rings.cpp:61:5: error: 'swap' was not declared in this scope
swap(A, B);
^~~~
rings.cpp:63:4: error: 'vector' was not declared in this scope
vector<int> crit = {A};
^~~~~~
rings.cpp:63:11: error: expected primary-expression before 'int'
vector<int> crit = {A};
^~~
rings.cpp:64:23: error: unable to deduce 'auto&&' from 'edges'
for(auto &[u, v] : edges) {
^~~~~
rings.cpp:65:16: error: 'crit' was not declared in this scope
if(u == A) crit.emplace_back(v);
^~~~
rings.cpp:65:16: note: suggested alternative: 'Init'
if(u == A) crit.emplace_back(v);
^~~~
Init
rings.cpp:66:16: error: 'crit' was not declared in this scope
if(v == A) crit.emplace_back(u);
^~~~
rings.cpp:66:16: note: suggested alternative: 'Init'
if(v == A) crit.emplace_back(u);
^~~~
Init
rings.cpp:69:16: error: 'crit' was not declared in this scope
for(int x : crit) {
^~~~
rings.cpp:69:16: note: suggested alternative: 'Init'
for(int x : crit) {
^~~~
Init
rings.cpp:70:5: error: 'without' was not declared in this scope
without.emplace_back(n, x);
^~~~~~~
rings.cpp:71:24: error: unable to deduce 'auto&&' from 'edges'
for(auto &[u, v] : edges)
^~~~~
rings.cpp:77:17: error: 'without' was not declared in this scope
for(auto &g : without)
^~~~~~~
rings.cpp: In function 'int CountCritical()':
rings.cpp:90:17: error: 'without' was not declared in this scope
for(auto &g : without) {
^~~~~~~