0_0_26324665_144.cpp: In function 'int main()': 0_0_26324665_144.cpp:12:43: error: 'counternum' was not declared in this scope scanf("%lf%lf%lf%d",&dis,&va,&vb,&counternum);/**/ ^