Main.cc: In function 'int main()': Main.cc:22:32: error: 'print' was not declared in this scope print("%.2f",(c*100.0)/(n*m)); ^