Problem iroha
User lzy
Submission Time 2025-03-21 15:45:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

iroha.cpp: In function ‘int main()’:
iroha.cpp:29:19: error: invalid initialization of reference of type ‘bool (&)[]’ from expression of type ‘bool [(n + 1)]’
29 | dfs(i, g, visited, cnt);
| ^~~~~~~
iroha.cpp:4:50: note: in passing argument 3 of ‘void dfs(int, std::vector<std::deque<int> >&, bool (&)[], int&)’
4 | void dfs(int node, vector<deque<int>> &g, bool (&visited)[], int &cnt){
| ~~~~~~~^~~~~~~~~~