criyle/codenet-compile-errors huggingface dataset:
Language: Java

//package MyJavaProject;
 
import java.util.*;
import java.io.BufferedReader;
import java.io.IOException; 
import java.io.InputStreamReader;
import java.lang.Math;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
import java.io.*;
import java.math.BigInteger; 
import java.io.PrintWriter;  

public class Test 
{
	static class FastReader 

	    { 
	        BufferedReader br; 
	        StringTokenizer st; 
	  
	        public FastReader() 
	        { 
	            br = new BufferedReader(new
	                     InputStreamReader(System.in)); 
	        } 
	  
	        String next() 
	        { 
	            while (st == null || !st.hasMoreElements()) 
	            { 
	                try
	                { 
	                    st = new StringTokenizer(br.readLine()); 
	                } 
	                catch (IOException  e) 
	                { 
	                    e.printStackTrace(); 
	                } 
	            } 
	            return st.nextToken(); 
	        } 
	  
	        int nextInt() 
	        { 
	            return Integer.parseInt(next()); 
	        } 
	  
	        long nextLong() 
	        { 
	            return Long.parseLong(next()); 
	        } 
	  
	        double nextDouble() 
	        { 
	            return Double.parseDouble(next()); 
	        } 
	  
	        String nextLine() 
	        { 
	            String str = ""; 
	            try
	            { 
	                str = br.readLine(); 
	            } 
	            catch (IOException e) 
	            { 
	                e.printStackTrace(); 
	            } 
	            return str; 
	        } 
	    }
	
	
	static void print(String s)
	{
		System.out.print(s);
	}
	static void print(boolean s)
	{
		System.out.print(s);
	}
	
