Problem | modsum |
---|---|
User | 123456789 |
Submission Time | 2023-11-22 16:46:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
modsum.cpp: In function ‘int main()’:
modsum.cpp:16:66: error: invalid operands of types ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} and ‘int’ to binary ‘operator%’
16 | for (auto& x : n_sums[n]) sum += (pow(x, 4) + pow(x, 2) * 2) % 5 + 1;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
| | |
| | int
| __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}