Problem | prime |
---|---|
User | wezmaster |
Submission Time | 2023-11-15 15:33:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prime.cpp: In function ‘bool isPrime(int)’:
prime.cpp:12:6: error: ‘else’ without a previous ‘if’
12 | }else{
| ^~~~
prime.cpp:16:12: error: a function-definition is not allowed here before ‘{’ token
16 | int main() {
| ^
prime.cpp:28:1: error: expected ‘}’ at end of input
28 | }
| ^
prime.cpp:3:21: note: to match this ‘{’
3 | bool isPrime(int n) {
| ^