fork(3) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int &something() {
  5. int i = 5, &j = i;
  6. return j;
  7. }
  8.  
  9.  
  10. int main() {
  11.  
  12. int &k = something();
  13. std::cout << k << endl;
  14. // your code goes here
  15. return 0;
  16. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
0