Problem modsum
User 123456789
Submission Time 2023-11-22 16:35:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

modsum.cpp: In function ‘int main()’:
modsum.cpp:12:39: error: ‘class std::vector<int>’ has no member named ‘start’
12 | for (auto k = n_sums[i-1].start(); k != n_sums[i-1].end(); ++k) n_sums[i].push_back(j+*k)
| ^~~~~
modsum.cpp:16:29: error: ‘class std::vector<int>’ has no member named ‘start’
16 | for (auto x = n_sums[n].start(); x != n_sums[n].end(); ++x) sum += (*x**4 + 2*(*x**2)) % 5 + 1;
| ^~~~~
modsum.cpp:16:77: error: invalid type argument of unary ‘*’ (have ‘int’)
16 | for (auto x = n_sums[n].start(); 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].start(); x != n_sums[n].end(); ++x) sum += (*x**4 + 2*(*x**2)) % 5 + 1;