Problem primefactorization
User YEethui
Submission Time 2023-11-05 13:14:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

primefactorization.cpp:13:26: error: variable or field ‘sieveOfEratosthenes’ declared void
13 | void sieveOfEratosthenes(vector<long long>& primes){
| ^~~~~~
primefactorization.cpp:13:26: error: ‘vector’ was not declared in this scope
primefactorization.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
primefactorization.cpp:13:33: error: expected primary-expression before ‘long’
13 | void sieveOfEratosthenes(vector<long long>& primes){
| ^~~~
primefactorization.cpp: In function ‘int main()’:
primefactorization.cpp:30:5: error: ‘vector’ was not declared in this scope
30 | vector<long long> primes;
| ^~~~~~
primefactorization.cpp:30:5: note: ‘std::vector’ is defined in header ‘&l