0_0_37746667_32182.cpp:5:7: error: expected nested-name-specifier before numeric constant
using 11 long long;
^
0_0_37746667_32182.cpp:7:7: error: expected unqualified-id before numeric constant
const 11 INF = 1e18;
^
0_0_37746667_32182.cpp:13:1: error: expected unqualified-id before numeric constant
11 val;
^
0_0_37746667_32182.cpp:17:14: error: expected identifier before numeric constant
edge(int to, 11 val): to(to), val(val_) {}
^
0_0_37746667_32182.cpp:17:14: error: expected ',' or '...' before numeric constant
0_0_37746667_32182.cpp: In constructor 'edge::edge(int, int)':
0_0_37746667_32182.cpp:17:31: error: class 'edge' does not have any field named 'val'
edge(int to, 11 val): to(to), val(val_) {}
^
0_0_37746667_32182.cpp:17:35: error: 'val_' was not declared in this scope
edge(int to, 11 val): to(to), val(val_) {}
^
0_0_37746667_32182.cpp: In member function 'bool edge::operator<(const edge&) const':
0_0_37746667_32182.cpp:21:8: error: 'val' was not declared in this scope
return val > k.val;
^
0_0_37746667_32182.cpp:21:16: error: 'const struct edge' has no member named 'val'
return val > k.val;
^
0_0_37746667_32182.cpp: In function 'int main()':
0_0_37746667_32182.cpp:47:13: error: 'V' was not declared in this scope
cin >> u >> V >> W;
^
0_0_37746667_32182.cpp:47:18: error: 'W' was not declared in this scope
cin >> u >> V >> W;
^
0_0_37746667_32182.cpp:59:3: error: lvalue required as decrement operand
--1;
^
0_0_37746667_32182.cpp: In lambda function:
0_0_37746667_32182.cpp:67:10: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
vector<11> dis(n, INF);
^
0_0_37746667_32182.cpp:67:10: error: expected a type, got '11'
0_0_37746667_32182.cpp:67:10: error: template argument 2 is invalid
0_0_37746667_32182.cpp:67:15: error: invalid type in declaration before '(' token
vector<11> dis(n, INF);
^
0_0_37746667_32182.cpp:67:19: error: 'INF' was not declared in this scope
vector<11> dis(n, INF);
^
0_0_37746667_32182.cpp:67:22: error: expression list treated as compound expression in initializer [-fpermissive]
vector<11> dis(n, INF);
^
0_0_37746667_32182.cpp:71:6: error: invalid types 'int[int]' for array subscript
dis[i] = 0;
^
0_0_37746667_32182.cpp:85:22: error: expected ';' before 'g'
for (const auto& nxt g[top.to]) {
^
0_0_37746667_32182.cpp:85:30: error: could not convert '(& g)->std::vector<_Tp, _Alloc>::operator[]<std::vector<edge>, std::allocator<std::vector<edge> > >(((std::vector<std::vector<edge> >::size_type)top.edge::to))' from '__gnu_cxx::__alloc_traits<std::allocator<std::vector<edge> > >::value_type {aka std::vector<edge>}' to 'bool'
for (const auto& nxt g[top.to]) {
^
0_0_37746667_32182.cpp:85:31: error: expected ';' before ')' token
for (const auto& nxt g[top.to]) {
^
0_0_37746667_32182.cpp:87:10: error: use of 'nxt' before deduction of 'auto'
if (!vis[nxt.to] && dis [nxt.to] > dis[top.to] + nxt.val) { dis [nxt.to] = dis [top.to] + nxt.val;
^
0_0_37746667_32182.cpp:87:26: error: use of 'nxt' before deduction of 'auto'
if (!vis[nxt.to] && dis [nxt.to] > dis[top.to] + nxt.val) { dis [nxt.to] = dis [top.to] + nxt.val;
^
0_0_37746667_32182.cpp:87:46: error: invalid types 'int[int]' for array subscript
if (!vis[nxt.to] && dis [nxt.to] > dis[top.to] + nxt.val) { dis [nxt.to] = dis [top.to] + nxt.val;
^
0_0_37746667_32182.cpp:87:50: error: use of 'nxt' before deduction of 'auto'
if (!vis[nxt.to] && dis [nxt.to] > dis[top.to] + nxt.val) { dis [nxt.to] = dis [top.to] + nxt.val;
^
0_0_37746667_32182.cpp:87:66: error: use of 'nxt' before deduction of 'auto'
if (!vis[nxt.to] && dis [nxt.to] > dis[top.to] + nxt.val) { dis [nxt.to] = dis [top.to] + nxt.val;
^
0_0_37746667_32182.cpp:87:87: error: invalid types 'int[int]' for array subscript
if (!vis[nxt.to] && dis [nxt.to] > dis[top.to] + nxt.val) { dis [nxt.to] = dis [top.to] + nxt.val;
^
0_0_37746667_32182.cpp:87:91: error: use of 'nxt' before deduction of 'auto'
if (!vis[nxt.to] && dis [nxt.to] > dis[top.to] + nxt.val) { dis [nxt.to] = dis [top.to] + nxt.val;
^
0_0_37746667_32182.cpp:89:14: error: use of 'nxt' before deduction of 'auto'
pq.push(edge(nxt.to, dis [nxt.to]));
^
0_0_37746667_32182.cpp:89:27: error: use of 'nxt' before deduction of 'auto'
pq.push(edge(nxt.to, dis [nxt.to]));
^
0_0_37746667_32182.cpp: In function 'int main()':
0_0_37746667_32182.cpp:99:10: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
vector<11> res(n, INF);
^
0_0_37746667_32182.cpp:99:10: error: expected a type, got '11'
0_0_37746667_32182.cpp:99:10: error: template argument 2 is invalid
0_0_37746667_32182.cpp:99:15: error: invalid type in declaration before '(' token
vector<11> res(n, INF);
^
0_0_37746667_32182.cpp:99:19: error: 'INF' was not declared in this scope
vector<11> res(n, INF);
^
0_0_37746667_32182.cpp:99:22: error: expression list treated as compound expression in initializer [-fpermissive]
vector<11> res(n, INF);
^
0_0_37746667_32182.cpp:113:10: error: expected initializer before 'dijkstra'
auto dis dijkstra(s); for (int j t) { res[j] = min(res[j], dis[j]); }
^
0_0_37746667_32182.cpp:113:34: error: expected ';' before 't'
auto dis dijkstra(s); for (int j t) { res[j] = min(res[j], dis[j]); }
^
0_0_37746667_32182.cpp:113:34: error: could not convert 't' from 'std::vector<int>' to 'bool'
0_0_37746667_32182.cpp:113:35: error: expected ';' before ')' token
auto dis dijkstra(s); for (int j t) { res[j] = min(res[j], dis[j]); }
^
0_0_37746667_32182.cpp:113:44: error: invalid types 'int[int]' for array subscript
auto dis dijkstra(s); for (int j t) { res[j] = min(res[j], dis[j]); }
^
0_0_37746667_32182.cpp:113:57: error: invalid types 'int[int]' for array subscript
auto dis dijkstra(s); for (int j t) { res[j] = min(res[j], dis[j]); }
^
0_0_37746667_32182.cpp:113:60: error: 'dis' was not declared in this scope
auto dis dijkstra(s); for (int j t) { res[j] = min(res[j], dis[j]); }
^
0_0_37746667_32182.cpp:115:1: error: 'dis' was not declared in this scope
dis dijkstra(t); for (int j s) {
^
0_0_37746667_32182.cpp:115:29: error: expected ';' before 's'
dis dijkstra(t); for (int j s) {
^
0_0_37746667_32182.cpp:115:29: error: could not convert 's' from 'std::vector<int>' to 'bool'
0_0_37746667_32182.cpp:115:30: error: expected ';' before ')' token
dis dijkstra(t); for (int j s) {
^
0_0_37746667_32182.cpp:117:6: error: invalid types 'int[int]' for array subscript
res[j] = min(res[j], dis[j]);
^
0_0_37746667_32182.cpp:117:19: error: invalid types 'int[int]' for array subscript
res[j] = min(res[j], dis[j]);
^
0_0_37746667_32182.cpp:123:34: error: expected primary-expression before '<' token
cout << "Case #" << tt << ": " <<< *min_element (res.begin(), res.end()) << "\n";
^
0_0_37746667_32182.cpp:123:54: error: request for member 'begin' in 'res', which is of non-class type 'int'
cout << "Case #" << tt << ": " <<< *min_element (res.begin(), res.end()) << "\n";
^
0_0_37746667_32182.cpp:123:67: error: request for member 'end' in 'res', which is of non-class type 'int'
cout << "Case #" << tt << ": " <<< *min_element (res.begin(), res.end()) << "\n";
^
|