Problem | prime |
---|---|
User | joshua2152 |
Submission Time | 2023-11-04 12:04:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prime.cpp: In function ‘int main()’:
prime.cpp:8:15: error: invalid operands of types ‘__gnu_cxx::__enable_if<true, double>::__type’ {aka ‘double’} and ‘long int’ to binary ‘operator%’
8 | if (sqrt(n) % i == 0) {
| ~~~~~~~ ^ ~
| | |
| | long int
| __gnu_cxx::__enable_if<true, double>::__type {aka double}
prime.cpp:14:1: error: expected ‘}’ at end of input
14 | }
| ^
prime.cpp:5:12: note: to match this ‘{’
5 | int main() {
| ^