Problem prime
User fanqie
Submission Time 2023-11-22 23:16:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int32_t main()’:
prime.cpp:12:12: error: expected initializer before ‘?’ token
12 | bool prime?==true;
| ^
prime.cpp:17:4: error: ‘prime’ was not declared in this scope
17 | prime?==false;
| ^~~~~
prime.cpp:17:10: error: expected primary-expression before ‘==’ token
17 | prime?==false;
| ^~
prime.cpp:17:17: error: expected ‘:’ before ‘;’ token
17 | prime?==false;
| ^
| :
prime.cpp:17:17: error: expected primary-expression before ‘;’ token
prime.cpp:20:6: error: ‘prime’ was not declared in this scope
20 | if (prime?==true){
| ^~~~~
prime.cpp:20:12: error: expected primary-expression before ‘==’ token
20 | if (prime?==true){
| ^~
prime.cpp:20:18: error: expected ‘:’ before ‘)’ token
20 | if (prime?==true){
| ^
|