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_39112235_2371.cpp:12:6: error: variable or field 'dfs' declared void
   12 | void dfs(bitset<MAXT> &st,int now){
      |      ^~~
0_0_39112235_2371.cpp:12:10: error: 'bitset' was not declared in this scope
   12 | void dfs(bitset<MAXT> &st,int now){
      |          ^~~~~~
0_0_39112235_2371.cpp:6:1: note: 'std::bitset' is defined in header '<bitset>'; did you forget to '#include <bitset>'?
    5 | #include<set>
  +++ |+#include <bitset>
    6 | using namespace std;
0_0_39112235_2371.cpp:12:24: error: 'st' was not declared in this scope; did you mean 'std'?
   12 | void dfs(bitset<MAXT> &st,int now){
      |                        ^~
      |                        std
0_0_39112235_2371.cpp:12:27: error: expected primary-expression before 'int'
   12 | void dfs(bitset<MAXT> &st,int now){
      |                           ^~~
0_0_39112235_2371.cpp: In function 'int main()':
0_0_39112235_2371.cpp:45:37: error: expected ';' before ')' token
   45 |                 for(int j=1;j<=n,++j){
      |                                     ^
      |                                     ;
0_0_39112235_2371.cpp:47:45: error: 'a' was not declared in this scope
   47 |                                 scanf("%d",&a[i][j]);
      |                                             ^
0_0_39112235_2371.cpp:50:17: error: 'memset' was not declared in this scope
   50 |                 memset(h,0,sizeof(h));
      |                 ^~~~~~
0_0_39112235_2371.cpp:6:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    5 | #include<set>
  +++ |+#include <cstring>
    6 | using namespace std;
0_0_39112235_2371.cpp:52:17: error: 'st' was not declared in this scope; did you mean 'std'?
   52 |                 st.reset();
      |                 ^~
      |                 std
0_0_39112235_2371.cpp:54:17: error: 'dfs' was not declared in this scope
   54 |                 dfs(st,0);
      |                 ^~~


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.000000(s) query 1, Server time : 2025-01-10 12:11:13, Gzip enabled