Problem prime
User Biologyhater123
Submission Time 2025-02-12 16:46:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int32_t main()’:
prime.cpp:9:5: error: expected initializer before ‘cin’
9 | cin >>n
| ^~~
prime.cpp:12:20: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
12 | int div = sqrt(n) + 100;
| ^
| yn
prime.cpp:17:13: error: ‘can’ was not declared in this scope; did you mean ‘tan’?
17 | can = true;
| ^~~
| tan
prime.cpp:22:8: error: ‘can’ was not declared in this scope; did you mean ‘tan’?
22 | if(can) cout << "NOT PRIME";
| ^~~
| tan