Problem prime
User senkyte
Submission Time 2024-02-15 15:13:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:9:2: error: expected ‘}’ before ‘else’
9 | else if(num % 2 == 0){
| ^~~~
prime.cpp:7:14: note: to match this ‘{’
7 | if(num <= 1){
| ^
prime.cpp: At global scope:
prime.cpp:21:1: error: expected declaration before ‘}’ token
21 | }
| ^