Problem prime
User jian
Submission Time 2023-09-09 18:12:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:23:45: error: invalid operands of types ‘const char [10]’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’
23 | cout << isPrime(n) ? "Prime" : "Not Prime" << endl;
| ~~~~~~~~~~~~^~~~~~~