/in/foo.cc: In function 'int main()':
/in/foo.cc:6:12: error: expected ')' before ';' token
  if(int i=1;i<=a;i++)
            ^
/in/foo.cc:6:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(int i=1;i<=a;i++)
  ^~
/in/foo.cc:6:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(int i=1;i<=a;i++)
             ^
/in/foo.cc:6:9: warning: unused variable 'i' [-Wunused-variable]
  if(int i=1;i<=a;i++)
         ^
/in/foo.cc:6:13: error: 'i' was not declared in this scope
  if(int i=1;i<=a;i++)
             ^