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_20611414_30551.cpp:9:128: error: stray '#' in program
     using namespace std; const int BORDER = (1<<20)-1;const int MAXSIZE = 37;const int MAXN = 250100;const int INF = 0x4ffffff;#define CLR(x,y) memset(x,y,sizeof(x))#define ADD(x) x=((x+1)&BORDER)#define IN(x) scanf("%d",&x)#define OUT(x) printf("%d\n",x)#define MIN(m,v) (m)<(v)?(m):(v)#define MAX(m,v) (m)>(v)?(m):(v)#define ABS(x) (x>0?x:-x) bitset<MAXSIZE> state[MAXSIZE];int n,cur_n;int init(){    int i,j;    for(i = 0; i < MAXSIZE; ++i)        state[i].reset();    return 0;}bool dfs(const int& match,const int& cur,const int& sel,        bitset<MAXSIZE> mask){    if(mask.count() < match)        return false;    else if(sel == match)        return true;    else if(sel + 36 - cur < match)        return false;     return dfs(match,cur+1,sel,mask) ||         dfs(match,cur+1,sel+1,mask&state[cur]);}int input(){    int i,a,b;    IN(n);    for(i = 0; i < n; ++i)    {        scanf("%d%d",&a,&b);        state[a-1].set(b-1);    }    return 0;}int work(){    int i,j;    bitset<MAXSIZE> mask;    mask.set();    for(cur_n = 2; cur_n*cur_n <= n&& dfs(cur_n,0,0,mask); ++cur_n)        ;    OUT(cur_n-1);    return 0;}int main(){    int i,j,tt;    IN(tt);    while(tt--)    {        init();        input();        work();    }    return 0;}
                                                                                                                                ^
0_0_20611414_30551.cpp:9:166: error: stray '#' in program
     using namespace std; const int BORDER = (1<<20)-1;const int MAXSIZE = 37;const int MAXN = 250100;const int INF = 0x4ffffff;#define CLR(x,y) memset(x,y,sizeof(x))#define ADD(x) x=((x+1)&BORDER)#define IN(x) scanf("%d",&x)#define OUT(x) printf("%d\n",x)#define MIN(m,v) (m)<(v)?(m):(v)#define MAX(m,v) (m)>(v)?(m):(v)#define ABS(x) (x>0?x:-x) bitset<MAXSIZE> state[MAXSIZE];int n,cur_n;int init(){    int i,j;    for(i = 0; i < MAXSIZE; ++i)        state[i].reset();    return 0;}bool dfs(const int& match,const int& cur,const int& sel,        bitset<MAXSIZE> mask){    if(mask.count() < match)        return false;    else if(sel == match)        return true;    else if(sel + 36 - cur < match)        return false;     return dfs(match,cur+1,sel,mask) ||         dfs(match,cur+1,sel+1,mask&state[cur]);}int input(){    int i,a,b;    IN(n);    for(i = 0; i < n; ++i)    {        scanf("%d%d",&a,&b);        state[a-1].set(b-1);    }    return 0;}int work(){    int i,j;    bitset<MAXSIZE> mask;    mask.set();    for(cur_n = 2; cur_n*cur_n <= n&& dfs(cur_n,0,0,mask); ++cur_n)        ;    OUT(cur_n-1);    return 0;}int main(){    int i,j,tt;    IN(tt);    while(tt--)    {        init();        input();        work();    }    return 0;}
                                                                                                                                                                      ^
