0_0_37109626_9867.cpp:1:27: error: 'vector' has not been declared
void Factorization(int n, vector <factor>& ans) {
^
0_0_37109626_9867.cpp:1:34: error: expected ',' or '...' before '<' token
void Factorization(int n, vector <factor>& ans) {
^
0_0_37109626_9867.cpp: In function 'void Factorization(int, int)':
0_0_37109626_9867.cpp:2:2: error: 'ans' was not declared in this scope
ans.clear();
^
0_0_37109626_9867.cpp:7:22: error: 'primes' was not declared in this scope
for(int i = 1; i <= primes[0]; i++) { // (2)
^
0_0_37109626_9867.cpp:9:4: error: 'factor' was not declared in this scope
factor f(primes[i], 0); // (4)
^
0_0_37109626_9867.cpp:12:5: error: 'f' was not declared in this scope
f.count ++;
^
0_0_37109626_9867.cpp:14:18: error: 'f' was not declared in this scope
ans.push_back(f); // (6)
^
0_0_37109626_9867.cpp:20:28: error: 'factor' was not declared in this scope
ans.push_back( factor(n, 1) ); // (7)
^
|