Problem prime
User mentcletan
Submission Time 2024-04-15 13:57:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:14:3: error: expected ‘}’ before ‘else’
14 | else{
| ^~~~
prime.cpp:12:43: note: to match this ‘{’
12 | if (n == 2 || n == 3 || n == 5 || n ==7){
| ^
prime.cpp:17:5: error: expected ‘}’ before ‘else’
17 | else{
| ^~~~
prime.cpp:11:23: note: to match this ‘{’
11 | else if (n>1 && n<10){
| ^