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