0_0_37746670_4687.cpp: In function 'int main()':
0_0_37746670_4687.cpp:49:13: error: 'V' was not declared in this scope
cin >> u >> V >> W;
^
0_0_37746670_4687.cpp:49:18: error: 'W' was not declared in this scope
cin >> u >> V >> W;
^
0_0_37746670_4687.cpp:61:3: error: lvalue required as decrement operand
--1;
^
0_0_37746670_4687.cpp: In lambda function:
0_0_37746670_4687.cpp:87:22: error: expected ';' before 'g'
for (const auto& nxt g[top.to]) {
^
0_0_37746670_4687.cpp:87: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_37746670_4687.cpp:87:31: error: expected ';' before ')' token
for (const auto& nxt g[top.to]) {
^
0_0_37746670_4687.cpp:89: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_37746670_4687.cpp:89: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_37746670_4687.cpp:89: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_37746670_4687.cpp:89: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_37746670_4687.cpp:89: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_37746670_4687.cpp:91:14: error: use of 'nxt' before deduction of 'auto'
pq.push(edge(nxt.to, dis [nxt.to]));
^
0_0_37746670_4687.cpp:91:27: error: use of 'nxt' before deduction of 'auto'
pq.push(edge(nxt.to, dis [nxt.to]));
^
0_0_37746670_4687.cpp: In function 'int main()':
0_0_37746670_4687.cpp:101: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_37746670_4687.cpp:101:10: error: expected a type, got '11'
0_0_37746670_4687.cpp:101:10: error: template argument 2 is invalid
0_0_37746670_4687.cpp:101:15: error: invalid type in declaration before '(' token
vector<11> res(n, INF);
^
0_0_37746670_4687.cpp:101:22: error: expression list treated as compound expression in initializer [-fpermissive]
vector<11> res(n, INF);
^
0_0_37746670_4687.cpp:115:10: error: expected initializer before 'dijkstra'
auto dis dijkstra(s); for (int j t) { res[j] = min(res[j], dis[j]); }
^
0_0_37746670_4687.cpp:115:34: error: expected ';' before 't'
auto dis dijkstra(s); for (int j t) { res[j] = min(res[j], dis[j]); }
^
0_0_37746670_4687.cpp:115:34: error: could not convert 't' from 'std::vector<int>' to 'bool'
0_0_37746670_4687.cpp:115:35: error: expected ';' before ')' token
auto dis dijkstra(s); for (int j t) { res[j] = min(res[j], dis[j]); }
^
0_0_37746670_4687.cpp:115: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_37746670_4687.cpp:115: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_37746670_4687.cpp:115: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_37746670_4687.cpp:117:1: error: 'dis' was not declared in this scope
dis dijkstra(t); for (int j s) {
^
0_0_37746670_4687.cpp:117:29: error: expected ';' before 's'
dis dijkstra(t); for (int j s) {
^
0_0_37746670_4687.cpp:117:29: error: could not convert 's' from 'std::vector<int>' to 'bool'
0_0_37746670_4687.cpp:117:30: error: expected ';' before ')' token
dis dijkstra(t); for (int j s) {
^
0_0_37746670_4687.cpp:119:6: error: invalid types 'int[int]' for array subscript
res[j] = min(res[j], dis[j]);
^
0_0_37746670_4687.cpp:119:19: error: invalid types 'int[int]' for array subscript
res[j] = min(res[j], dis[j]);
^
0_0_37746670_4687.cpp:125:34: error: expected primary-expression before '<' token
cout << "Case #" << tt << ": " <<< *min_element (res.begin(), res.end()) << "\n";
^
0_0_37746670_4687.cpp:125: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_37746670_4687.cpp:125: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";
^
|