paint.cpp:6:31: error: 'll' was not declared in this scope
6 | int eq(int c[], int p, vector<ll> b[], int m)
| ^~
paint.cpp:6:33: error: template argument 1 is invalid
6 | int eq(int c[], int p, vector<ll> b[], int m)
| ^
paint.cpp:6:33: error: template argument 2 is invalid
paint.cpp: In function 'int eq(int*, int, int*, int)':
paint.cpp:12:28: error: 'begin' was not declared in this scope
12 | for(int j : b[i - p])
| ^
paint.cpp:12:28: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
from paint.cpp:2:
/usr/include/c++/10/valarray:1224:5: note: 'std::begin'
1224 | begin(const valarray<_Tp>& __va)
| ^~~~~
In file included from /usr/include/c++/10/filesystem:46,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from paint.cpp:2:
/usr/include/c++/10/bits/fs_dir.h:549:3: note: 'std::filesystem::__cxx11::begin'
549 | begin(recursive_directory_iterator __iter) noexcept
| ^~~~~
paint.cpp:12:28: error: 'end' was not declared in this scope
12 | for(int j : b[i - p])
| ^
paint.cpp:12:28: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
from paint.cpp:2:
/usr/include/c++/10/valarray:1244:5: note: 'std::end'
1244 | end(const valarray<_Tp>& __va)
| ^~~
In file included from /usr/include/c++/10/filesystem:46,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from paint.cpp:2:
/usr/include/c++/10/bits/fs_dir.h:554:3: note: 'std::filesystem::__cxx11::end'
554 | end(recursive_directory_iterator) noexcept
| ^~~
paint.cpp: In function 'int minimumInstructions(int, int, int, int*, int*, std::vector<int>*)':
paint.cpp:33:25: error: cannot convert 'std::vector<int>*' to 'int*'
33 | if(eq(c, i, b, m))
| ^
| |
| std::vector<int>*
paint.cpp:6:35: note: initializing argument 3 of 'int eq(int*, int, int*, int)'
6 | int eq(int c[], int p, vector<ll> b[], int m)
| ~~~~~~~~~~~^~~