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

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

//#define int long long
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define rep(i,n) for(int i=0;i<n;++i)
#define rep1(i,n) for(int i=1;i<n;++i)
#define exrep(i, a, b) for(ll i = a; i < b; i++)
#define out(x) cout << x << endl
#define EPS (1e-7)
#define gearup ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
typedef long double ld;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef vector<char> vc;
typedef vector<bool> vb;
typedef vector<double> vd;
typedef vector<string> vs;
typedef vector<pair<int,int> > vpii;
typedef vector<vector<int> > vvi;
typedef vector<vector<char> > vvc;
typedef vector<vector<bool> > vvb;
typedef vector<vector<double> > vvd;
typedef vector<vector<string> > vvs;
typedef vector<ll> vl;
typedef vector<vector<ll> > vvl;
typedef vector<vector<vector<ll> > > vvvl;
ll MOD = 1000000007;
const long long L_INF = 1LL << 60;
const int INF = 2147483647; // 2^31-1
const double PI = acos(-1);
//cout<<fixed<<setprecision(10);

template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;}
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;}
template<class T> void debug(T v){rep(i,v.size()) cout<<v[i]<<" ";cout<<endl;}
const ll dx[8] = {1, 1, 0, -1, -1, -1, 0, 1};
const ll dy[8] = {0, 1, 1, 1, 0, -1, -1, -1};

