Problem | modsum |
---|---|
User | 123456789 |
Submission Time | 2023-11-22 16:43:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
modsum.cpp: In function ‘int main()’:
modsum.cpp:16:42: error: invalid type argument of unary ‘*’ (have ‘int’)
16 | for (auto& x : n_sums[n]) sum += (x**4 + 2*(x**2)) % 5 + 1;
| ^
modsum.cpp:16:52: error: invalid type argument of unary ‘*’ (have ‘int’)
16 | for (auto& x : n_sums[n]) sum += (x**4 + 2*(x**2)) % 5 + 1;
| ^