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_20613961_9106.cpp:7:5: error: expected unqualified-id before '=' token
     =0)                    sg[j+b]=max(sg[b+j],sg[j]+1);        }        ans=0;        for(i=0;i<n;i++){            t=a[i];            if(t<=10000){                if(sg[t]<0) flag=1;                else ans^=sg[t];            }            else{                t=(t-10000+MIN)%MIN+10000-MIN;                if(sg[t]<0) flag=1;                else ans^=sg[t]+(a[i]-t)/MIN;            }        }        if(!flag&&ans) puts(x);        else puts(y);    }    return 0;}
     ^
0_0_20613961_9106.cpp:7:65: error: expected declaration before '}' token
     =0)                    sg[j+b]=max(sg[b+j],sg[j]+1);        }        ans=0;        for(i=0;i<n;i++){            t=a[i];            if(t<=10000){                if(sg[t]<0) flag=1;                else ans^=sg[t];            }            else{                t=(t-10000+MIN)%MIN+10000-MIN;                if(sg[t]<0) flag=1;                else ans^=sg[t]+(a[i]-t)/MIN;            }        }        if(!flag&&ans) puts(x);        else puts(y);    }    return 0;}
                                                                 ^


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-06-26 20:34:45, Gzip enabled