Problem universe
User SheepHeads
Submission Time 2024-02-19 20:12:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

universe.cpp: In function ‘int main()’:
universe.cpp:53:39: error: invalid initialization of reference of type ‘std::vector<long long int> (&)[]’ from expression of type ‘std::vector<long long int> [n]’
53 | cout << getSum(0, 0, k, num, vis, adjList);
| ^~~~~~~
universe.cpp:5:96: note: in passing argument 6 of ‘long long int getSum(long long int, long long int, long long int&, std::vector<bool>&, std::vector<bool>&, std::vector<long long int> (&)[])’
5 | int getSum(int index, int steps, int &max, vector<bool> &num, vector<bool> &vis, vector<int> (&adjList)[]){
| ~~~~~~~~~~~~~~^~~~~~~~~~