Main.cc: In function 'int main()': Main.cc:10:14: warning: spurious trailing '%' in format [-Wformat=] printf("%")height / 2 << endl; ^ Main.cc:10:15: error: expected ';' before 'height' printf("%")height / 2 << endl; ^