fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int *vernutMassiv()
  5. {
  6. static int massiv[] = {1, 2, 3};
  7. return massiv;
  8. }
  9.  
  10. int main() {
  11. std::cout << vernutMassiv()[1];
  12. return 0;
  13. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
2