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