Main.cc: In function 'int main()': Main.cc:6:11: error: 'a' was not declared in this scope if(0<=a&&a<5) printf("%.3lf",-1*x+2.5); ^