fork(1) download
  1. #include <iostream>
  2. #include <set>
  3. using namespace std;
  4.  
  5. set<int> foo;
  6. set<int> &setik = foo;
  7.  
  8. void fn()
  9. {
  10. set<int> temp;
  11. temp.insert(5);
  12. setik = temp;
  13. }
  14.  
  15. int main() {
  16. fn();
  17. setik.size();
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 3708KB
stdin
Standard input is empty
stdout
Standard output is empty