All pastes #27399 Raw Edit

Mine

public cpp v1 · immutable
#27399 ·published 2005-11-02 12:22 UTC
rendered paste body
  int **puzzle;  puzzle = (int **) malloc(N * sizeof(int *));  if (!puzzle) {    fprintf(stderr, "Error allocating memory for translation.\n");    exit(0);  }  for (i=0; i<N; i++) {    puzzle[i] = (int *) malloc(N * sizeof(int));    if (!puzzle[i]) {      fprintf(stderr, "Error allocating memory for translation.\n");    }  }