Language: C++

#include <bits/stdc++.h>
using namespace std;
#include <iostream>
#include <vector>
#include <cstdlib>
#include <cmath>
#include <math.h>
#include <sstream>
#include <numeric>
#include <cctype>
#include <bitset>
#include <cassert>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
#define SIZE 100005
#define INF 1000000000000000LL
using pint = pair<int,int>;
using vec = vector<int>;
using ll=long long;
using vll = vector<ll>;
using vvll = vector<vector<ll>>;
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; }

//nの素因数を配列に格納する関数
vector<vector<ll,ll>> prime_factorization(ll n){
    vector<pair<ll,ll>> res;
    for(ll 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() {
    ios::sync_with_stdio(false);
    cin.tie(0);

    ll res=0;
    int N; cin>>N;
    auto pf = prime_factorization(N);
    for(auto p : pf){
        ll e = p.second;
        ll tmp =0, cur =1;
        while(e>=cur) e -= cur++; tmp++;
        res+=tmp;
    }

    cout<<res<<endl;


}

Compiler output:
a.cc: In function 'std::vector<std::vector<long long int, long long int> > prime_factorization(ll)':
a.cc:37:12: error: could not convert 'res' from 'vector<std::pair<long long int, long long int>>' to 'vector<std::vector<long long int, long long int>>'
   37 |     return res;
      |            ^~~
      |            |
      |            vector<std::pair<long long int, long long int>>
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'struct std::_Vector_base<long long int, long long int>':
/usr/include/c++/14/bits/stl_vector.h:428:11:   required from 'class std::vector<long long int, long long int>'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
a.cc:48:18:   required from here
   48 |     for(auto p : pf){
      |                  ^~
/usr/include/c++/14/bits/stl_vector.h:87:28: error: 'long long int' is not a class, struct, or union type
   87 |         rebind<_Tp>::other _Tp_alloc_type;
      |                            ^~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:89:9: error: 'long long int' is not a class, struct, or union type
   89 |         pointer;
      |         ^~~~~~~
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'class std::vector<long long int, long long int>':
a.cc:48:18:   required from here
   48 |     for(auto p : pf){
      |                  ^~
/usr/include/c++/14/bits/stl_vector.h:518:20: error: '_M_allocate' has not been declared in 'std::vector<long long int, long long int>::_Base'
  518 |       using _Base::_M_allocate;
      |                    ^~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:519:20: error: '_M_deallocate' has not been declared in 'std::vector<long long int, long long int>::_Base'
  519 |       using _Base::_M_deallocate;
      |                    ^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:521:20: error: '_M_get_Tp_allocator' has not been declared in 'std::vector<long long int, long long int>::_Base'
  521 |       using _Base::_M_get_Tp_allocator;
      |                    ^~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:49:18: error: 'class std::vector<long long int, long long int>' has no member named 'second'
   49 |         ll e = p.second;
      |                  ^~~~~~