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_39536168_11837.cpp: In function 'void solve()':
0_0_39536168_11837.cpp:44:5: error: 'vector' was not declared in this scope
   44 |     vector<bool>st(P[k]);
      |     ^~~~~~
0_0_39536168_11837.cpp:5:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    4 | #include <map>
  +++ |+#include <vector>
    5 | 
0_0_39536168_11837.cpp:44:12: error: expected primary-expression before 'bool'
   44 |     vector<bool>st(P[k]);
      |            ^~~~
0_0_39536168_11837.cpp:45:12: error: expected primary-expression before 'int'
   45 |     vector<int> f(P[k]);
      |            ^~~
0_0_39536168_11837.cpp:46:12: error: expected primary-expression before 'int'
   46 |     vector<int> state;
      |            ^~~
0_0_39536168_11837.cpp:48:5: error: 'st' was not declared in this scope; did you mean 'std'?
   48 |     st[0] = true, f[0] = 1, state.push_back(0);
      |     ^~
      |     std
0_0_39536168_11837.cpp:48:19: error: 'f' was not declared in this scope
   48 |     st[0] = true, f[0] = 1, state.push_back(0);
      |                   ^
0_0_39536168_11837.cpp:48:29: error: 'state' was not declared in this scope; did you mean 'stat'?
   48 |     st[0] = true, f[0] = 1, state.push_back(0);
      |                             ^~~~~
      |                             stat


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-29 22:01:26, Gzip enabled