Main.cc: In function 'int main()': Main.cc:23:17: error: 'a' was not declared in this scope printf("%2",a/z," "); ^ Main.cc:24:14: error: invalid operands of types 'double' and 'const char [2]' to binary 'operator<<' cout