	public static void main(String argsp[]) throws Exception
	{
		FastReader f=new FastReader();
		BufferedWriter w=new BufferedWriter(new OutputStreamWriter(System.out));
		 
		long a;
		double b;
		a=f.nextLong();
		b=f.nextDouble();
		System.out.println((long)(a*b));
				
	}
}
	

	
	
	
	
	
	
	
	
	
	

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<char> cvec;
typedef vector<double> dvec;
typedef pair<ll, ll> LP;
typedef tuple<ll, ll, ll> LT;
typedef pair<int, int> P;
typedef tuple<int, int, int> T;
#define fs first
#define sc second
int main()	{
  ll a,n;double b;
  cin>>a>>b;
  n=a*b;
  cout<<n<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:22:17: error: expected '}' at end of input
   22 |   cout<<n<<endl;
      |                 ^
a.cc:18:17: note: to match this '{'
   18 | int main()      {
      |                 ^
Language: C++

#include <bits/stdc++.h>

#define whole(f, x, ...)                                 \
  ([&](decltype((x)) whole) {                            \
    return (f)(begin(whole), end(whole), ##__VA_ARGS__); \
  })(x)

using namespace std;
using ll = long long;

#include <boost/multiprecision/cpp_dec_float.hpp>
#include <boost/multiprecision/cpp_int.hpp>
namespace mp = boost::multiprecision;
using Bint = mp::cpp_int;
using Real = mp::number<mp::cpp_dec_float<1024>>;

void solve() {
  Real a;
  Real b;
  cin >> a >> b;

  ll c = (a * b) / 1;

  cout << c << endl;
}

int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  std::cout << std::fixed << std::setprecision(15);

  solve();
  return 0;
}


Compiler output:
a.cc:11:10: fatal error: boost/multiprecision/cpp_dec_float.hpp: No such file or directory
   11 | #include <boost/multiprecision/cpp_dec_float.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;
int main()
{
  long long double a,b;
  long long int d;
  cin>>a>>b;
  d=a*b;cout<<d;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'long long' specified with 'double'
    5 |   long long double a,b;
      |        ^~~~
a.cc:5:8: error: 'long long' specified with 'double'
Language: Java

import java.util.*;
import java.io.*;

class Main {
	public static void main(String[] args) throws IOException {
		Scanner read = new Scanner(System.in);

		double a = read.nextDouble();
		double b = read.nextDouble();
		System.out.println((long)(a * b);
	}
}


Compiler output:
Main.java:10: error: ')' or ',' expected
		System.out.println((long)(a * b);
		                                ^
1 error
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
	
  double a,b,ans;
  
  cin>>a >>b;
  
  ans = floor(a*b)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |   ans = floor(a*b)<<endl;
      |         ~~~~~~~~~~^~~~~~
Language: C++

#include<iostream>
using namespce std;
int main()
{
  long long double a,b;
  long long int d;
  cin>>a>>b;
  d=a*b;cout<<d;
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:8: error: 'long long' specified with 'double'
    5 |   long long double a,b;
      |        ^~~~
a.cc:5:8: error: 'long long' specified with 'double'
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>a>>b;
      |   ^~~
      |   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:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   d=a*b;cout<<d;
      |         ^~~~
      |         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>a
using namespace std;
#define endl "\n"
typedef long long int lli;
#define optimize ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define F first
#define S second
#define forab(i,a,b) for(int i = a; i<b; i++)
#define forll(i,a,b) for(lli i = a; i<b; i++)
#define mp make_pair
#define pb push_back
#define sortv(v) sort(v.begin(), v.end())
#define mod1 1000000007
#define mod2 998244353
#define debug(x) cout<<#x<<" : "<<x<<endl

int main()
{
	optimize

	double a;
	cin>>a;

	double b;
	cin>>b;

	cout<<(lli)(a*b)<<endl;
	
	return 0;
}

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

import java.math.*;
import java.util.*;

public class Solution {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        BigInteger a = scanner.nextBigInteger();
        double b = scanner.nextDouble();
        b *= 100;
        int c = (int) b;
        BigInteger d = BigInteger.valueOf(c);
        BigInteger res = a.multiply(d);
        BigInteger ans = res.divide(BigInteger.valueOf(100));
        System.out.println(ans.toString());
    }
}


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

#include <bits/stdc++.h>


using namespace std;
constexpr long long int mod = 1000000007, MOD = 998244353;
constexpr double PI = 3.14159265358979323846;

int main() {
	//cout << fixed << setprecision(10);
	long long A;
	long double B;
	cin >> A >> B;
	B *= 100;
	long long C = B;
	cout << long long(A * B / 100);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: expected primary-expression before 'long'
   15 |         cout << long long(A * B / 100);
      |                 ^~~~
Language: Java

import java.util.*;
import java.io.*;

class Main {
	public static void main(String[] args) throws IOException {
		Scanner read = new Scanner(System.in);

		long a = read.nextLong();
		double b = read.nextDouble();
		System.out.println((long)(a * b);
	}
}

Compiler output:
Main.java:10: error: ')' or ',' expected
		System.out.println((long)(a * b);
		                                ^
1 error
Language: C++

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

int main(){
    long long int a;
    double b;
    cin >> a;
    cin >> b;

    long long int c;

    c= a*b;



    cout <<  c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> a;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<string>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout <<  c << endl;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:19: error: 'endl' was not declared in this scope
   17 |     cout <<  c << endl;
      |                   ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<string>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

#include <iostream>
#include <cmath>
#include <string>
#include <algorithm>
#include <vector>
#include <queue>
#include <functional>
#include <map>
#include <set>
#include <bitset>
using namespace std;

int main(void){
    long long int a;
    double b;
    cin >> a >> b;
    long long int ans = floor(double(a)*b)
    cout << ans << endl;
    return 0;
}

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

#include<iostream>

using namespace std;

int main(){
    double b;
    long long int a;

    cin>>a>>b;

    cout<<long long int(a*b)<<endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected primary-expression before 'long'
   11 |     cout<<long long int(a*b)<<endl;
      |           ^~~~
Language: Java

import java.util.*;
import java.io.*;
import java.lang.reflect.Array;
import java.text.DecimalFormat;
import java.math.*;
public class template {
	final static int MOD = 1000000007;
	final static int intMax = 1000000000;
	final static int intMin = -1000000000;
	final static int[] DX = { 0, 0, -1, 1 };
	final static int[] DY = { -1, 1, 0, 0 };

	static int T;

	static class Reader {
		final private int BUFFER_SIZE = 1 << 16;
		private DataInputStream din;
		private byte[] buffer;
		private int bufferPointer, bytesRead;

		public Reader() {
			din = new DataInputStream(System.in);
			buffer = new byte[BUFFER_SIZE];
			bufferPointer = bytesRead = 0;
		}

		public Reader(String file_name) throws IOException {
			din = new DataInputStream(new FileInputStream(file_name));
			buffer = new byte[BUFFER_SIZE];
			bufferPointer = bytesRead = 0;
		}

		public String readLine() throws IOException {
			byte[] buf = new byte[360]; // line length
			int cnt = 0, c;
			while ((c = read()) != -1) {
				if (c == '\n')
					break;
				buf[cnt++] = (byte) c;
			}
			return new String(buf, 0, cnt);
		}

		public int nextInt() throws IOException {
			int ret = 0;
			byte c = read();
			while (c <= ' ')
				c = read();
			boolean neg = (c == '-');
			if (neg)
				c = read();
			do {
				ret = ret * 10 + c - '0';
			} while ((c = read()) >= '0' && c <= '9');

			if (neg)
				return -ret;
			return ret;
		}

		public long nextLong() throws IOException {
			long ret = 0;
			byte c = read();
			while (c <= ' ')
				c = read();
			boolean neg = (c == '-');
			if (neg)
				c = read();
			do {
				ret = ret * 10 + c - '0';
			} while ((c = read()) >= '0' && c <= '9');
			if (neg)
				return -ret;
			return ret;
		}

		public double nextDouble() throws IOException {
			double ret = 0, div = 1;
			byte c = read();
			while (c <= ' ')
				c = read();
			boolean neg = (c == '-');
			if (neg)
				c = read();

			do {
				ret = ret * 10 + c - '0';
			} while ((c = read()) >= '0' && c <= '9');

			if (c == '.') {
				while ((c = read()) >= '0' && c <= '9') {
					ret += (c - '0') / (div *= 10);
				}
			}

			if (neg)
				return -ret;
			return ret;
		}

		private void fillBuffer() throws IOException {
			bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
			if (bytesRead == -1)
				buffer[0] = -1;
		}

		private byte read() throws IOException {
			if (bufferPointer == bytesRead)
				fillBuffer();
			return buffer[bufferPointer++];
		}

		public void close() throws IOException {
			if (din == null)
				return;
			din.close();
		}
	}
	
	public static void main(String[] args) throws Exception {
		Reader in = new Reader();
		long a = in.nextLong();
		double b = in.nextDouble();
		System.out.println((long)(a * b));
		in.close();
	}
}

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


int main(void)
{
    int x;
    double y,z;

    scanf("%d %f",&x,&y);
    z=x*y;
    printf("%d",int(z/1));

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |     scanf("%d %f",&x,&y);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | 
main.c:7:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |     scanf("%d %f",&x,&y);
      |     ^~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |     printf("%d",int(z/1));
      |     ^~~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:17: error: expected expression before 'int'
    9 |     printf("%d",int(z/1));
      |                 ^~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
#include <cmath>
#include <map>
#include <queue>
#include <string>

#define reps(i,s,n) for(int (i) = (s); (i) < (n); (i)++)
#define rep(i,n) reps(i,0,n)
using namespace std;
using ll = long long;

int main(){
    long float a ,b,tmp;
    cin >> a >> b;
    tmp = a*b;
    
    cout << (ll)tmp << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'long' specified with 'float'
   16 |     long float a ,b,tmp;
      |     ^~~~
a.cc:16:5: error: 'long' specified with 'float'
a.cc:16:5: error: 'long' specified with 'float'
Language: C++

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

#define mod 1000000007
#define ll long long
#define ld long double
typedef vector< int > vi;
typedef vector< vi > vvi;
typedef pair< int,int > ii;
#define pb push_back
#define mp make_pair
#define endl '\n'
#define pii pair<int,int>
#define min3(a,b,c) min(a,min(b,c))
#define max3(a,b,c) max(a,max(b,c))
#define all(x) x.begin(),x.end()
#define sp(x) setprecision(x)
#define F first
#define S second
#define lb lower_bound
#define ub upper_bound
#define bs binary_search
#define tr(container, it) for(typeof(container.begin()) it = container.begin(); it != container.end(); it++)
#define present(container, element) (container.find(element) != container.end())
#define cpresent(container, element) (find(all(container),element) != container.end())
#define deb(x) cout<<#x <<x <<endl
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)

int main()
{
	#ifndef ONLINE_JUDGE
	freopen("input1.txt","r",stdin);
	freopen("output1.txt","w",stdout);
	#endif
    ios_base::sync_with_stdio(false);
    cin.tie(NULL); cout.tie(NULL);
    long long double n,m;
    cin>>n>>m;
    cout<<floor(n*m);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:10: error: 'long long' specified with 'double'
   37 |     long long double n,m;
      |          ^~~~
a.cc:37:10: error: 'long long' specified with 'double'
Language: C++

#include "bits/stdc++.h"
using namespace std;
#ifdef _DEBUG
#define dlog(str) cout << "====" << str << endl;
#else
#define dlog(str)
#endif
#define INF 999999999
#define MOD 1000000007
#define REP(i, n) for(int i = 0, i##_l = (n); i < i##_l; i++)
#define FOR(i, s, e) for(int i = s, i##_l = (e); i < i##_l; i++)
#define LLI long long int
#define _min(a,b) ((a<b)?a:b)
#define _max(a,b) ((a<b)?b:a)
#define chmax(a, b) a = _max(a, b)
#define chmin(a, b) a = _min(a, b)
#define bit(a, shift) ((a>>shift)&1))
#define pm(a) ((a)?1:-1)
#define SORT(v) sort(v.begin(),v.end())
#define RSORT(v) sort((v).rbegin(), (v).rend())
// int 2.14E±9    lli 9.2E±18    double 1.7E±380


int main()
{
	cout << fixed << setprecision(10);

	LLI a;
	double b;
	cin >> a >> b;

	LLI t = b;
	b = b - floor(b);

	cout << a * t + LLI(a * b);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected primary-expression before 'long'
   12 | #define LLI long long int
      |             ^~~~
a.cc:35:25: note: in expansion of macro 'LLI'
   35 |         cout << a * t + LLI(a * b);
      |                         ^~~
Language: C++

#include <stdio.h>
#include <algorithm>
using namespace std;
using ll = long long;

ll a, b;
double bd;
int main() {
	scanf("%lld %lf", &a, &bd);
	b = floor(bd * 100);
	printf("%lld\n", a * b / 100);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'floor' was not declared in this scope
   10 |         b = floor(bd * 100);
      |             ^~~~~
Language: C++

#include "bits/stdc++.h"
using namespace std;
#ifdef _DEBUG
#define dlog(str) cout << "====" << str << endl;
#else
#define dlog(str)
#endif
#define INF 999999999
#define MOD 1000000007
#define REP(i, n) for(int i = 0, i##_l = (n); i < i##_l; i++)
#define FOR(i, s, e) for(int i = s, i##_l = (e); i < i##_l; i++)
#define LLI long long int
#define _min(a,b) ((a<b)?a:b)
#define _max(a,b) ((a<b)?b:a)
#define chmax(a, b) a = _max(a, b)
#define chmin(a, b) a = _min(a, b)
#define bit(a, shift) ((a>>shift)&1))
#define pm(a) ((a)?1:-1)
#define SORT(v) sort(v.begin(),v.end())
#define RSORT(v) sort((v).rbegin(), (v).rend())
// int 2.14E±9    lli 9.2E±18    double 1.7E±380


int main()
{
	cout << fixed << setprecision(10);

	LLI a;
	long double b;
	cin >> a >> b;

	LLI t = b;
	b = b - floor(b);

	cout << a * t + LLI(a * b);

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected primary-expression before 'long'
   12 | #define LLI long long int
      |             ^~~~
a.cc:35:25: note: in expansion of macro 'LLI'
   35 |         cout << a * t + LLI(a * b);
      |                         ^~~
Language: C++

#include "bits/stdc++.h"
using namespace std;
#ifdef _DEBUG
#define dlog(str) cout << "====" << str << endl;
#else
#define dlog(str)
#endif
#define INF 999999999
#define MOD 1000000007
#define REP(i, n) for(int i = 0, i##_l = (n); i < i##_l; i++)
#define FOR(i, s, e) for(int i = s, i##_l = (e); i < i##_l; i++)
#define LLI long long int
#define _min(a,b) ((a<b)?a:b)
#define _max(a,b) ((a<b)?b:a)
#define chmax(a, b) a = _max(a, b)
#define chmin(a, b) a = _min(a, b)
#define bit(a, shift) ((a>>shift)&1))
#define pm(a) ((a)?1:-1)
#define SORT(v) sort(v.begin(),v.end())
#define RSORT(v) sort((v).rbegin(), (v).rend())
// int 2.14E±9    lli 9.2E±18    double 1.7E±380


int main()
{
	cout << fixed << setprecision(10);

	LLI a;
	long double b;
	cin >> a >> b;

	LLI t = b;
	b = b - floor(b);

	cout << a * t + LLI(a * b);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected primary-expression before 'long'
   12 | #define LLI long long int
      |             ^~~~
a.cc:35:25: note: in expansion of macro 'LLI'
   35 |         cout << a * t + LLI(a * b);
      |                         ^~~
Language: C++

#include <stdio.h> 
  
int main() 
{ 
    long long float A, B;
  	long long int product;
  	
    scanf("%f%f", &A, &B); 
    product = A * B; 
    printf("%d", product); 
  
    return 0; 
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'long long' specified with 'float'
    5 |     long long float A, B;
      |          ^~~~
a.cc:5:10: error: 'long long' specified with 'float'
Language: C++

#include <bits/stdc++.h>
#include <stdarg.h>
#include <assert.h>
#include <ctype.h>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/join.hpp>

using namespace std;
using boost::algorithm::split;
using boost::algorithm::join;
using boost::algorithm::replace_all;

typedef long long int lli;
typedef vector<int> iv;
typedef vector<bool> bv;
typedef vector<string> sv;
typedef vector<long long int> llv;
typedef vector<double> dv;

#define sor_(vec) sort(vec.begin(),vec.end())
#define rev_(vec) reverse(vec.begin(),vec.end())
#define rep(i,n) for(int i=0;i<static_cast<int>(n);i++)
#define reps(i,n,s) for(int i=static_cast<int>(s);i<static_cast<int>(n);i++)
#define isposi(num) if(num>0)
const long long mod = 1000000007;
#define PI 3.141592653589793

template<typename TypeInt>
std::string Itoa(const TypeInt v, int base)
{
    static const char table[] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
    string ret;
    static numeric_limits<TypeInt> t;
    TypeInt n = v;
    if (t.is_signed) {
        if (v < 0) n *= -1;
    }

    while (n >= base) {
        ret += table[n%base];
        n /= base;
    }
    ret += table[n];
    if (t.is_signed) {
        if (v < 0 && base == 10) ret += '-';
    }
    std::reverse(ret.begin(), ret.end());

    return ret;
}

void printm(char const *format,...){
    va_list arguments;
    va_start(arguments,format);
    unsigned index=0;
    while (format[index]!='\0') {
        if(format[index]=='%'){
            index++;
            if(format[index]=='d')printf("%d",va_arg(arguments, int));
            else if(format[index]=='c')printf("%c",va_arg(arguments, int));
            else if(format[index]=='x')printf("%x",va_arg(arguments,int));
            else if(format[index]=='o')printf("%o",va_arg(arguments,int));
            else if(format[index]=='f')printf("%f",va_arg(arguments, double));
            else if(format[index]=='s')printf("%s",va_arg(arguments, char const *));
            else if(format[index]=='p')printf("%p",va_arg(arguments,void*));
            else if(format[index]=='y')printf("Yes");
            else if(format[index]=='n')printf("No");
            else if(format[index]=='%')printf("%%");
            else assert(!"Unknown format with %.");
        }
        else printf("%c",format[index]);
        index++;
    }
    va_end(arguments);
    return;
}

struct Chara{
    int hp;
    int sp;
};
bool pairCompare(const pair<int,int>& firstElof, const pair<int,int>& secondElof)
{
    return firstElof.second > secondElof.second;
}

int main(void){
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    cout << fixed << std::setprecision(15);
    //
    long long double a,b;
    cin>>a>>b;
    cout<<(int)(a*b);
    //
    return 0;
}


Compiler output:
a.cc:5:10: fatal error: boost/algorithm/string/classification.hpp: No such file or directory
    5 | #include <boost/algorithm/string/classification.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <stdio.h> 
  
int main() 
{ 
    long long double A, B;
  	long long int product;
  	
    scanf("%f%f", &A, &B); 
    product = A * B; 
    printf("%d", product); 
  
    return 0; 
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'long long' specified with 'double'
    5 |     long long double A, B;
      |          ^~~~
a.cc:5:10: error: 'long long' specified with 'double'
Language: C++

#include<bits/stdc++.h>
#include<vector>
using namespace std;
const int maxn=1e6+10;
long long n;
double m
int main(){
    ios::sync_with_stdio(false);
    cin>>n>>m;
    cout<<(long long)n*m<<'\n';
    return 0;
}

Compiler output:
a.cc:7:1: error: expected initializer before 'int'
    7 | int main(){
      | ^~~
Language: C++

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

int main(){
  double a,b;
  cin >> a >> b;
  long long ans=a*b;
  cout << ans << endl;
}#include <bits/stdc++.h>
using namespace std;

int main(){
  double a,b;
  cin >> a >> b;
  long long ans=a*b;
  cout << ans << endl;
}

Compiler output:
a.cc:9:2: error: stray '#' in program
    9 | }#include <bits/stdc++.h>
      |  ^
a.cc:9:3: error: 'include' does not name a type
    9 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:12:5: error: redefinition of 'int main()'
   12 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

#include<vector>
#include<set>
#include<map>
#include<queue>
#include<string>
#include<algorithm>
#include<iostream>
#include<bitset>
#include<functional>
#include<numeric>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cassert>
#include<cmath>
#include<random>
#include<ctime>
#include<complex>
using namespace std;
typedef long long LL;
mt19937 gene(233);
typedef complex<double> Complex;
#define fi first
#define se second
#define ins insert
#define pb push_back
inline char GET_CHAR(){
	const int maxn = 131072;
	static char buf[maxn],*p1=buf,*p2=buf;
	return p1==p2&&(p2=(p1=buf)+fread(buf,1,maxn,stdin),p1==p2)?EOF:*p1++;
}
inline int getInt() {
	int res(0);
	char c = getchar();
	while(c < '0') c = getchar();
	while(c >= '0') {
		res = res * 10 + (c - '0');
		c = getchar();
	}
	return res;
}

inline LL fastpo(LL x, LL n, LL mod) {
	LL res(1);
	while(n) {
		if(n & 1) {
			res = res * (LL)x % mod;
		}
		x = x * (LL) x % mod;
		n /= 2;
	}
	return res;
}

inline string itoa(int x, int width = 0) {
  string res;
  if(x == 0) res.push_back('0');
  while(x) {
    res.push_back('0' + x % 10);
    x /= 10;
  }
  while((int)res.size() < width) res.push_back('0');
  reverse(res.begin(), res.end());
  return res;
}
template<const LL mod> struct MI{
	LL a;
	MI operator + (const MI & b) {
		MI res{a + b.a};
		if(res.a >= mod) res.a -= mod;
		return res;
	}
	MI operator - (const MI & b) {
		MI res{a - b.a};
		if(res.a <= 0) res.a += mod;
		return res;
	}
	MI operator * (const MI & b) {
		return MI{a * b.a % mod};
	}
	MI operator / (const MI & b) {
		return MI{a * fastpo(b.a, mod - 2, mod) % mod};
	}
};
const int N = 300033;
const int LOG = 20;
const int mod = 1e9 + 7;
const int inf = 1e9 + 7;
int n, m;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
const LL LIM = 1e18;
int main() {
	double a, b;
  cin >> a >> b;
  cout << (LL)((long double)a * b)) << endl;
}






Compiler output:
a.cc: In function 'int main()':
a.cc:96:35: error: expected ';' before ')' token
   96 |   cout << (LL)((long double)a * b)) << endl;
      |                                   ^
      |                                   ;
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
    long long int n,m,counter=0,flag=0;
    cin>>n;
    m=n;

    if(n==1){
        cout<<0<<endl;
        return 0;
    }

    for(long long int i=sqrt(m);i>1;i--){
        if(n%i==0){
            flag=1;
            n/=i;
            counter++;
        }
    }
    if(flag==0){
        cout<<1<<endl;
        return 0;
    }

    cout<<counter<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:27:25: error: expected '}' at end of input
   27 |     cout<<counter<<endl;
      |                         ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C

#include<bits/stdc++.h>
using namespace std;
using ll=long long int;
int main()
{
    map<int,int> m;
    long long int n;
    cin>>n;
    for(int i=2;i<=sqrt(n);i++)
    {
        while(n%i==0)
        {
            m[i]++;
            n=n/i;
        }
    }
    if(n>1)
    m[n]++;
    int ans=0;
    for(auto it:m)
    {
        int p=it.second;
        int curr=1;
        while(p>=curr)
        {
            ans++;
            p-=curr;
            curr++;
        }
    }
    cout<<ans<<endl;

}

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

// 素因数分解

#include <bits/stdc++.h>
#define rep(i,N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int inf{int(1e9)};

int main(void){
  int N;
  cin >> N;

  // 素因数とその肩に乗ってる指数のペア
  vector<pair<ll,int>> fs;
  for (ll i = 2; i*i <= N; i++){
    int x = 0;
    while (N%i == 0){
      n /= i;
      x++;
    }
    fs.emplace_back(i,x);
  }
  if (N != 1) fs.emplace_back(N,1);

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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:7: error: 'n' was not declared in this scope
   20 |       n /= i;
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define rep(i, s, e) for (int i = s; i < e; i++)
#define endl '\n'
int main()
{
    lli N;
    cin >> N;
    if (N == 1)
    {
        cout << 0 << endl;
        return 0;
    }
    lli s = (int)sqrt(N) + 1;
    int res = 0;
    for (int i = 2;; i++)
    {
        for (int j = 1;; j++)
        {
            if (N % pow(i, j) == 0)
            {
                res++;
                N /= pow(i, j);
            }else{
                break;
            }
        }
        if ((int)sqrt(N) < i)
            break;
    }
    if (res == 0)
        res++;
    cout << res << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:19: error: invalid operands of types 'long long int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   21 |             if (N % pow(i, j) == 0)
      |                 ~ ^ ~~~~~~~~~
      |                 |      |
      |                 |      __gnu_cxx::__promote<double>::__type {aka double}
      |                 long long int
Language: C++

#include <bits/stdc++.h>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
  long long n;
  cin >> n;
  int num = sqrt(n);
  int ans = 0;
  for(int i = 2; i < num; i++){
    int e = 1;
    int cnt = 0;
    while((n % pow(i,e)) == 0){
      cnt++;
      e++;
      n /= pow(i,e);
    }
    ans += cnt;
  }
  if(ans == 0) ans = 1;
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: invalid operands of types 'long long int' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator%'
   13 |     while((n % pow(i,e)) == 0){
      |            ~ ^ ~~~~~~~~
      |            |      |
      |            |      __gnu_cxx::__promote<double>::__type {aka double}
      |            long long int
Language: C++

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

vector <pair < long  long , long  long >> prime_factorize ( long  long n) {
    vector <pair < long  long , long  long >> res;
     for ( long  long p = 2 ; p * p <= n; ++ p) {
         if (n% p! = 0 ) continue ;
         int num = 0 ;
         while (n% p == 0 ) {++ num; n / = p;}
        res.push_back (make_pair (p, num));
    }
    if (n! = 1 ) res.push_back (make_pair (n, 1 ));
     return res;
}

int main () {
     long  long N;
    cin >> N;
    auto pf = prime_factorize (N);
     long  long res = 0 ;
     for ( auto p: pf) {
         long  long e = p.second;
         long  long tmp = 0 , cur = 1 ;
         while (e> = cur) e-= cur ++, ++ tmp;
        res + = tmp;
    }
    cout << res << endl;
}

Compiler output:
a.cc: In function 'std::vector<std::pair<long long int, long long int> > prime_factorize(long long int)':
a.cc:7:18: error: expected ')' before '!' token
    7 |          if (n% p! = 0 ) continue ;
      |             ~    ^
      |                  )
a.cc:9:42: error: expected primary-expression before '=' token
    9 |          while (n% p == 0 ) {++ num; n / = p;}
      |                                          ^
a.cc:12:10: error: expected ')' before '!' token
   12 |     if (n! = 1 ) res.push_back (make_pair (n, 1 ));
      |        ~ ^
      |          )
a.cc: In function 'int main()':
a.cc:24:20: error: expected primary-expression before '=' token
   24 |          while (e> = cur) e-= cur ++, ++ tmp;
      |                    ^
a.cc:25:15: error: expected primary-expression before '=' token
   25 |         res + = tmp;
      |               ^
Language: C++

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

// Prime factorization 
vector <pair < long  long , long  long >> prime_factorize ( long  long n) {
    vector <pair < long  long , long  long >> res;
     for ( long  long p = 2 ; p * p <= n; ++ p) {
         if (n% p! = 0 ) continue ;
         int num = 0 ;
         while (n% p == 0 ) {++ num; n / = p;}
        res.push_back (make_pair (p, num));
    }
    if (n! = 1 ) res.push_back (make_pair (n, 1 ));
     return res;
}

int main () {
     long  long N;
    cin >> N;
    auto pf = prime_factorize (N);
     long  long res = 0 ;
     for ( auto p: pf) {
         long  long e = p.second;
         long  long tmp = 0 , cur = 1 ;
         while (e> = cur) e-= cur ++, ++ tmp;
        res + = tmp;
    }
    cout << res << endl;
}

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

int main(){
  ll N;
  cin >> N;
  vector<pair<ll,ll>> a;
  a = prime_factorization(N);
  
  ll ans = 0;
  for(auto it : a) {
	ll num = it.second;
	ll cnt = 1;
	ll tmp = 0;
	while(num >= cnt) {
	  num -= cnt;
	  cnt++;
	  tmp++;
	}
	ans += tmp;
  }

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


Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'll' was not declared in this scope
    2 |   ll N;
      |   ^~
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> N;
      |   ^~~
a.cc:3:10: error: 'N' was not declared in this scope
    3 |   cin >> N;
      |          ^
a.cc:4:3: error: 'vector' was not declared in this scope
    4 |   vector<pair<ll,ll>> a;
      |   ^~~~~~
a.cc:4:10: error: 'pair' was not declared in this scope
    4 |   vector<pair<ll,ll>> a;
      |          ^~~~
a.cc:4:23: error: 'a' was not declared in this scope
    4 |   vector<pair<ll,ll>> a;
      |                       ^
a.cc:5:7: error: 'prime_factorization' was not declared in this scope
    5 |   a = prime_factorization(N);
      |       ^~~~~~~~~~~~~~~~~~~
a.cc:7:5: error: expected ';' before 'ans'
    7 |   ll ans = 0;
      |     ^~~~
      |     ;
a.cc:9:11: error: expected ';' before 'num'
    9 |         ll num = it.second;
      |           ^~~~
      |           ;
a.cc:10:11: error: expected ';' before 'cnt'
   10 |         ll cnt = 1;
      |           ^~~~
      |           ;
a.cc:11:11: error: expected ';' before 'tmp'
   11 |         ll tmp = 0;
      |           ^~~~
      |           ;
a.cc:12:15: error: 'num' was not declared in this scope; did you mean 'enum'?
   12 |         while(num >= cnt) {
      |               ^~~
      |               enum
a.cc:12:22: error: 'cnt' was not declared in this scope; did you mean 'int'?
   12 |         while(num >= cnt) {
      |                      ^~~
      |                      int
a.cc:15:11: error: 'tmp' was not declared in this scope
   15 |           tmp++;
      |           ^~~
a.cc:17:9: error: 'ans' was not declared in this scope
   17 |         ans += tmp;
      |         ^~~
a.cc:17:16: error: 'tmp' was not declared in this scope
   17 |         ans += tmp;
      |                ^~~
a.cc:20:3: error: 'cout' was not declared in this scope
   20 |   cout << ans << endl;
      |   ^~~~
a.cc:20:11: error: 'ans' was not declared in this scope
   20 |   cout << ans << endl;
      |           ^~~
a.cc:20:18: error: 'endl' was not declared in this scope
   20 |   cout << ans << endl;
      |                  ^~~~
Language: C++

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

vector<p>Div(ll n){
  vector<P> d;
  for(int i = 2; i*i <= n; i++){
    int cnt = 0;
    while(n % i == 0){
      n /= i;
      cnt++;
    }
    d.push_back(P(i,cnt));
  }
  if(n != 1) d.push_back(P(n,1));
  return d;
}

int main(void){
  ll n;
  cin >> n;
  vector<P> d = Div(n);
  int ans = 0;
  for(int i = 0; i < d.size(); i++){
    for(int j = 1; j <= d[i].second; j++){
      ll tmp = pow(d[i].first,j);
      if(n % tmp != 0) continue;
      n /= tmp;
      ans++;
    }
    if(n < tmp) break;
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc:6:8: error: 'p' was not declared in this scope
    6 | vector<p>Div(ll n){
      |        ^
a.cc:6:9: error: template argument 1 is invalid
    6 | vector<p>Div(ll n){
      |         ^
a.cc:6:9: error: template argument 2 is invalid
a.cc: In function 'int Div(ll)':
a.cc:7:10: error: 'P' was not declared in this scope
    7 |   vector<P> d;
      |          ^
a.cc:7:11: error: template argument 1 is invalid
    7 |   vector<P> d;
      |           ^
a.cc:7:11: error: template argument 2 is invalid
a.cc:14:7: error: request for member 'push_back' in 'd', which is of non-class type 'int'
   14 |     d.push_back(P(i,cnt));
      |       ^~~~~~~~~
a.cc:16:16: error: request for member 'push_back' in 'd', which is of non-class type 'int'
   16 |   if(n != 1) d.push_back(P(n,1));
      |                ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:23:10: error: 'P' was not declared in this scope
   23 |   vector<P> d = Div(n);
      |          ^
a.cc:23:11: error: template argument 1 is invalid
   23 |   vector<P> d = Div(n);
      |           ^
a.cc:23:11: error: template argument 2 is invalid
a.cc:25:24: error: request for member 'size' in 'd', which is of non-class type 'int'
   25 |   for(int i = 0; i < d.size(); i++){
      |                        ^~~~
a.cc:26:26: error: invalid types 'int[int]' for array subscript
   26 |     for(int j = 1; j <= d[i].second; j++){
      |                          ^
a.cc:27:21: error: invalid types 'int[int]' for array subscript
   27 |       ll tmp = pow(d[i].first,j);
      |                     ^
a.cc:32:12: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   32 |     if(n < tmp) break;
      |            ^~~
      |            tm
Language: C++

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

//----------素因数分解----------
vector<ll> prime_factorization(ll n){
  vector<ll> factors(n+1,0);
  rep3(i,n+1){
    if(i<=1) continue;
    while(n%i==0){
      n/=i;
      factors[i]++;
    }
  }
  return factors;
}

int main() {
  ll n;
  cin>>n;
  auto factors=prime_factorization(n);
  sort(factors.begin(),factors.end());
  reverse(factors.begin(),factors.end());
  int cnt=0;
  rep3(i,n+1){
    if(factors[i]==0) break;
    while(factors[i]-j>=0){
      factors[i]-=j;
      cnt++;
      j++;
    }
  }
  cout<<cnt<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:22: error: 'j' was not declared in this scope
   31 |     while(factors[i]-j>=0){
      |                      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll f(ll low,ll high,ll d){
  ll ans=0;
  while(low<=high){
    ll mid=(low+high)/2;
    ll val=(mid*(mid+1))/2;
    if(val<d){ ans=mid; low=mid+1; }
    else if(val==d) { ans=mid; break;}
    else {high=mid-1;}
  }
  return ans;
 }
int main(){
  long long a; cin>>a;
  if(a==1){ cout<<0<<endl; return 0;}
  long long ans=0;
  ll tmp=a;
  for(long long i=2;i*i<a;i++){
     if(tmp%i==0){ 
       int cnt=0;
       while(tmp%i==0) tmp/=i, cnt++; 
       //cout<<i<<" "<<cnt<<endl;
        ans+=f(1,cnt,cnt);
     }
  }
  if(n!=1) ans++;
  cout<<max(1ll,ans)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:6: error: 'n' was not declared in this scope
   28 |   if(n!=1) ans++;
      |      ^
Language: C++

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

long long decompositPrime(long long n) {
    long long cnt = 0;
    map<long long, long long> m;
    long long a = 2;

    for (long long p = 2; p * p <= n; p++) {
        if (n % p != 0) continue;
        int num = 0;

        while (n % p == 0) {
            num++;
            n /= p;
        }
        m[p] = num;
    }

    for (auto itr : m) {
        long long index = 1;

        while (itr.second >= index) {
            cnt++;
            itr.second -= index;
            index ++;
        }
    }

    return cnt;
}

int main() {
    //
    long long num;
    int cnt = 0;

    cin >> num;

    if (IsPrime(num) == true) {
        cout << 1;
        return 0;
    }

    cnt = decompositPrime(num);

    cout << cnt;
    //
}


Compiler output:
a.cc: In function 'int main()':
a.cc:40:9: error: 'IsPrime' was not declared in this scope
   40 |     if (IsPrime(num) == true) {
      |         ^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
vector<int>v;
const int mx=1000007;
bool mark[mx];
void seive()
{
    int i,j;
    for(i=2;i+i<=mx;i++)
    {
        if(mark[i]==0){
            v.push_back(i);
            for(j=i;j<=mx;j+=i)mark[j]=1;
        }
    }
}
int main()
{
    seive();
    long long int n;
    int coun=0;
    cin>>n;
    long long int m=n;
    for(int i=0;v[i]<=sqrt(n);i++)
    {
        long long int x=v[i];
        //cout<<v[i]<<endl<<endl;2
        while(n%x==0)
        {
            //1cout<<x<<endl;
            n/=x;
            x*=v[i];
            coun++;
        }
    }
    if(n>1)coun++;
    1cout<<coun<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:5: error: unable to find numeric literal operator 'operator""cout'
   37 |     1cout<<coun<<endl;
      |     ^~~~~
Language: C++

#include <bits/std++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

using ll = long long;
using namespace std;

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

  vector<pair<ll, int>> fs;
  for (ll i = 2; i * i <= n; i++) {
    int x = 0;
    while (n % i == 0) {
      n /= i;
      ++x;
    }
    fs.emplace_back(i, x);
  }
  if (n != 1) {
    fs.emplace_back(n, 1);
  }
  int ans = 0;
  for (auto p : fs) {
    int x = p.second;
    int b = 1;
    while (b <= x) {
      x -= b;
      b++;
      ++ans;
    }
  }
  cout << ans << endl;
  return 0;
}

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


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

//エラトステネスのふるい
struct Sieve {

    //fはその数を割り切れる最小の素数
    vector<int> f, primes;

    //エラトステネスのふるい
    Sieve(int n=1):n(n), f(n+1) {
        f[0] = f[1] = -1;
        for (ll i = 2; i <= n; ++i) {
            if (f[i]) continue;
            primes.push_back(i);
            f[i] = i;
            //範囲内でiの倍数になる整数全てのfをiにする
            for (ll j = i*i; j <= n; j += i) {
                if (!f[j]) f[j] = i;
            }
        }
    }
   
    //f[x]==x、つまりxを割り切れる最小の素数がxそのものなら素数
    bool isPrime(int x) { return f[x] == x;}

    //xを入力するとxが1になるまで素数で割り続ける
    vector<int> factorList(int x) {
        vector<int> res;
        while (x != 1) {
            res.push_back(f[x]);
            x /= f[x];
        }
        return res;
    }

    vector<P> factor(int x) {
        vector<int> fl = factorList(x);
        if (fl.size() == 0) return {};
        vector<P> res(1, P(fl[0], 0));
        for (int p : fl) {
            if (res.back().first == p) {
                res.back().second++;
            } else {
                res.emplace_back(p, 1);
            }
        }
        return res;
    }

    //返り値resは(素因数、その次数)のpair
    vector<pair<ll,int>> factor(ll x){
        vector<pair<ll, int>> res;
        for(int p:primes){
            int y=0;
            while(x%p==0){
                x /=p;
                ++y;
            }
            //res(pair)のfirstにはp、secondにはyを追加する
            if(y!=0) res.emplace_back(p,y);
        }
        if(x!=1) res.emplace_back(x,1);
        return res;
    }
};


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

    //nは1〜10の12乗なのでその平方根の100000以上のふるいを作る
    Sieve s(100005);
    auto fs = s.factor(n);

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

}

Compiler output:
a.cc: In constructor 'Sieve::Sieve(int)':
a.cc:15:20: error: class 'Sieve' does not have any field named 'n'
   15 |     Sieve(int n=1):n(n), f(n+1) {
      |                    ^
Language: C++

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

vector<pair<long long, long long>> prime_factorize(ll num)
{
    vector<pair<long long, long long> > res;
    for(ll i=2;i*i<=num;i++){
        if(num%i!=0)continue;
        ll ex=0;
        while(num%i==0){
            ex++;
            num/=i;
        }
        res.push_back(make_pair(i, ex));
    }
    if (num!=1) res.push_back(make_pair(num, 1));
    return res;
}

int main()
{
    ll N;
    cin >> N;
    auto pf=prime_factorize(N);
    ll res=0;
    for(auto p:pf){
        ll e=p.second;
        ll max=0;
        ll num=1;
        while(e>=cur)e-=num++,++max;
        res+=max;
    }    
    cout<<res;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:18: error: 'cur' was not declared in this scope
   31 |         while(e>=cur)e-=num++,++max;
      |                  ^~~
Language: C++

/*
        karmany evadhikaras te
        ma phalesu kadacana 
        ma karma-phala-hetur bhur
        ma re sango'stv akarmani (B.G.-2.47)
 
Translation:
        Lord Krsna to Arjuna.
You have a right to perform your prescribed duty, 
but you are not entitled to the fruits of action. 
Never consider yourself the cause of the results of your activities, 
and never be attached to not doing your duty.    
*/
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
const int N = 1000005;
#define ld long double
#define PI 3.14159265358979323846
const int INF = 1e9+7;

void flash()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    cout.setf(ios::fixed);
    cout.setf(ios::showpoint);
    cout.precision(12);
}

//3. Structure or classes
//3. Ends here

//1. Data structures declaration here
//1. Ends here


//2. Extra Functions here
//2. Ends here


void solve();
int32_t main()
{
    flash();
    int t;
    t = 1;
    //cin>>t;
    while(t--){
        solve();
    }
    return 0;
}

void solve()
{
    
    int n;
    cin>>n;
    int n1=n;
    int ans=0;
    if(n==1){
        cout<<"0\n";return;
    }
    for(int i=2;i*i<=n;i++){
        int cnt=0;
        while(n1%i==0){
            n1/=i;
            cnt++;
        }
        ans += (sqrtd(1+8*cnt)-1)/2;
        if(n1==1)break;
    }
    if(ans!=0)cout<<ans;
    else cout<<"1\n";
    return;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:73:17: error: 'sqrtd' was not declared in this scope; did you mean 'sqrtl'?
   73 |         ans += (sqrtd(1+8*cnt)-1)/2;
      |                 ^~~~~
      |                 sqrtl