vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:10:11: error: 'j' was not declared in this scope
10 | for(j = 0; j < w; j++) res.push_back(i * w + j);
| ^
vision.cpp:11:14: error: cannot convert 'std::vector<int>' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} in assignment
11 | r[i] = res;
| ^~~
| |
| std::vector<int>
vision.cpp:15:11: error: 'j' was not declared in this scope
15 | for(j = 0; j < h; j++) res.push_back(i * h + j);
| ^
vision.cpp:16:14: error: cannot convert 'std::vector<int>' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} in assignment
16 | r[i] = res;
| ^~~
| |
| std::vector<int>