0_0_20270011_18382.cpp:3:5: error: 'nbsp' declared as reference but not initialized
int shu(char a)
^
0_0_20270011_18382.cpp:3:23: error: expected ')' before ';' token
int shu(char a)
^
0_0_20270011_18382.cpp:3:23: error: expected constructor, destructor, or type conversion before ';' token
0_0_20270011_18382.cpp:3:24: error: 'a' does not name a type
int shu(char a)
^
0_0_20270011_18382.cpp:7:5: error: redefinition of 'int& nbsp'
int main(){
^
0_0_20270011_18382.cpp:3:5: note: 'int& nbsp' previously declared here
int shu(char a)
^
0_0_20270011_18382.cpp: In function 'int main()':
0_0_20270011_18382.cpp:8:7: error: 'nbsp' declared as reference but not initialized
char a[1000], b[1000];
^
0_0_20270011_18382.cpp:8:12: error: 'a' was not declared in this scope
char a[1000], b[1000];
^
0_0_20270011_18382.cpp:8:21: error: 'b' was not declared in this scope
char a[1000], b[1000];
^
0_0_20270011_18382.cpp:9:6: error: conflicting declaration 'int& nbsp'
int num[1001];
^
0_0_20270011_18382.cpp:8:7: note: previous declaration as 'char& nbsp'
char a[1000], b[1000];
^
0_0_20270011_18382.cpp:9:11: error: 'num' was not declared in this scope
int num[1001];
^
0_0_20270011_18382.cpp:10:6: error: conflicting declaration 'int& nbsp'
int n, i, j = 1, al, bl, k, t;
^
0_0_20270011_18382.cpp:8:7: note: previous declaration as 'char& nbsp'
char a[1000], b[1000];
^
0_0_20270011_18382.cpp:10:11: error: 'n' was not declared in this scope
int n, i, j = 1, al, bl, k, t;
^
0_0_20270011_18382.cpp:10:14: error: 'i' was not declared in this scope
int n, i, j = 1, al, bl, k, t;
^
0_0_20270011_18382.cpp:10:17: error: 'j' was not declared in this scope
int n, i, j = 1, al, bl, k, t;
^
0_0_20270011_18382.cpp:10:24: error: 'al' was not declared in this scope
int n, i, j = 1, al, bl, k, t;
^
0_0_20270011_18382.cpp:10:28: error: 'bl' was not declared in this scope
int n, i, j = 1, al, bl, k, t;
^
0_0_20270011_18382.cpp:10:32: error: 'k' was not declared in this scope
int n, i, j = 1, al, bl, k, t;
^
0_0_20270011_18382.cpp:10:35: error: 't' was not declared in this scope
int n, i, j = 1, al, bl, k, t;
^
0_0_20270011_18382.cpp:26:25: error: 'shu' was not declared in this scope
num[k] += shu(a[--al]) + shu(b[--bl]);
^
0_0_20270011_18382.cpp:36:27: error: 'shu' was not declared in this scope
num[k--] += shu(a[--al]);
^
0_0_20270011_18382.cpp:45:27: error: 'shu' was not declared in this scope
num[k--] += shu(b[--bl]);
^
0_0_20270011_18382.cpp:63:9: error: invalid conversion from 'char*' to 'int' [-fpermissive]
return 0;
^
|