Problem prime
User YH
Submission Time 2024-02-03 16:01:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:8:2: error: ‘n1’ was not declared in this scope; did you mean ‘n’?
8 | n1 = n + 1;
| ^~
| n
prime.cpp:9:2: error: ‘n2’ was not declared in this scope; did you mean ‘n’?
9 | n2 = n - 1;
| ^~
| n