Problem prime
User NoynYT
Submission Time 2023-04-28 20:45:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘bool check()’:
prime.cpp:6:6: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | if (n == 1){cout<<"Not Prime";return 0;}
| ^
| yn
prime.cpp:7:20: error: ‘n’ was not declared in this scope
7 | for (int i = 2;i<n;++i) {
| ^
prime.cpp: At global scope:
prime.cpp:14:1: error: expected declaration before ‘}’ token
14 | }
| ^