Problem | prime |
---|---|
User | wezmaster |
Submission Time | 2023-11-15 15:32:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prime.cpp: In function ‘int main()’:
prime.cpp:5:33: error: a function-definition is not allowed here before ‘{’ token
5 | int main() {bool isPrime(int n) {
| ^
prime.cpp:22:9: error: ‘isPrime’ was not declared in this scope
22 | if (isPrime(n)) {
| ^~~~~~~