Language: C++

#include <iostream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <string>
#include <utility>
#include <algorithm>
#include <functional>
#include <deque>
#define INF 1e9
#define MAX_V 100000

using namespace std;

typedef long long ll;
typedef pair<int,int> P;


vector<int> G[MAX_V];
bool used_e[MAX_V][MAX_V];
bool used_v[MAX_V];
int ord[MAX_V];
int lowlink[MAX_V];
int k = 0;
void dfs(int i) {
    used_v[i] = true;
    ord[i] = lowlink[i] = k++;
    
    for (int j = 0; j < G[i].size(); ++j) {
        int to = G[i][j];
        if (used_e[to][i]) continue;
        
        if (!used_v[to]) {
            used_e[i][to] = true;
            dfs(to);
            lowlink[i] = min(lowlink[i], lowlink[to]);
        } else {
            lowlink[i] = min(lowlink[i], ord[to]);
        }
    }
}

int main() {
    int V, E;
    cin >> V >> E;
    for (int i = 0; i < E; ++i) {
        int s, t;
        cin >> s >> t;
        G[s].push_back(t);
        G[t].push_back(s);
    }
    
    dfs(0);
    
    for (int i = 0; i < V; ++i) {
        if (i == 0) {
            int children = 0;
            for (int j = 0; j < G[i].size(); ++j) {
                int to = G[i][j];
                if (used_e[i][to]) children++;
            }
            if (children >= 2) cout << 0 << endl;
            continue;
        }
        
        bool is_joint = false;
        for (int j = 0; j < G[i].size(); ++j) {
            int to = G[i][j];
            
            if (!used_e[i][to]) continue;
            
            if (lowlink[to] >= ord[i])
                is_joint = true;
        }
        if (is_joint)
            cout << i << endl;
        
    }
    
    
    
    return 0;
}



Compiler output:
/tmp/cckn4qng.o: in function `dfs(int)':
a.cc:(.text+0x14): relocation truncated to fit: R_X86_64_PC32 against symbol `used_v' defined in .bss section in /tmp/cckn4qng.o
a.cc:(.text+0x1e): relocation truncated to fit: R_X86_64_PC32 against symbol `k' defined in .bss section in /tmp/cckn4qng.o
a.cc:(.text+0x27): relocation truncated to fit: R_X86_64_PC32 against symbol `k' defined in .bss section in /tmp/cckn4qng.o
a.cc:(.text+0x3c): relocation truncated to fit: R_X86_64_PC32 against symbol `lowlink' defined in .bss section in /tmp/cckn4qng.o
a.cc:(.text+0x53): relocation truncated to fit: R_X86_64_PC32 against symbol `lowlink' defined in .bss section in /tmp/cckn4qng.o
a.cc:(.text+0x6b): relocation truncated to fit: R_X86_64_PC32 against symbol `ord' defined in .bss section in /tmp/cckn4qng.o
a.cc:(.text+0xe2): relocation truncated to fit: R_X86_64_PC32 against symbol `used_v' defined in .bss section in /tmp/cckn4qng.o
a.cc:(.text+0x131): relocation truncated to fit: R_X86_64_PC32 against symbol `lowlink' defined in .bss section in /tmp/cckn4qng.o
a.cc:(.text+0x148): relocation truncated to fit: R_X86_64_PC32 against symbol `lowlink' defined in .bss section in /tmp/cckn4qng.o
a.cc:(.text+0x16d): relocation truncated to fit: R_X86_64_PC32 against symbol `lowlink' defined in .bss section in /tmp/cckn4qng.o
a.cc:(.text+0x186): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status