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_20613095_9664.cpp:7:5: error: 'b' does not name a type
     b) swap(a,b);         s[a]++; e[b]++;    }} inline void go(){    int ans=0,res=0;    for(int i=0;i<=86400;i++)    {        res+=s[i];        ans=max(ans,res);        res-=e[i];    }    printf("%d\n",ans);} int main(){    while(scanf("%d",&n),n) read(),go();    return 0;}
     ^
0_0_20613095_9664.cpp:7:27: error: 's' does not name a type
     b) swap(a,b);         s[a]++; e[b]++;    }} inline void go(){    int ans=0,res=0;    for(int i=0;i<=86400;i++)    {        res+=s[i];        ans=max(ans,res);        res-=e[i];    }    printf("%d\n",ans);} int main(){    while(scanf("%d",&n),n) read(),go();    return 0;}
                           ^
0_0_20613095_9664.cpp:7:35: error: 'e' does not name a type
     b) swap(a,b);         s[a]++; e[b]++;    }} inline void go(){    int ans=0,res=0;    for(int i=0;i<=86400;i++)    {        res+=s[i];        ans=max(ans,res);        res-=e[i];    }    printf("%d\n",ans);} int main(){    while(scanf("%d",&n),n) read(),go();    return 0;}
                                   ^
0_0_20613095_9664.cpp:7:46: error: expected declaration before '}' token
     b) swap(a,b);         s[a]++; e[b]++;    }} inline void go(){    int ans=0,res=0;    for(int i=0;i<=86400;i++)    {        res+=s[i];        ans=max(ans,res);        res-=e[i];    }    printf("%d\n",ans);} int main(){    while(scanf("%d",&n),n) read(),go();    return 0;}
                                              ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-26 21:49:37, Gzip enabled