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_19230913_7665.cpp: In function 'int init()':
0_0_19230913_7665.cpp:41:49: error: 'state' was not declared in this scope
 int i,j;    for(i = 0; i < MAXSIZE; ++i)        state[i].reset();    return 0;}bool dfs(
                                                 ^
0_0_19230913_7665.cpp: In function 'bool dfs(const int&, const int&, const int&, std::bitset<37ull>)':
0_0_19230913_7665.cpp:44:272: error: 'state' was not declared in this scope
 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]);}
                                                                                                                                                                                                                                                                                ^
0_0_19230913_7665.cpp: In function 'int input()':
0_0_19230913_7665.cpp:47:88: error: 'state' was not declared in this scope
 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;}
                                                                                        ^


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-30 08:58:52, Gzip enabled