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_39896987_2782.cpp: In function 'll f(ll, ll, ll)':
0_0_39896987_2782.cpp:9:5: error: 'vector' was not declared in this scope
    9 |     vector<ll>dp(n+1,0);
      |     ^~~~~~
0_0_39896987_2782.cpp:5:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    4 | #include <climits>
  +++ |+#include <vector>
    5 | using namespace std;
0_0_39896987_2782.cpp:9:14: error: expected primary-expression before '>' token
    9 |     vector<ll>dp(n+1,0);
      |              ^
0_0_39896987_2782.cpp:9:15: error: 'dp' was not declared in this scope
    9 |     vector<ll>dp(n+1,0);
      |               ^~


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.001000(s) query 1, Server time : 2025-01-10 17:54:34, Gzip enabled