Language: C++

#include <bits/stdc++.h>

using namespace std;
using ll =long long;

#define SORT(a) sort((a).begin(),(a).end())
#define rSORT(a) reverse((a).begin(),(a).end())
#define For(i, a, b)    for(int i = (a) ; i < (b) ; ++i)
#define rep(i, n)       For(i, 0, n)
#define debug(x)  cerr << #x << " = " << (x) << endl;
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; }
void coY() {cout <<"Yes"<<endl;}
void coN(){cout <<"No"<<endl;}
const int mod = 1e9+7;
const int MX = 1000005;
typedef parir<int,int> P;
struct Sieve {
	int n ;
	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);//sosuu rekkyo 
			f[i] = i ;
			for(ll j = i ; j <= n; j+= i){
				if(!f[j]) f[j] = i ;
			}
		}
	}
	bool isPrime(int x){ return f[x];}
	vector<int> factorList(int x){ 
		vector<int> res;
		while( x!= 1){
			res.push_back(f[x]);
			x /= f[x];
		}
		return res;
	}
	vector<P> factorCount(int x){
		vector<P> res;
		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().fi == p){
				res.back().se++;
			} else {
				res.emplace_back(p, 1);
			}
		}
		retrun res;
	}
};

int main()
{
	Sieve sieve(1e6);
	int n;
	cin >> n;
	vector<int> a(n);
	rep(i,n) cin >> a[i]; 
}


Compiler output:
a.cc:17:9: error: 'parir' does not name a type
   17 | typedef parir<int,int> P;
      |         ^~~~~
a.cc:41:16: error: 'P' was not declared in this scope
   41 |         vector<P> factorCount(int x){
      |                ^
a.cc:41:17: error: template argument 1 is invalid
   41 |         vector<P> factorCount(int x){
      |                 ^
a.cc:41:17: error: template argument 2 is invalid
a.cc: In member function 'int Sieve::factorCount(int)':
a.cc:42:24: error: 'P' was not declared in this scope
   42 |                 vector<P> res;
      |                        ^
a.cc:42:25: error: template argument 1 is invalid
   42 |                 vector<P> res;
      |                         ^
a.cc:42:25: error: template argument 2 is invalid
a.cc:45:25: error: template argument 2 is invalid
   45 |                 vector<P> res(1, P(fl[0], 0));
      |                         ^
a.cc:45:27: error: redeclaration of 'int res'
   45 |                 vector<P> res(1, P(fl[0], 0));
      |                           ^~~
a.cc:42:27: note: 'int res' previously declared here
   42 |                 vector<P> res;
      |                           ^~~
a.cc:47:34: error: request for member 'back' in 'res', which is of non-class type 'int'
   47 |                         if ( res.back().fi == p){
      |                                  ^~~~
a.cc:48:37: error: request for member 'back' in 'res', which is of non-class type 'int'
   48 |                                 res.back().se++;
      |                                     ^~~~
a.cc:50:37: error: request for member 'emplace_back' in 'res', which is of non-class type 'int'
   50 |                                 res.emplace_back(p, 1);
      |                                     ^~~~~~~~~~~~
a.cc:53:17: error: 'retrun' was not declared in this scope
   53 |                 retrun res;
      |                 ^~~~~~