Main.cc: In function 'int main()': Main.cc:5:38: error: expected primary-expression before '%' token scanf("%1d%1d%1d%1d%1d",&a,&b,&c,&d,%e); ^