Main.cc: In function ‘int main()’: Main.cc:13:5: error: expected ‘;’ before ‘a’ a[j]=tmp; ^ Main.cc:11:9: warning: unused variable ‘tmp’ [-Wunused-variable] int tmp=a[i]; ^~~