Problem collectmushrooms6
User RandomCtfNoob
Submission Time 2025-01-27 16:32:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms6.cpp: In function ‘int main()’:
collectmushrooms6.cpp:23:27: error: cannot convert ‘std::vector<std::array<int, 4> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<std::array<int, 4>*, std::vector<std::array<int, 4> > >’} to ‘int’ in initialization
23 | for (int i = sprink.begin(); i != sprink.end(); i++){
| ~~~~~~~~~~~~^~
| |
| std::vector<std::array<int, 4> >::iterator {aka __gnu_cxx::__normal_iterator<std::array<int, 4>*, std::vector<std::array<int, 4> > >}
collectmushrooms6.cpp:23:33: error: no match for ‘operator!=’ (operand types are ‘int’ and ‘std::vector<std::array<int, 4> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<std::array<int, 4>*, std::vector<std::array<int, 4> > >’})
23 | for (int i = sprink.begin(); i != sprink.end(); i++){