Problem primepie
User PlayVoltz
Submission Time 2023-12-22 03:25:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

primepie.cpp: In function ‘bool isPrime(int)’:
primepie.cpp:6:6: error: ‘num’ was not declared in this scope; did you mean ‘pnum’?
6 | if (num <= 1) return false;
| ^~~
| pnum
primepie.cpp:7:6: error: ‘num’ was not declared in this scope; did you mean ‘pnum’?
7 | if (num <= 3) return true;
| ^~~
| pnum
primepie.cpp:8:6: error: ‘num’ was not declared in this scope; did you mean ‘pnum’?
8 | if (num % 2 === 0 || num % 3 === 0) return false;
| ^~~
| pnum
primepie.cpp:8:16: error: expected primary-expression before ‘=’ token
8 | if (num % 2 === 0 || num % 3 === 0) return false;
| ^
primepie.cpp:8:33: error: expected primary-expression before ‘=’ token
8 | if (num % 2 === 0 || num % 3 === 0) return false;
| ^