0_0_17520574_25349.cpp:1:1: error: 'A' does not name a type A+B ^ 0_0_17520574_25349.cpp: In function 'int main()': 0_0_17520574_25349.cpp:6:20: error: 'r' was not declared in this scope while(scanf("%lf",&r)!=EOF) ^