Problem chessislands
User SheepHeads
Submission Time 2024-02-05 23:04:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

chessislands.cpp: In function ‘int main()’:
chessislands.cpp:65:31: error: invalid initialization of reference of type ‘std::vector<long long int> (&)[]’ from expression of type ‘std::vector<long long int> [n]’
65 | ans += minSize(i, adjList, area, vis);
| ^~~~~~~
chessislands.cpp:5:38: note: in passing argument 2 of ‘long long int minSize(long long int, std::vector<long long int> (&)[], std::vector<long long int>&, std::vector<long long int>&)’
5 | int minSize(int start, vector<int> (&adjList)[], vector<int> (&area), vector<int> (&vis)){
| ~~~~~~~~~~~~~~^~~~~~~~~~