Main.cc: In lambda function: Main.cc:13:11: error: expected ‘{’ before ‘[’ token maxn=[r][1],k=1; ^ Main.cc: In function ‘int main()’: Main.cc:13:11: error: no match for ‘operator[]’ (operand types are ‘main()::’ and ‘int’) Main.cc: In lambda function: Main.cc:20:11: error: expected ‘{’ before ‘[’ token minn=[r][k],h=1; ^ Main.cc: In function ‘int main()’: Main.cc:20:11: error: no match for ‘operator[]’ (operand types are ‘main()::’ and ‘int’)