0_0_18307192_30168.cpp: In function 'int bfs(int)': 0_0_18307192_30168.cpp:101:38: error: invalid types '<unresolved overloaded function type>[int]' for array subscript for(i=first[u];i!=-1;i=next[i]) ^