fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. volatile int n=1,tb[3];
  7. cout<<n<<endl;
  8. tb[-1]=2;
  9. cout<<n<<endl;
  10. tb[-1]=3;
  11. cout<<n<<endl;
  12. tb[-1]=4;
  13. cout<<n<<endl;
  14. return 0;
  15. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
1
2
3
4