0_0_35676962_16496.c:8:18: error: expected identifier or '(' before '/' token
int marknum = 1; //群数
^
0_0_35676962_16496.c:8:18: error: stray '\310' in program
0_0_35676962_16496.c:8:18: error: stray '\272' in program
0_0_35676962_16496.c:8:18: error: stray '\312' in program
0_0_35676962_16496.c:8:18: error: stray '\375' in program
0_0_35676962_16496.c: In function 'marksheep':
0_0_35676962_16496.c:16:86: error: expected expression before '/' token
if (i - 1 != -1 && s[(i - 1) * w + j].an == '#' && s[(i - 1) * w + j].mark == 0) //上有没标记的羊
^
0_0_35676962_16496.c:16:86: error: stray '\311' in program
0_0_35676962_16496.c:16:86: error: stray '\317' in program
0_0_35676962_16496.c:16:86: error: stray '\323' in program
0_0_35676962_16496.c:16:86: error: stray '\320' in program
0_0_35676962_16496.c:16:86: error: stray '\303' in program
0_0_35676962_16496.c:16:86: error: stray '\273' in program
0_0_35676962_16496.c:16:86: error: stray '\261' in program
0_0_35676962_16496.c:16:86: error: stray '\352' in program
0_0_35676962_16496.c:16:86: error: stray '\274' in program
0_0_35676962_16496.c:16:86: error: stray '\307' in program
0_0_35676962_16496.c:16:86: error: stray '\265' in program
0_0_35676962_16496.c:16:86: error: stray '\304' in program
0_0_35676962_16496.c:16:86: error: stray '\321' in program
0_0_35676962_16496.c:16:86: error: stray '\362' in program
0_0_35676962_16496.c:21:5: error: stray '\327' in program
if (j - 1 != -1 && s[i * w + (j - 1)].an == '#' && s[i * w + (j - 1)].mark == 0) //左
^
0_0_35676962_16496.c:21:5: error: stray '\363' in program
0_0_35676962_16496.c:26:5: error: stray '\317' in program
if (i + 1 != h && s[(i + 1) * w + j].an == '#' && s[(i + 1) * w + j].mark == 0) //下
^
0_0_35676962_16496.c:26:5: error: stray '\302' in program
0_0_35676962_16496.c:31:5: error: stray '\323' in program
if (j + 1 != w && s[i * w + (j + 1)].an == '#' && s[i * w + (j + 1)].mark == 0) //右
^
0_0_35676962_16496.c:31:5: error: stray '\322' in program
0_0_35676962_16496.c: In function 'main':
0_0_35676962_16496.c:44:24: error: 'h' undeclared (first use in this function)
scanf("%d%d", &h, &w);
^
0_0_35676962_16496.c:44:24: note: each undeclared identifier is reported only once for each function it appears in
0_0_35676962_16496.c:44:28: error: 'w' undeclared (first use in this function)
scanf("%d%d", &h, &w);
^
0_0_35676962_16496.c:45:20: error: expected expression before '/' token
getchar(); //去掉回车
^
0_0_35676962_16496.c:45:20: error: stray '\310' in program
0_0_35676962_16496.c:45:20: error: stray '\245' in program
0_0_35676962_16496.c:45:20: error: stray '\265' in program
0_0_35676962_16496.c:45:20: error: stray '\364' in program
0_0_35676962_16496.c:45:20: error: stray '\273' in program
0_0_35676962_16496.c:45:20: error: stray '\330' in program
0_0_35676962_16496.c:45:20: error: stray '\263' in program
0_0_35676962_16496.c:45:20: error: stray '\265' in program
0_0_35676962_16496.c:47:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < h; i++)
^
0_0_35676962_16496.c:47:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_35676962_16496.c:49:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < w; j++)
^
0_0_35676962_16496.c:51:31: error: 's' undeclared (first use in this function)
scanf("%c", &(s[i][j].an));
^
0_0_35676962_16496.c:52:35: error: expected expression before '/' token
s[i][j].mark = 0; //初始化为未标记
^
0_0_35676962_16496.c:52:35: error: stray '\263' in program
0_0_35676962_16496.c:52:35: error: stray '\365' in program
0_0_35676962_16496.c:52:35: error: stray '\312' in program
0_0_35676962_16496.c:52:35: error: stray '\274' in program
0_0_35676962_16496.c:52:35: error: stray '\273' in program
0_0_35676962_16496.c:52:35: error: stray '\257' in program
0_0_35676962_16496.c:52:35: error: stray '\316' in program
0_0_35676962_16496.c:52:35: error: stray '\252' in program
0_0_35676962_16496.c:52:35: error: stray '\316' in program
0_0_35676962_16496.c:52:35: error: stray '\264' in program
0_0_35676962_16496.c:52:35: error: stray '\261' in program
0_0_35676962_16496.c:52:35: error: stray '\352' in program
0_0_35676962_16496.c:52:35: error: stray '\274' in program
0_0_35676962_16496.c:52:35: error: stray '\307' in program
0_0_35676962_16496.c:58:18: error: redefinition of 'i'
for (int i = 0; i < h; i++)
^
0_0_35676962_16496.c:47:18: note: previous definition of 'i' was here
for (int i = 0; i < h; i++)
^
0_0_35676962_16496.c:58:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < h; i++)
^
0_0_35676962_16496.c:59:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < w; j++)
^
0_0_35676962_16496.c:66:18: error: redefinition of 'i'
for (int i = 0; i < h; i++)
^
0_0_35676962_16496.c:58:18: note: previous definition of 'i' was here
for (int i = 0; i < h; i++)
^
0_0_35676962_16496.c:66:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < h; i++)
^
0_0_35676962_16496.c:67:22: error: redefinition of 'j'
for (int j = 0; j < w; j++)
^
0_0_35676962_16496.c:59:22: note: previous definition of 'j' was here
for (int j = 0; j < w; j++)
^
0_0_35676962_16496.c:67:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < w; j++)
^
|