0_0_37232986_27197.cpp: In function 'int main()': 0_0_37232986_27197.cpp:2:12: error: 'PI' was not declared in this scope #define PI PI 3.1415927 ^ 0_0_37232986_27197.cpp:7:16: note: in expansion of macro 'PI' volume = 4 * PI*r*r*r / 3.0; ^