0_0_14066150_12015.c: In function 'main':
0_0_14066150_12015.c:19:24: error: 'new' undeclared (first use in this function)
Point* pointMatrix = new Point[n*m];
^
0_0_14066150_12015.c:19:24: note: each undeclared identifier is reported only once for each function it appears in
0_0_14066150_12015.c:19:28: error: expected ',' or ';' before 'Point'
Point* pointMatrix = new Point[n*m];
^
0_0_14066150_12015.c:30:27: error: expected ',' or ';' before 'char'
char** charMatrix = new char*[n];
^
0_0_14066150_12015.c:33:24: error: expected ';' before 'char'
charMatrix[i] = new char[m];
^
0_0_14066150_12015.c:39:42: error: expected ';' before 'int'
pointMatrix[i*m + j].ablePoint = new int[n*m];
^
0_0_14066150_12015.c:40:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int k=0; k<n*m; k++)
^
0_0_14066150_12015.c:40:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_14066150_12015.c:61:7: error: expected expression before '/' token
// pointMatrix[(temI-1)*m + j].ablePoint[temI*m + j ] = 1;
^
0_0_14066150_12015.c:68:6: error: expected expression before '/' token
// pointMatrix[(temI+1)*m + j].ablePoint[temI*m + j] = 1;
^
0_0_14066150_12015.c:76:6: error: expected expression before '/' token
// pointMatrix[temI*m + j-1].ablePoint[temI*m + j] = 1;
^
0_0_14066150_12015.c:85:6: error: expected expression before '/' token
/// pointMatrix[temI*m + j+1].ablePoint[temI*m + j] = 1;
^
0_0_14066150_12015.c:99:4: error: expected expression before '/' token
//pointMatrix[(i-1)*m + j].ablePoint[i*m + j] = 1;
^
0_0_14066150_12015.c:107:4: error: expected expression before '/' token
// pointMatrix[i*m + j-1].ablePoint[i*m + j] = 1;
^
0_0_14066150_12015.c:116:4: error: expected expression before '/' token
// pointMatrix[i*m + j+1].ablePoint[i*m + j] = 1;
^
0_0_14066150_12015.c:123:3: error: unknown type name 'bool'
bool* hasCal = new bool[n*m];
^
0_0_14066150_12015.c:123:22: error: expected ',' or ';' before 'bool'
bool* hasCal = new bool[n*m];
^
0_0_14066150_12015.c:125:21: error: expected ',' or ';' before 'int'
int* minDis = new int[n*m];
^
0_0_14066150_12015.c:128:16: error: 'false' undeclared (first use in this function)
hasCal[i] = false;
^
0_0_14066150_12015.c:131:24: error: 'true' undeclared (first use in this function)
hasCal[startIndex] = true;
^
0_0_14066150_12015.c:136:3: error: expected expression before '/' token
//从‘S’点开始,每次循环,找到一条最短路径,并把相应路径上的终点加到布尔数组hasCal中
^
0_0_14066150_12015.c:136:3: error: stray '\264' in program
0_0_14066150_12015.c:136:3: error: stray '\323' in program
0_0_14066150_12015.c:136:3: error: stray '\241' in program
0_0_14066150_12015.c:136:3: error: stray '\256' in program
0_0_14066150_12015.c:136:3: error: stray '\241' in program
0_0_14066150_12015.c:136:3: error: stray '\257' in program
0_0_14066150_12015.c:136:3: error: stray '\265' in program
0_0_14066150_12015.c:136:3: error: stray '\343' in program
0_0_14066150_12015.c:136:3: error: stray '\277' in program
0_0_14066150_12015.c:136:3: error: stray '\252' in program
0_0_14066150_12015.c:136:3: error: stray '\312' in program
0_0_14066150_12015.c:136:3: error: stray '\274' in program
0_0_14066150_12015.c:136:3: error: stray '\243' in program
0_0_14066150_12015.c:136:3: error: stray '\254' in program
0_0_14066150_12015.c:136:3: error: stray '\303' in program
0_0_14066150_12015.c:136:3: error: stray '\277' in program
0_0_14066150_12015.c:136:3: error: stray '\264' in program
0_0_14066150_12015.c:136:3: error: stray '\316' in program
0_0_14066150_12015.c:136:3: error: stray '\321' in program
0_0_14066150_12015.c:136:3: error: stray '\255' in program
0_0_14066150_12015.c:136:3: error: stray '\273' in program
0_0_14066150_12015.c:136:3: error: stray '\267' in program
0_0_14066150_12015.c:136:3: error: stray '\243' in program
0_0_14066150_12015.c:136:3: error: stray '\254' in program
0_0_14066150_12015.c:136:3: error: stray '\325' in program
0_0_14066150_12015.c:136:3: error: stray '\322' in program
0_0_14066150_12015.c:136:3: error: stray '\265' in program
0_0_14066150_12015.c:136:3: error: stray '\275' in program
0_0_14066150_12015.c:136:3: error: stray '\322' in program
0_0_14066150_12015.c:136:3: error: stray '\273' in program
0_0_14066150_12015.c:136:3: error: stray '\314' in program
0_0_14066150_12015.c:136:3: error: stray '\365' in program
0_0_14066150_12015.c:136:3: error: stray '\327' in program
0_0_14066150_12015.c:136:3: error: stray '\356' in program
0_0_14066150_12015.c:136:3: error: stray '\266' in program
0_0_14066150_12015.c:136:3: error: stray '\314' in program
0_0_14066150_12015.c:136:3: error: stray '\302' in program
0_0_14066150_12015.c:136:3: error: stray '\267' in program
0_0_14066150_12015.c:136:3: error: stray '\276' in program
0_0_14066150_12015.c:136:3: error: stray '\266' in program
0_0_14066150_12015.c:136:3: error: stray '\243' in program
0_0_14066150_12015.c:136:3: error: stray '\254' in program
0_0_14066150_12015.c:136:3: error: stray '\262' in program
0_0_14066150_12015.c:136:3: error: stray '\242' in program
0_0_14066150_12015.c:136:3: error: stray '\260' in program
0_0_14066150_12015.c:136:3: error: stray '\321' in program
0_0_14066150_12015.c:136:3: error: stray '\317' in program
0_0_14066150_12015.c:136:3: error: stray '\340' in program
0_0_14066150_12015.c:136:3: error: stray '\323' in program
0_0_14066150_12015.c:136:3: error: stray '\246' in program
0_0_14066150_12015.c:136:3: error: stray '\302' in program
0_0_14066150_12015.c:136:3: error: stray '\267' in program
0_0_14066150_12015.c:136:3: error: stray '\276' in program
0_0_14066150_12015.c:136:3: error: stray '\266' in program
0_0_14066150_12015.c:136:3: error: stray '\311' in program
0_0_14066150_12015.c:136:3: error: stray '\317' in program
0_0_14066150_12015.c:136:3: error: stray '\265' in program
0_0_14066150_12015.c:136:3: error: stray '\304' in program
0_0_14066150_12015.c:136:3: error: stray '\326' in program
0_0_14066150_12015.c:136:3: error: stray '\325' in program
0_0_14066150_12015.c:136:3: error: stray '\265' in program
0_0_14066150_12015.c:136:3: error: stray '\343' in program
0_0_14066150_12015.c:136:3: error: stray '\274' in program
0_0_14066150_12015.c:136:3: error: stray '\323' in program
0_0_14066150_12015.c:136:3: error: stray '\265' in program
0_0_14066150_12015.c:136:3: error: stray '\275' in program
0_0_14066150_12015.c:136:3: error: stray '\262' in program
0_0_14066150_12015.c:136:3: error: stray '\274' in program
0_0_14066150_12015.c:136:3: error: stray '\266' in program
0_0_14066150_12015.c:136:3: error: stray '\373' in program
0_0_14066150_12015.c:136:3: error: stray '\312' in program
0_0_14066150_12015.c:136:3: error: stray '\375' in program
0_0_14066150_12015.c:136:3: error: stray '\327' in program
0_0_14066150_12015.c:136:3: error: stray '\351' in program
0_0_14066150_12015.c:136:3: error: stray '\326' in program
0_0_14066150_12015.c:136:3: error: stray '\320' in program
0_0_14066150_12015.c:181:4: error: 'delete' undeclared (first use in this function)
delete[] charMatrix[i];
^
0_0_14066150_12015.c:181:11: error: expected expression before ']' token
delete[] charMatrix[i];
^
0_0_14066150_12015.c:183:10: error: expected expression before ']' token
delete[] charMatrix;
^
|