0_0_36883663_5974.cpp: In function 'int main()': 0_0_36883663_5974.cpp:24:30: error: 'PI' was not declared in this scope double bit = (0.5*log(2*PI*n)+n*log((double)n)-n)/log((double)10); ^