Problem dynamicdag
User SheepHeads
Submission Time 2024-02-13 21:37:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dynamicdag.cpp: In function ‘int main()’:
dynamicdag.cpp:51:36: error: no matching function for call to ‘search(int&, int&, std::vector<int> [n])’
51 | if(search(a, n, adjList)){
| ^
dynamicdag.cpp:4:6: note: candidate: ‘bool search(int&, int&, std::vector<int> (&)[])’
4 | bool search(int &target, int &size, vector<int> (&adjList)[]){
| ^~~~~~
dynamicdag.cpp:4:51: note: no known conversion for argument 3 from ‘std::vector<int> [n]’ to ‘std::vector<int> (&)[]’
4 | bool search(int &target, int &size, vector<int> (&adjList)[]){
| ~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from dynamicdag.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:4176:5: note: candidate: ‘template<clas