fork download
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <cstring>
  4.  
  5. using namespace std;
  6.  
  7. static char * ARGV[] = { "32", "hello", "world", NULL };
  8.  
  9. int main(int argc, char** argv)
  10. {
  11. argc = 3;
  12. argv = ARGV;
  13. int SIZE = (int) (strtof(argv[1],NULL)/8);
  14. int **arr = new int*[SIZE];
  15. for(int i = 0; i < SIZE; i++)
  16. arr[i] = new int[SIZE*4];
  17.  
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 4352KB
stdin
32
stdout
Standard output is empty