Problem | dynamicdag |
---|---|
User | SheepHeads |
Submission Time | 2024-02-13 21:37:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dynamicdag.cpp: In function ‘int main()’:
dynamicdag.cpp:52:36: error: no matching function for call to ‘search(long long int&, long long int&, std::vector<long long int> [n])’
52 | if(search(a, n, adjList)){
| ^
dynamicdag.cpp:5:6: note: candidate: ‘bool search(long long int&, long long int&, std::vector<long long int> (&)[])’
5 | bool search(int &target, int &size, vector<int> (&adjList)[]){
| ^~~~~~
dynamicdag.cpp:5:51: note: no known conversion for argument 3 from ‘std::vector<long long int> [n]’ to ‘std::vector<long long int> (&)[]’
5 | 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:<