Main.cc: In function ‘int main()’: Main.cc:5:5: error: ‘intn’ was not declared in this scope intn,a[10],b[10],cnt1=0,cnt2=0; ^~~~ Main.cc:5:5: note: suggested alternative: ‘int’ intn,a[10],b[10],cnt1=0,cnt2=0; ^~~~ int Main.cc:5:10: error: ‘a’ was not declared in this scope intn,a[10],b[10],cnt1=0,cnt2=0; ^ Main.cc:5:16: error: ‘b’ was not declared in this scope intn,a[10],b[10],cnt1=0,cnt2=0; ^ Main.cc:5:22: error: ‘cnt1’ was not declared in this scope intn,a[10],b[10],cnt1=0,cnt2=0; ^~~~ Main.cc:5:22: note: suggested alternative: ‘int’ intn,a[10],b[10],cnt1=0,cnt2=0; ^~~~ int Main.cc:5:29: error: ‘cnt2’ was not declared in this scope intn,a[10],b[10],cnt1=0,cnt2=0; ^~~~ Main.cc:5:29: note: suggested alternative: ‘int’ intn,a[10],b[10],cnt1=0,cnt2=0; ^~~~ int Main.cc:7:14: error: ‘n’ was not declared in this scope cin>>n; ^ Main.cc:8:22: error: ‘cnt’ was not declared in this scope if(n%2==1) a[cnt++]=n; ^~~ Main.cc:8:22: note: suggested alternative: ‘int’ if(n%2==1) a[cnt++]=n; ^~~ int Main.cc:11:14: error: ‘cnt’ was not declared in this scope sort(a,a+cnt,cmp); ^~~ Main.cc:11:14: note: suggested alternative: ‘int’ sort(a,a+cnt,cmp); ^~~ int Main.cc:11:18: error: ‘cmp’ was not declared in this scope sort(a,a+cnt,cmp); ^~~ Main.cc:11:5: error: ‘sort’ was not declared in this scope sort(a,a+cnt,cmp); ^~~~ Main.cc:11:5: note: suggested alternative: ‘qsort’ sort(a,a+cnt,cmp); ^~~~ qsort Main.cc:16:24: error: expected ‘)’ before ‘;’ token for(int i=0;;i