Problem 0405
User Soysauce
Submission Time 2024-04-28 18:33:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

0405.cpp: In function ‘bool is_prime(long double)’:
0405.cpp:11:17: error: invalid operands of types ‘long double’ and ‘long double’ to binary ‘operator%’
11 | if (num % i == 0) {
| ~~~ ^ ~
| | |
| | long double
| long double
0405.cpp: At global scope:
0405.cpp:3:18: error: ‘::main’ must return ‘int’
3 | #define int long double
| ^~~~~~
0405.cpp:35:1: note: in expansion of macro ‘int’
35 | int main() {
| ^~~