0_0_39446612_24459.cpp:25:1: error: 'vector' does not name a type
25 | vector<E> g[N];
| ^~~~~~
0_0_39446612_24459.cpp: In function 'void work()':
0_0_39446612_24459.cpp:42:30: error: 'vector' was not declared in this scope
42 | for(int i=1;i<=n;i++)vector<E>().swap(g[i]);
| ^~~~~~~~~
0_0_39446612_24459.cpp:6:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
5 | #include<algorithm>
+++ |+#include <vector>
6 | using namespace std;
0_0_39446612_24459.cpp:42:47: error: 'g' was not declared in this scope
42 | for(int i=1;i<=n;i++)vector<E>().swap(g[i]);
| ^
0_0_39446612_24459.cpp:46:17: error: 'g' was not declared in this scope
46 | g[u0].emplace_back(E(v0,c0));
| ^
0_0_39446612_24459.cpp:48:35: error: 'g' was not declared in this scope
48 | for(int i=1;i<=n;i++)sort(g[i].begin(),g[i].end());
| ^
0_0_39446612_24459.cpp:50:38: error: 'g' was not declared in this scope
50 | for(int i=1;i<=n;i++)for(E e:g[i])ins(e);
| ^
0_0_39446612_24459.cpp:54:34: error: 'g' was not declared in this scope
54 | for(int j=0;j<sz(g[p.v]);j++)if(!ins(E(g[p.v][j].v,p.c+g[p.v][j].c)))break;
| ^
0_0_39446612_24459.cpp:22:23: note: in definition of macro 'sz'
22 | #define sz(vec) (int)(vec.size())
| ^~~
|