Problem omnomnom
User SheepHeads
Submission Time 2024-02-12 15:07:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

omnomnom.cpp: In function ‘int main()’:
omnomnom.cpp:50:25: error: invalid initialization of reference of type ‘std::vector<int> (&)[]’ from expression of type ‘std::vector<int> [n]’
50 | cout << f(0, true, adjList);
| ^~~~~~~
omnomnom.cpp:4:46: note: in passing argument 3 of ‘int f(int, bool, std::vector<int> (&)[])’
4 | int f(int index, bool canTake, vector<int> (&adjList)[]){
| ~~~~~~~~~~~~~~^~~~~~~~~~