0_0_20611414_30551.cpp:9:197: error: stray '#' in program
     using namespace std; const int BORDER = (1<<20)-1;const int MAXSIZE = 37;const int MAXN = 250100;const int INF = 0x4ffffff;#define CLR(x,y) memset(x,y,sizeof(x))#define ADD(x) x=((x+1)&BORDER)#define IN(x) scanf("%d",&x)#define OUT(x) printf("%d\n",x)#define MIN(m,v) (m)<(v)?(m):(v)#define MAX(m,v) (m)>(v)?(m):(v)#define ABS(x) (x>0?x:-x) bitset<MAXSIZE> state[MAXSIZE];int n,cur_n;int init(){    int i,j;    for(i = 0; i < MAXSIZE; ++i)        state[i].reset();    return 0;}bool dfs(const int& match,const int& cur,const int& sel,        bitset<MAXSIZE> mask){    if(mask.count() < match)        return false;    else if(sel == match)        return true;    else if(sel + 36 - cur < match)        return false;     return dfs(match,cur+1,sel,mask) ||         dfs(match,cur+1,sel+1,mask&state[cur]);}int input(){    int i,a,b;    IN(n);    for(i = 0; i < n; ++i)    {        scanf("%d%d",&a,&b);        state[a-1].set(b-1);    }    return 0;}int work(){    int i,j;    bitset<MAXSIZE> mask;    mask.set();    for(cur_n = 2; cur_n*cur_n <= n&& dfs(cur_n,0,0,mask); ++cur_n)        ;    OUT(cur_n-1);    return 0;}int main(){    int i,j,tt;    IN(tt);    while(tt--)    {        init();        input();        work();    }    return 0;}
                                                                                                                                                                                                     ^
0_0_20611414_30551.cpp:9:225: error: stray '#' in program
     using namespace std; const int BORDER = (1<<20)-1;const int MAXSIZE = 37;const int MAXN = 250100;const int INF = 0x4ffffff;#define CLR(x,y) memset(x,y,sizeof(x))#define ADD(x) x=((x+1)&BORDER)#define IN(x) scanf("%d",&x)#define OUT(x) printf("%d\n",x)#define MIN(m,v) (m)<(v)?(m):(v)#define MAX(m,v) (m)>(v)?(m):(v)#define ABS(x) (x>0?x:-x) bitset<MAXSIZE> state[MAXSIZE];int n,cur_n;int init(){    int i,j;    for(i = 0; i < MAXSIZE; ++i)        state[i].reset();    return 0;}bool dfs(const int& match,const int& cur,const int& sel,        bitset<MAXSIZE> mask){    if(mask.count() < match)        return false;    else if(sel == match)        return true;    else if(sel + 36 - cur < match)        return false;     return dfs(match,cur+1,sel,mask) ||         dfs(match,cur+1,sel+1,mask&state[cur]);}int input(){    int i,a,b;    IN(n);    for(i = 0; i < n; ++i)    {        scanf("%d%d",&a,&b);        state[a-1].set(b-1);    }    return 0;}int work(){    int i,j;    bitset<MAXSIZE> mask;    mask.set();    for(cur_n = 2; cur_n*cur_n <= n&& dfs(cur_n,0,0,mask); ++cur_n)        ;    OUT(cur_n-1);    return 0;}int main(){    int i,j,tt;    IN(tt);    while(tt--)    {        init();        input();        work();    }    return 0;}
                                                                                                                                                                                                                                 ^
0_0_20611414_30551.cpp:9:256: error: stray '#' in program
     using namespace std; const int BORDER = (1<<20)-1;const int MAXSIZE = 37;const int MAXN = 250100;const int INF = 0x4ffffff;#define CLR(x,y) memset(x,y,sizeof(x))#define ADD(x) x=((x+1)&BORDER)#define IN(x) scanf("%d",&x)#define OUT(x) printf("%d\n",x)#define MIN(m,v) (m)<(v)?(m):(v)#define MAX(m,v) (m)>(v)?(m):(v)#define ABS(x) (x>0?x:-x) bitset<MAXSIZE> state[MAXSIZE];int n,cur_n;int init(){    int i,j;    for(i = 0; i < MAXSIZE; ++i)        state[i].reset();    return 0;}bool dfs(const int& match,const int& cur,const int& sel,        bitset<MAXSIZE> mask){    if(mask.count() < match)        return false;    else if(sel == match)        return true;    else if(sel + 36 - cur < match)        return false;     return dfs(match,cur+1,sel,mask) ||         dfs(match,cur+1,sel+1,mask&state[cur]);}int input(){    int i,a,b;    IN(n);    for(i = 0; i < n; ++i)    {        scanf("%d%d",&a,&b);        state[a-1].set(b-1);    }    return 0;}int work(){    int i,j;    bitset<MAXSIZE> mask;    mask.set();    for(cur_n = 2; cur_n*cur_n <= n&& dfs(cur_n,0,0,mask); ++cur_n)        ;    OUT(cur_n-1);    return 0;}int main(){    int i,j,tt;    IN(tt);    while(tt--)    {        init();        input();        work();    }    return 0;}
                                                                                                                                                                                                                                                                ^
