Problem prime
User Elwinthenerd
Submission Time 2024-03-31 13:30:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:10:17: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
10 | int result = "Not Prime";
| ^~~~~~~~~~~
| |
| const char*
prime.cpp:14:6: error: ‘result’ was not declared in this scope
14 | if (result != "Not Prime") {
| ^~~~~~