Language: C++

#include <iostream>
#include <math.h>
#include <string>
#include <string.h>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <stdlib.h>
#include <deque>  
#include <iomanip>

using namespace std;

#define ll long long
#define INF 1e9
#define MOD 1e9 + 7
#define rep(i, n) for(int i = 0; i < n; i++)
#define loop(i, a, n) for(int i = a; i < n; i++)
#define all(in) in.begin(), in.end()

const int MAX_N = 50;
int N, M;
bool Graph[MAX_N + 1][MAX_N + 1];
bool visited[MAX_N + 1]; 
int dfs(int v){
    visited[v] = true;
    for(int v2 = 0' v2 < N; v2++){
        if(Graph[v][v2] == false)continue;
        if(visited[v2] == true) continue;
        dfs(v2);
    }
}
int main(){
    int N, M;
    cin >> N >> M;
    vector<int> a(M), b(M);
    rep(i, N){
        cin >> a[i] >> b[i];
        a[i]--, b[i]--;
        Graph[a[i]] = Graph[b[i]] = true;
    }
    int ans = 0;
    for(int i = 0; i < m; i++){
        Graph[a[i]] = Graph[b[i]] = false;
        rep(i, N) visited[i] = false;
        dfs(0);
        bool bridge = false;
        rep(i, N)if(visited[i] == false)bridge = true;
        if(bridge)ans++;
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc:30:19: warning: missing terminating ' character
   30 |     for(int v2 = 0' v2 < N; v2++){
      |                   ^
a.cc:30:19: error: missing terminating ' character
   30 |     for(int v2 = 0' v2 < N; v2++){
      |                   ^~~~~~~~~~~~~~~~
a.cc: In function 'int dfs(int)':
a.cc:30:19: error: expected ';' before 'if'
   30 |     for(int v2 = 0' v2 < N; v2++){
      |                   ^
      |                   ;
   31 |         if(Graph[v][v2] == false)continue;
      |         ~~         
a.cc:31:9: error: expected primary-expression before 'if'
   31 |         if(Graph[v][v2] == false)continue;
      |         ^~
a.cc:30:19: error: expected ';' before 'if'
   30 |     for(int v2 = 0' v2 < N; v2++){
      |                   ^
      |                   ;
   31 |         if(Graph[v][v2] == false)continue;
      |         ~~         
a.cc:31:9: error: expected primary-expression before 'if'
   31 |         if(Graph[v][v2] == false)continue;
      |         ^~
a.cc:30:19: error: expected ')' before 'if'
   30 |     for(int v2 = 0' v2 < N; v2++){
      |        ~          ^
      |                   )
   31 |         if(Graph[v][v2] == false)continue;
      |         ~~         
a.cc:32:20: error: 'v2' was not declared in this scope; did you mean 'v'?
   32 |         if(visited[v2] == true) continue;
      |                    ^~
      |                    v
a.cc:32:33: error: continue statement not within a loop
   32 |         if(visited[v2] == true) continue;
      |                                 ^~~~~~~~
a.cc:33:13: error: 'v2' was not declared in this scope; did you mean 'v'?
   33 |         dfs(v2);
      |             ^~
      |             v
a.cc:34:5: warning: no return statement in function returning non-void [-Wreturn-type]
   34 |     }
      |     ^
a.cc: At global scope:
a.cc:35:1: error: expected declaration before '}' token
   35 | }
      | ^
a.cc: In function 'int main()':
a.cc:43:35: error: incompatible types in assignment of 'bool' to 'bool [51]'
   43 |         Graph[a[i]] = Graph[b[i]] = true;
      |                       ~~~~~~~~~~~~^~~~~~
a.cc:46:24: error: 'm' was not declared in this scope
   46 |     for(int i = 0; i < m; i++){
      |                        ^
a.cc:47:35: error: incompatible types in assignment of 'bool' to 'bool [51]'
   47 |         Graph[a[i]] = Graph[b[i]] = false;
      |                       ~~~~~~~~~~~~^~~~~~~