Problem primesort
User Tracxr
Submission Time 2024-01-28 11:49:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

primesort.cpp: In function ‘void primeFactors(int, int)’:
primesort.cpp:9:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
9 | ans[i=k].push_back(2);
| ^~~
| abs
primesort.cpp:9:13: error: ‘i’ was not declared in this scope
9 | ans[i=k].push_back(2);
| ^
primesort.cpp:20:13: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
20 | ans[k].push_back(i);
| ^~~
| abs
primesort.cpp:28:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
28 | ans[k].push_back(n);
| ^~~
| abs
primesort.cpp: In function ‘int main()’:
primesort.cpp:35:15: error: ‘arr’ was not declared in this scope
35 | std::cin >> arr[i];
| ^~~
primesort.cpp:37:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?