0_0_20921645_3737.cpp:1:15: error: 'max' was not declared in this scope
char girlname[max][10];//女生名字
^
0_0_20921645_3737.cpp:2:14: error: 'max' was not declared in this scope
char boyname[max][10];//男生名字
^
0_0_20921645_3737.cpp:3:15: error: 'max' was not declared in this scope
char boy_girl[max][10];//男生心中女生排名
^
0_0_20921645_3737.cpp:4:16: error: 'max' was not declared in this scope
char girl_boy [max][10];//女生心中男生排名
^
0_0_20921645_3737.cpp:5:11: error: 'max' was not declared in this scope
int p_boy[max];//记录单身与否 不单身则记录对象编号
^
0_0_20921645_3737.cpp:6:12: error: 'max' was not declared in this scope
int p_girl[max];//记录单身与否 不单身则记录对象编号
^
0_0_20921645_3737.cpp: In function 'int findboy(char*)':
0_0_20921645_3737.cpp:13:19: error: 'boyname' was not declared in this scope
if(strcmp(boyname[i],str)==0)
^
0_0_20921645_3737.cpp:13:33: error: 'strcmp' was not declared in this scope
if(strcmp(boyname[i],str)==0)
^
0_0_20921645_3737.cpp: In function 'int findboylove(char*)':
0_0_20921645_3737.cpp:21:19: error: 'girl_boy' was not declared in this scope
if(strcmp(girl_boy[i],str)==0)
^
0_0_20921645_3737.cpp:21:34: error: 'strcmp' was not declared in this scope
if(strcmp(girl_boy[i],str)==0)
^
0_0_20921645_3737.cpp: In function 'int findgirl(char*)':
0_0_20921645_3737.cpp:29:19: error: 'girlname' was not declared in this scope
if(strcmp(girlname[i],str)==0)
^
0_0_20921645_3737.cpp:29:34: error: 'strcmp' was not declared in this scope
if(strcmp(girlname[i],str)==0)
^
0_0_20921645_3737.cpp: In function 'int find()':
0_0_20921645_3737.cpp:35:12: error: 'p_boy' was not declared in this scope
memset(p_boy,0,sizeof(p_boy));
^
0_0_20921645_3737.cpp:35:33: error: 'memset' was not declared in this scope
memset(p_boy,0,sizeof(p_boy));
^
0_0_20921645_3737.cpp:36:12: error: 'p_girl' was not declared in this scope
memset(p_girl,0,sizeof(p_girl));
^
0_0_20921645_3737.cpp:46:28: error: 'boy_girl' was not declared in this scope
k=findgirl(boy_girl[j]);//寻找到女生编号
^
0_0_20921645_3737.cpp:51:39: error: 'boyname' was not declared in this scope
l=findboylove(boyname[i]);
^
0_0_20921645_3737.cpp:53:37: error: 'boyname' was not declared in this scope
else if(findboylove(boyname[i])<l)
^
0_0_20921645_3737.cpp:55:42: error: expected ']' before ';' token
p_boy[p_girl[k]=0;
^
0_0_20921645_3737.cpp:66:12: error: 'flag' was not declared in this scope
return flag;
^
0_0_20921645_3737.cpp: In function 'int main()':
0_0_20921645_3737.cpp:70:18: error: 'scanf' was not declared in this scope
scanf("%d",&n);
^
0_0_20921645_3737.cpp:73:20: error: 'boyname' was not declared in this scope
scanf("%s",boyname[i]);
^
0_0_20921645_3737.cpp:77:24: error: 'girlname' was not declared in this scope
scanf("%s",girlname[j]);
^
0_0_20921645_3737.cpp:81:17: error: 'boy_girl' was not declared in this scope
boy_girl[j]=findgirl(gname);
^
0_0_20921645_3737.cpp:92:13: error: 'girl_boy' was not declared in this scope
girl_boy[r][j]=findboy(bname);
^
0_0_20921645_3737.cpp:99:30: error: 'boyname' was not declared in this scope
printf("%s %s\n",boyname[i],girlname[p_boy[i]]);
^
0_0_20921645_3737.cpp:99:41: error: 'girlname' was not declared in this scope
printf("%s %s\n",boyname[i],girlname[p_boy[i]]);
^
0_0_20921645_3737.cpp:99:50: error: 'p_boy' was not declared in this scope
printf("%s %s\n",boyname[i],girlname[p_boy[i]]);
^
0_0_20921645_3737.cpp:99:59: error: 'printf' was not declared in this scope
printf("%s %s\n",boyname[i],girlname[p_boy[i]]);
^
0_0_20921645_3737.cpp:101:9: error: expected '}' before 'else'
else
^
0_0_20921645_3737.cpp:102:32: error: 'printf' was not declared in this scope
printf("Impossible");
^
0_0_20921645_3737.cpp: At global scope:
0_0_20921645_3737.cpp:104:5: error: expected unqualified-id before 'return'
return 0;
^
0_0_20921645_3737.cpp:105:1: error: expected declaration before '}' token
}
^
|