Problem primefactorization
User lololol
Submission Time 2024-02-19 20:34:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

primefactorization.cpp: In function ‘int main()’:
primefactorization.cpp:10:19: error: ‘std::vector<std::pair<long int, long int> >::reverse_iterator’ {aka ‘class std::reverse_iterator<__gnu_cxx::__normal_iterator<std::pair<long int, long int>*, std::vector<std::pair<long int, long int> > > >’} has no member named ‘first’
10 | if(*v.rbegin().first==i){
| ^~~~~
primefactorization.cpp:11:17: error: ‘std::vector<std::pair<long int, long int> >::reverse_iterator’ {aka ‘class std::reverse_iterator<__gnu_cxx::__normal_iterator<std::pair<long int, long int>*, std::vector<std::pair<long int, long int> > > >’} has no member named ‘second’
11 | *v.rbegin().second=*v.rbegin().second+1;
| ^~~~~~
primefactorization.cpp:11:36: error: ‘std::vector<std::pair<long int, long int> >::reverse_iterator’ {aka ‘class std::reverse_itera