Main.cc: In function 'int main()': Main.cc:7:16: warning: format '%f' expects a matching 'double' argument [-Wformat=] printf("n.%2f") ^ Main.cc:8:2: error: expected ';' before 'return' return 0; ^