Main.cc: In lambda function: Main.cc:20:18: error: expected '{' before '[' token cout<<[i][0]; ^ Main.cc: In function 'int main()': Main.cc:20:18: error: no match for 'operator[]' (operand types are 'main()::' and 'int')