Language: C++

    #include <bits/stdc++.h>
    #define ll  long long int
    #define pb push_back
    #define mp make_pair
    #define ff first
    #define ss second
    #define vi vector<int>
    #define br cout <<"\n";
    #define all(x)  (x).begin(),(x).end()
    #define tr(c,i) for(auto i : c)
    #define pii pair< int,int >
    #define fast_io() ios_base::sync_with_stdio(false);cin.tie(nullptr)
    #define pq priority_queue< pair<ll,pii> ,vector<pair<ll,pii>>,greater <pair<ll,pii>> >p;//container adapter makes ascending q
    #define er(x) cout << x << " "
    #define err(x,y) cout << x << " "<<y
    const int M = 200005;
    using namespace std;
    clock_t time_p=clock();
    void dem()
    {
        time_p=clock()-time_p;
        cerr<<"Time Taken : "<<(float)(time_p)/CLOCKS_PER_SEC<<"\n";
    }
    using namespace std ;
    const int N =  100 ;
    const int dx[] = { 1, -1 , 0 , 0  };
    const int dy [] = { 0 ,0 , 1 , -1  };
    const int MOD = 1000 * 1000 * 1000 + 9 ;
int gcd (  ll a , ll b ) // a > b
{
return     b ==  0   ?  a  : gcd ( b , a % b   ) ;
}
int main (){
   ll  a , b ;
   cin >> a >> b ;
    ll   g = gcd ( a, b ) ;
map <int, int > m ;
while ( g % 2 == 0 ){
    m[2]++ ;
    g/=2 ;

}
for (  int i = 3 ; i * i <= g ; i+= 2 ){

    while (  g % i == 0 ){
        m[i] ++ ;
        g /=i ;
    }

}

if ( g > 2 )m[g]++;
int res = m.size() + 1 ;
cout <<  res ;

    return 0 ;
    }
    #include <bits/stdc++.h>
    #define ll  long long int
    #define pb push_back
    #define mp make_pair
    #define ff first
    #define ss second
    #define vi vector<int>
    #define br cout <<"\n";
    #define all(x)  (x).begin(),(x).end()
    #define tr(c,i) for(auto i : c)
    #define pii pair< int,int >
    #define fast_io() ios_base::sync_with_stdio(false);cin.tie(nullptr)
    #define pq priority_queue< pair<ll,pii> ,vector<pair<ll,pii>>,greater <pair<ll,pii>> >p;//container adapter makes ascending q
    #define er(x) cout << x << " "
    #define err(x,y) cout << x << " "<<y
    const int M = 200005;
    using namespace std;
    clock_t time_p=clock();
    void dem()
    {
        time_p=clock()-time_p;
        cerr<<"Time Taken : "<<(float)(time_p)/CLOCKS_PER_SEC<<"\n";
    }
    using namespace std ;
    const int N =  100 ;
    const int dx[] = { 1, -1 , 0 , 0  };
    const int dy [] = { 0 ,0 , 1 , -1  };
    const int MOD = 1000 * 1000 * 1000 + 9 ;
int gcd (  ll a , ll b ) // a > b
{
return     b ==  0   ?  a  : gcd ( b , a % b   ) ;
}
int main (){
   ll  a , b ;
   cin >> a >> b ;
    ll   g = gcd ( a, b ) ;
map <ll, ll > m ;
while ( g % 2 == 0 ){
    m[2]++ ;
    g/=2 ;

}
for (  ll i = 3 ; i * i <= g ; i+= 2 ){

    while (  g % i == 0 ){
        m[i] ++ ;
        g /=i ;
    }

}

if ( g > 2 )m[g]++;
ll res = m.size() + 1 ;
cout <<  res ;

    return 0 ;
    }


Compiler output:
a.cc:73:15: error: redefinition of 'const int M'
   73 |     const int M = 200005;
      |               ^
a.cc:16:15: note: 'const int M' previously defined here
   16 |     const int M = 200005;
      |               ^
a.cc:75:13: error: redefinition of 'clock_t time_p'
   75 |     clock_t time_p=clock();
      |             ^~~~~~
a.cc:18:13: note: 'clock_t time_p' previously declared here
   18 |     clock_t time_p=clock();
      |             ^~~~~~
a.cc:76:10: error: redefinition of 'void dem()'
   76 |     void dem()
      |          ^~~
a.cc:19:10: note: 'void dem()' previously defined here
   19 |     void dem()
      |          ^~~
a.cc:82:15: error: redefinition of 'const int N'
   82 |     const int N =  100 ;
      |               ^
a.cc:25:15: note: 'const int N' previously defined here
   25 |     const int N =  100 ;
      |               ^
a.cc:83:15: error: redefinition of 'const int dx []'
   83 |     const int dx[] = { 1, -1 , 0 , 0  };
      |               ^~
a.cc:26:15: note: 'const int dx [4]' previously defined here
   26 |     const int dx[] = { 1, -1 , 0 , 0  };
      |               ^~
a.cc:84:15: error: redefinition of 'const int dy []'
   84 |     const int dy [] = { 0 ,0 , 1 , -1  };
      |               ^~
a.cc:27:15: note: 'const int dy [4]' previously defined here
   27 |     const int dy [] = { 0 ,0 , 1 , -1  };
      |               ^~
a.cc:85:15: error: redefinition of 'const int MOD'
   85 |     const int MOD = 1000 * 1000 * 1000 + 9 ;
      |               ^~~
a.cc:28:15: note: 'const int MOD' previously defined here
   28 |     const int MOD = 1000 * 1000 * 1000 + 9 ;
      |               ^~~
a.cc:86:5: error: redefinition of 'int gcd(long long int, long long int)'
   86 | int gcd (  ll a , ll b ) // a > b
      |     ^~~
a.cc:29:5: note: 'int gcd(long long int, long long int)' previously defined here
   29 | int gcd (  ll a , ll b ) // a > b
      |     ^~~
a.cc:90:5: error: redefinition of 'int main()'
   90 | int main (){
      |     ^~~~
a.cc:33:5: note: 'int main()' previously defined here
   33 | int main (){
      |     ^~~~