Problem | primefactorization |
---|---|
User | Duk168 |
Submission Time | 2024-03-26 08:15:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
primefactorization.cpp: In function ‘void print_prime_factors(long long int)’:
primefactorization.cpp:38:29: error: cannot convert ‘std::pair<long long int, int>’ to ‘long long int’ in initialization
38 | for (long long factor : factors) {
| ^~~~~~~
primefactorization.cpp:39:24: error: request for member ‘first’ in ‘factor’, which is of non-class type ‘long long int’
39 | cout << factor.first << "^" << factor.second << endl;
| ^~~~~
primefactorization.cpp:39:47: error: request for member ‘second’ in ‘factor’, which is of non-class type ‘long long int’
39 | cout << factor.first << "^" << factor.second << endl;
| ^~~~~~