prog.c:5:5: error: unknown type name 'CELL'
CELL **ppCE;
^
prog.c: In function 'ReadMaze':
prog.c:20:29: error: lvalue required as left operand of assignment
if ((MAZE *)0 == pMQRet = malloc(sizeof(MAZE)*1)) {
^
prog.c:29:64: error: 'iRows' undeclared (first use in this function)
if ((CELL *)0 == (pMQRet->ppCE = malloc(sizeof(CELL *)*iRows))) {
^
prog.c:29:64: note: each undeclared identifier is reported only once for each function it appears in
prog.c:35:26: warning: comparison of distinct pointer types lacks a cast
if ((CELL*)0 == pMQRet->ppCE[j] = malloc((pMQRet->iCols+1)* sizeof(CELL))){
^
prog.c:35:45: error: lvalue required as left operand of assignment
if ((CELL*)0 == pMQRet->ppCE[j] = malloc((pMQRet->iCols+1)* sizeof(CELL))){
^
prog.c:44:10: error: 'ppCE' undeclared (first use in this function)
}ppCE[j][k] = c;
^
prog.c: At top level:
prog.c:46:2: error: expected identifier or '(' before 'return'
}return pMQRet;
^
prog.c: In function 'PrintMaze':
prog.c:57:33: error: lvalue required as increment operand
for (l=0;l<pMQThis->iCols+2;++1)
^
prog.c:60:13: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
pCE = pMQThis->ppCE[j];
^
prog.c:63:27: error: 'cglyph' undeclared (first use in this function)
fputc(pCE[k], cglyph,fpout);
^
prog.c:63:19: error: incompatible type for argument 1 of 'fputc'
fputc(pCE[k], cglyph,fpout);
^
In file included from prog.c:1:0:
/usr/include/stdio.h:573:12: note: expected 'int' but argument is of type 'CELL {aka struct CEnode}'
extern int fputc (int __c, FILE *__stream);
^
prog.c:63:13: error: too many arguments to function 'fputc'
fputc(pCE[k], cglyph,fpout);
^
prog.c: At top level:
prog.c:68:7: error: expected declaration specifiers or '...' before '-'
fputc('-',fpout);
^
prog.c:68:11: error: unknown type name 'fpout'
fputc('-',fpout);
^
prog.c:69:1: error: expected identifier or '(' before 'return'
return pCE;
^
prog.c: In function 'ReadMaze':
prog.c:46:1: warning: control reaches end of non-void function [-Wreturn-type]
}return pMQRet;
^