Main.cc: In function 'int main()': Main.cc:19:2: error: expected ';' before 'printf' printf("%.2f%%\n",S1935*1.0/n*100) ^