Problem | prime |
---|---|
User | TingAn1212 |
Submission Time | 2023-10-30 11:23:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prime.cpp: In function ‘int main()’:
prime.cpp:15:20: error: invalid operands of types ‘__gnu_cxx::__enable_if<true, double>::__type’ {aka ‘double’} and ‘long long int’ to binary ‘operator%’
15 | if (sqrt(n)%i==0){
| ~~~~~~~^~
| | |
| | long long int
| __gnu_cxx::__enable_if<true, double>::__type {aka double}