| Problem | primefactorization |
|---|---|
| User | ThinkingGeek257 |
| Submission Time | 2026-06-23 15:19:07 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
primefactorization.cpp: In function ‘int main()’:
primefactorization.cpp:3:13: error: expected ‘,’ or ‘;’ before ‘long’
3 | #define int long long
| ^~~~
primefactorization.cpp:7:2: note: in expansion of macro ‘int’
7 | int count = 0
| ^~~
primefactorization.cpp:9:9: error: ‘N’ was not declared in this scope
9 | cin >> N;
| ^
primefactorization.cpp:13:11: error: overloaded function with no contextual type information
13 | count+=1;
| ^
primefactorization.cpp:15:13: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator!=’
15 | if (count != 0){
| ~~~~~~^~~~
primefactorization.cpp:16:12: error: ‘tostring’ was not declared in this scope
16 | cout << tostring(factor) << "^" << tostring(count) << endl;
| ^~~~~~~~