Problem prime
User Kiameimon
Submission Time 2024-02-17 12:46:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:38:32: error: expected ‘;’ before ‘cout’
38 | if(isPrime(n, distrib(gen)% n) cout << "Prime";
| ^~~~~
| ;
prime.cpp:39:2: error: expected primary-expression before ‘else’
39 | else cout << "Not Prime";
| ^~~~
prime.cpp:38:49: error: expected ‘)’ before ‘else’
38 | if(isPrime(n, distrib(gen)% n) cout << "Prime";
| ~ ^
| )
39 | else cout << "Not Prime";
| ~~~~