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_38691693_22001.cpp: In function 'void solve()':
0_0_38691693_22001.cpp:40:9: error: 'vector' was not declared in this scope
   40 |         vector<int> g(n + 1, 1e9);
      |         ^~~~~~
0_0_38691693_22001.cpp:5:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    4 | #include<unordered_set>
  +++ |+#include <vector>
    5 | using namespace std;
0_0_38691693_22001.cpp:40:16: error: expected primary-expression before 'int'
   40 |         vector<int> g(n + 1, 1e9);
      |                ^~~
0_0_38691693_22001.cpp:46:25: error: 'g' was not declared in this scope
   46 |                         g[i] = min(g[i], f[i][j]);
      |                         ^
0_0_38691693_22001.cpp:54:48: error: 'g' was not declared in this scope
   54 |                         f[i][j] = min(f[i][j], g[j] + a[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-09-28 08:22:57, Gzip enabled