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_39174976_3041.cpp: In function 'int main()':
0_0_39174976_3041.cpp:11:18: error: 'vector' is not a member of 'std'
   11 |             std::vector<int> vec;
      |                  ^~~~~~
0_0_39174976_3041.cpp:3:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    2 | #include <iomanip>
  +++ |+#include <vector>
    3 | 
0_0_39174976_3041.cpp:11:25: error: expected primary-expression before 'int'
   11 |             std::vector<int> vec;
      |                         ^~~
0_0_39174976_3041.cpp:14:17: error: 'vec' was not declared in this scope
   14 |                 vec.push_back(val);
      |                 ^~~
0_0_39174976_3041.cpp:20:32: error: 'vec' was not declared in this scope
   20 |             for (int i = 0;i < vec.size();++i) {
      |                                ^~~


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-19 06:23:13, Gzip enabled