Main.cc:3:19: error: invalid types ‘int[int]’ for array subscript bool flg [105 [105] ; ^ Main.cc:3:21: error: expected ‘]’ before ‘;’ token bool flg [105 [105] ; ^ Main.cc: In function ‘void dfs(int, int)’: Main.cc:16:22: error: ‘flg’ was not declared in this scope if ( ! vst [i] and flg [x] [i] ) ^~~ Main.cc: In function ‘int main()’: Main.cc:36:11: error: ‘flg’ was not declared in this scope cin >> flg [i] [j] ; ^~~