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_21561423_27261.cpp:5:17: error: 'MAXS' was not declared in this scope
  char stringwen[MAXS]; //最多10个词,整个长度最长不超过250
                 ^
0_0_21561423_27261.cpp:8:17: error: 'MAXG' was not declared in this scope
  char singlestr[MAXG][MAXL];
                 ^
0_0_21561423_27261.cpp:8:23: error: 'MAXL' was not declared in this scope
  char singlestr[MAXG][MAXL];
                       ^
0_0_21561423_27261.cpp:13:18: error: 'MAXN' was not declared in this scope
 headline filewen[MAXN];
                  ^
0_0_21561423_27261.cpp: In function 'void init()':
0_0_21561423_27261.cpp:25:18: error: 'MAXN' was not declared in this scope
  for (i = 0; i < MAXN;i++)
                  ^
0_0_21561423_27261.cpp:27:19: error: 'MAXS' was not declared in this scope
   for (j = 0; j < MAXS;j++)
                   ^
0_0_21561423_27261.cpp:29:4: error: 'filewen' was not declared in this scope
    filewen[i].stringwen[j] = '\0';
    ^
0_0_21561423_27261.cpp:31:3: error: 'filewen' was not declared in this scope
   filewen[i].yiyongnum = 0;
   ^
0_0_21561423_27261.cpp:34:19: error: 'MAXG' was not declared in this scope
   for (m = 0; m < MAXG; m++)
                   ^
0_0_21561423_27261.cpp:36:20: error: 'MAXL' was not declared in this scope
    for (n = 0; n < MAXL; n++)
                    ^
0_0_21561423_27261.cpp: In function 'void initquery()':
0_0_21561423_27261.cpp:50:18: error: 'MAXS' was not declared in this scope
  for (j = 0; j < MAXS; j++)
                  ^
0_0_21561423_27261.cpp:52:13: error: 'headline' has no member named 'stringwen'
   searchwen.stringwen[j] = '\0';
             ^
0_0_21561423_27261.cpp:55:18: error: 'MAXG' was not declared in this scope
  for (m = 0; m < MAXG; m++)
                  ^
0_0_21561423_27261.cpp:57:19: error: 'MAXL' was not declared in this scope
   for (n = 0; n < MAXL; n++)
                   ^
0_0_21561423_27261.cpp:59:14: error: 'headline' has no member named 'singlestr'
    searchwen.singlestr[m][n] = '\0';
              ^
0_0_21561423_27261.cpp: In function 'void parse(headline*)':
0_0_21561423_27261.cpp:79:29: error: 'headline' has no member named 'stringwen'
  int len = strlength(input->stringwen);
                             ^
0_0_21561423_27261.cpp:87:22: error: 'headline' has no member named 'stringwen'
   if ((' ' == input->stringwen[i]) || ('\0' == input->stringwen[i]))
                      ^
0_0_21561423_27261.cpp:87:55: error: 'headline' has no member named 'stringwen'
   if ((' ' == input->stringwen[i]) || ('\0' == input->stringwen[i]))
                                                       ^
0_0_21561423_27261.cpp:97:11: error: 'headline' has no member named 'singlestr'
    input->singlestr[num][sinleindex] = '\0';
           ^
0_0_21561423_27261.cpp:103:10: error: 'headline' has no member named 'singlestr'
   input->singlestr[num][sinleindex] = input->stringwen[i];
          ^
0_0_21561423_27261.cpp:103:46: error: 'headline' has no member named 'stringwen'
   input->singlestr[num][sinleindex] = input->stringwen[i];
                                              ^
0_0_21561423_27261.cpp: In function 'int find(int, int)':
0_0_21561423_27261.cpp:195:33: error: 'headline' has no member named 'singlestr'
  int len2 = strlength(searchwen.singlestr[searchindex]);
                                 ^
0_0_21561423_27261.cpp:198:18: error: 'filewen' was not declared in this scope
  for (i = 0; i < filewen[fileindex].len; i++)
                  ^
0_0_21561423_27261.cpp:202:63: error: 'headline' has no member named 'singlestr'
   if (1 == strcmpp(filewen[fileindex].singlestr[i], searchwen.singlestr[searchindex]))
                                                               ^
0_0_21561423_27261.cpp: In function 'void getans()':
0_0_21561423_27261.cpp:231:19: error: 'filewen' was not declared in this scope
    printf("%s\n", filewen[i].stringwen);
                   ^
0_0_21561423_27261.cpp:231:39: error: 'printf' was not declared in this scope
    printf("%s\n", filewen[i].stringwen);
                                       ^
0_0_21561423_27261.cpp: In function 'int main()':
0_0_21561423_27261.cpp:242:30: error: 'scanf' was not declared in this scope
  while ((1 == scanf("%d", &tc))&& (0 != tc))
                              ^
0_0_21561423_27261.cpp:247:12: error: 'getchar' was not declared in this scope
    getchar();
            ^
0_0_21561423_27261.cpp:248:9: error: 'filewen' was not declared in this scope
    gets(filewen[i].stringwen); //之前没管那个\n就这一直gets不到字符串
         ^
0_0_21561423_27261.cpp:248:29: error: 'gets' was not declared in this scope
    gets(filewen[i].stringwen); //之前没管那个\n就这一直gets不到字符串
                             ^
0_0_21561423_27261.cpp:259:9: error: 'filewen' was not declared in this scope
   paixu(filewen, 1, tc); //开始排序了,用快排
         ^
0_0_21561423_27261.cpp:262:11: error: 'getchar' was not declared in this scope
   getchar();
           ^
0_0_21561423_27261.cpp:266:19: error: 'headline' has no member named 'stringwen'
    gets(searchwen.stringwen);
                   ^
0_0_21561423_27261.cpp:266:28: error: 'gets' was not declared in this scope
    gets(searchwen.stringwen);
                            ^
0_0_21561423_27261.cpp:270:18: error: 'printf' was not declared in this scope
    printf("***\n");
                  ^
0_0_21561423_27261.cpp:272:17: error: 'printf' was not declared in this scope
   printf("---\n");
                 ^


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-12-02 17:55:06, Gzip enabled