fork(3) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int ile;
  6.  
  7. int main()
  8. {
  9. cout<<"Ile komorek zarezerowaac w tablicy: ";
  10. cin>>ile;
  11. int*w;
  12. w= new int[ile];
  13. for(int i=1;i<=ile;i++)
  14. {
  15. cout<<(long long)w<<endl;
  16. w++;
  17. }
  18.  
  19.  
  20.  
  21.  
  22. delete []w;
  23.  
  24. return 0;
  25. }
Runtime error #stdin #stdout #stderr 0.01s 5372KB
stdin
10
stdout
Ile komorek zarezerowaac w tablicy: 94669150871184
94669150871188
94669150871192
94669150871196
94669150871200
94669150871204
94669150871208
94669150871212
94669150871216
94669150871220
stderr
free(): invalid pointer