0_0_27685020_20574.cpp:5:5: error: 'nbsp' declared as reference but not initialized
int main()
^
0_0_27685020_20574.cpp: In function 'int main()':
0_0_27685020_20574.cpp:9:30: error: 'nbsp' declared as reference but not initialized
char a[2001],b[2001],c[2001];
^
0_0_27685020_20574.cpp:9:35: error: 'a' was not declared in this scope
char a[2001],b[2001],c[2001];
^
0_0_27685020_20574.cpp:9:43: error: 'b' was not declared in this scope
char a[2001],b[2001],c[2001];
^
0_0_27685020_20574.cpp:9:51: error: 'c' was not declared in this scope
char a[2001],b[2001],c[2001];
^
0_0_27685020_20574.cpp:11:29: error: conflicting declaration 'int& nbsp'
int n=0,k,i,j,m;
^
0_0_27685020_20574.cpp:9:30: note: previous declaration as 'char& nbsp'
char a[2001],b[2001],c[2001];
^
0_0_27685020_20574.cpp:11:34: error: 'n' was not declared in this scope
int n=0,k,i,j,m;
^
0_0_27685020_20574.cpp:11:38: error: 'k' was not declared in this scope
int n=0,k,i,j,m;
^
0_0_27685020_20574.cpp:11:40: error: 'i' was not declared in this scope
int n=0,k,i,j,m;
^
0_0_27685020_20574.cpp:11:42: error: 'j' was not declared in this scope
int n=0,k,i,j,m;
^
0_0_27685020_20574.cpp:11:44: error: 'm' was not declared in this scope
int n=0,k,i,j,m;
^
0_0_27685020_20574.cpp:21:53: error: 'nbsp' declared as reference but not initialized
int flag=0;
^
0_0_27685020_20574.cpp:21:58: error: 'flag' was not declared in this scope
int flag=0;
^
0_0_27685020_20574.cpp:51:75: error: expected '(' before '&' token
if (a[j]-'0'+b[m]-'0'>=10)
^
0_0_27685020_20574.cpp:57:99: error: expected '(' before '&' token
if (m==0) flag=1; //标记是否要进1
^
0_0_27685020_20574.cpp:59:97: error: 'else' without a previous 'if'
else a[j-1]=a[j-1]+1;
^
0_0_27685020_20574.cpp:63:73: error: 'else' without a previous 'if'
else a[j]=a[j]+b[m]-'0';
^
0_0_27685020_20574.cpp:67:47: error: redeclaration of 'int& nbsp'
int cc=strlen(a)-strlen(b)-1;
^
0_0_27685020_20574.cpp:21:53: note: 'int& nbsp' previously declared here
int flag=0;
^
0_0_27685020_20574.cpp:67:52: error: 'cc' was not declared in this scope
int cc=strlen(a)-strlen(b)-1;
^
0_0_27685020_20574.cpp:71:43: error: 'else' without a previous 'if'
else if (flag==1&&cc!=-1)
^
0_0_27685020_20574.cpp:71:55: error: expected '(' before '&' token
else if (flag==1&&cc!=-1)
^
0_0_27685020_20574.cpp:85:123: error: expected '(' before '&' token
if (cc==0) //循环到第一项进1时
^
0_0_27685020_20574.cpp:91:145: error: break statement not within loop or switch
break;
^
0_0_27685020_20574.cpp:103:67: error: 'else' without a previous 'if'
else a[cc]=a[cc]+1;
^
0_0_27685020_20574.cpp:111:45: error: expected '(' before '&' token
if (i!=k-1) printf("\n"); //两结果间输出空行情况
^
0_0_27685020_20574.cpp:115:32: error: invalid conversion from 'char*' to 'int' [-fpermissive]
return 0;
^
|