Problem | modsum |
---|---|
User | 123456789 |
Submission Time | 2023-11-22 16:36:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
modsum.cpp: In function ‘int main()’:
modsum.cpp:12:102: error: expected ‘;’ before ‘}’ token
12 | for (auto k = n_sums[i-1].begin(); k != n_sums[i-1].end(); ++k) n_sums[i].push_back(j+*k)
| ^
| ;
13 | }
| ~
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)