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_20612884_28855.cpp:5:5: error: expected unqualified-id before '=' token
     =(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,s=y/m,t=y%m;    int d1=Nim_Mult_Power(p,s);    int d2=Nim_Mult_Power(p,t);    return (m*(d1^d2))^Nim_Mult_Power(m/2,d1);}int Nim_Mult(int x,int y){    if(x<y)        return Nim_Mult(y,x);    if(x<2)        return m[x][y];    int a=0;    for(;;a++)        if(x>=(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,q=x%m,s=y/m,t=y%m;    int c1=Nim_Mult(p,s),c2=Nim_Mult(p,t)^Nim_Mult(q,s),c3=Nim_Mult(q,t);    return (m*(c1^c2))^c3^Nim_Mult_Power(m/2,c1);}int main(){    int t,n,x,y;    scanf("%d",&t);    while(t--){        scanf("%d",&n);        int ret=0;        while(n--){            scanf("%d%d",&x,&y);            ret^=Nim_Mult(x,y);        }        if(ret)            puts("Have a try, lxhgww.");        else            puts("Don't waste your time.");    }    return 0;}
     ^
0_0_20612884_28855.cpp:5:72: error: 'a' was not declared in this scope
     =(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,s=y/m,t=y%m;    int d1=Nim_Mult_Power(p,s);    int d2=Nim_Mult_Power(p,t);    return (m*(d1^d2))^Nim_Mult_Power(m/2,d1);}int Nim_Mult(int x,int y){    if(x<y)        return Nim_Mult(y,x);    if(x<2)        return m[x][y];    int a=0;    for(;;a++)        if(x>=(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,q=x%m,s=y/m,t=y%m;    int c1=Nim_Mult(p,s),c2=Nim_Mult(p,t)^Nim_Mult(q,s),c3=Nim_Mult(q,t);    return (m*(c1^c2))^c3^Nim_Mult_Power(m/2,c1);}int main(){    int t,n,x,y;    scanf("%d",&t);    while(t--){        scanf("%d",&n);        int ret=0;        while(n--){            scanf("%d%d",&x,&y);            ret^=Nim_Mult(x,y);        }        if(ret)            puts("Have a try, lxhgww.");        else            puts("Don't waste your time.");    }    return 0;}
                                                                        ^
0_0_20612884_28855.cpp:5:85: error: 'x' was not declared in this scope
     =(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,s=y/m,t=y%m;    int d1=Nim_Mult_Power(p,s);    int d2=Nim_Mult_Power(p,t);    return (m*(d1^d2))^Nim_Mult_Power(m/2,d1);}int Nim_Mult(int x,int y){    if(x<y)        return Nim_Mult(y,x);    if(x<2)        return m[x][y];    int a=0;    for(;;a++)        if(x>=(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,q=x%m,s=y/m,t=y%m;    int c1=Nim_Mult(p,s),c2=Nim_Mult(p,t)^Nim_Mult(q,s),c3=Nim_Mult(q,t);    return (m*(c1^c2))^c3^Nim_Mult_Power(m/2,c1);}int main(){    int t,n,x,y;    scanf("%d",&t);    while(t--){        scanf("%d",&n);        int ret=0;        while(n--){            scanf("%d%d",&x,&y);            ret^=Nim_Mult(x,y);        }        if(ret)            puts("Have a try, lxhgww.");        else            puts("Don't waste your time.");    }    return 0;}
                                                                                     ^
0_0_20612884_28855.cpp:5:129: error: 's' was not declared in this scope
     =(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,s=y/m,t=y%m;    int d1=Nim_Mult_Power(p,s);    int d2=Nim_Mult_Power(p,t);    return (m*(d1^d2))^Nim_Mult_Power(m/2,d1);}int Nim_Mult(int x,int y){    if(x<y)        return Nim_Mult(y,x);    if(x<2)        return m[x][y];    int a=0;    for(;;a++)        if(x>=(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,q=x%m,s=y/m,t=y%m;    int c1=Nim_Mult(p,s),c2=Nim_Mult(p,t)^Nim_Mult(q,s),c3=Nim_Mult(q,t);    return (m*(c1^c2))^c3^Nim_Mult_Power(m/2,c1);}int main(){    int t,n,x,y;    scanf("%d",&t);    while(t--){        scanf("%d",&n);        int ret=0;        while(n--){            scanf("%d%d",&x,&y);            ret^=Nim_Mult(x,y);        }        if(ret)            puts("Have a try, lxhgww.");        else            puts("Don't waste your time.");    }    return 0;}
                                                                                                                                 ^
0_0_20612884_28855.cpp:5:130: error: 'Nim_Mult_Power' was not declared in this scope
     =(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,s=y/m,t=y%m;    int d1=Nim_Mult_Power(p,s);    int d2=Nim_Mult_Power(p,t);    return (m*(d1^d2))^Nim_Mult_Power(m/2,d1);}int Nim_Mult(int x,int y){    if(x<y)        return Nim_Mult(y,x);    if(x<2)        return m[x][y];    int a=0;    for(;;a++)        if(x>=(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,q=x%m,s=y/m,t=y%m;    int c1=Nim_Mult(p,s),c2=Nim_Mult(p,t)^Nim_Mult(q,s),c3=Nim_Mult(q,t);    return (m*(c1^c2))^c3^Nim_Mult_Power(m/2,c1);}int main(){    int t,n,x,y;    scanf("%d",&t);    while(t--){        scanf("%d",&n);        int ret=0;        while(n--){            scanf("%d%d",&x,&y);            ret^=Nim_Mult(x,y);        }        if(ret)            puts("Have a try, lxhgww.");        else            puts("Don't waste your time.");    }    return 0;}
                                                                                                                                  ^
0_0_20612884_28855.cpp:5:160: error: 't' was not declared in this scope
     =(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,s=y/m,t=y%m;    int d1=Nim_Mult_Power(p,s);    int d2=Nim_Mult_Power(p,t);    return (m*(d1^d2))^Nim_Mult_Power(m/2,d1);}int Nim_Mult(int x,int y){    if(x<y)        return Nim_Mult(y,x);    if(x<2)        return m[x][y];    int a=0;    for(;;a++)        if(x>=(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,q=x%m,s=y/m,t=y%m;    int c1=Nim_Mult(p,s),c2=Nim_Mult(p,t)^Nim_Mult(q,s),c3=Nim_Mult(q,t);    return (m*(c1^c2))^c3^Nim_Mult_Power(m/2,c1);}int main(){    int t,n,x,y;    scanf("%d",&t);    while(t--){        scanf("%d",&n);        int ret=0;        while(n--){            scanf("%d%d",&x,&y);            ret^=Nim_Mult(x,y);        }        if(ret)            puts("Have a try, lxhgww.");        else            puts("Don't waste your time.");    }    return 0;}
                                                                                                                                                                ^
0_0_20612884_28855.cpp:5:161: error: 'Nim_Mult_Power' was not declared in this scope
     =(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,s=y/m,t=y%m;    int d1=Nim_Mult_Power(p,s);    int d2=Nim_Mult_Power(p,t);    return (m*(d1^d2))^Nim_Mult_Power(m/2,d1);}int Nim_Mult(int x,int y){    if(x<y)        return Nim_Mult(y,x);    if(x<2)        return m[x][y];    int a=0;    for(;;a++)        if(x>=(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,q=x%m,s=y/m,t=y%m;    int c1=Nim_Mult(p,s),c2=Nim_Mult(p,t)^Nim_Mult(q,s),c3=Nim_Mult(q,t);    return (m*(c1^c2))^c3^Nim_Mult_Power(m/2,c1);}int main(){    int t,n,x,y;    scanf("%d",&t);    while(t--){        scanf("%d",&n);        int ret=0;        while(n--){            scanf("%d%d",&x,&y);            ret^=Nim_Mult(x,y);        }        if(ret)            puts("Have a try, lxhgww.");        else            puts("Don't waste your time.");    }    return 0;}
                                                                                                                                                                 ^
0_0_20612884_28855.cpp:5:167: error: expected unqualified-id before 'return'
     =(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,s=y/m,t=y%m;    int d1=Nim_Mult_Power(p,s);    int d2=Nim_Mult_Power(p,t);    return (m*(d1^d2))^Nim_Mult_Power(m/2,d1);}int Nim_Mult(int x,int y){    if(x<y)        return Nim_Mult(y,x);    if(x<2)        return m[x][y];    int a=0;    for(;;a++)        if(x>=(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,q=x%m,s=y/m,t=y%m;    int c1=Nim_Mult(p,s),c2=Nim_Mult(p,t)^Nim_Mult(q,s),c3=Nim_Mult(q,t);    return (m*(c1^c2))^c3^Nim_Mult_Power(m/2,c1);}int main(){    int t,n,x,y;    scanf("%d",&t);    while(t--){        scanf("%d",&n);        int ret=0;        while(n--){            scanf("%d%d",&x,&y);            ret^=Nim_Mult(x,y);        }        if(ret)            puts("Have a try, lxhgww.");        else            puts("Don't waste your time.");    }    return 0;}
                                                                                                                                                                       ^
0_0_20612884_28855.cpp:5:209: error: expected declaration before '}' token
     =(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,s=y/m,t=y%m;    int d1=Nim_Mult_Power(p,s);    int d2=Nim_Mult_Power(p,t);    return (m*(d1^d2))^Nim_Mult_Power(m/2,d1);}int Nim_Mult(int x,int y){    if(x<y)        return Nim_Mult(y,x);    if(x<2)        return m[x][y];    int a=0;    for(;;a++)        if(x>=(1<<(1<<a))&&x<(1<<(1<<(a+1))))            break;    int m=1<<(1<<a);    int p=x/m,q=x%m,s=y/m,t=y%m;    int c1=Nim_Mult(p,s),c2=Nim_Mult(p,t)^Nim_Mult(q,s),c3=Nim_Mult(q,t);    return (m*(c1^c2))^c3^Nim_Mult_Power(m/2,c1);}int main(){    int t,n,x,y;    scanf("%d",&t);    while(t--){        scanf("%d",&n);        int ret=0;        while(n--){            scanf("%d%d",&x,&y);            ret^=Nim_Mult(x,y);        }        if(ret)            puts("Have a try, lxhgww.");        else            puts("Don't waste your time.");    }    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-11-22 23:22:48, Gzip enabled