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_38875128_25253.cpp: In function 'int main()':
0_0_38875128_25253.cpp:58:13: error: 'vector' was not declared in this scope
   58 |             vector<int> len;
      |             ^~~~~~
0_0_38875128_25253.cpp:4:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    3 | #include <cstring>
  +++ |+#include <vector>
    4 | 
0_0_38875128_25253.cpp:58:20: error: expected primary-expression before 'int'
   58 |             vector<int> len;
      |                    ^~~
0_0_38875128_25253.cpp:61:21: error: 'len' was not declared in this scope
   61 |                     len.emplace_back(i - lst);
      |                     ^~~
0_0_38875128_25253.cpp:65:13: error: 'len' was not declared in this scope
   65 |             len.emplace_back(m - 1 - lst);
      |             ^~~


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