0_0_21648482_30487.cpp:5:8: error: macro names must be identifiers
#define N 100
^
0_0_21648482_30487.cpp:6:8: error: macro names must be identifiers
#define M 10
^
0_0_21648482_30487.cpp:4:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_21648482_30487.cpp:4:12: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_21648482_30487.cpp:7:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_21648482_30487.cpp:7:12: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_21648482_30487.cpp:8:6: error: 'nbsp' declared as reference but not initialized
char str[N];
^
0_0_21648482_30487.cpp:8:11: error: 'str' does not name a type
char str[N];
^
0_0_21648482_30487.cpp:8:23: error: expected constructor, destructor, or type conversion before ';' token
char str[N];
^
0_0_21648482_30487.cpp:8:29: error: expected constructor, destructor, or type conversion before ';' token
char str[N];
^
0_0_21648482_30487.cpp:9:5: error: conflicting declaration 'int& nbsp'
int num[M];
^
0_0_21648482_30487.cpp:8:6: note: previous declaration as 'char& nbsp'
char str[N];
^
0_0_21648482_30487.cpp:9:10: error: 'num' does not name a type
int num[M];
^
0_0_21648482_30487.cpp:9:22: error: expected constructor, destructor, or type conversion before ';' token
int num[M];
^
0_0_21648482_30487.cpp:9:28: error: expected constructor, destructor, or type conversion before ';' token
int num[M];
^
0_0_21648482_30487.cpp:10:5: error: conflicting declaration 'int& nbsp'
int len,sum;
^
0_0_21648482_30487.cpp:8:6: note: previous declaration as 'char& nbsp'
char str[N];
^
0_0_21648482_30487.cpp:10:10: error: 'len' does not name a type
int len,sum;
^
0_0_21648482_30487.cpp:10:23: error: expected constructor, destructor, or type conversion before ';' token
int len,sum;
^
0_0_21648482_30487.cpp:10:29: error: expected constructor, destructor, or type conversion before ';' token
int len,sum;
^
0_0_21648482_30487.cpp:11:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_21648482_30487.cpp:11:12: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_21648482_30487.cpp:12:6: error: cannot declare reference to 'void'
void init(){
^
0_0_21648482_30487.cpp:12:6: error: variable or field 'nbsp' declared void
0_0_21648482_30487.cpp: In function 'int init()':
0_0_21648482_30487.cpp:13:29: error: 'nbsp' declared as reference but not initialized
int i;
^
0_0_21648482_30487.cpp:13:34: error: 'i' was not declared in this scope
int i;
^
0_0_21648482_30487.cpp:14:36: error: expected primary-expression before '=' token
for(i = 1; i <= 6; ++i)
^
0_0_21648482_30487.cpp:14:44: error: expected ')' before ';' token
for(i = 1; i <= 6; ++i)
^
0_0_21648482_30487.cpp:14:58: error: expected primary-expression before '<=' token
for(i = 1; i <= 6; ++i)
^
0_0_21648482_30487.cpp:15:49: error: 'num' was not declared in this scope
num[i] = 4;
^
0_0_21648482_30487.cpp:15:61: error: expected primary-expression before '=' token
num[i] = 4;
^
0_0_21648482_30487.cpp:16:25: error: 'len' was not declared in this scope
len = strlen(str);
^
0_0_21648482_30487.cpp:16:34: error: expected primary-expression before '=' token
len = strlen(str);
^
0_0_21648482_30487.cpp:16:48: error: 'str' was not declared in this scope
len = strlen(str);
^
0_0_21648482_30487.cpp:17:25: error: 'sum' was not declared in this scope
sum = 0;
^
0_0_21648482_30487.cpp:17:34: error: expected primary-expression before '=' token
sum = 0;
^
0_0_21648482_30487.cpp:18:36: error: expected primary-expression before '=' token
for(i = 0; i < len; ++i){
^
0_0_21648482_30487.cpp:18:44: error: expected ')' before ';' token
for(i = 0; i < len; ++i){
^
0_0_21648482_30487.cpp:18:58: error: expected primary-expression before '<' token
for(i = 0; i < len; ++i){
^
0_0_21648482_30487.cpp: At global scope:
0_0_21648482_30487.cpp:22:7: error: expected constructor, destructor, or type conversion before ';' token
}
^
0_0_21648482_30487.cpp:22:13: error: expected constructor, destructor, or type conversion before ';' token
}
^
0_0_21648482_30487.cpp:23:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_21648482_30487.cpp:23:12: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_21648482_30487.cpp:24:6: error: conflicting declaration 'bool& nbsp'
bool dfs(int sum){
^
0_0_21648482_30487.cpp:8:6: note: previous declaration as 'char& nbsp'
char str[N];
^
0_0_21648482_30487.cpp:24:23: error: expected ')' before ';' token
bool dfs(int sum){
^
0_0_21648482_30487.cpp:24:23: error: expected constructor, destructor, or type conversion before ';' token
0_0_21648482_30487.cpp:24:24: error: 'sum' does not name a type
bool dfs(int sum){
^
0_0_21648482_30487.cpp:39:7: error: expected constructor, destructor, or type conversion before ';' token
}
^
0_0_21648482_30487.cpp:39:13: error: expected constructor, destructor, or type conversion before ';' token
}
^
0_0_21648482_30487.cpp:40:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_21648482_30487.cpp:40:12: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_21648482_30487.cpp:41:5: error: conflicting declaration 'int& nbsp'
int main(){
^
0_0_21648482_30487.cpp:8:6: note: previous declaration as 'char& nbsp'
char str[N];
^
0_0_21648482_30487.cpp: In function 'int main()':
0_0_21648482_30487.cpp:42:43: error: 'str' was not declared in this scope
while(scanf("%s",&str)!=EOF){
^
0_0_21648482_30487.cpp:45:56: error: 'sum' was not declared in this scope
if(dfs(sum))
^
0_0_21648482_30487.cpp:45:59: error: 'dfs' was not declared in this scope
if(dfs(sum))
^
0_0_21648482_30487.cpp:46:78: error: 'len' was not declared in this scope
puts(len%2 ? "B" : "A");
^
0_0_21648482_30487.cpp:46:89: error: expected primary-expression before '?' token
puts(len%2 ? "B" : "A");
^
0_0_21648482_30487.cpp:46:95: error: expected ':' before ';' token
puts(len%2 ? "B" : "A");
^
0_0_21648482_30487.cpp:46:95: error: expec
|