Main.cc: In function 'int main()':
Main.cc:17:29: error: expected identifier before numeric constant
s=(l-2)*1.8+(l-10)*[1.8+(1.8*0.5)];
^
Main.cc: In lambda function:
Main.cc:17:43: error: expected '{' before ';' token
s=(l-2)*1.8+(l-10)*[1.8+(1.8*0.5)];
^
Main.cc: In function 'int main()':
Main.cc:17:27: error: no match for 'operator*' (operand types are 'int' and 'main()::')
s=(l-2)*1.8+(l-10)*[1.8+(1.8*0.5)];
^