0_0_13814134_11931.cpp:4:5: error: 'nbsp' declared as reference but not initialized
int n,m,t,s_i,s_j,d_i,d_j;
^
0_0_13814134_11931.cpp:4:10: error: 'n' does not name a type
int n,m,t,s_i,s_j,d_i,d_j;
^
0_0_13814134_11931.cpp:5:6: error: conflicting declaration 'char& nbsp'
char a[10][10];
^
0_0_13814134_11931.cpp:4:5: note: previous declaration as 'int& nbsp'
int n,m,t,s_i,s_j,d_i,d_j;
^
0_0_13814134_11931.cpp:5:11: error: 'a' does not name a type
char a[10][10];
^
0_0_13814134_11931.cpp:6:5: error: redefinition of 'int& nbsp'
int flag[10][10];
^
0_0_13814134_11931.cpp:4:5: note: 'int& nbsp' previously declared here
int n,m,t,s_i,s_j,d_i,d_j;
^
0_0_13814134_11931.cpp:6:10: error: 'flag' does not name a type
int flag[10][10];
^
0_0_13814134_11931.cpp:7:5: error: redefinition of 'int& nbsp'
int ans,cnt;
^
0_0_13814134_11931.cpp:4:5: note: 'int& nbsp' previously declared here
int n,m,t,s_i,s_j,d_i,d_j;
^
0_0_13814134_11931.cpp:7:10: error: 'ans' does not name a type
int ans,cnt;
^
0_0_13814134_11931.cpp:8:6: error: cannot declare reference to 'void'
void dfs(int i,int j,int ti)
^
0_0_13814134_11931.cpp:8:6: error: variable or field 'nbsp' declared void
0_0_13814134_11931.cpp:8:23: error: expected ')' before ';' token
void dfs(int i,int j,int ti)
^
0_0_13814134_11931.cpp:8:23: error: expected constructor, destructor, or type conversion before ';' token
0_0_13814134_11931.cpp:8:24: error: 'i' does not name a type
void dfs(int i,int j,int ti)
^
0_0_13814134_11931.cpp:8:35: error: 'j' does not name a type
void dfs(int i,int j,int ti)
^
0_0_13814134_11931.cpp:8:46: error: 'ti' does not name a type
void dfs(int i,int j,int ti)
^
0_0_13814134_11931.cpp:27:5: error: redefinition of 'int& nbsp'
int main()
^
0_0_13814134_11931.cpp:4:5: note: 'int& nbsp' previously declared here
int n,m,t,s_i,s_j,d_i,d_j;
^
0_0_13814134_11931.cpp: In function 'int main()':
0_0_13814134_11931.cpp:29:5: error: 'nbsp' declared as reference but not initialized
int i,j;
^
0_0_13814134_11931.cpp:29:10: error: 'i' was not declared in this scope
int i,j;
^
0_0_13814134_11931.cpp:29:12: error: 'j' was not declared in this scope
int i,j;
^
0_0_13814134_11931.cpp:30:35: error: 'n' was not declared in this scope
while(scanf("%d %d %d",&n,&m,&t))
^
0_0_13814134_11931.cpp:30:38: error: 'm' was not declared in this scope
while(scanf("%d %d %d",&n,&m,&t))
^
0_0_13814134_11931.cpp:30:41: error: 't' was not declared in this scope
while(scanf("%d %d %d",&n,&m,&t))
^
0_0_13814134_11931.cpp:33:1: error: 'cnt' was not declared in this scope
cnt=0;
^
0_0_13814134_11931.cpp:34:34: error: invalid conversion from 'int*' to 'int' [-fpermissive]
if(n==0&&m==0&&t==0) return 0;
^
0_0_13814134_11931.cpp:39:13: error: 'a' was not declared in this scope
scanf("%c",&a[i][j]);
^
0_0_13814134_11931.cpp:40:24: error: 's_i' was not declared in this scope
if(a[i][j]=='S') {s_i=i;s_j=j;}
^
0_0_13814134_11931.cpp:40:30: error: 's_j' was not declared in this scope
if(a[i][j]=='S') {s_i=i;s_j=j;}
^
0_0_13814134_11931.cpp:41:1: error: 'else' without a previous 'if'
else
^
0_0_13814134_11931.cpp:42:24: error: 'd_i' was not declared in this scope
if(a[i][j]=='D') {d_i=i;d_j=j;cnt++;}//一开始这里的cnt++忘了加了导致错了//好多次 浪费了好多时间 所以以后做题小细节一定要注意到 不要忽视任何一个小地
^
0_0_13814134_11931.cpp:42:30: error: 'd_j' was not declared in this scope
if(a[i][j]=='D') {d_i=i;d_j=j;cnt++;}//一开始这里的cnt++忘了加了导致错了//好多次 浪费了好多时间 所以以后做题小细节一定要注意到 不要忽视任何一个小地
^
0_0_13814134_11931.cpp:44:1: error: 'else' without a previous 'if'
else if(a[i][j]=='.') cnt++;
^
0_0_13814134_11931.cpp:49:8: error: 'flag' was not declared in this scope
memset(flag,0,sizeof(flag));
^
0_0_13814134_11931.cpp:50:1: error: 'ans' was not declared in this scope
ans=0;
^
0_0_13814134_11931.cpp:51:53: error: 's_i' was not declared in this scope
dfs(s_i,s_j,0);
^
0_0_13814134_11931.cpp:51:57: error: 's_j' was not declared in this scope
dfs(s_i,s_j,0);
^
0_0_13814134_11931.cpp:51:62: error: 'dfs' was not declared in this scope
dfs(s_i,s_j,0);
^
0_0_13814134_11931.cpp:53:1: error: 'else' without a previous 'if'
else printf("NO\n");
^
0_0_13814134_11931.cpp:55:8: error: invalid conversion from 'int*' to 'int' [-fpermissive]
return 0;
^
|