In C++, looping through a sequence container c can be done using indexes as follows:
for(size_t i = 0; i < c.size(); ++i) c[i] = 0;
While simple, such writings are subject to common semantic errors, like wrong comparison operator, or wrong indexing variable:
for(size_t i = 0; i <= c.size(...