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_37784390_5198.cpp:9:8: error: 'MAXN' was not declared in this scope
 bitset<MAXN> f[50005], S[1005], S0;
        ^
0_0_37784390_5198.cpp:9:12: error: template argument 1 is invalid
 bitset<MAXN> f[50005], S[1005], S0;
            ^
0_0_37784390_5198.cpp:9:22: error: invalid type in declaration before ',' token
 bitset<MAXN> f[50005], S[1005], S0;
                      ^
0_0_37784390_5198.cpp: In function 'void GetS(int)':
0_0_37784390_5198.cpp:16:26: error: invalid types 'int[int]' for array subscript
   for(auto j : Q[i]) S0[j].flip();
                          ^
0_0_37784390_5198.cpp: In function 'void Solve()':
0_0_37784390_5198.cpp:23:35: error: request for member 'reset' in 'f[i]', which is of non-class type 'int'
  for(int i = 1; i <= n; i++) f[i].reset(), G[i].clear();
                                   ^
0_0_37784390_5198.cpp:32:19: error: invalid types 'int[int]' for array subscript
   U[i] = u; f[v][i] = 1;
                   ^
0_0_37784390_5198.cpp:37:5: error: request for member 'reset' in 'S0', which is of non-class type 'int'
  S0.reset(); int p = 0, cnt = 0;
     ^
0_0_37784390_5198.cpp:40:26: error: invalid types 'int[int]' for array subscript
   for(auto j : Q[i]) S0[j].flip();
                          ^
0_0_37784390_5198.cpp:47:17: error: invalid types 'int[int]' for array subscript
   if(f[ U[i] ][i]) cout << "YES\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-11-26 00:50:56, Gzip enabled