fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. /*const int INF=99999;
  5. char maze[MAX_Y][MAX_X+1];
  6. int sx,sy;
  7. int gx,gy;
  8. int sizex,sizey;
  9. int d[MAX_Y][MAX_X];
  10. int dx[4]={1, 0, -1, 0};
  11. int dy[4]={0, 1, 0, -1};*/
  12. char c,tmp;
  13. int i,j;
  14.  
  15. scanf("%d",&sizex);
  16. scanf("%d",&sizey);
  17.  
  18. for(i=0; i<sizex; i++){
  19. for(j=0;j<sizey; j++){
  20. printf("%d %d",i,j);
  21. scanf("%c",&c);
  22. scanf("%c",&tmp);
  23. maze[i][j]=c;
  24. }
  25. printf("\n");
  26. }
  27. putchar('\n');
  28. for(i=0; i<sizex; i++){
  29. for(j=0;j<sizey; j++){
  30. printf("%c",maze[i][j]);
  31. }
  32. printf("\n");
  33. }
  34. return(0);
  35. }
  36.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:15:14: error: 'sizex' undeclared (first use in this function)
  scanf("%d",&sizex);
              ^
prog.c:15:14: note: each undeclared identifier is reported only once for each function it appears in
prog.c:16:14: error: 'sizey' undeclared (first use in this function)
  scanf("%d",&sizey);
              ^
prog.c:23:4: error: 'maze' undeclared (first use in this function)
    maze[i][j]=c;
    ^
stdout
Standard output is empty