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_29341608_11211.cpp:5:5: error: 'ULL' does not name a type
     ULL H[MAX_N];
     ^
0_0_29341608_11211.cpp:6:5: error: 'ULL' does not name a type
     ULL XL[MAX_N];
     ^
0_0_29341608_11211.cpp:18:5: error: 'ULL' does not name a type
     ULL hash(int i,int L){
     ^
0_0_29341608_11211.cpp: In member function 'void HASH::build(char*)':
0_0_29341608_11211.cpp:10:21: error: 'strlen' was not declared in this scope
         len=strlen(s);
                     ^
0_0_29341608_11211.cpp:11:9: error: 'H' was not declared in this scope
         H[len]=0;
         ^
0_0_29341608_11211.cpp:12:9: error: 'XL' was not declared in this scope
         XL[0]=1;
         ^
0_0_29341608_11211.cpp: At global scope:
0_0_29341608_11211.cpp:24:1: error: 'ULL' does not name a type
 ULL a[MAX_N];
 ^
0_0_29341608_11211.cpp: In function 'bool cmp(int, int)':
0_0_29341608_11211.cpp:28:9: error: 'a' was not declared in this scope
     if (a[x]==a[y]) return x<y;
         ^
0_0_29341608_11211.cpp:29:12: error: 'a' was not declared in this scope
     return a[x]<a[y];
            ^
0_0_29341608_11211.cpp: In function 'bool C(int)':
0_0_29341608_11211.cpp:35:9: error: 'a' was not declared in this scope
         a[cnt]=hs.hash(i,L);
         ^
0_0_29341608_11211.cpp:35:19: error: 'struct HASH' has no member named 'hash'
         a[cnt]=hs.hash(i,L);
                   ^
0_0_29341608_11211.cpp:38:23: error: 'sort' was not declared in this scope
     sort(id,id+cnt,cmp);
                       ^
0_0_29341608_11211.cpp:40:13: error: 'a' was not declared in this scope
         if (a[id[i]]==a[id[i-1]]) {
             ^
0_0_29341608_11211.cpp:42:42: error: 'max' was not declared in this scope
             if (sum>=m) idx=max(idx,id[i]);
                                          ^
0_0_29341608_11211.cpp: In function 'int main()':
0_0_29341608_11211.cpp:50:26: error: 'scanf' was not declared in this scope
     while (~scanf("%d",&m)) {
                          ^
0_0_29341608_11211.cpp:54:19: error: 'strlen' was not declared in this scope
         n=strlen(s);
                   ^
0_0_29341608_11211.cpp:56:33: error: 'printf' was not declared in this scope
             printf("%d %d\n",n,0);
                                 ^
0_0_29341608_11211.cpp:60:28: error: 'printf' was not declared in this scope
             printf("none\n");
                            ^
0_0_29341608_11211.cpp:74:36: error: 'printf' was not declared in this scope
         if (ans==0) printf("none\n");
                                    ^
0_0_29341608_11211.cpp:75:38: error: 'printf' was not declared in this scope
         else printf("%d %d\n",ans,idx);
                                      ^


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-11-29 09:30:27, Gzip enabled