Problem prime
User Fjerds
Submission Time 2026-04-15 14:24:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:5:22: error: a function-definition is not allowed here before ‘{’ token
5 | bool isPrime(int n) {
| ^
prime.cpp:18:9: error: ‘isPrime’ was not declared in this scope
18 | if (isPrime(num))
| ^~~~~~~