Problem nprime
User DoubleShaurya
Submission Time 2023-02-16 09:26:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nprime.cpp:4:15: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
4 | bool isPrime (n) {
| ^
| yn
nprime.cpp: In function ‘int main()’:
nprime.cpp:23:15: error: ‘i’ was not declared in this scope
23 | if (isPrime(i)) {
| ^
nprime.cpp:23:16: error: ‘isPrime’ cannot be used as a function
23 | if (isPrime(i)) {
| ^