Main.cc: In function 'int main()': Main.cc:6:6: error: redeclaration of 'int f' int f = c * 9 / 5 + 32; ^ Main.cc:5:6: note: 'int f' previously declared here int f; ^