0_0_38807463_17757.cpp:7:8: error: expected identifier before '*' token
7 | struct ***
| ^
0_0_38807463_17757.cpp:8:1: error: expected unqualified-id before '{' token
8 | {
| ^
0_0_38807463_17757.cpp:16:8: error: expected identifier before '*' token
16 | struct ***er
| ^
0_0_38807463_17757.cpp:18:9: error: expected primary-expression before 'int'
18 | int to, len, ne;
| ^~~
0_0_38807463_17757.cpp:18:9: error: expected '}' before 'int'
0_0_38807463_17757.cpp:17:1: note: to match this '{'
17 | {
| ^
0_0_38807463_17757.cpp:19:1: error: expected declaration before '}' token
19 | }lay[800005];
| ^
0_0_38807463_17757.cpp:19:2: error: 'lay' does not name a type
19 | }lay[800005];
| ^~~
0_0_38807463_17757.cpp:21:11: error: template argument 1 is invalid
21 | vector<***>layer[300005];
| ^
0_0_38807463_17757.cpp:21:11: error: template argument 2 is invalid
0_0_38807463_17757.cpp: In function 'void add(int, int, int)':
0_0_38807463_17757.cpp:28:9: error: 'lay' was not declared in this scope
28 | lay[cnt].to = to;
| ^~~
0_0_38807463_17757.cpp: In function 'void init()':
0_0_38807463_17757.cpp:35:9: error: 'memset' was not declared in this scope
35 | memset(vis, 0, sizeof(vis));
| ^~~~~~
0_0_38807463_17757.cpp:5:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
4 | #include<functional>
+++ |+#include <cstring>
5 | #include<vector>
0_0_38807463_17757.cpp:39:26: error: request for member 'clear' in 'layer[s]', which is of non-class type 'int'
39 | layer[s].clear();
| ^~~~~
0_0_38807463_17757.cpp: In function 'void spfa()':
0_0_38807463_17757.cpp:46:27: error: template argument 1 is invalid
46 | priority_queue<***>q;
| ^
0_0_38807463_17757.cpp:46:27: error: template argument 2 is invalid
0_0_38807463_17757.cpp:46:27: error: template argument 3 is invalid
0_0_38807463_17757.cpp:48:11: error: request for member 'push' in 'q', which is of non-class type 'int'
48 | q.push(***{ n+1,0 });
| ^~~~
0_0_38807463_17757.cpp:48:19: error: expected primary-expression before '{' token
48 | q.push(***{ n+1,0 });
| ^
0_0_38807463_17757.cpp:51:19: error: request for member 'empty' in 'q', which is of non-class type 'int'
51 | while (!q.empty())
| ^~~~~
0_0_38807463_17757.cpp:53:27: error: request for member 'top' in 'q', which is of non-class type 'int'
53 | int t = q.top().to;
| ^~~
0_0_38807463_17757.cpp:54:19: error: request for member 'pop' in 'q', which is of non-class type 'int'
54 | q.pop();
| ^~~
0_0_38807463_17757.cpp:56:47: error: 'lay' was not declared in this scope; did you mean 'layer'?
56 | for (int s = head[t]; ~s; s = lay[s].ne)
| ^~~
| layer
0_0_38807463_17757.cpp:65:43: error: request for member 'push' in 'q', which is of non-class type 'int'
65 | q.push(***{ lay[s].to , d[lay[s].to] });
| ^~~~
0_0_38807463_17757.cpp:65:51: error: expected primary-expression before '{' token
65 | q.push(***{ lay[s].to , d[lay[s].to] });
| ^
0_0_38807463_17757.cpp: In function 'int main()':
0_0_38807463_17757.cpp:84:34: error: request for member 'push_back' in 'layer[a]', which is of non-class type 'int'
84 | layer[a].push_back(***{s,0});
| ^~~~~~~~~
0_0_38807463_17757.cpp:84:47: error: expected primary-expression before '{' token
84 | layer[a].push_back(***{s,0});
| ^
0_0_38807463_17757.cpp:102:38: error: request for member 'size' in 'layer[s]', which is of non-class type 'int'
102 | if (layer[s].size() && layer[s + 1].size())
| ^~~~
0_0_38807463_17757.cpp:102:61: error: request for member 'size' in 'layer[(s + 1)]', which is of non-class type 'int'
102 | if (layer[s].size() && layer[s + 1].size())
| ^~~~
|