Problem amicablecats
User Hytoh
Submission Time 2023-12-27 15:30:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

amicablecats.cpp: In function ‘int main()’:
amicablecats.cpp:8:12: error: expected primary-expression before ‘for’
8 | int pd {for (int i = 1; i <= n; i++) {
| ^~~
amicablecats.cpp:8:12: error: expected ‘}’ before ‘for’
amicablecats.cpp:8:28: error: ‘i’ was not declared in this scope
8 | int pd {for (int i = 1; i <= n; i++) {
| ^
amicablecats.cpp:20:37: error: ‘sum’ was not declared in this scope
20 | unsigned long long int p1 = sum;
| ^~~
amicablecats.cpp:21:29: error: ‘pd’ cannot be used as a function
21 | if (p1 != i && pd(p1) == i) {
| ^
amicablecats.cpp:23:13: error: break statement not within loop or switch
23 | break;
| ^~~~~
amicablecats.cpp: At global scope:
amicablecats.cpp:26:5: error: ‘cout’ does not name a type
26 |