Main.cc: In function 'int main()': Main.cc:8:2: error: expected ';' before 'cout' cout<< num/10000 << num/1000%10 << num/100%10 <