Azer.cpp:11:1: error: 'vector' does not name a type
11 | vector<bool> msg;
| ^~~~~~
Azer.cpp:12:1: error: 'vector' does not name a type
12 | vector<int> dist;
| ^~~~~~
Azer.cpp:13:1: error: 'vector' does not name a type
13 | vector<Arc> arc[N];
| ^~~~~~
Azer.cpp:14:1: error: 'priority_queue' does not name a type
14 | priority_queue<pair<int, int>> pq;
| ^~~~~~~~~~~~~~
Azer.cpp:16:26: error: 'vector' has not been declared
16 | void InitA(int X, int a, vector<int> U, vector<int> V, vector<int> C) {
| ^~~~~~
Azer.cpp:16:32: error: expected ',' or '...' before '<' token
16 | void InitA(int X, int a, vector<int> U, vector<int> V, vector<int> C) {
| ^
Azer.cpp: In function 'void InitA(int, int, int)':
Azer.cpp:18:5: error: 'dist' was not declared in this scope
18 | dist.resize(n);
| ^~~~
Azer.cpp:20:9: error: 'arc' was not declared in this scope; did you mean 'Arc'?
20 | arc[U[i]].push_back({V[i], C[i]});
| ^~~
| Arc
Azer.cpp:20:13: error: 'U' was not declared in this scope
20 | arc[U[i]].push_back({V[i], C[i]});
| ^
Azer.cpp:20:30: error: 'V' was not declared in this scope
20 | arc[U[i]].push_back({V[i], C[i]});
| ^
Azer.cpp:20:36: error: 'C' was not declared in this scope
20 | arc[U[i]].push_back({V[i], C[i]});
| ^
Azer.cpp:26:9: error: 'pq' was not declared in this scope
26 | pq.push({-dist[i], i});
| ^~
Azer.cpp:29:22: error: 'pq' was not declared in this scope
29 | while(!envoi && !pq.empty()) {
| ^~
Azer.cpp:33:23: error: 'd' was not declared in this scope
33 | if(dist[i] == d) {
| ^
Azer.cpp:34:25: error: 'arc' was not declared in this scope; did you mean 'Arc'?
34 | for(Arc a : arc[i]) {
| ^~~
| Arc
Azer.cpp: In function 'void ReceiveA(bool)':
Azer.cpp:54:5: error: 'msg' was not declared in this scope
54 | msg.push_back(x);
| ^~~
Azer.cpp:63:9: error: 'dist' was not declared in this scope
63 | dist[i] = min(dist[i], d);
| ^~~~
Azer.cpp:63:19: error: 'min' was not declared in this scope; did you mean 'std::min'?
63 | dist[i] = min(dist[i], d);
| ^~~
| std::min
In file included from /usr/include/c++/10/vector:60,
from Azer.h:6,
from Azer.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:278:5: note: 'std::min' declared here
278 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
Azer.cpp:64:9: error: 'pq' was not declared in this scope
64 | pq.push({-dist[i], i});
| ^~
Azer.cpp:73:29: error: 'arc' was not declared in this scope; did you mean 'Arc'?
73 | for(Arc a : arc[i]) {
| ^~~
| Arc
Azer.cpp: At global scope:
Azer.cpp:102:1: error: 'vector' does not name a type
102 | vector<int> Answer() {
| ^~~~~~
Baijan.cpp:11:1: error: 'vector' does not name a type
11 | vector<int> dist;
| ^~~~~~
Baijan.cpp:12:1: error: 'vector' does not name a type
12 | vector<Arc> arc[N];
| ^~~~~~
Baijan.cpp:13:1: error: 'vector' does not name a type
13 | vector<bool> msg;
| ^~~~~~
Baijan.cpp:14:1: error: 'priority_queue' does not name a type
14 | priority_queue<pair<int, int>> pq;
| ^~~~~~~~~~~~~~
Baijan.cpp:16:26: error: 'vector' has not been declared
16 | void InitB(int X, int b, vector<int> S, vector<int> T, vector<int> D) {
| ^~~~~~
Baijan.cpp:16:32: error: expected ',' or '...' before '<' token
16 | void InitB(int X, int b, vector<int> S, vector<int> T, vector<int> D) {
| ^
Baijan.cpp: In function 'void InitB(int, int, int)':
Baijan.cpp:18:5: error: 'dist' was not declared in this scope
18 | dist.resize(n);
| ^~~~
Baijan.cpp:20:9: error: 'arc' was not declared in this scope; did you mean 'Arc'?
20 | arc[S[i]].push_back({T[i], D[i]});
| ^~~
| Arc
Baijan.cpp:20:13: error: 'S' was not declared in this scope
20 | arc[S[i]].push_back({T[i], D[i]});
| ^
Baijan.cpp:20:30: error: 'T' was not declared in this scope
20 | arc[S[i]].push_back({T[i], D[i]});
| ^
Baijan.cpp:20:36: error: 'D' was not declared in this scope
20 | arc[S[i]].push_back({T[i], D[i]});
| ^
Baijan.cpp:26:9: error: 'pq' was not declared in this scope
26 | pq.push({-dist[i], i});
| ^~
Baijan.cpp: In function 'void ReceiveB(bool)':
Baijan.cpp:30:5: error: 'msg' was not declared in this scope
30 | msg.push_back(y);
| ^~~
Baijan.cpp:39:9: error: 'dist' was not declared in this scope
39 | dist[i] = min(dist[i], d);
| ^~~~
Baijan.cpp:39:19: error: 'min' was not declared in this scope; did you mean 'std::min'?
39 | dist[i] = min(dist[i], d);
| ^~~
| std::min
In file included from /usr/include/c++/10/vector:60,
from Baijan.h:7,
from Baijan.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:278:5: note: 'std::min' declared here
278 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
Baijan.cpp:40:9: error: 'pq' was not declared in this scope
40 | pq.push({-dist[i], i});
| ^~
Baijan.cpp:49:29: error: 'arc' was not declared in this scope; did you mean 'Arc'?
49 | for(Arc a : arc[i]) {
| ^~~
| Arc