criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <iostream>
#include <string>
#include<vector>
#include<algorithm>

using namespace std;
int main()
{
	int n,k,a;
	cin >> n;
	cin >> k;
	double aa = min(n, k);
	a =(int)sqrt(aa);
	//vector<int> xn(a + 1);

	//for (int i = 0; i < n; i++) {
	//	cin >> a[i];
	//}
	int s=1;
	for (int i = 2; i < a + 1; i++) {
		int x=0, y=0;
		while (n % i == 0 || k % i==0) {
			if (n % i == 0) {
				x++;
				n = n / i;
			}
			if (k % i == 0) {
				y++;
				k = k / i;
			}
			}
		if (x > 0 && y > 0) {
			s++;
		}
	}

	if (k > 1 && n > 1) {
		if (k % n == 0 || n% k == 0) {
			s++;
		}
	}
	
	cout << s;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'sqrt' was not declared in this scope
   13 |         a =(int)sqrt(aa);
      |                 ^~~~
Language: C++

#include <iostream>
#include <string>
#include<vector>
#include<algorithm>

using namespace std;
int main()
{
	int n,k,a;
	double aa;
	cin >> n;
	cin >> k;
	aa = sqrt((double)min(n,k));
	a = (int)aa;
	//vector<int> xn(a + 1);

	//for (int i = 0; i < n; i++) {
	//	cin >> a[i];
	//}
	int s=1;
	for (int i = 2; i < a + 1; i++) {
		int x=0, y=0;
		while (n % i == 0 || k % i==0) {
			if (n % i == 0) {
				x++;
				n = n / i;
			}
			if (k % i == 0) {
				y++;
				k = k / i;
			}
			}
		if (x > 0 && y > 0) {
			s++;
		}
	}

	if (k > 1 && n > 1) {
		if (k % n == 0 || n% k == 0) {
			s++;
		}
	}
	
	cout << s;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: 'sqrt' was not declared in this scope
   13 |         aa = sqrt((double)min(n,k));
      |              ^~~~
Language: C++

#include <iostream>
#include <string>
#include<vector>
#include<algorithm>

using namespace std;
int main()
{
	int n,k,a;
	double aa;
	cin >> n;
	cin >> k;
	aa = sqrt(min(n,k)*1.0);
	a = (int)aa;
	//vector<int> xn(a + 1);

	//for (int i = 0; i < n; i++) {
	//	cin >> a[i];
	//}
	int s=1;
	for (int i = 2; i < a + 1; i++) {
		int x=0, y=0;
		while (n % i == 0 || k % i==0) {
			if (n % i == 0) {
				x++;
				n = n / i;
			}
			if (k % i == 0) {
				y++;
				k = k / i;
			}
			}
		if (x > 0 && y > 0) {
			s++;
		}
	}

	if (k > 1 && n > 1) {
		if (k % n == 0 || n% k == 0) {
			s++;
		}
	}
	
	cout << s;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: 'sqrt' was not declared in this scope
   13 |         aa = sqrt(min(n,k)*1.0);
      |              ^~~~
Language: C++

#include <iostream>
#include <string>
#include<vector>
#include<algorithm>

using namespace std;
int main()
{
	int n,k,a;
	cin >> n;
	cin >> k;
	a = (int)sqrt(min(n,k)*1.0);
	//vector<int> xn(a + 1);

	//for (int i = 0; i < n; i++) {
	//	cin >> a[i];
	//}
	int s=1;
	for (int i = 2; i < a + 1; i++) {
		int x=0, y=0;
		while (n % i == 0 || k % i==0) {
			if (n % i == 0) {
				x++;
				n = n / i;
			}
			if (k % i == 0) {
				y++;
				k = k / i;
			}
			}
		if (x > 0 && y > 0) {
			s++;
		}
	}

	if (k > 1 && n > 1) {
		if (k % n == 0 || n% k == 0) {
			s++;
		}
	}
	
	cout << s;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: 'sqrt' was not declared in this scope
   12 |         a = (int)sqrt(min(n,k)*1.0);
      |                  ^~~~
Language: C++

#include <iostream>
#include <string>
#include<vector>
#include<algorithm>

using namespace std;
int main()
{
	int n,k,a;
	cin >> n;
	cin >> k;
	a = int(sqrt(min(n,k)*1.0));
	//vector<int> xn(a + 1);

	//for (int i = 0; i < n; i++) {
	//	cin >> a[i];
	//}
	int s=1;
	for (int i = 2; i < a + 1; i++) {
		int x=0, y=0;
		while (n % i == 0 || k % i==0) {
			if (n % i == 0) {
				x++;
				n = n / i;
			}
			if (k % i == 0) {
				y++;
				k = k / i;
			}
			}
		if (x > 0 && y > 0) {
			s++;
		}
	}

	if (k > 1 && n > 1) {
		if (k % n == 0 || n% k == 0) {
			s++;
		}
	}
	
	cout << s;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'sqrt' was not declared in this scope
   12 |         a = int(sqrt(min(n,k)*1.0));
      |                 ^~~~
Language: C++

#include <iostream>
#include <string>
#include<vector>
#include<algorithm>

using namespace std;
int main()
{
	int n,k,a;
	cin >> n;
	cin >> k;
	a = int(sqrt(min(n,k)));
	//vector<int> xn(a + 1);

	//for (int i = 0; i < n; i++) {
	//	cin >> a[i];
	//}
	int s=1;
	for (int i = 2; i < a + 1; i++) {
		int x=0, y=0;
		while (n % i == 0 || k % i==0) {
			if (n % i == 0) {
				x++;
				n = n / i;
			}
			if (k % i == 0) {
				y++;
				k = k / i;
			}
			}
		if (x > 0 && y > 0) {
			s++;
		}
	}

	if (k > 1 && n > 1) {
		if (k % n == 0 || n% k == 0) {
			s++;
		}
	}
	
	cout << s;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'sqrt' was not declared in this scope
   12 |         a = int(sqrt(min(n,k)));
      |                 ^~~~
Language: C++

#include <iostream>
#include <string>
#include<vector>
#include<algorithm>

using namespace std;
int main()
{
	int n,k,a;
	cin >> n;
	cin >> k;
	a = int(sqrt(min(n,k)));
	//vector<int> xn(a + 1);

	//for (int i = 0; i < n; i++) {
	//	cin >> a[i];
	//}
	int s=1;
	for (int i = 2; i < a + 1; i++) {
		int x=0, y=0;
		while (n % i == 0 | k % i==0) {
			if (n % i == 0) {
				x++;
				n = n / i;
			}
			if (k % i == 0) {
				y++;
				k = k / i;
			}
			}
		if (x > 0 & y > 0) {
			s++;
		}
	}

	if (k > 1 & n > 1) {
		if (k % n == 0 | n% k == 0) {
			s++;
		}
	}
	
	cout << s;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'sqrt' was not declared in this scope
   12 |         a = int(sqrt(min(n,k)));
      |                 ^~~~
Language: C++

#include <iostream>
#include <string>
#include<vector>
#include<algorithm>

using namespace std;
int main()
{
	int n,k,a;
	cin >> n;
	cin >> k;
	a = int(sqrt(min(n,k)));
	//vector<int> xn(a + 1);

	//for (int i = 0; i < n; i++) {
	//	cin >> a[i];
	//}
	int s=1;
	for (int i = 2; i < a + 1; i++) {
		int x=0, y=0;
		while (n % i == 0 or k % i==0) {
			if (n % i == 0) {
				x++;
				n = n / i;
			}
			if (k % i == 0) {
				y++;
				k = k / i;
			}
			}
		if (x > 0 and y > 0) {
			s++;
		}
	}

	if (k >1 and n>1){
		if (k % n == 0 or n % k == 0) {
			s++;
		}
	}
	
	cout << s;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'sqrt' was not declared in this scope
   12 |         a = int(sqrt(min(n,k)));
      |                 ^~~~
Language: C++

#include <iostream>
#include <string>
#include<vector>
#include<algorithm>

using namespace std;
int main()
{
	int n,k,a;
	cin >> n;
	cin >> k;
	a = sqrt(min(n,k));
	//vector<int> xn(a + 1);

	//for (int i = 0; i < n; i++) {
	//	cin >> a[i];
	//}
	int s=1;
	for (int i = 2; i < a + 1; i++) {
		int x=0, y=0;
		while (n % i == 0 or k % i==0) {
			if (n % i == 0) {
				x++;
				n = n / i;
			}
			if (k % i == 0) {
				y++;
				k = k / i;
			}
			}
		if (x > 0 and y > 0) {
			s++;
		}
	}

	if (k >1 and n>1){
		if (k % n == 0 or n % k == 0) {
			s++;
		}
	}
	
	cout << s;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'sqrt' was not declared in this scope
   12 |         a = sqrt(min(n,k));
      |             ^~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
	int n,k,a;
	cin >> n;
	cin >> k;
	a = sqrt(min(n,k));

	int s=1;
	for (int i = 2; i < a + 1; i++) {
		int x=0, y=0;
		while (n % i == 0 or k % i==0) {
			if (n % i == 0) {
				x++;
				n = n / i;
			}
			if (k % i == 0) {
				y++;
				k = k / i;
			}
			}
		if (x > 0 and y > 0) {
			s++;
		}
	}

	if (k >1 and n>1){
		if (k % n == 0 or n % k == 0) {
			s++;
		}
	}
	
	cout << s;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'sqrt' was not declared in this scope
    9 |         a = sqrt(min(n,k));
      |             ^~~~
Language: C++

#include <iostream>
#include <string>
#include<vector>
#include<algorithm>

using namespace std;
int main()
{
	int n,k,a;
	cin >> n;
	cin >> k;
	a = pow(min(n,k),0.5);
	//vector<int> xn(a + 1);

	//for (int i = 0; i < n; i++) {
	//	cin >> a[i];
	//}
	int s=1;
	for (int i = 2; i < a + 1; i++) {
		int x=0, y=0;
		while (n % i == 0 or k % i==0) {
			if (n % i == 0) {
				x++;
				n = n / i;
			}
			if (k % i == 0) {
				y++;
				k = k / i;
			}
			}
		if (x > 0 and y > 0) {
			s++;
		}
	}

	if (k >1 and n>1){
		if (k % n == 0 or n % k == 0) {
			s++;
		}
	}
	
	cout << s;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'pow' was not declared in this scope
   12 |         a = pow(min(n,k),0.5);
      |             ^~~
Language: C++

#include <iostream>
#include <string>
#include<vector>
#include<algorithm>

using namespace std;
int main()
{
	int n,k,a;
	cin >> n;
	cin >> k;
	a = pow(min(n,k),0.5);
	int s=1;
	for (int i = 2; i < a + 1; i++) {
		int x=0, y=0;
		while (n % i == 0 or k % i==0) {
			if (n % i == 0) {
				x++;
				n = n / i;
			}
			if (k % i == 0) {
				y++;
				k = k / i;
			}
			}
		if (x > 0 and y > 0) {
			s++;
		}
	}

	if (k >1 and n>1){
		if (k % n == 0 or n % k == 0) {
			s++;
		}
	}
	
	cout << s;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'pow' was not declared in this scope
   12 |         a = pow(min(n,k),0.5);
      |             ^~~
Language: C++

/*Function Template*/
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
const int mod = 1000000007;
const ll MOD = 1000000000000000001;
#define rep(i, n) for(ll i = 0; i < (n); i++)
#define ALL(a)  (a).begin(),(a).end()
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);


ll Len(ll n) {
  ll s=0;
  while(n!=0) s++, n/=10;
  return s;
}


ll Sint(ll n) {
  ll m=0,s=0,a=n;
  while(a!=0) s++, a/=10;
  for(ll i=s-1;i>=0;i--) m+=n/((ll)pow(10,i))-(n/((ll)pow(10,i+1)))*10;
  return m;
}


ll Svec(vector<ll> v){
  ll n=0;
  for(ll i=0;i<v.size();i++) n+=v[i];
  return n;
}


ll GCD(ll a,ll b){
  ll r,tmp;
/*自然数 a > b を確認・入替*/
  if(a<b){
    tmp=a,a=b,b=tmp;
  }
/*ユークリッドの互除法*/
  r=a%b;
  while(r!=0){
    a=b,b=r,r=a%b;
  }
  return b;
}


ll LCM(ll a,ll b){
  ll c=a,d=b,r,tmp;
/*自然数 a > b を確認・入替*/
  if(a<b){
    tmp=a,a=b,b=tmp;
  }
/*ユークリッドの互除法*/
  r=a%b;
  while(r!=0){
    a=b,b=r,r=a%b;
  }
  return c/b*d;
}


ll Factorial(ll n){
  ll m=1;
  while(n>=1) m*=n,n--;
  return m;
}

vector<pair<char,ll>> runlength(string s,vector<pair<char,ll>> p){
  ll x=1;
  if(s.size()==1){
    p.push_back(pair<char,ll>(s[0],1));
    return p;
  }
  for(ll i=0;i<s.size()-1;i++){
    if(s[i]==s[i+1]){
      x++;
      if(i==s.size()-2){
        p.push_back(pair<char,ll>(s[i],x));
      }
    }else{
      p.push_back(pair<char,ll>(s[i],x));
      x=1;
      if(i==s.size()-2){
        p.push_back(pair<char,ll>(s[s.size()-1],x));
      }
    }
  }
  return p;
}

vector<bool> sieve_of_eratosthenes();
ll a,b,n;
/*↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓*/
int main() {
  IOS;
  cin>>a>>b;
  n=GCD(a,b);
  
  if(n==1){
    cout<<1<<endl;
  }else{
    vector<bool> p=sieve_of_eratosthenes();
    for(ll i=1;i<p.size();i++){
      if(p[i]) ans++;
    }
    cout<<ans<<endl;
  }
  
}

vector<bool> sieve_of_eratosthenes(){
  vector<bool> isPrime(n+1,true);
  for(int i=2;i<=n;++i){
    if(isPrime[i]){
      for(int j=2*i;j<=n;j+=i){
          isPrime[j]=false;
      }
    }
  }
  return isPrime;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:106:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
  106 |       if(p[i]) ans++;
      |                ^~~
      |                abs
a.cc:108:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
  108 |     cout<<ans<<endl;
      |           ^~~
      |           abs
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define rep(i, n) for(int i = 0; i < n; i++)

int gcd(int a,int b){
    if(a < b) swap(a, b);
    if(b == 0) return a;
    if(a % b == 0) return b;
    return gcd(b, a % b);
}

int main() {
    int a, b
    cin >> a >> b;
    int g = gcd(a, b);
    vector<int> cache;
    bool flag = false;
    for(int i = 2; i < g; i++){
        if(!(a % i == 0 && b % i == 0)) continue;
        for(int j = 0; j < cache.size(); j++){
            if(gcd(i, cache[j]) != 1){ //互いに素でない
                flag = true;
                break;
            }
        }
        if(!flag){
            cache.push_back(i);
        }
        flag = false;
    }
    cout << cache.size() + 1 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: expected initializer before 'cin'
   16 |     cin >> a >> b;
      |     ^~~
a.cc:17:20: error: 'b' was not declared in this scope
   17 |     int g = gcd(a, b);
      |                    ^
Language: C++

#include <bits/stdc++.h>
#include <vector>
#include <iostream>
#include <utility>
#define chmin(x, y) x = min(x , y);
#define chmax(x, y) x = max(x, y);
#define rep(i, j) for (int (i)=0;(i)<(j);(i)++)
#define dump(x)  cout << #x << " = " << (x) << endl;
#define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
using namespace std;
typedef long long int ll;

ll gcd(ll x, ll y){return y ? gdc(y, x%y): x;}
//?????
vector<pair<ll, int> > num(ll n) {
  vector<pair<ll, int> > res;
  for (ll i=2;i*i <= n;i++){
    if(n%i) continue;
    res.push_back(i, n);
    	while(n%i == 0){
      	n /= i;
      	res.back().second++;
  		}
  }
  if (n != 1) res.emplace_back(n, 1);
  return res;
}
  
ll N,M;

void input(){
  cin >> N >> M;
}

void solve() {
  input();
  ll a = gcd(N, M);
  auto f = num(a);
  int ans = f.size() + 1;
  cout << ans << endl;
  return;
}
int main(){
  solve();
  return 0;
}

Compiler output:
a.cc: In function 'll gcd(ll, ll)':
a.cc:13:31: error: 'gdc' was not declared in this scope; did you mean 'gcd'?
   13 | ll gcd(ll x, ll y){return y ? gdc(y, x%y): x;}
      |                               ^~~
      |                               gcd
a.cc: In function 'std::vector<std::pair<long long int, int> > num(ll)':
a.cc:19:18: error: no matching function for call to 'std::vector<std::pair<long long int, int> >::push_back(ll&, ll&)'
   19 |     res.push_back(i, n);
      |     ~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<long long int, int>; _Alloc = std::allocator<std::pair<long long int, int> >; value_type = std::pair<long long int, int>]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:7: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair<long long int, int>; _Alloc = std::allocator<std::pair<long long int, int> >; value_type = std::pair<long long int, int>]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note:   candidate expects 1 argument, 2 provided
Language: C++

#include <bits/stdc++.h>
#include <vector>
#include <iostream>
#include <utility>
#define chmin(x, y) x = min(x , y);
#define chmax(x, y) x = max(x, y);
#define rep(i, j) for (int (i)=0;(i)<(j);(i)++)
#define dump(x)  cout << #x << " = " << (x) << endl;
#define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
using namespace std;
typedef long long int ll;

ll gcd(ll x, ll y);

int main (){
    ll N,M;cin >> N >> M;
    if(N < M)swap(N, M);
    ll a = gcd(N ,M);
    if(a == 1ll){
        cout << 1 << endl;
        return 0;
    }

    vector<ll> num;
    num[0] = 0ll;
    for (ll i=1ll;i<=a;i++){
        if(i != 1){
            if(0 == a%i){//a の約数について考える
                for(auto itr = num.begin();itr != num.end();itr++){
                    ll j = gcd(i, *itr);
                    if(j == 1) num.push_back(i);
                }
            }
        }
    }
    ll ans = num.size()
    cout << ans << endl;
    return 0;
}

ll gcd (ll x, ll y){
    if(0 == x%y) return y;
    return gcd(y, x%y);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:5: error: expected ',' or ';' before 'cout'
   37 |     cout << ans << endl;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#include <vector>
#include <iostream>
#include <utility>
#define chmin(x, y) x = min(x , y);
#define chmax(x, y) x = max(x, y);
#define rep(i, j) for (int (i)=0;(i)<(j);(i)++)
#define dump(x)  cout << #x << " = " << (x) << endl;
#define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
using namespace std;
typedef long long int ll;

ll gcd(ll x, ll y);

int main (){
    ll N,M;cin >> N >> M;
    if(N > M)swap(N, M);
    ll a = gcd(N ,M);
    if(a == 1ll){
        cout << 1 << endl;
        return 0;
    }

    vector<ll> num;
    num[0] = 0ll;
    for (ll i=1ll;i<=a;i++){
        if(0 == a%i){//a の約数について考える
            for(auto itr = num.begin();itr != num.end();itr++){
                ll j = gcd(i, *itr);
                if(j == 1) num.push_back(i);
            }
        }
    }
    int l = num.size() - 1;
    int ans = l*(l-1);
    cout << ans << endl;
    return 0;
}

ll gcd (ll x, ll y){
    if(0 == x%y) return y;
    
    return gdc(y, x%y);
}

Compiler output:
a.cc: In function 'll gcd(ll, ll)':
a.cc:43:12: error: 'gdc' was not declared in this scope; did you mean 'gcd'?
   43 |     return gdc(y, x%y);
      |            ^~~
      |            gcd
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int A,B;cin>>A>>B;
  int max=floor(max(sqrt(A),sqrt(B)))+1;
  int isPrime[max+1];for(int i=0;i<max+1;i++)isPrime[i]=1;
  int ans=1;
  for(int i=2;i<max+1;i++){
    if(isPrime[i]){
      int j=2;
      while(j*i<=max){isPrime[j*i]=0;j++;}
      if(A%i==0 && B%i==0)ans++;
    }
  }
  cout<<ans; 
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: 'max' cannot be used as a function
    5 |   int max=floor(max(sqrt(A),sqrt(B)))+1;
      |                 ~~~^~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int A,B;cin>>A>>B;
  int max=ceil(max(sqrt(A),sqrt(B)));
  int isPrime[max+1];for(int i=0;i<max+1;i++)isPrime[i]=1;
  int ans=1;
  for(int i=2;i<max+1;i++){
    if(isPrime[i]){
      int j=2;
      while(j*i<=max){isPrime[j*i]=0;j++;}
      if(A%i==0 && B%i==0)ans++;
    }
  }
  cout<<ans; 
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: 'max' cannot be used as a function
    5 |   int max=ceil(max(sqrt(A),sqrt(B)));
      |                ~~~^~~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

const ll maxn = 205;
ll base[maxn], index[maxn];
ll k; //当前质因子个数

int divide(ll n) {
	k = 0;
	for(ll i = 2; i * i <= n; i++) {
		if(n % i == 0) {
			base[++k] = i;
			index[k] = 0;
			while(n % i == 0) {
				n /= i;
				index[k]++;
			}
		}
	}
	if(n > 1) {
		base[++k] = n;
		index[k] = 1;
	}
	return k;
} 

int main() {
	ll a, b;
	cin >> a >> b;
	cout << divide(__gcd(a, b))+1 << endl;
}

Compiler output:
a.cc:6:26: error: 'll index [205]' redeclared as different kind of entity
    6 | ll base[maxn], index[maxn];
      |                          ^
In file included from /usr/include/string.h:462,
                 from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/strings.h:50:20: note: previous declaration 'const char* index(const char*, int)'
   50 | extern const char *index (const char *__s, int __c)
      |                    ^~~~~
a.cc: In function 'int divide(ll)':
a.cc:14:30: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript
   14 |                         index[k] = 0;
      |                              ^
a.cc:17:38: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript
   17 |                                 index[k]++;
      |                                      ^
a.cc:23:22: error: invalid types '<unresolved overloaded function type>[ll {aka long long int}]' for array subscript
   23 |                 index[k] = 1;
      |                      ^
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <algorithm>
#include <vector>
#include <cmath>
#include <string>
#include <functional>
#include <queue>
#include <map>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
template<class T>
inline bool chmax(T &a, T b) {
    if(a < b) {
        a = b;
        return true;
    }
    return false;
}
 
template<class T>
inline bool chmin(T &a, T b) {
    if(a > b) {
        a = b;
        return true;
    }
    return false;
}
const int INF = 100000000;

ll gcd(ll a, ll b){
    if(a == 0){
        return b;
    }
    return gcd(b % a, a);
}

int main(){
    ll a, b;
    cin >> a >> b;
    ll g = _gcd(a, b);

    int cnt = !(g % 2);
    while(g % 2 == 0){
        g /= 2;
    }

    int s = sqrt(g);
    for(int i = 3; i <= s; i+=2){
        bool bb = false;
        while(g % 1 == 0){
            g /= i, bb=true;
        }
        cnt += bb;
    }
    
    cout << cnt + (g > 1) + 1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:44:12: error: '_gcd' was not declared in this scope; did you mean 'gcd'?
   44 |     ll g = _gcd(a, b);
      |            ^~~~
      |            gcd
Language: Java

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String args[]){//double 处理果盘
		Scanner in = new Scanner(System.in);
		int a = in.nextInt(),b = in.nextInt();
		long g = gcd(a,b);
		long ans = 0;
		for (long i= 2;i<=g/i;i++){
			if(g % i == 0){
				++ans;
				while(g % i == 0) g/=i;
			}
		}
		if(g>1) ++ans;
		System.out.println(ans+1);
	}

	
	private static long gcd(long x,long y){
		if (y == 0) return x;
		return gcd(y,x%y);
	}
	

Compiler output:
Main.java:26: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;

typedef long long ll;

int main(){
    ll#include <bits/stdc++.h>
using namespace std;

typedef long long ll;

int main(){
    ll a, b;
    cin >> a >> b;
    ll x = __gcd(a, b);
    
    /*
    stack<ll> gcds;
    for(ll i = sqrt(x) + 1; i >= 1; i--){
        if(x % i == 0) gcds.push(i);
    }

    vector<ll> ans;
    while(!gcds.empty()){
        bool fl = true;
        for(auto it : ans){
            if(gcds.top() % it == 0 && it > 1) {
                fl = false;
                break;
            }
        }
        if(fl) ans.push_back(gcds.top());
        gcds.pop();
    }

    cout << ans.size() << endl;
    */

    stack<ll> gcds;
    gcds.push(1);
    int num = 1;
    while(x > 1){
        num++;
        if(x % num == 0){
            x /= num;
            if(num > gcds.top()) gcds.push(num);
            num = 1;
        }
    }
    cout << gcds.size() << endl;

    //for(auto it : ans) cout << it << " ";
    //cout << endl;
    //cout << x << endl;
    return 0;
} a, b;
    cin >> a >> b;
    ll x = __gcd(a, b);
    
    stack<ll> gcds;
    for(ll i = sqrt(x) + 1; i >= 1; i--){
        if(x % i == 0) gcds.push(i);
    }

    vector<ll> ans;
    while(!gcds.empty()){
        bool fl = true;
        for(auto it : ans){
            if(gcds.top() % it == 0 && it > 1) {
                fl = false;
                break;
            }
        }
        if(fl) ans.push_back(gcds.top());
        gcds.pop();
    }

    cout << ans.size() << endl;
    //for(auto it : ans) cout << it << " ";
    //cout << endl;
    return 0;
}

Compiler output:
a.cc:7:7: error: stray '#' in program
    7 |     ll#include <bits/stdc++.h>
      |       ^
a.cc: In function 'int main()':
a.cc:7:16: error: expected initializer before '<' token
    7 |     ll#include <bits/stdc++.h>
      |                ^
a.cc:12:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   12 | int main(){
      |         ^~
a.cc:12:9: note: remove parentheses to default-initialize a variable
   12 | int main(){
      |         ^~
      |         --
a.cc:12:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:12:11: error: a function-definition is not allowed here before '{' token
   12 | int main(){
      |           ^
a.cc:56:3: error: 'a' was not declared in this scope
   56 | } a, b;
      |   ^
a.cc:56:6: error: 'b' was not declared in this scope
   56 | } a, b;
      |      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int a,b,count=0;
  cin>>a>>b;
  int n=max(a/2,b/2)+1;
  bool x;
  for(int i=1;i<n+1;i++){
    x=false;
    for(int j=2;j<i/2+1;j++){
      if(i%j==0){
        x=true;
        break;
    }
    if(x) continue;
    if(a%i==0&&b%i==0) count++;
  }
  cout<<count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C

#include <bits/stdc++.h>
long int gcd(long int a, long int b) { return b ? gcd(b, a%b) : a; }

int main(){
  long int a,b;
  scanf("%ld%ld",&a,&b);
  long int abgcd = gcd(a,b);
  long int ans = 0;
  for(long int i = 2; i * i <= abgcd; i++){
    if(abgcd % i == 0)ans++;
    while(abgcd % i == 0)abgcd /= i; 
  }
  if(abgcd > 1)ans++;
  printf("%ld",ans+1);
  return 0;
} 

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#define rep0(i,n) for (int i = 0; i < (n); ++i)
#define rep1(i,n) for (int i = 1; i < (n); ++i)
#define REP(i,a,b) for (int i = a; i < (b); ++i)
#define mREP(i,a,b) for (int i = a; i > (b); --i)
#define all(x) (x).begin(),(x).end()
const int INF = 1000000007;
typedef long long ll;
using namespace std;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a; }

int main(){
  long int a,b;
  scanf("%ld%ld",&a,&b);
  long int abgcd = gcd(a,b);
  long int ans = 0;
  for(long int i = 2; i <= abgcd; i++){
    if(abgcd % i == 0)ans++;
    while(abgcd % i == 0)
  }
  if(a > 1)ans++;
  scanf("%ld",ans);
  return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:22:3: error: expected primary-expression before '}' token
   22 |   }
      |   ^
Language: C++

#include <bits/stdc++.h>
#define rep0(i,n) for (int i = 0; i < (n); ++i)
#define rep1(i,n) for (int i = 1; i < (n); ++i)
#define REP(i,a,b) for (int i = a; i < (b); ++i)
#define mREP(i,a,b) for (int i = a; i > (b); --i)
#define all(x) (x).begin(),(x).end()
const int INF = 1000000007;
typedef long long ll;
using namespace std;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a; }

int main(){
  long int a,b;
  scanf("%d%d",&a,&b);
  long int abgcd = gcd(a,b);
  long int ans = 0;
  for(long int i = 2; i <= abgcd; i++){
    if(abgcd % i == 0)ans++;
    while(abgcd % i == 0)
  }
  if(a > 1)ans++;
  cout << ans + 1 << endl;
  return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:22:3: error: expected primary-expression before '}' token
   22 |   }
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;

int main(){
  ull a, b;
  cin >> a >> b;
  
  vector<int> prima(1);
  vector<int> primb(1);
  prima[0] = 1;
  primb[0] = 1;
  
  int i = 2;
  while(a != 1){
    if(a % i == 0){
      if(prima[prima.size()-1] != i){
        prima.push(i);
      }
      a /= i;
    }
    else{
      ++ i;
    }
  }
  
  i = 2;
  while(b != 1){
    if(b % i == 0){
      if(primb[primb.size()-1] != i){
        primb.push(i);
      }
      b /= i;
    }
    else{
      ++ i;
    }
  }
  
  int res = 0;
  if(prima.size() > primb.size()){
    int len = prima.size() - 1;
    int half = len / 2;
    for(int j = 0; j < primb.size(); ++j){
      while(half != 0){
        if(primb[j] == prima[half]){
          ++ res;
          break;
        }
        else if(primb[j] < prima[half]){
          half = (half - 1) / 2;
        }
        else{
          half = half + 1 + half / 2;
        }
      }
    }
  }
  else{
    int len = primb.size() - 1;
    int half = len / 2;
    for(int j = 0; j < prima.size(); ++j){
      while(half != 0){
        int half = len / 2;
        if(prima[j] == primb[half]){
          ++ res;
          break;
        }
        else if(prima[j] < primb[half]){
          half = (half - 1) / 2;
        }
        else{
          half = half + 1 + half / 2;
        }
      }
    }
  }
  
  cout << res << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:15: error: 'class std::vector<int>' has no member named 'push'
   18 |         prima.push(i);
      |               ^~~~
a.cc:31:15: error: 'class std::vector<int>' has no member named 'push'
   31 |         primb.push(i);
      |               ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;

int main(){
  ull a, b;
  cin >> a >> b;
  
  vector<int> prima(1);
  vector<int> primb(1);
  prima[0] = 1;
  primb[0] = 1;
  
  int i = 2;
  while(a != 1){
    if(a % i == 0){
      if(prima[prima.size()-1] != i){
        prima.push(i);
      }
      a /= i;
    }
    else{
      ++ i;
    }
  }
  
  i = 2;
  while(b != 1){
    if(b % i == 0){
      if(primb[primb.size()-1] != i){
        primb.push(i);
      }
      b /= i;
    }
    else{
      ++ i;
    }
  }
  
  int res = 0;
  if(prima.size() > primb.size()){
    int len = prima.size() - 1;
    for(int j = 0; j < primb.size(); ++j){
      while(half != 0){
        int half = len / 2;
        if(primb[j] == prima[half]){
          ++ res;
          break;
        }
        else if(primb[j] < prima[half]){
          half = (half - 1) / 2;
        }
        else{
          half = half + 1 + half / 2;
        }
      }
    }
  }
  else{
    
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:15: error: 'class std::vector<int>' has no member named 'push'
   18 |         prima.push(i);
      |               ^~~~
a.cc:31:15: error: 'class std::vector<int>' has no member named 'push'
   31 |         primb.push(i);
      |               ^~~~
a.cc:44:13: error: 'half' was not declared in this scope
   44 |       while(half != 0){
      |             ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;

int main(){
  ull a, b;
  cin >> a >> b;
  
  vector<int> a(1);
  vector<int> b(1);
  a[0] = 1;
  b[0] = 1;
  
  int i = 2;
  while(a != 1){
    if(a % i == 0){
      if(a[a.size()-1] != i){
        a.push(i);
      }
      a /= i;
    }
    else{
      ++ i;
    }
  }
  
  i = 2;
  while(b != 1){
    if(b % i == 0){
      if(b[b.size()-1] != i){
        b.push(i);
      }
      b /= i;
    }
    else{
      ++ i;
    }
  }
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: conflicting declaration 'std::vector<int> a'
    9 |   vector<int> a(1);
      |               ^
a.cc:6:7: note: previous declaration as 'ull a'
    6 |   ull a, b;
      |       ^
a.cc:10:15: error: conflicting declaration 'std::vector<int> b'
   10 |   vector<int> b(1);
      |               ^
a.cc:6:10: note: previous declaration as 'ull b'
    6 |   ull a, b;
      |          ^
a.cc:11:4: error: invalid types 'ull {aka long long unsigned int}[int]' for array subscript
   11 |   a[0] = 1;
      |    ^
a.cc:12:4: error: invalid types 'ull {aka long long unsigned int}[int]' for array subscript
   12 |   b[0] = 1;
      |    ^
a.cc:17:14: error: request for member 'size' in 'a', which is of non-class type 'ull' {aka 'long long unsigned int'}
   17 |       if(a[a.size()-1] != i){
      |              ^~~~
a.cc:18:11: error: request for member 'push' in 'a', which is of non-class type 'ull' {aka 'long long unsigned int'}
   18 |         a.push(i);
      |           ^~~~
a.cc:30:14: error: request for member 'size' in 'b', which is of non-class type 'ull' {aka 'long long unsigned int'}
   30 |       if(b[b.size()-1] != i){
      |              ^~~~
a.cc:31:11: error: request for member 'push' in 'b', which is of non-class type 'ull' {aka 'long long unsigned int'}
   31 |         b.push(i);
      |           ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;

int main(){
  ull a, b;
  cin >> a >> b;
  
  ull euc[3];
  euc[0] = max(a, b);
  euc[1] = min(a, b);
  euc[2] = euc[0] % euc[1];
  while(euc[2] != 0){
    euc[0] = euc[1];
    euc[1] = euc[2];
    euc[2] = euc[0] % euc[1];
  }
  ull gcd = euc[1];
  
  vector<ull> prf(1);
  prf[0] = 1;
  ull i = 2;
  while(gcd != 1){
    if(gcd % i == 0){
      if(prf[prf.size()-1] != i){
        prf.push(i);
      }
      gcd /= i;
    }
    else{
      ++ i;
    }
  }
  
  cout << prf.size() << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:13: error: 'class std::vector<long long unsigned int>' has no member named 'push'
   26 |         prf.push(i);
      |             ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

unsigned int gcd(unsigned int a, unsigned int b);
void getFactors(vector<unsigned int>& facts, unsigned int x);

int main(void){

	//printf("142_D\n");
	unsigned int A, B, big;
	scanf("%d", &A);
	scanf("%d", &B);

	vector<unsigned int> factsA, factsB;
	if(A < B){//"割られる数の大きさ" を "割る数の大きさ"以上にする
		int tmp = A;
		A = B;
		B = tmp;
	}
	int GCD = gcd(A, B);
	vector<unsigned int> factsGCD;
	getFactors(factsGCD, GCD);
	printf("%d\n", factsGCD.size() + 1);
	return 0;
}

Compiler output:
/usr/bin/ld: /tmp/ccR9UtrE.o: in function `main':
a.cc:(.text+0x7e): undefined reference to `gcd(unsigned int, unsigned int)'
/usr/bin/ld: a.cc:(.text+0x9e): undefined reference to `getFactors(std::vector<unsigned int, std::allocator<unsigned int> >&, unsigned int)'
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;

ull a, b, ans;

ull euclid(ull a, ull b){
  ull x = max(a, b);
  ull y = min(a, b);
  ull r = x % y;
  ull res = y;
  
  while(r != 0){
    x = y;
    y = r;
    r = x % y;
    res = y;
  }
  
  return res;
}

ull primeFactCount(ull gcd){
  ull i = 2;
  ull previ = 0;
  ull res = 0;
  
  while(gcd != i){
    if(gcd % i == 0){
      if(previ == i){
        gcd /= i;
      }
      else{
        previ = i;
        ++ res;
        gcd /= i;
      }
    }
    else{
      ++ i;
    }
  }
  
  ++ res;
  return res;
}

void input(){
  cin >> a >> b;
}

void output(){
  cout << ans << endl;
}

int main(){
  /*ull gcd;
  
  input();
  gcd = euclid(a, b);
  
  if(gcd == 1){
    ans = 1;
  }
  else{
    ans = 1 + primeFactCount(gcd);
  }
  */
  ans = primeFactCount(100000)
  output();
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:69:31: error: expected ';' before 'output'
   69 |   ans = primeFactCount(100000)
      |                               ^
      |                               ;
   70 |   output();
      |   ~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A, B, count;
  cin >> A >> B;
  for ( int i = 1; i<=min(A,B), i++){
    bool ka = false;
    bool kb = false;
    while(1){
      if ( A%i == 0 ){
        A = A/i;
        ka = true;
      }
      else break;
    }
    while(1){
      if ( B%i == 0 ){
        B = B/i;
        kb = true;
      }
      else break;
    }
    if ( ka == true && kb == true ) count++;
  }
  cout << count << endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:6:36: error: expected ';' before ')' token
    6 |   for ( int i = 1; i<=min(A,B), i++){
      |                                    ^
      |                                    ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
map<long long, long long> prime_map;
 
void prime_factor(long long bak){
	for(int i = 2; i*i <= num; i++){
		while(bak % i == 0){
			prime_map[i]++;
			bak /= i;
		}
	}
	if(bak > 1){
		prime_map[bak]++;
	}
}

long long  cal_gcd(long long A,long long B){
  if(B==0){return A;}
  return cal_gcd(B,A%B);
}
 
int main(){
	long long  A, B;
	cin >> A >> B;
	long long gcd = cal_gcd(A, B);
	prime_factor(gcd);
 
	cout << prime_map.size() + 1 << endl;
}


Compiler output:
a.cc: In function 'void prime_factor(long long int)':
a.cc:7:31: error: 'num' was not declared in this scope; did you mean 'enum'?
    7 |         for(int i = 2; i*i <= num; i++){
      |                               ^~~
      |                               enum
Language: C++

// C++ program to print all prime factors  
#include<iostream>
#include<vector>
#include<cmath>
#include<set>
using namespace std; 



// A function to print all prime factors of a given number n  
// ref: https://www.geeksforgeeks.org/print-all-prime-factors-of-a-given-number/
set<int> primeFactors(int n){  
  set<int> res = {1};
  // Print the number of 2s that divide n  
  while (n % 2 == 0) {
    res.emplace(2);
    n = n/2;  
  }  

  // n must be odd at this point. So we can skip  
  // one element (Note i = i +2)  
  for (int i = 3; i <= sqrt(n); i = i + 2) {  
      // While i divides n, print i and divide n  
      while (n % i == 0){  
        res.emplace(i);
        n = n/i;  
      }  
  }  

  // This condition is to handle the case when n  
  // is a prime number greater than 2  
  if (n > 2){  
    res.emplace(n);
  }
  return res;
}  
  
/* Driver code */
int main()  
{ 
  int a, b;
  cin>> a >> b;
  set<int> a_primes = primeFactors(a);
  set<int> b_primes = primeFactors(b);
  set<int> all_primes;
  set_intersection(a_primes.begin(), a_primes.end(), b_primes.begin(), b_primes.end(), std::inserter(all_primes, all_primes.begin()));
  
  // for(auto&i: all_primes){
  //   cout<<i<<endl;
  // }
  cout<<all_primes.size()<<endl;
  return 0;  
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:46:3: error: 'set_intersection' was not declared in this scope
   46 |   set_intersection(a_primes.begin(), a_primes.end(), b_primes.begin(), b_primes.end(), std::inserter(all_primes, all_primes.begin()));
      |   ^~~~~~~~~~~~~~~~
Language: C++

// C++ program to print all prime factors  
#include<iostream>
#include<vector>
#include<cmath>
#include<set>
using namespace std; 



// A function to print all prime factors of a given number n  
// ref: https://www.geeksforgeeks.org/print-all-prime-factors-of-a-given-number/
set<int> primeFactors(int n){  
  set<int> res = {1};
  // Print the number of 2s that divide n  
  while (n % 2 == 0) {
    res.emplace(2);
    n = n/2;  
  }  

  // n must be odd at this point. So we can skip  
  // one element (Note i = i +2)  
  for (int i = 3; i <= sqrt(n); i = i + 2) {  
      // While i divides n, print i and divide n  
      while (n % i == 0){  
        res.emplace(i);
        n = n/i;  
      }  
  }  

  // This condition is to handle the case when n  
  // is a prime number greater than 2  
  if (n > 2){  
    res.emplace(n);
  }
  return res;
}  
  
/* Driver code */
int main()  
{ 
  int a, b;
  cin>> a >> b;
  set<int> a_primes = primeFactors(a);
  set<int> b_primes = primeFactors(b);
  set<int> all_primes;
  set_intersection(a_primes.begin(), a_primes.end(), b_primes.begin(), b_primes.end(), std::inserter(all_primes, all_primes.begin()));
  
  // for(auto&i: all_primes){
  //   cout<<i<<endl;
  // }
  cout<<all_primes.size()<<endl;
  return 0;  
}  
  
// This is code is contributed by rathbhupendra 

Compiler output:
a.cc: In function 'int main()':
a.cc:46:3: error: 'set_intersection' was not declared in this scope
   46 |   set_intersection(a_primes.begin(), a_primes.end(), b_primes.begin(), b_primes.end(), std::inserter(all_primes, all_primes.begin()));
      |   ^~~~~~~~~~~~~~~~
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <queue>
using namespace std;
typedef unsigned int uint;
typedef long long ll;
typedef pair<int, int> P;
const int c_INF = 111111111;
const int c_mINF = -111111111;
const int c_YET = -1;
const int c_Dx[4] = { 0,0,1,-1 };
const int c_Dy[4] = { 1,-1,0,0 };

//char型１文字の整数をintに変換するときはキャストしてから４８を引く

//a,b,z , A,B,Z の整数値は97,98,122,65,66,90

// N以下のすべての素数を列挙する(エラトステネスの篩)
void searchSosuu(int N) {
	vector<bool> sosuu(N); // ←これをグローバル変数にして１度だけ実行する
	for (int i = 0; i < N; i++) {
		sosuu[i] = true;
	}
	sosuu[0] = false;
	sosuu[1] = false;
	for (int i = 2; i < N; i++) {
		if (sosuu[i]) {
			for (int j = 2; i*j < N; j++) {
				sosuu[i*j] = false;
			}
		}
	}
}

//---最大公約数を求める---
int gcd(int a, int b) {
	if (a < b) {
		int tmp = a;
		a = b;
		b = tmp;
	}

	int r;
	while (r != 0) {
		a = b;
		b = r;
		r = a % b;
	}

	return b;
}

//---最小公倍数を求める--- << 注意！！上のgcdを用いる！！>>
int lcm(int a, int b) {
	int temp = gcd(a, b);
	return temp * (a / temp)*(b / temp);
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;

vector<pair<ll,int>> fac(ll n){
  vector<pair<ll,int>> ans;
  for(ll i=2;i*i<=n;i++){
    if(n%i)continue;
    ans.push_back(i,0);
    while(n%i==0){
      n /= i;
      ans.back().second++;
    }
  }
  if(n!=1) ans.push_back(n,1);
  return ans;
}

ll gcd(ll x, ll y) { return y ? gcd(y,x%y) : x;}

int main(){
  ll a,b;
  cin >> a >> b;
  ll g = gcd(a,b);
  auto f = fac(g);
  ll ans = f.size()+1;
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'std::vector<std::pair<long long int, int> > fac(ll)':
a.cc:10:18: error: no matching function for call to 'std::vector<std::pair<long long int, int> >::push_back(ll&, int)'
   10 |     ans.push_back(i,0);
      |     ~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<long long int, int>; _Alloc = std::allocator<std::pair<long long int, int> >; value_type = std::pair<long long int, int>]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:7: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair<long long int, int>; _Alloc = std::allocator<std::pair<long long int, int> >; value_type = std::pair<long long int, int>]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note:   candidate expects 1 argument, 2 provided
a.cc:16:25: error: no matching function for call to 'std::vector<std::pair<long long int, int> >::push_back(ll&, int)'
   16 |   if(n!=1) ans.push_back(n,1);
      |            ~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<long long int, int>; _Alloc = std::allocator<std::pair<long long int, int> >; value_type = std::pair<long long int, int>]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:7: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair<long long int, int>; _Alloc = std::allocator<std::pair<long long int, int> >; value_type = std::pair<long long int, int>]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note:   candidate expects 1 argument, 2 provided
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#define rep(i,n) for(int i=0;i<n;i++)
#define int long long
using namespace std;

int gcd(int a,int b){
	if(b==0) return a;
	return gcd(b,a%b);
}

vector<int> prime;

void PF(int n){
	int baro=2;
	while(n>=baro*baro){
		if(n%baro==0){
			n/=baro;
			prime.push_back(baro);
		}
		else{
			baro++;
		}
	}
	prime.push_back(n);
}

int main(){
	int a,b;
	cin>>a>>b;
	if(a<b){
		swap(a,b);
	}
	int sai=gcd(a,b);
	PF(sai);
	
	int ans=1,onaji;
	onaji=0;
	
	if(sai==1){
		cout<<sai<<endl;
		return 0;
	}
	
	rep(i,prime.size()){
		if(prime[i]!=onaji){
			ans++;
			onaji=prime[i];
		}
	}
	
	cout<<ans<<endl;
}


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;

class Program
{
    static void Main(string[] args) {
#if DEBUG
        //MyDebugger.MakeTestCase("../TextFile2.txt"); return;
        MyDebugger.Test(process, "../TextFile1.txt");
#else
        object ret = process(new StreamReader(Console.OpenStandardInput()));
        Console.WriteLine(ret);
#endif
    }

    static object process(TextReader input) {
        var spl = input.ReadLine().Split(' ');
        var a = long.Parse(spl[0]);
        var b = long.Parse(spl[1]);

        List<long> list = new List<long>();
        long max = (long)Math.Min(Math.Sqrt(a),Math.Sqrt(b))

        for (long i = 3; i <= max; i+=2) {
            if (a % i == 0 && b % i == 0) {
                bool isok = true;
                foreach (var v in list) {
                    if (i % v == 0) {
                        isok = false;
                        break;
                    }
                }
                if (isok) {
                    list.Add(i);
                }
            }
        }

        list.Add(1);
        if(a%2==0 && b%2==0){
            list.Add(2);
        }
        return list.Count;
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Diagnostics;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.IO;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Linq;
      |       ^~~~~~
a.cc:6:7: error: expected nested-name-specifier before 'System'
    6 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:10:22: error: 'string' has not been declared
   10 |     static void Main(string[] args) {
      |                      ^~~~~~
a.cc:10:31: error: expected ',' or '...' before 'args'
   10 |     static void Main(string[] args) {
      |                               ^~~~
a.cc:20:12: error: 'object' does not name a type
   20 |     static object process(TextReader input) {
      |            ^~~~~~
a.cc:49:2: error: expected ';' after class definition
   49 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:15:9: error: 'object' was not declared in this scope
   15 |         object ret = process(new StreamReader(Console.OpenStandardInput()));
      |         ^~~~~~
a.cc:16:9: error: 'Console' was not declared in this scope
   16 |         Console.WriteLine(ret);
      |         ^~~~~~~
a.cc:16:27: error: 'ret' was not declared in this scope
   16 |         Console.WriteLine(ret);
      |                           ^~~