Guest User

Untitled

a guest
Jan 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. long currsize = 524288;
  2. int *insertedEdges = new int[currsize*currsize];
  3.  
  4. terminate called after throwing an instance of 'std::bad_alloc'
  5.  
  6. printf("ALLOCATIONS START n");
  7. int **insertedEdges = new int*[currsize];
  8. for(int i = 0; i < currsize; i++) {
  9. insertedEdges[i] = new int[currsize];
  10. }
Add Comment
Please, Sign In to add comment