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

Compile Error

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