/in/foo.cc: In function 'int main()':
/in/foo.cc:9:13: error: expected ')' before ';' token
if(a[i]==0;)break;
^
/in/foo.cc:9:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(a[i]==0;)break;
^~
/in/foo.cc:9:14: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(a[i]==0;)break;
^
/in/foo.cc:9:14: error: expected primary-expression before ')' token
/in/foo.cc:11:12: error: 'nan' was not declared in this scope
int sum=0;nan=2;
^~~