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