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