fork(3) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct A{
  5. int a=1;
  6. int f(){
  7. int a=2;
  8. return a;
  9. };
  10. };
  11.  
  12. int main() {
  13. A a;
  14. cout<<a.f();
  15. return 0;
  16. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
2