F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_20921627_5165.cpp:3:15: error: 'max' was not declared in this scope
 char girlname[max][10];//女生名字
               ^
0_0_20921627_5165.cpp:4:14: error: 'max' was not declared in this scope
 char boyname[max][10];//男生名字
              ^
0_0_20921627_5165.cpp:5:15: error: 'max' was not declared in this scope
 char boy_girl[max][10];//男生心中女生排名
               ^
0_0_20921627_5165.cpp:6:16: error: 'max' was not declared in this scope
 char girl_boy [max][10];//女生心中男生排名
                ^
0_0_20921627_5165.cpp:7:11: error: 'max' was not declared in this scope
 int p_boy[max];//记录单身与否 不单身则记录对象编号
           ^
0_0_20921627_5165.cpp:8:12: error: 'max' was not declared in this scope
 int p_girl[max];//记录单身与否 不单身则记录对象编号
            ^
0_0_20921627_5165.cpp: In function 'int findboy(char*)':
0_0_20921627_5165.cpp:15:19: error: 'boyname' was not declared in this scope
         if(strcmp(boyname[i],str)==0)
                   ^
0_0_20921627_5165.cpp: In function 'int findboylove(char*)':
0_0_20921627_5165.cpp:23:19: error: 'girl_boy' was not declared in this scope
         if(strcmp(girl_boy[i],str)==0)
                   ^
0_0_20921627_5165.cpp: In function 'int findgirl(char*)':
0_0_20921627_5165.cpp:31:19: error: 'girlname' was not declared in this scope
         if(strcmp(girlname[i],str)==0)
                   ^
0_0_20921627_5165.cpp: In function 'int find()':
0_0_20921627_5165.cpp:37:12: error: 'p_boy' was not declared in this scope
     memset(p_boy,0,sizeof(p_boy));
            ^
0_0_20921627_5165.cpp:38:12: error: 'p_girl' was not declared in this scope
     memset(p_girl,0,sizeof(p_girl));
            ^
0_0_20921627_5165.cpp:48:24: error: 'boy_girl' was not declared in this scope
                 k=find(boy_girl[j]);//寻找到女生编号
                        ^
0_0_20921627_5165.cpp:53:39: error: 'boyname' was not declared in this scope
                         l=findboylove(boyname[i]);
                                       ^
0_0_20921627_5165.cpp:55:37: error: 'boyname' was not declared in this scope
                 else if(findboylove(boyname[i])<l)
                                     ^
0_0_20921627_5165.cpp:57:42: error: expected ']' before ';' token
                         p_boy[p_girl[k]=0;
                                          ^
0_0_20921627_5165.cpp:68:12: error: 'flag' was not declared in this scope
     return flag;
            ^
0_0_20921627_5165.cpp: In function 'int main()':
0_0_20921627_5165.cpp:75:20: error: 'boyname' was not declared in this scope
         scanf("%s",boyname[i]);
                    ^
0_0_20921627_5165.cpp:79:24: error: 'girlname' was not declared in this scope
             scanf("%s",girlname[j]);
                        ^
0_0_20921627_5165.cpp:83:17: error: 'boy_girl' was not declared in this scope
                 boy_girl[j]=findgirl(gname);
                 ^
0_0_20921627_5165.cpp:94:13: error: 'girl_boy' was not declared in this scope
             girl_boy[r][j]=findboy(bname);
             ^
0_0_20921627_5165.cpp:101:30: error: 'boyname' was not declared in this scope
             printf("%s %s\n",boyname[i],girlname[p_boy[i]]);
                              ^
0_0_20921627_5165.cpp:101:41: error: 'girlname' was not declared in this scope
             printf("%s %s\n",boyname[i],girlname[p_boy[i]]);
                                         ^
0_0_20921627_5165.cpp:101:50: error: 'p_boy' was not declared in this scope
             printf("%s %s\n",boyname[i],girlname[p_boy[i]]);
                                                  ^
0_0_20921627_5165.cpp:103:9: error: expected '}' before 'else'
         else
         ^
0_0_20921627_5165.cpp: At global scope:
0_0_20921627_5165.cpp:106:5: error: expected unqualified-id before 'return'
     return 0;
     ^
0_0_20921627_5165.cpp:107:1: error: expected declaration before '}' token
 }
 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-10-05 20:49:40, Gzip enabled