Main.cc: In function 'int main()': Main.cc:14:11: error: invalid operands of types 'int' and '' to binary 'operator>' if(a[i]>min) ^