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_39052073_24944.cpp: In function 'int main()':
0_0_39052073_24944.cpp:10:9: error: 'bitset' was not declared in this scope
   10 |         bitset<110> b[110];//标记是否dfs过
      |         ^~~~~~
0_0_39052073_24944.cpp:3:1: note: 'std::bitset' is defined in header '<bitset>'; did you forget to '#include <bitset>'?
    2 | #include<vector>
  +++ |+#include <bitset>
    3 | using namespace std;
0_0_39052073_24944.cpp:10:21: error: 'b' was not declared in this scope
   10 |         bitset<110> b[110];//标记是否dfs过
      |                     ^
0_0_39052073_24944.cpp:13:9: error: 'function' was not declared in this scope
   13 |         function<void(int, int)> dfs;
      |         ^~~~~~~~
0_0_39052073_24944.cpp:3:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
    2 | #include<vector>
  +++ |+#include <functional>
    3 | using namespace std;
0_0_39052073_24944.cpp:13:31: error: expression list treated as compound expression in functional cast [-fpermissive]
   13 |         function<void(int, int)> dfs;
      |                               ^
0_0_39052073_24944.cpp:13:18: error: expected primary-expression before 'void'
   13 |         function<void(int, int)> dfs;
      |                  ^~~~
0_0_39052073_24944.cpp:14:9: error: 'dfs' was not declared in this scope
   14 |         dfs = [&](int x, int y){
      |         ^~~


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-06-28 08:10:57, Gzip enabled