Main.cc: In function ‘int main()’: Main.cc:12:7: error: ‘j’ was not declared in this scope for(j=i+1;j<=n;j++){ ^ Main.cc:16:10: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘int’ a[i]=min; ^~~ Main.cc:6:10: warning: unused variable ‘z’ [-Wunused-variable] int n,i,z,minn; ^