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_38759933_19072.cpp:12:9: error: 'bitset' does not name a type
   12 | typedef bitset<5005>Bitset;
      |         ^~~~~~
0_0_38759933_19072.cpp:14:1: error: 'Bitset' does not name a type
   14 | Bitset hav[maxn],d[maxn];
      | ^~~~~~
0_0_38759933_19072.cpp: In function 'void tarjan(int)':
0_0_38759933_19072.cpp:28:9: error: 'hav' was not declared in this scope
   28 |         hav[scc_cnt]=Bitset();
      |         ^~~
0_0_38759933_19072.cpp:28:22: error: 'Bitset' was not declared in this scope
   28 |         hav[scc_cnt]=Bitset();
      |                      ^~~~~~
0_0_38759933_19072.cpp:29:9: error: 'd' was not declared in this scope
   29 |         d[scc_cnt]=Bitset();
      |         ^
0_0_38759933_19072.cpp: At global scope:
0_0_38759933_19072.cpp:40:1: error: 'Bitset' does not name a type
   40 | Bitset& dp(int u){
      | ^~~~~~
0_0_38759933_19072.cpp: In function 'int main()':
0_0_38759933_19072.cpp:66:9: error: 'Bitset' was not declared in this scope
   66 |         Bitset ans,best;
      |         ^~~~~~
0_0_38759933_19072.cpp:69:19: error: expected ';' before 'tmp'
   69 |             Bitset tmp=dp(i);
      |                   ^~~~
      |                   ;
0_0_38759933_19072.cpp:70:20: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   70 |             int tc=tmp.count();
      |                    ^~~
      |                    tm
0_0_38759933_19072.cpp:72:18: error: 'best' was not declared in this scope
   72 |                 {best=tmp;cnt=tc;ans=Bitset();}
      |                  ^~~~
0_0_38759933_19072.cpp:72:34: error: 'ans' was not declared in this scope; did you mean 'abs'?
   72 |                 {best=tmp;cnt=tc;ans=Bitset();}
      |                                  ^~~
      |                                  abs
0_0_38759933_19072.cpp:73:24: error: 'ans' was not declared in this scope; did you mean 'abs'?
   73 |             if(cnt==tc)ans|=hav[i];
      |                        ^~~
      |                        abs
0_0_38759933_19072.cpp:73:29: error: 'hav' was not declared in this scope
   73 |             if(cnt==tc)ans|=hav[i];
      |                             ^~~
0_0_38759933_19072.cpp:78:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
   78 |             if(ans[i]){
      |                ^~~
      |                abs


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-10 17:49:17, Gzip enabled