Main.cc: In function 'int main()': Main.cc:10:22: error: invalid type argument of unary '*' (have 'int') cout' to binary 'operator<' cout<<c*1000+b*100+*10<e<<endl; ^