Problem prime
User integrateErrorFunction
Submission Time 2023-11-06 15:20:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int isPrime(int)’:
prime.cpp:6:10: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
6 | return "Not Prime";
| ^~~~~~~~~~~
| |
| const char*
prime.cpp:9:10: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
9 | return "Prime";
| ^~~~~~~
| |
| const char*
prime.cpp:12:16: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
12 | return "Not Prime";
| ^~~~~~~~~~~
| |
| const char*
prime.cpp:16:20: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
16 | return "Not Prime";
| ^~~~~~~~~~~
| |
| const char*
prime.cpp:19:12: error: invalid conversion from ‘const char*’ to ‘in