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_38702191_14183.cpp: In function 'int main()':
0_0_38702191_14183.cpp:26:9: error: 'vector' was not declared in this scope
   26 |         vector<int>ve;
      |         ^~~~~~
0_0_38702191_14183.cpp:5:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    4 | #include<set>
  +++ |+#include <vector>
    5 | 
0_0_38702191_14183.cpp:26:16: error: expected primary-expression before 'int'
   26 |         vector<int>ve;
      |                ^~~
0_0_38702191_14183.cpp:31:21: error: 've' was not declared in this scope; did you mean 'se'?
   31 |             if(x>=1)ve.push_back(x);
      |                     ^~
      |                     se
0_0_38702191_14183.cpp:33:32: error: 've' was not declared in this scope; did you mean 'se'?
   33 |         for(int i=1;i<(1<<(int)ve.size());i++)
      |                                ^~
      |                                se


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-24 19:02:17, Gzip enabled