Main.cc: In lambda function:
Main.cc:10:11: error: expected '{' before ';' token
sum+=[i];
^
Main.cc: In function 'int main()':
Main.cc:10:6: error: no match for 'operator+=' (operand types are 'int' and 'main()::')
sum+=[i];
^