Problem prime
User Hi1057
Submission Time 2025-06-27 21:22:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:4:24: error: a function-definition is not allowed here before ‘{’ token
4 | string isPrime(int n) {
| ^
prime.cpp:18:10: error: ‘isPrime’ was not declared in this scope
18 | cout << isPrime(a);
| ^~~~~~~