Problem prime
User cyhg
Submission Time 2023-11-14 14:05:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:14:34: error: expected ‘;’ before ‘{’ token
14 | } else if ((n == 2) or (n == 3) {
| ^~
| ;
prime.cpp:16:5: error: expected primary-expression before ‘else’
16 | } else {
| ^~~~
prime.cpp:16:4: error: expected ‘)’ before ‘else’
16 | } else {
| ^~~~~
| )
prime.cpp:14:13: note: to match this ‘(’
14 | } else if ((n == 2) or (n == 3) {
| ^