//nの素因数分解する
map<ll,ll> factorize(ll n){
    map<ll,ll> ret;
    ll x = n;
    for(ll i = 2; i*i<=n;i++){
        while(x % i == 0){
            ret[i]++;
            x /= i;
        }
    }
    if(x != 1)ret[x]++;
    return ret;
}
signed main()
{   
    gearup;
    ll n; cin >> n;
    if(n==1){
        out(0);
        return 0;
    }
    auto res = factorize(n);
    ll ans = 0;
    for(auto re:res){
        ll now = 1;
        ll num = re.first;
        int m = re.second;åç
        rep(i,m){
            now*=num;
            if(n % now == 0){
                n/=now;
                ans++;
            }
        }
    }
    out(ans);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:68:27: error: '\U000000e5\U000000e7' was not declared in this scope
   68 |         int m = re.second;åç
      |                           ^~
a.cc:69:13: error: 'i' was not declared in this scope
   69 |         rep(i,m){
      |             ^
a.cc:7:30: note: in definition of macro 'rep'
    7 | #define rep(i,n) for(int i=0;i<n;++i)
      |                              ^
Language: C++

#include <cstdio>
#include <algorithm>
#include <set>

using namespace std;

#define INF 200000005

long long N;
bool isPrime[INF];
set <int> primes;
int ans;

int main() {
    scanf("%lld", &N);
    for (int i = 2; i <= INF; i++) isPrime[i] = true;
    for (long long i = 2; i <= INF; i++) {
        if (isPrime[i]) {
            for (long long j = i * i; j <= INF; j += i) {
                isPrime[j] = false;
            }
        }
    }
    for (long long i = 2; i <= INF; i++) {
        if (!isPrime[i]) continue;
        long long cur = i;
        while (cur <= INF) {
            primes.push_back(cur);
            cur *= i;
        }
    }
    for (int prime : primes) {
        if (N % prime == 0) {
            //printf("%d\n", prime);
            ans++;
            N /= prime;
        }
        if (N == 1) break;
    }
    if (ans == 0) printf("%d\n", N == 1 ? 0 : 1);
    else printf("%d\n", ans);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:20: error: 'class std::set<int>' has no member named 'push_back'
   28 |             primes.push_back(cur);
      |                    ^~~~~~~~~
Language: Java

import java.util.Map.Entry;
import java.util.*;
import java.math.*;
import org.w3c.dom.css.Counter;

public class Main{
    public static void main(final String[] args){

        final Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        int ans = 0;
        int value = 0;

        int[] accum = new int[43];
        accum[0] = 0;
        for (int i=1; i<42; i++){
            accum[i+1] = i + accum[i];
        }

        int div = 2;
        int count = 0;
        while(N % div == 0){
            N /= div;
            count ++;
            }
        }
        // 2が何個あったかで処理。
        for(int i = 0; i < size; i++){
            value = accum.get(i);
            if(count < value){
                ans += i;
                break;
            }
        }

        div = 3;
        count = 0;
        while(div * div <= N){
            if(N % div == 0){
                N /= div;
                count ++;
            }else{
                // その素数が何個あったかで処理。
                for(int i = 0; i < size; i++){
                    value = accum.get(i);
                    if(count < value){
                        ans += i;
                        break;
                    }
                }
                div += 2;
                count = 0;
            }
        }
        if(N != 1){
            ans ++;
        }

        System.out.println(ans);
    }
}

Compiler output:
Main.java:28: error: illegal start of type
        for(int i = 0; i < size; i++){
        ^
Main.java:28: error: > or ',' expected
        for(int i = 0; i < size; i++){
                               ^
Main.java:28: error: <identifier> expected
        for(int i = 0; i < size; i++){
                                  ^
Main.java:36: error: <identifier> expected
        div = 3;
           ^
Main.java:37: error: <identifier> expected
        count = 0;
             ^
Main.java:38: error: illegal start of type
        while(div * div <= N){
        ^
Main.java:38: error: <identifier> expected
        while(div * div <= N){
                 ^
Main.java:38: error: <identifier> expected
        while(div * div <= N){
                       ^
Main.java:38: error: <identifier> expected
        while(div * div <= N){
                            ^
Main.java:55: error: illegal start of type
        if(N != 1){
        ^
Main.java:55: error: <identifier> expected
        if(N != 1){
            ^
Main.java:59: error: <identifier> expected
        System.out.println(ans);
                          ^
Main.java:59: error: <identifier> expected
        System.out.println(ans);
                              ^
Main.java:61: error: class, interface, enum, or record expected
}
^
14 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

const int64_t INF = pow(10, 6);

int main() {
  int64_t n;
  cin >> n;
  int64_t array[INF];
  for(int64_t i = 0; i * i < n; i++) {
    while(n % i == 0) {
      array[i]++;
    }
  }
  int64_t ans = 0;
  for(int64_t i = 0; i < IMF; i++) {
    if(array[i] > 0) {
      for(int64_t j = 1; j < array[i]; j++) {
        array[i] -= j;
        ans++;
      }
    }
  }
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:26: error: 'IMF' was not declared in this scope; did you mean 'INF'?
   17 |   for(int64_t i = 0; i < IMF; i++) {
      |                          ^~~
      |                          INF
Language: C++

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

typedef long long ll;
#define nl "\n"
#define ff first
#define ss second
#define lb lower_bound
#define ub upper_bound
#define pb push_back
#define pp pop_back
#define bs binary_search
#define pll pair<ll,ll>
#define ppll pair<ll,pll>
#define sll stack<ll>
#define qll queue<ll>
#define vll vector<ll>
#define vpll vector<pll>
#define vc vector <char>
#define vvll vector<vector<ll>>
#define all(x) x.begin(),x.end()
#define loop(i,s,n) for(ll i=s;i<n;i++)
#define test ll t; cin>>t; while(t--)
#define fast_io ios_base::sync_with_stdio(false);cin.tie(NULL);
ll mod = 1000000007;  double pi = 3.1415926535;

bool isPerfectSquare(long double x)
{
	// Find floating point value of
	// square root of x.
	long double sr = sqrt(x);

	// If square root is an integer
	return ((sr - floor(sr)) == 0);
}

void solve()
{
	ll n;	cin >> n;
	if (n == 1)
	{
		cout << "0" << nl;
		return;
	}
	ll cnt = 0;
	unordered_map<ll, ll> M;
	M[1] = 1;
	while (n > 1)
	{
		cnt++;
		ll mn = 9e18;
		loop(i, 1, sqrt(n) + 1)
		{
			if (!M[i] && n % i == 0)	mn = min(mn, i);
			if (!M[n / i] && n % i == 0)	mn = min(mn, n / i);
		}
		M[mn]++;
		// cout << n << " " << mn << nl;
		n /= mn;
	}
	if (n == 0 && mn==9e18)	cnt--;
	cout << cnt << nl;
}

int main() {
	fast_io;
#ifndef ONLINE_JUDGE
	freopen("input1.txt", "r", stdin);
	freopen("output1.txt", "w", stdout);
#endif

	solve();
	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:61:23: error: 'mn' was not declared in this scope; did you mean 'n'?
   61 |         if (n == 0 && mn==9e18) cnt--;
      |                       ^~
      |                       n
Language: C++

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

int main(){
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);

	#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
	#endif

	long long int n;
	cin >> n;
	long long int ans = 0;
	for(long long int i = 0; i*i <= N; i++) {
		if(n%i != 0) continue;
		long long int num = 0;
		while(n % i == 0) {
			n /= i;
			num += 1;
		}
		for(long long int j = 1; ; j++){
			if(num >= j) {
				num -= j;
				ans += 1;
			}else break;
		}
	}
	if(n != 1) {
		ans += 1;
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:41: error: 'N' was not declared in this scope
   17 |         for(long long int i = 0; i*i <= N; i++) {
      |                                         ^
Language: C++

#include <iostream>

using namespace std;
int main(){
  long long n;
  cin >> n;
  map<int,int> cnt;
  
  for(long long i = 0; n >= i*i; i++){
    while(n%i == 0){
      cnt[i]++;
      n/=i;
    }
  }
  if(n>1)cnt[n]++;
  int ans = 0;
  for(auto itr : cnt){
    for(int i = 1; itr >= i; i++){
      itr -= i;
      ans++;
    }
  }
  cout << ans <<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'map' was not declared in this scope
    7 |   map<int,int> cnt;
      |   ^~~
a.cc:2:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    1 | #include <iostream>
  +++ |+#include <map>
    2 | 
a.cc:7:7: error: expected primary-expression before 'int'
    7 |   map<int,int> cnt;
      |       ^~~
a.cc:11:7: error: 'cnt' was not declared in this scope; did you mean 'int'?
   11 |       cnt[i]++;
      |       ^~~
      |       int
a.cc:15:10: error: 'cnt' was not declared in this scope; did you mean 'int'?
   15 |   if(n>1)cnt[n]++;
      |          ^~~
      |          int
a.cc:17:18: error: 'cnt' was not declared in this scope; did you mean 'int'?
   17 |   for(auto itr : cnt){
      |                  ^~~
      |                  int
Language: C++

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

int main(){
	int64_t n; cin >> n;
  	int64_t p=n;
  	int mod=2;
  	vector<int> A(int(math.sqrt(n)),0);
    int m=0;
  	int ans =0;
  	while(p > 1){
      	
    	if(p%mod==0){
        	A[m]++;
          p/=mod;
         
          	
          	
          	
          
        }
      	else{
          	mod++;
        	m++;
        }
    }
  	
  	for(int i=0; i<int(math.sqrt(n));i++){
      	
    	for(int j=1 ; j<20 ; j++){
          	
        	if(A[i]>=j){
              	
            	ans++;
              	A[i]-=j;
            }
          	else{break;}
          	
        }
    }
  	cout << ans << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: 'math' was not declared in this scope
    8 |         vector<int> A(int(math.sqrt(n)),0);
      |                           ^~~~
Language: C++

n = int(input())

ans = 0

i = 2
num = n
while i * i <= n:
  cnta = 0
  cntb = 0
  while num % i == 0:
    num /= i
    if cnta == cntb:
      ans += 1
      cnta = 0
      cntb += 1
    else:
      cnta += 1
  i += 1
  
if ans == 0:
  flag = 1
  j = 2
  num2 = n
  while j * j <= num:
    if num % j == 0:
      flag = 0
      bleak
    j += 1
  if flag:
    ans += 1

print(ans)

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: Java

import java.util.Map.Entry;
import java.util.*;
import java.math.*;
import org.w3c.dom.css.Counter;
  
public class Main{
    public static void main(final String[] args){
 
        final Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        int ans=0;
        long q =2;
        long keep =N;

        if(N==1){
            System.out.println(0);
            return;
        }

        while(q*q<N){
            if(N%q ==0){
                N = N/q;
                ans ++;
              if(N%q==0&&N%(q*q)!=0）{
              N=N/q;
              }
            }
            q++;
        }
        if(N >= q){ans++;}
       
            System.out.println(ans);
    }
}


Compiler output:
Main.java:24: error: illegal character: '\uff09'
              if(N%q==0&&N%(q*q)!=0?{
                                   ^
1 error
Language: Java

import java.util.Map.Entry;
import java.util.*;
import java.math.*;
import org.w3c.dom.css.Counter;
  
public class Main{
    public static void main(final String[] args){
 
        final Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        int ans=0;
        long q =2;
        long keep =N;

        if(N==1){
            System.out.println(0);
            return;
        }

        while(q*q<N){
            if(N%q ==0){
                N = N/q;
                ans ++;
              if（N%q==0&&N%(q*q)!=0）{
              N=N/q;
              }
            }
            q++;
        }
        if(N >= q){ans++;}
       
            System.out.println(ans);
    }
}


Compiler output:
Main.java:24: error: illegal character: '\uff08'
              if?N%q==0&&N%(q*q)!=0?{
                ^
Main.java:24: error: illegal character: '\uff09'
              if?N%q==0&&N%(q*q)!=0?{
                                   ^
Main.java:24: error: not a statement
              if?N%q==0&&N%(q*q)!=0?{
                       ^
3 errors
Language: Java

import java.util.Map.Entry;
import java.util.*;
import java.math.*;
import org.w3c.dom.css.Counter;
  
public class Main{
    public static void main(final String[] args){
 
        final Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        int ans=0;
        long q =2;
        long keep =N;

        if(N==1){
            System.out.println(0);
            return;
        }

        while(q*q<N){
            if(N%q ==0){
                N = N/q;
                ans ++;
              if（N%q==0&&N%(q*q)!=0）{
              N=N/q
              }
            }
            q++;
        }
        if(N >= q){ans++;}
       
            System.out.println(ans);
    }
}


Compiler output:
Main.java:24: error: illegal character: '\uff08'
              if?N%q==0&&N%(q*q)!=0?{
                ^
Main.java:24: error: illegal character: '\uff09'
              if?N%q==0&&N%(q*q)!=0?{
                                   ^
Main.java:24: error: not a statement
              if?N%q==0&&N%(q*q)!=0?{
                       ^
Main.java:25: error: ';' expected
              N=N/q
                   ^
4 errors
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define WDSIZE 10000000
typedef long long ll;
#define BUFSIZE 1000000000000

ll n;
int count = 0;
int divisor[WDSIZE] = {0};

//その約数が使われたことがあるか確認

int used_check(ll b){
  for(int i = 0;i < BUFSIZE; i++){
    if(divisor[i] == 0) break;
    if(divisor[i] == b) return 1;
  }
  return 0;
}

///素数判定
int prime(ll num){
  if(num == 1) return 1;
  for(ll i = 2;i <= sqrt(num);i++){
    if(num % i == 0){
      return 1;
    }
  }
    return 0; //素数なら０を返す
}


int frag = 0 ; //塁乗だったら０　違ったら　１にする
int rem; //一時的に割り切れる数を記憶
///素数の累乗かcheck

int conform_check(ll given){
  frag = 0;
  for(ll i = 2;i <= sqrt(given);i++){
    if(given % i == 0 && prime(i) == 0){
       rem = i;
       break;
     }
   }
  while(given > 1){

    if(given % rem == 0){
      given = given/rem;
    }else{
      frag = 1;
      break;
    }
  }
  if(frag == 1) return 0;
  else  return 1;
}

int flag_fin; //１だったらもう操作できない　終了条件判定


//入力した値を　まだ割ったことのない数かつ、素数or素数の累乗で割る関数

int fact(ll a){
  for(ll i = 2;i <= a;i++){
    if(a % i == 0){
      if(used_check(i) == 1) continue; //使われてない確認
      else if(prime(i) == 0 || conform_check(i) == 1){ //素数か素数の累乗ならOK
        divisor[count] = i;　///割った数を記憶　割るのは下のcal内
        count++;
        return 0;
      }
    }
  }
  flag_fin = 1;
  return 0;
}


int cal(ll given_number){
  fact(given_number);
  if(divisor[count - 1] == 0 || prime(given_number) == 0 || flag_fin == 1)
  return 0;
  cal(given_number/divisor[count - 1]);
}


int main(void){
  scanf("%lld",&n);
  if(prime(n) == 0){
    printf("1");
    exit(0);
  }
  cal(n);
  printf("%d",count);

  return 0;
}


Compiler output:
main.c: In function 'fact':
main.c:70:28: error: stray '\343' in program
   70 |         divisor[count] = i;<U+3000>///<U+5272><U+3063><U+305F><U+6570><U+3092><U+8A18><U+61B6><U+3000><U+5272><U+308B><U+306E><U+306F><U+4E0B><U+306E>cal<U+5185>
      |                            ^~~~~~~~
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define WDSIZE 10000000
typedef unsigned long ll;
#define BUFSIZE 1000000000000

ll n,k;
ll answer = 0;
int count = 0;
int divisor[BUFSIZE] = {0};
int tinko = 0;



int used_check(ll b){
  for(int i = 0;i < BUFSIZE; i++){
    if(divisor[i] == 0) break;
    if(divisor[i] == b) return 1;
  }
  return 0;
}


int prime(ll num){
  if(num == 1) return 1;
  for(ll i = 2;i <= sqrt(num);i++){
    if(num%i == 0){
      return 1;
    }
  }
    return 0; //素数なら０を返す
}

int rem;

int conform_check(ll given){
  for(ll i = 2;i <= sqrt(given);i++){
    if(given % i == 0 && prime(i) == 0){
       rem = i;
       break;
     }
  }
  int rem4; //べき乗結果のキャスト
  for(ll i = 2;i < BUFSIZE;i++){
    if(rem4 > given) break;
    double rem3 = pow(rem,i);
    rem4 = (int)rem3;
    if(given == rem4)  return 1;  //適合したら１を返す

  }
  return 0;
}

int flag_fin;

int fact(ll a){
  for(ll i = 2;i <= a;i++){
    if(a % i == 0){
      if(used_check(i) == 1) continue; //使われてない確認
      else if(prime(i) == 0 || conform_check(i) == 1){
        divisor[count] = i;
        count++;
        return 0;
      }
    }
  }
  flag_fin = 1;
  return 0;
}


int cal(ll given_number){
  fact(given_number);
  if(flag_fin == 1) return 0;
  if(prime(given_number) == 0)   return 0;
  if(divisor[count - 1] == 0) return 0;
  cal(given_number/divisor[count - 1]);
}


int main(void){
  scanf("%lld",&n);
  if(prime(n) == 0){
    printf("1");
    exit(0);
  }
  cal(n);

  printf("%lld",count);

  return 0;
}


Compiler output:
/usr/bin/ld: /tmp/ccd5ruBn.o: in function `prime':
main.c:(.text+0x11d): undefined reference to `sqrt'
/tmp/ccd5ruBn.o: in function `conform_check':
main.c:(.text+0x17e): relocation truncated to fit: R_X86_64_PC32 against symbol `rem' defined in .bss section in /tmp/ccd5ruBn.o
/usr/bin/ld: main.c:(.text+0x200): undefined reference to `sqrt'
main.c:(.text+0x264): relocation truncated to fit: R_X86_64_PC32 against symbol `rem' defined in .bss section in /tmp/ccd5ruBn.o
/usr/bin/ld: main.c:(.text+0x27f): undefined reference to `pow'
/tmp/ccd5ruBn.o: in function `fact':
main.c:(.text+0x379): relocation truncated to fit: R_X86_64_PC32 against symbol `flag_fin' defined in .bss section in /tmp/ccd5ruBn.o
/tmp/ccd5ruBn.o: in function `cal':
main.c:(.text+0x3a2): relocation truncated to fit: R_X86_64_PC32 against symbol `flag_fin' defined in .bss section in /tmp/ccd5ruBn.o
collect2: error: ld returned 1 exit status
Language: Java

import java.util.Map.Entry;
import java.util.*;
import java.math.*;
import org.w3c.dom.css.Counter;
  
public class Main{
    public static void main(final String[] args){
 
        final Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        int ans=0;
        long q =2;

        if(N==1){
            System.out.println(0);
            return;
        }

        while(q*q<=N){72
            if(N%q ==0){
                N = N/q;
                ans ++; 
            }
            q++;
        }
        if(ans == 0){ans++;}
            System.out.println(ans);
    }
}

Compiler output:
Main.java:19: error: not a statement
        while(q*q<=N){72
                      ^
Main.java:19: error: ';' expected
        while(q*q<=N){72
                        ^
2 errors
Language: Java


import java.util.Map.Entry;
import java.util.*;
import java.math.*;
import org.w3c.dom.css.Counter;
  
public class Main{
    public static void main(final String[] args){
 
        final Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        int ans=0;
        long q =2;

        if(N==1){
            System.out.println(0);
            return;
        }

        while(q*q<=N){72
            if(N%q ==0){
                N = N/q;
                ans ++; 
            }
            q++;
        }
        if(ans == 0){ans++;}
            System.out.println(ans);
    }
}

Compiler output:
Main.java:20: error: not a statement
        while(q*q<=N){72
                      ^
Main.java:20: error: ';' expected
        while(q*q<=N){72
                        ^
2 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){long N,x=0;cin>>N;
           for(long i=2;i<sqrt(N)+1;i++)
           {if(N%i==0){int a=0;while(N%i==0){a++;N/=i;}
int b=1,c=1;while(a>b){c++;b+=c;}if(a!=b)c--;x+=c;
                      }if(N!=1)x++;cout<<x<<endl;}                 

Compiler output:
a.cc: In function 'int main()':
a.cc:7:51: error: expected '}' at end of input
    7 |                       }if(N!=1)x++;cout<<x<<endl;}
      |                                                   ^
a.cc:3:11: note: to match this '{'
    3 | int main(){long N,x=0;cin>>N;
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){long N,x=0;cin>>N;
           for(long i=2;i<sqrt(N)+1;i++)
             if(N%i==0){int a=0;while(N%i==0){a++;N/=i;}
int b=1,c=1;while(a>b){c++;b+=c;}if(a!=b)c--;x+=c;
    if(N!=1)x++;cout<<x<<endl;}                 

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected '}' at end of input
    7 |     if(N!=1)x++;cout<<x<<endl;}
      |                                ^
a.cc:3:11: note: to match this '{'
    3 | int main(){long N,x=0;cin>>N;
      |           ^
Language: Java

package app;
import java.util.Map.Entry;
import java.util.*;
import java.math.*;
import org.w3c.dom.css.Counter;
  
public class D{
    public static void main(final String[] args){
 
        final Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        int ans=0;
        long q =2;

        if(N==1){
            System.out.println(0);
            return;
        }

        while(q*q<=N){
            if(N%q ==0){
                N = N/q;
                ans ++; 
            }
        }
        if(ans==0){ans++;}
       
            System.out.println(ans);
        
    }
}

Compiler output:
Main.java:7: error: class D is public, should be declared in a file named D.java
public class D{
       ^
1 error
Language: C++

 #include <stdio.h>
#include <iostream>
#include <math.h>
using namespace std;
int main(){
 long int n,a; 
 int k=1;
 int result;
  cin >> n;
  a=2
      while (n >= a * a) {
        // a で割り切れたら、a は素因数
        // そして、割られる数を a で割る
        // a で割り切れなかったら、 a を 1 増加させる
        if (n % a == 0) {
            n /= a;
          	k++;
        } else {
          	result+=int((-1+sqrt((1+8*k)*1.0))/2);
          	k=1;
            a++;
        }
    }
  cout << result ;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: expected ';' before 'while'
   10 |   a=2
      |      ^
      |      ;
   11 |       while (n >= a * a) {
      |       ~~~~~
Language: C++

 #include <stdio.h>
#include <iostream>
#include <math.h>

int main(){
 long int n,a;
 int k=1;
 int result;
      while (n >= a * a) {
        // a で割り切れたら、a は素因数
        // そして、割られる数を a で割る
        // a で割り切れなかったら、 a を 1 増加させる
        if (n % a == 0) {
            printf("%d * ", a);
            n /= a;
          	k++;
        } else {
          	result+=int((-1+sqrt((1+8*k)*1.0))/2);
          	k=1;
            a++;
        }
    }
  cout << result ;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |   cout << result ;
      |   ^~~~
      |   std::cout
In file included from a.cc:2:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

bool isPrime(ll x){
    ll i;
    if(x < 2)return 0;
    else if(x == 2) return 1;
    if(x%2 == 0) return 0;
    for(i = 3; i*i <= x; i += 2) if(x%i == 0) return 0;
    return 1;}

int main(){
  ll ans=0;
  ll n;
  cin >>n;
  ll k=n;
  queue<int> p;
  for(ll i = 2; i*i<=k; i++){
    int g=0,top=1;
    while(n%i==0){
      n/=i;
      g++;
      if(g==top){ans++;top++;g=0;}
      }
  }
  if(n!=1)ans++;
  cout << ans << endl;
}

Compiler output:
a.cc:1:14: error: 'll' was not declared in this scope
    1 | bool isPrime(ll x){
      |              ^~
a.cc: In function 'int main()':
a.cc:10:3: error: 'll' was not declared in this scope
   10 |   ll ans=0;
      |   ^~
a.cc:11:5: error: expected ';' before 'n'
   11 |   ll n;
      |     ^~
      |     ;
a.cc:12:3: error: 'cin' was not declared in this scope
   12 |   cin >>n;
      |   ^~~
a.cc:12:9: error: 'n' was not declared in this scope
   12 |   cin >>n;
      |         ^
a.cc:13:5: error: expected ';' before 'k'
   13 |   ll k=n;
      |     ^~
      |     ;
a.cc:14:3: error: 'queue' was not declared in this scope
   14 |   queue<int> p;
      |   ^~~~~
a.cc:14:9: error: expected primary-expression before 'int'
   14 |   queue<int> p;
      |         ^~~
a.cc:15:9: error: expected ';' before 'i'
   15 |   for(ll i = 2; i*i<=k; i++){
      |         ^~
      |         ;
a.cc:15:17: error: 'i' was not declared in this scope
   15 |   for(ll i = 2; i*i<=k; i++){
      |                 ^
a.cc:15:22: error: 'k' was not declared in this scope
   15 |   for(ll i = 2; i*i<=k; i++){
      |                      ^
a.cc:20:18: error: 'ans' was not declared in this scope
   20 |       if(g==top){ans++;top++;g=0;}
      |                  ^~~
a.cc:23:11: error: 'ans' was not declared in this scope
   23 |   if(n!=1)ans++;
      |           ^~~
a.cc:24:3: error: 'cout' was not declared in this scope
   24 |   cout << ans << endl;
      |   ^~~~
a.cc:24:11: error: 'ans' was not declared in this scope
   24 |   cout << ans << endl;
      |           ^~~
a.cc:24:18: error: 'endl' was not declared in this scope
   24 |   cout << ans << endl;
      |                  ^~~~
Language: C

#include <bits/stdc++.h>

using namespace std;

int calc(int e) {
	if(e == 1) return 1;

	int len = 0;

	for(int i=1; e>1; i++) {
		e -= i;
		len++;
	}

	return len;
}

int main() {
	long long n; cin>>n;
	int ans = 0; long long p = 2;

	while(n > 1 && p <= 1e6) {
		int e = 0;

		while(n % p == 0) {
			e++;
			n /= p;
		}


		if(e > 0) {
			//printf("%lld^%d : calc(%d) = %d\n", p, e, e, calc(e));
			ans += calc(e);
		}

		p++;
	}

	if(n > 1) ans++;

	cout<<ans<<endl;
	
	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>
using namespace std;
typedef long long ll;
#define REP(i, n) for(int i = 0; i < n; ++i)
#define INF (2e9)

int main() {
  ll n;
  cin >> n;
  ll max = 1000000;
  
  vector<ll> vec(max);
  ll num = n;

  for(int i = 2; i <= min(max, n); i++) {
    while(num%i == 0) {
      vec[i]++;
      num /= i;
    }
  }

  ll cnt = 0;

  for(int i = 2; i <= min(max, n); i++) {
    ll tmp = 1; 
    while(vec[i] >= tmp) {
      cnt++;
      vec[i] -= tmp;
      tmp++;
    }
  }

  cout << max(1, cnt) << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:14: error: 'max' cannot be used as a function
   33 |   cout << max(1, cnt) << endl;
      |           ~~~^~~~~~~~
Language: C

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

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

lint lcm(lint x, lint y) { return x/gcd(x,y)*y; }

lint C(lint n, lint k) {
  if(n == k) { return 1; }
  else if(n < k) { return 0; }
  else if(k == 0) { return 1; }
  else if(k == 1) { return n; }
  else return C(n-1,k-1) + C(n-1,k);
}

lint P(lint n, lint k) {
  if(k == 1) { return n; }
  return (n*(P(n-1,k-1)%1000000007)%1000000007);
}


int main() {
  lint n; cin >> n;

  lint n0=n, ans=0;
  map<lint,lint> mp;
  set<lint> st;

  for(lint i=2;i*i<=n;i++) {
    while(n0%i == 0) {
      n0 /= i;
      mp[i]++;
      st.insert(i);
    }
  }

  if(n0 > 1) {
    mp[n0]++;
    st.insert(n0);
  }

  for(set<lint>::iterator itr=st.begin();itr!=st.end();itr++) {
    lint num=0;
    for(num=0;;num++) {
      if(num*(num+1)/2 > mp[*itr]) { break; }
    }
    ans += num-1;
  }

  cout << ans << endl;
  return 0;
}

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

import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();

        List<Integer> factors = primeFactor(N);

        int count =0;
//        for (int i = 0; i < factors.size() ; i++) {
        for (int pow;factors.) {
            int increase=1;
            while(pow-increase>=0){
                pow -= increase;
                increase++;
                count++;
            }
        }


        System.out.println(count);
    }

    static List<Integer> primeFactor(long N){

        List<Integer> res = new ArrayList<>();

        for (long i = 2; i*i <=N ; i++) {
            int count =0;
            while(N%i==0){
                N /= i;
                count++;
            }
            if(count!=0)
            res.add(count);
        }
        if(N!=1){
            res.add(1);
        }
        return res;
   }


}

Compiler output:
Main.java:13: error: <identifier> expected
        for (int pow;factors.) {
                             ^
1 error
Language: C++

int main(){
  long long n;
  cin>>n;

  vector< pair <long long, int> > fs;
  for(long long i=2;i*i<=n;++i){
    int x=0;
    while(n%i==0){
      n/=i;
      ++x;
    }
    if(x!=0) fs.push_back(make_pair(i,x));
  }
  if (n!=1) fs.push_back(make_pair(n,1));

  int ans=0;
  for(auto p:fs){
    int x=p.second;
    int b=1;
    while(x-b>=0){
      x-=b;
      b+=1;
      ans++;
    }
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin>>n;
      |   ^~~
a.cc:5:3: error: 'vector' was not declared in this scope
    5 |   vector< pair <long long, int> > fs;
      |   ^~~~~~
a.cc:5:11: error: 'pair' was not declared in this scope
    5 |   vector< pair <long long, int> > fs;
      |           ^~~~
a.cc:5:17: error: expected primary-expression before 'long'
    5 |   vector< pair <long long, int> > fs;
      |                 ^~~~
a.cc:12:14: error: 'fs' was not declared in this scope
   12 |     if(x!=0) fs.push_back(make_pair(i,x));
      |              ^~
a.cc:12:27: error: 'make_pair' was not declared in this scope
   12 |     if(x!=0) fs.push_back(make_pair(i,x));
      |                           ^~~~~~~~~
a.cc:14:13: error: 'fs' was not declared in this scope
   14 |   if (n!=1) fs.push_back(make_pair(n,1));
      |             ^~
a.cc:14:26: error: 'make_pair' was not declared in this scope
   14 |   if (n!=1) fs.push_back(make_pair(n,1));
      |                          ^~~~~~~~~
a.cc:17:14: error: 'fs' was not declared in this scope
   17 |   for(auto p:fs){
      |              ^~
a.cc:26:3: error: 'cout' was not declared in this scope
   26 |   cout<<ans<<endl;
      |   ^~~~
a.cc:26:14: error: 'endl' was not declared in this scope
   26 |   cout<<ans<<endl;
      |              ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <math.h>
int main(){
vector<int> div,div_num;
int maxNum=0;
 long int n;
  cin >> n;
  while(n>1){
  	for(int i = 2;i*i<=n;i++){
    	if(n%i==0){
        	div.push_back(i);
          	int k =int(log(n)/log(i));
        	div_num.push_back(k);
          	maxNum+=int((-1+pow(1+8*k,1/2))/2);
        	n=n/i;
        }
    }
  }
  cout << maxNum;	

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'vector' was not declared in this scope
    5 | vector<int> div,div_num;
      | ^~~~~~
a.cc:5:1: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:5:8: error: expected primary-expression before 'int'
    5 | vector<int> div,div_num;
      |        ^~~
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> n;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:21: error: request for member 'push_back' in 'div', which is of non-class type 'div_t(int, int) noexcept'
   12 |                 div.push_back(i);
      |                     ^~~~~~~~~
a.cc:14:17: error: 'div_num' was not declared in this scope; did you mean 'div_t'?
   14 |                 div_num.push_back(k);
      |                 ^~~~~~~
      |                 div_t
a.cc:20:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |   cout << maxNum;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

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

int main(){
  int tot = 0;
  ll n;
  cin >> n;
  int sq_n = sqrt(n);
  vector<int> f;
  f.resize(sq_n);
  for (int i=2;i<=n;i++){
    int count = 0;
    while(n%i ==0){
      n /= i;
      count +=1;
    }
    int ccount = 0;
    for(int i=1;i<=count;i++){
      int copy = count;
      copy -= i;
      ccount +=1;
      if (copy<=i){
        break;
      }
    }
    tot += ccount;
    /*if(count > 0){
    cout << i <<": "<< count <<", "<< ccount << " times"<<endl;
  }*/
  }
  cout << tot << endl;
  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: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		long n = sc.nextLong();
		long ans = 0;
        int p = 2;
        double k = Math.sqrt(n);
        while(n>=2){for(int i=p;i<=k;i++){if(n%i==0){n/=i;p=i+1;ans++;break;}
                                                     else{if(i+1>k){ans++;n=1;break;}
                                                         }
                                         }double k = Math.sqrt(n);
                   }
		System.out.println(ans);
	}
}


Compiler output:
Main.java:12: error: variable k is already defined in method main(String[])
                                         }double k = Math.sqrt(n);
                                                 ^
1 error
Language: C++

// питер паркер эй! люблю мэри джэйн)
#include <bits/stdc++.h>
typedef long long int lli;
typedef unsigned long long int ulli;
typedef long double ld;
#define rapgame ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define pb push_back
#define eb emplace_back
#define vi vector <int>
#define vlli vector <lli>
#define vulli vector <ulli>
#define vchar vector <char>
#define vstr vector <string>
#define vb vector <bool>
#define fst first
#define sec second
#define srt(a) sort(a.begin(),a.end())
#define vpii vector <pair <int,int> >
#define pii pair <int,int> 
#define vplli vector <pair <lli,lli> >
#define vpulli vector <pair <ulli,ulli> >
#define vvi vector <vector <int> >
#define vvpii vector <vector <pair <int,int>> >
#define vvb vector <vector <bool> >
#define fr(i,n) for (int i = 0; i < (n); i++)
#define frbig(i,n) for (lli i = 0; i < (n); i++)
#define fra(i,a,n) for (lli i = a; i < (n); i++)
#define run(c,s) for(auto c:s) 
#define read(n) int n; cin >> n;
#define read2(x,y) int x,y; cin >> x >> y;
#define read2ll(x,y) long long int x,y; cin >> x >> y;
#define readll(n) lli n; cin >> n;
#define watch(x) cout << (#x) << " is " << (x) << endl
#define print_array(x) fr(i,x.size()) cout << x[i] << " ";
using namespace std;
const lli MOD = 1e9 + 7;
int main(){
    rapgame
    readll(n);
    int ans=0;
    for(int i=2;1ll*i*i<=n;++i){
        if(x%i==0){
            int k=0,a=0;
            while(x%i==0){
                k++;
                x/=i;
            }
            while(k>=a){
                ans++;
                k-=a;
                a++;
            }
        }
    }
    cout << ans << '\n';
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:12: error: 'x' was not declared in this scope
   42 |         if(x%i==0){
      |            ^
Language: C++

// питер паркер эй! люблю мэри джэйн)
#include <bits/stdc++.h>
typedef long long int lli;
typedef unsigned long long int ulli;
typedef long double ld;
#define rapgame ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define pb push_back
#define eb emplace_back
#define vi vector <int>
#define vlli vector <lli>
#define vulli vector <ulli>
#define vchar vector <char>
#define vstr vector <string>
#define vb vector <bool>
#define fst first
#define sec second
#define srt(a) sort(a.begin(),a.end())
#define vpii vector <pair <int,int> >
#define pii pair <int,int> 
#define vplli vector <pair <lli,lli> >
#define vpulli vector <pair <ulli,ulli> >
#define vvi vector <vector <int> >
#define vvpii vector <vector <pair <int,int>> >
#define vvb vector <vector <bool> >
#define fr(i,n) for (int i = 0; i < (n); i++)
#define frbig(i,n) for (lli i = 0; i < (n); i++)
#define fra(i,a,n) for (lli i = a; i < (n); i++)
#define run(c,s) for(auto c:s) 
#define read(n) int n; cin >> n;
#define read2(x,y) int x,y; cin >> x >> y;
#define read2ll(x,y) long long int x,y; cin >> x >> y;
#define readll(n) lli n; cin >> n;
#define watch(x) cout << (#x) << " is " << (x) << endl
#define print_array(x) fr(i,x.size()) cout << x[i] << " ";
using namespace std;
const lli MOD = 1e9 + 7;
int main(){
    rapgame
    readll(n);
    int ans=0;
    for(int i=2;i*i<=n;++i){
        if(x%i==0){
            int k=0,a=0;
            while(x%i==0){
                k++;
                x/=i;
            }
            while(k>=a){
                ans++;
                k-=a;
                a++;
            }
        }
    }
    cout << ans '\n';
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:12: error: 'x' was not declared in this scope
   42 |         if(x%i==0){
      |            ^
a.cc:55:16: error: expected ';' before '\xa'
   55 |     cout << ans '\n';
      |                ^~~~~
      |                ;
Language: Java

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        long num = sc.nextLong();
        if(num == 1){
            System.out.println(0);
            return;
        }

        long num2 = num;
        Map map = new HashMap<Long, Long>();
        for(long i=2; i*i < num; i++){
            // <2, count>, <3, count>...
            long count = 0;
            while(num2 % i == 0){
                num2 = num2 / i;
                count++;
            }
            map.put(i, count);
        }

        int count = 0;
        // 素数ごとにカウントする
        Set<Map.Entry<Long, Long>> set = map.entrySet();
        for(Map.Entry<Long, Long> entry : set){
            // 指数を順に減らしていく
            long sisu = entry.getValue();
            for(long i=0; i < sisu; i++){
                sisu -= i;
                count++;
            }
            // 余った分は最後に足すので関係なし
        }

        if(count != 0){
            System.out.println(count);
        }else{
            System.out.println(1);
        }
    }


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

#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
    int N;
    cin >> N;
    map<int,int>Map;
    for(int i = 2; i*i <= N; i++) {
        while(N%i == 0) {
            N/=i;
            Map[i]++;
        }
    }
    if(i != 1) {
        Map[N]++;
    }
    int ans = 0;
    for(pair<int,int> P:Map) {
        for(int i = 1; i <= P.second; i++) {
            ans++;
            P.second-=i;
        }
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'i' was not declared in this scope
   14 |     if(i != 1) {
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
int64_t MOD=1000000007;

int main() {
  int64_t N,ans=0;
  cin>>N;
  int64_t n=N;
  if(N==1) cput<<0;
  else{
    for(int64_t i=2;i*i<=n;i++){
      if(N%i==0){
        int temp=0;
        while(N%i==0){
          temp++;
          N/=i;
        }
        int k=1;
        while(temp>=k){
          temp-=k;
          k++;
          ans++;
        }
      }
    }
    cout<<ans;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'cput' was not declared in this scope
   10 |   if(N==1) cput<<0;
      |            ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <numeric>
#include <algorithm>
//#include <iomanip> : 表示桁数, ex) cout << fixed << setprecision(15) << ...

#define pi 3.14159265358979323846
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;
using ld = long double;
using Byte = unsigned char;
using namespace std;

bool isZero = true;

//string ans = "Yes";
ll ans = 0;
ll N;
vector<ll> A;

int main() {
	cin >> N;

	vector<ll> prime;
	vector<ll> primeF;
	ll nowP = 1;
	ll tmpN = N;

	
	if (tmpN % 2 == 0) {
		ll F = 0;
		while (tmpN % 2 == 0) {
			F++;
			tmpN /= 2;
		}
		prime.push_back(2);
		primeF.push_back(F);
	}


	while (tmpN > 1) {
		nowP += 2;
		if (nowP > sqrt(N) && primeF.size == 0) {
			prime.push_back(N);
			primeF.push_back(1);
			break;
		}

		if (tmpN % nowP != 0) continue;
		
		int F = 0;
		while (tmpN % nowP == 0) {
			F++;
			tmpN /= nowP;
		}
		prime.push_back(nowP);
		primeF.push_back(F);


	}



	//線形探索...
	for (int p : primeF) {
		ll x = 0;
		while ((x + 1) * (x + 2) / 2 <= p) {
			x++;
		}
		ans += x;
	}


	cout << ans << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:46: error: invalid use of member function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = long long int; _Alloc = std::allocator<long long int>; size_type = long unsigned int]' (did you forget the '()' ?)
   45 |                 if (nowP > sqrt(N) && primeF.size == 0) {
      |                                       ~~~~~~~^~~~
      |                                                  ()
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
int64_t MOD=1000000007;

int main() {
  int64_t N,ans=0;
  cin>>N;
  int64_t n=N
  if(N==1) cput<<0;
  else{
    for(int64_t i=2;i*i<=n;i++){
      if(N%i==0){
        int temp=0;
        while(N%i==0){
          temp++;
          N/=i;
        }
        int k=1;
        while(tem>=k){
          temp-=k;
          k++;
          ans++;
        }
      }
    }
    cout<<ans;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'if'
   10 |   if(N==1) cput<<0;
      |   ^~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else{
      |   ^~~~
a.cc:20:15: error: 'tem' was not declared in this scope; did you mean 'temp'?
   20 |         while(tem>=k){
      |               ^~~
      |               temp
Language: C++

//Copyright (c) 2020 0214sh7
//https://github.com/0214sh7/library/
vector<long long> prime_factorization(long long N){
  vector<long long> R;
  if(N<2)return R;
  for(long long i=2;i*i<=N;i++){
    while(N%i==0){
      R.push_back(i);
      N/=i;
    }
  }
  if(N!=1){
    R.push_back(N);
  }
  return R;
}
 
int main(){
 
  long long A;
  cin >> A;
  if(A==1){
    cout << 0 << endl;
    return 0;
  }
  vector<long long> R;
  R = prime_factorization(A);
  sort(R.begin() , R.end());
  int X = R.size();
  int csr=0;
  int Total = 0;
  long long pr = R.at(0);
  while(csr!=X){
    int cnt = lower_bound(R.begin(), R.end(), pr+1) - R.begin() - csr;
    csr = lower_bound(R.begin(), R.end(), pr+1) - R.begin();
    if(csr!=X) pr = R.at(csr);
 
    //cout << cnt << endl;
 
    int j=1;
    while(j<=cnt){
      cnt -= j;
      j++;
    }
 
    Total += j-1;
  }
 
  cout << Total <<endl;
 
}

Compiler output:
a.cc:3:1: error: 'vector' does not name a type
    3 | vector<long long> prime_factorization(long long N){
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:21:3: error: 'cin' was not declared in this scope
   21 |   cin >> A;
      |   ^~~
a.cc:23:5: error: 'cout' was not declared in this scope
   23 |     cout << 0 << endl;
      |     ^~~~
a.cc:23:18: error: 'endl' was not declared in this scope
   23 |     cout << 0 << endl;
      |                  ^~~~
a.cc:26:3: error: 'vector' was not declared in this scope
   26 |   vector<long long> R;
      |   ^~~~~~
a.cc:26:10: error: expected primary-expression before 'long'
   26 |   vector<long long> R;
      |          ^~~~
a.cc:27:3: error: 'R' was not declared in this scope
   27 |   R = prime_factorization(A);
      |   ^
a.cc:27:7: error: 'prime_factorization' was not declared in this scope
   27 |   R = prime_factorization(A);
      |       ^~~~~~~~~~~~~~~~~~~
a.cc:28:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   28 |   sort(R.begin() , R.end());
      |   ^~~~
      |   short
a.cc:34:15: error: 'lower_bound' was not declared in this scope
   34 |     int cnt = lower_bound(R.begin(), R.end(), pr+1) - R.begin() - csr;
      |               ^~~~~~~~~~~
a.cc:49:3: error: 'cout' was not declared in this scope
   49 |   cout << Total <<endl;
      |   ^~~~
a.cc:49:19: error: 'endl' was not declared in this scope
   49 |   cout << Total <<endl;
      |                   ^~~~
Language: C

#include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <numeric>
#include <algorithm>
//#include <iomanip> : 表示桁数, ex) cout << fixed << setprecision(15) << ...

#define pi 3.14159265358979323846
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;
using ld = long double;
using Byte = unsigned char;
using namespace std;

bool isZero = true;

//string ans = "Yes";
int ans = 0;
ll N;
vector<ll> A;

int main() {
	cin >> N;

	vector<ll> prime;
	vector<ll> primeF;
	ll nowP = 1;
	ll tmpN = N;

	
	if (tmpN % 2 == 0) {
		ll F = 0;
		while (tmpN % 2 == 0) {
			F++;
			tmpN /= 2;
		}
		prime.push_back(2);
		primeF.push_back(F);
	}


	while (tmpN > 1) {
		nowP += 2;
		if (tmpN % nowP != 0) continue;
		int F = 0;
		while (tmpN % nowP == 0) {
			F++;
			tmpN /= nowP;
		}
		//prime.push_back(nowP);
		primeF.push_back(F);
	}



	//線形探索...
	for (int p : primeF) {
		ll x = 0;
		while ((x + 1) * (x + 2) / 2 <= p) {
			x++;
		}
		ans += x;
	}


	cout << ans << endl;
	return 0;
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.