/in/foo.c: In function 'main':
/in/foo.c:12:17: error: expected ']' before '}' token
if(a[j]>a[j+1})
^
/in/foo.c:12:17: error: expected ')' before '}' token
/in/foo.c:12:17: error: expected expression before '}' token
/in/foo.c:6:10: warning: unused variable 'temp' [-Wunused-variable]
int i,j,temp;
^~~~
/in/foo.c: At top level:
/in/foo.c:12:18: error: expected identifier or '(' before ')' token
if(a[j]>a[j+1})
^
/in/foo.c:19:9: error: expected declaration specifiers or '...' before string constant
printf("%d %d",a[1],a[2]);
^~~~~~~
/in/foo.c:19:17: error: unknown type name 'a'
printf("%d %d",a[1],a[2]);
^
/in/foo.c:19:22: error: unknown type name 'a'
printf("%d %d",a[1],a[2]);
^
/in/foo.c:20:2: error: expected identifier or '(' before 'return'
return 0;
^~~~~~
/in/foo.c:23:1: error: expected identifier or '(' before '}' token
}
^