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_39210602_3407.cpp: In function 'int cow(int)':
0_0_39210602_3407.cpp:22:5: error: 'vector' was not declared in this scope
   22 |     vector<int> dp(n+1,0);
      |     ^~~~~~
0_0_39210602_3407.cpp:4:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    3 | #include <sstream>
  +++ |+#include <vector>
    4 | 
0_0_39210602_3407.cpp:22:12: error: expected primary-expression before 'int'
   22 |     vector<int> dp(n+1,0);
      |            ^~~
0_0_39210602_3407.cpp:23:5: error: 'dp' was not declared in this scope
   23 |     dp[1] = 1;dp[2] = 2;dp[3] = 3;
      |     ^~


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 17:38:32, Gzip enabled