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_21839585_11521.cpp:7:9: error: 'define' does not name a type
 typedef define long long LL;
         ^
0_0_21839585_11521.cpp:13:5: error: 'LL' does not name a type
     LL l, r;
     ^
0_0_21839585_11521.cpp:15:1: error: 'LL' does not name a type
 LL dis[maxn];
 ^
0_0_21839585_11521.cpp: In function 'bool cmp(node, node)':
0_0_21839585_11521.cpp:19:10: error: 'struct node' has no member named 'l'
     if(a.l != b.l) return a.l < b.l;
          ^
0_0_21839585_11521.cpp:19:17: error: 'struct node' has no member named 'l'
     if(a.l != b.l) return a.l < b.l;
                 ^
0_0_21839585_11521.cpp:19:29: error: 'struct node' has no member named 'l'
     if(a.l != b.l) return a.l < b.l;
                             ^
0_0_21839585_11521.cpp:19:35: error: 'struct node' has no member named 'l'
     if(a.l != b.l) return a.l < b.l;
                                   ^
0_0_21839585_11521.cpp:20:14: error: 'struct node' has no member named 'r'
     return a.r < b.r;
              ^
0_0_21839585_11521.cpp:20:20: error: 'struct node' has no member named 'r'
     return a.r < b.r;
                    ^
0_0_21839585_11521.cpp: In function 'int main()':
0_0_21839585_11521.cpp:27:5: error: 'LL' was not declared in this scope
     LL n;
     ^
0_0_21839585_11521.cpp:28:8: error: expected ';' before 'm'
     LL m;
        ^
0_0_21839585_11521.cpp:29:32: error: 'n' was not declared in this scope
     while(scanf("%I64d %I64d",&n, &m) != EOF)
                                ^
0_0_21839585_11521.cpp:29:36: error: 'm' was not declared in this scope
     while(scanf("%I64d %I64d",&n, &m) != EOF)
                                    ^
0_0_21839585_11521.cpp:31:62: error: 'struct node' has no member named 'l'
         for(int i = 0; i < n; i++) scanf("%I64d %I64d",&p[i].l, &p[i].r);
                                                              ^
0_0_21839585_11521.cpp:31:71: error: 'struct node' has no member named 'r'
         for(int i = 0; i < n; i++) scanf("%I64d %I64d",&p[i].l, &p[i].r);
                                                                       ^
0_0_21839585_11521.cpp:37:21: error: 'struct node' has no member named 'l'
             if(p[i].l <= f[cnt].r+1)
                     ^
0_0_21839585_11521.cpp:37:33: error: 'struct node' has no member named 'r'
             if(p[i].l <= f[cnt].r+1)
                                 ^
0_0_21839585_11521.cpp:38:24: error: 'struct node' has no member named 'r'
                 f[cnt].r = max(f[cnt].r, p[i].r);
                        ^
0_0_21839585_11521.cpp:38:39: error: 'struct node' has no member named 'r'
                 f[cnt].r = max(f[cnt].r, p[i].r);
                                       ^
0_0_21839585_11521.cpp:38:47: error: 'struct node' has no member named 'r'
                 f[cnt].r = max(f[cnt].r, p[i].r);
                                               ^
0_0_21839585_11521.cpp:43:13: error: 'dis' was not declared in this scope
             dis[i] = f[i+1].l-f[i].r-1;
             ^
0_0_21839585_11521.cpp:43:29: error: 'struct node' has no member named 'l'
             dis[i] = f[i+1].l-f[i].r-1;
                             ^
0_0_21839585_11521.cpp:43:36: error: 'struct node' has no member named 'r'
             dis[i] = f[i+1].l-f[i].r-1;
                                    ^
0_0_21839585_11521.cpp:44:12: error: expected ';' before 'xp'
         LL xp = 0;
            ^
0_0_21839585_11521.cpp:46:12: error: expected ';' before 'Max'
         LL Max = 0;
            ^
0_0_21839585_11521.cpp:49:13: error: 'xp' was not declared in this scope
             xp += dis[i];
             ^
0_0_21839585_11521.cpp:49:19: error: 'dis' was not declared in this scope
             xp += dis[i];
                   ^
0_0_21839585_11521.cpp:55:13: error: 'Max' was not declared in this scope
             Max = max(Max, f[i+1].r-f[xl].l+1+m-xp);
             ^
0_0_21839585_11521.cpp:55:35: error: 'struct node' has no member named 'r'
             Max = max(Max, f[i+1].r-f[xl].l+1+m-xp);
                                   ^
0_0_21839585_11521.cpp:55:43: error: 'struct node' has no member named 'l'
             Max = max(Max, f[i+1].r-f[xl].l+1+m-xp);
                                           ^
0_0_21839585_11521.cpp:57:9: error: 'Max' was not declared in this scope
         Max = max(Max, f[1].r-f[1].l+1+m);
         ^
0_0_21839585_11521.cpp:57:29: error: 'struct node' has no member named 'r'
         Max = max(Max, f[1].r-f[1].l+1+m);
                             ^
0_0_21839585_11521.cpp:57:36: error: 'struct node' has no member named 'l'
         Max = max(Max, f[1].r-f[1].l+1+m);
                                    ^


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-25 16:30:57, Gzip enabled