/in/foo.cc: In function 'int main()':
/in/foo.cc:9:15: error: expected identifier before numeric constant
for(int i =[ 0; i < n; i++){
^
/in/foo.cc:9:16: error: expected ']' before ';' token
for(int i =[ 0; i < n; i++){
^
/in/foo.cc: In lambda function:
/in/foo.cc:9:16: error: expected '{' before ';' token
/in/foo.cc: In function 'int main()':
/in/foo.cc:9:16: error: invalid user-defined conversion from 'main()::<lambda()>' to 'int' [-fpermissive]
/in/foo.cc:9:16: note: candidate is: main()::<lambda()>::operator void (*)()() const <near match>
/in/foo.cc:9:16: note: no known conversion from 'void (*)()' to 'int'
/in/foo.cc:11:15: error: expected ']' before ')' token
if(a[i > mix){
^