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

Compile Error

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