fork download
  1. #include<iostream>
  2. #include<cstdio>
  3. using namespace std;
  4. #define PI 3.14
  5. void fun();
  6.  
  7. int main()
  8. {
  9. printf("%f\n",PI);
  10. #define PI 3.141528
  11. fun();
  12. }
  13.  
  14. void fun()
  15. {
  16. printf("%f\n",PI);
  17. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
3.140000
3.141528