Main.cc: In lambda function: Main.cc:15:13: error: expected '{' before '[' token cout<<[d][j] ^ Main.cc: In function 'int main()': Main.cc:15:13: error: no match for 'operator[]' (operand types are 'main()::' and 'int')