Main.cc: In function ‘int main()’: Main.cc:16:10: error: cannot resolve overloaded function ‘min’ based on conversion to type ‘int’ a[i]=min; ^~~