Problem | smallprimes_ex |
---|---|
User | peaceknight05 |
Submission Time | 2024-01-02 23:24:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
smallprimes_ex.cpp: In function ‘void recurse(std::vector<int>&, std::vector<long long unsigned int>*, ll, ll)’:
smallprimes_ex.cpp:14:9: error: request for member ‘push_back’ in ‘powers’, which is of pointer type ‘std::vector<long long unsigned int>*’ (maybe you meant to use ‘->’ ?)
14 | powers.push_back(n);
| ^~~~~~~~~
smallprimes_ex.cpp:17:14: error: invalid initialization of non-const reference of type ‘std::vector<int>&’ from an rvalue of type ‘ll’ {aka ‘long long int’}
17 | recurse(n * primes.at(i), i);
| ~~^~~~~~~~~~~~~~
smallprimes_ex.cpp:13:27: note: in passing argument 1 of ‘void recurse(std::vector<int>&, std::vector<long long unsigned int>*, ll, ll)’
13 | void recurse(vector<int> &primes, vector<ull> *powers, ll n, ll idx) {
| ~~~~~~~~~~~~~^~~~~~
smallprimes_ex.cpp: In function ‘int main()’:
smallprimes_ex.cpp:40:13: error: inval