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_20613223_8023.cpp:2:5: error: expected unqualified-id before '=' token
     =0;j--)           {        if(!dp[j])    continue;        for(k=0;k<n;k++)                   {            if(j&(1<<k))    continue;               if(ban[i][k])    continue;            dp[j|(1<<k)]+=dp[j];        }    }}int main(){    int T,Case;    ini();    scanf("%d",&T);    for(Case=1;Case<=T;Case++)    {        scanf("%d%d",&n,&m);        getban();        getdp();        printf("Case %d: %I64d\n",Case,fac[n]-dp[(1<<n)-1]);    }    return 0;}
     ^
0_0_20613223_8023.cpp:2:8: error: 'j' does not name a type
     =0;j--)           {        if(!dp[j])    continue;        for(k=0;k<n;k++)                   {            if(j&(1<<k))    continue;               if(ban[i][k])    continue;            dp[j|(1<<k)]+=dp[j];        }    }}int main(){    int T,Case;    ini();    scanf("%d",&T);    for(Case=1;Case<=T;Case++)    {        scanf("%d%d",&n,&m);        getban();        getdp();        printf("Case %d: %I64d\n",Case,fac[n]-dp[(1<<n)-1]);    }    return 0;}
        ^
0_0_20613223_8023.cpp:2:223: error: expected declaration before '}' token
     =0;j--)           {        if(!dp[j])    continue;        for(k=0;k<n;k++)                   {            if(j&(1<<k))    continue;               if(ban[i][k])    continue;            dp[j|(1<<k)]+=dp[j];        }    }}int main(){    int T,Case;    ini();    scanf("%d",&T);    for(Case=1;Case<=T;Case++)    {        scanf("%d%d",&n,&m);        getban();        getdp();        printf("Case %d: %I64d\n",Case,fac[n]-dp[(1<<n)-1]);    }    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-16 10:41:47, Gzip enabled