0_0_20611414_30551.cpp:9:288: error: stray '#' in program
     using namespace std; const int BORDER = (1<<20)-1;const int MAXSIZE = 37;const int MAXN = 250100;const int INF = 0x4ffffff;#define CLR(x,y) memset(x,y,sizeof(x))#define ADD(x) x=((x+1)&BORDER)#define IN(x) scanf("%d",&x)#define OUT(x) printf("%d\n",x)#define MIN(m,v) (m)<(v)?(m):(v)#define MAX(m,v) (m)>(v)?(m):(v)#define ABS(x) (x>0?x:-x) bitset<MAXSIZE> state[MAXSIZE];int n,cur_n;int init(){    int i,j;    for(i = 0; i < MAXSIZE; ++i)        state[i].reset();    return 0;}bool dfs(const int& match,const int& cur,const int& sel,        bitset<MAXSIZE> mask){    if(mask.count() < match)        return false;    else if(sel == match)        return true;    else if(sel + 36 - cur < match)        return false;     return dfs(match,cur+1,sel,mask) ||         dfs(match,cur+1,sel+1,mask&state[cur]);}int input(){    int i,a,b;    IN(n);    for(i = 0; i < n; ++i)    {        scanf("%d%d",&a,&b);        state[a-1].set(b-1);    }    return 0;}int work(){    int i,j;    bitset<MAXSIZE> mask;    mask.set();    for(cur_n = 2; cur_n*cur_n <= n&& dfs(cur_n,0,0,mask); ++cur_n)        ;    OUT(cur_n-1);    return 0;}int main(){    int i,j,tt;    IN(tt);    while(tt--)    {        init();        input();        work();    }    return 0;}
                                                                                                                                                                                                                                                                                                ^
0_0_20611414_30551.cpp:9:320: error: stray '#' in program
     using namespace std; const int BORDER = (1<<20)-1;const int MAXSIZE = 37;const int MAXN = 250100;const int INF = 0x4ffffff;#define CLR(x,y) memset(x,y,sizeof(x))#define ADD(x) x=((x+1)&BORDER)#define IN(x) scanf("%d",&x)#define OUT(x) printf("%d\n",x)#define MIN(m,v) (m)<(v)?(m):(v)#define MAX(m,v) (m)>(v)?(m):(v)#define ABS(x) (x>0?x:-x) bitset<MAXSIZE> state[MAXSIZE];int n,cur_n;int init(){    int i,j;    for(i = 0; i < MAXSIZE; ++i)        state[i].reset();    return 0;}bool dfs(const int& match,const int& cur,const int& sel,        bitset<MAXSIZE> mask){    if(mask.count() < match)        return false;    else if(sel == match)        return true;    else if(sel + 36 - cur < match)        return false;     return dfs(match,cur+1,sel,mask) ||         dfs(match,cur+1,sel+1,mask&state[cur]);}int input(){    int i,a,b;    IN(n);    for(i = 0; i < n; ++i)    {        scanf("%d%d",&a,&b);        state[a-1].set(b-1);    }    return 0;}int work(){    int i,j;    bitset<MAXSIZE> mask;    mask.set();    for(cur_n = 


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-12-02 11:22:51, Gzip enabled