Problem | prime |
---|---|
User | joshua2152 |
Submission Time | 2023-11-04 12:05:08 |
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 ‘int’ to binary ‘operator%’
8 | if (sqrt(n) % i == 0) {
| ~~~~~~~ ^ ~
| | |
| | int
| __gnu_cxx::__enable_if<true, double>::__type {aka double}
prime.cpp:15:1: error: expected ‘}’ at end of input
15 | }
| ^
prime.cpp:5:12: note: to match this ‘{’
5 | int main() {
| ^