Problem prime
User noob41
Submission Time 2023-11-09 15:54:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int32_t main()’:
prime.cpp:10:18: error: expected primary-expression before ‘}’ token
10 | } else if (n==2)}
| ^
prime.cpp: At global scope:
prime.cpp:11:3: error: ‘cout’ does not name a type
11 | cout<<"Prime";
| ^~~~
prime.cpp:12:2: error: expected declaration before ‘}’ token
12 | } else{
| ^
prime.cpp:12:4: error: expected unqualified-id before ‘else’
12 | } else{
| ^~~~
prime.cpp:19:1: error: expected declaration before ‘}’ token
19 | }
| ^