Problem prime
User P0lterg3ist
Submission Time 2023-02-15 16:05:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:4:12: error: expected primary-expression before ‘int’
4 | cin >> int n;
| ^~~
prime.cpp:6:31: error: ‘n’ was not declared in this scope
6 | for(int test = 2; test <= n/2; test++) {
| ^