0_0_37746668_4788.cpp:3:7: error: expected nested-name-specifier before 'll'
using ll long long;
^
0_0_37746668_4788.cpp:8:7: error: 'll' does not name a type
const ll INF = 1e18;
^
0_0_37746668_4788.cpp:14:1: error: 'll' does not name a type
ll val;
^
0_0_37746668_4788.cpp:18:14: error: 'll' has not been declared
edge(int to, ll val): to(to), val(val_) {}
^
0_0_37746668_4788.cpp: In constructor 'edge::edge(int, int)':
0_0_37746668_4788.cpp:18:31: error: class 'edge' does not have any field named 'val'
edge(int to, ll val): to(to), val(val_) {}
^
0_0_37746668_4788.cpp:18:35: error: 'val_' was not declared in this scope
edge(int to, ll val): to(to), val(val_) {}
^
0_0_37746668_4788.cpp: In member function 'bool edge::operator<(const edge&) const':
0_0_37746668_4788.cpp:22:8: error: 'val' was not declared in this scope
return val > k.val;
^
0_0_37746668_4788.cpp:22:16: error: 'const struct edge' has no member named 'val'
return val > k.val;
^
0_0_37746668_4788.cpp: In function 'int main()':
0_0_37746668_4788.cpp:48:13: error: 'V' was not declared in this scope
cin >> u >> V >> W;
^
0_0_37746668_4788.cpp:48:18: error: 'W' was not declared in this scope
cin >> u >> V >> W;
^
0_0_37746668_4788.cpp:60:3: error: lvalue required as decrement operand
--1;
^
0_0_37746668_4788.cpp: In lambda function:
0_0_37746668_4788.cpp:68:8: error: 'll' was not declared in this scope
vector<ll> dis(n, INF);
^
0_0_37746668_4788.cpp:68:10: error: template argument 1 is invalid
vector<ll> dis(n, INF);
^
0_0_37746668_4788.cpp:68:10: error: template argument 2 is invalid
0_0_37746668_4788.cpp:68:15: error: invalid type in declaration before '(' token
vector<ll> dis(n, INF);
^
0_0_37746668_4788.cpp:68:19: error: 'INF' was not declared in this scope
vector<ll> dis(n, INF);
^
0_0_37746668_4788.cpp:68:22: error: expression list treated as compound expression in initializer [-fpermissive]
vector<ll> dis(n, INF);
^
0_0_37746668_4788.cpp:72:6: error: invalid types 'int[int]' for array subscript
dis[i] = 0;
^
0_0_37746668_4788.cpp:86:22: error: expected ';' before 'g'
for (const auto& nxt g[top.to]) {
^
0_0_37746668_4788.cpp:86: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_37746668_4788.cpp:86:31: error: expected ';' before ')' token
for (const auto& nxt g[top.to]) {
^
0_0_37746668_4788.cpp:88: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_37746668_4788.cpp:88: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_37746668_4788.cpp:88: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_37746668_4788.cpp:88: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_37746668_4788.cpp:88: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_37746668_4788.cpp:88: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_37746668_4788.cpp:88: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_37746668_4788.cpp:90:14: error: use of 'nxt' before deduction of 'auto'
pq.push(edge(nxt.to, dis [nxt.to]));
^
0_0_37746668_4788.cpp:90:27: error: use of 'nxt' before deduction of 'auto'
pq.push(edge(nxt.to, dis [nxt.to]));
^
0_0_37746668_4788.cpp: In function 'int main()':
0_0_37746668_4788.cpp:100: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_37746668_4788.cpp:100:10: error: expected a type, got '11'
0_0_37746668_4788.cpp:100:10: error: template argument 2 is invalid
0_0_37746668_4788.cpp:100:15: error: invalid type in declaration before '(' token
vector<11> res(n, INF);
^
0_0_37746668_4788.cpp:100:19: error: 'INF' was not declared in this scope
vector<11> res(n, INF);
^
0_0_37746668_4788.cpp:100:22: error: expression list treated as compound expression in initializer [-fpermissive]
vector<11> res(n, INF);
^
0_0_37746668_4788.cpp:114:10: error: expected initializer before 'dijkstra'
auto dis dijkstra(s); for (int j t) { res[j] = min(res[j], dis[j]); }
^
0_0_37746668_4788.cpp:114:34: error: expected ';' before 't'
auto dis dijkstra(s); for (int j t) { res[j] = min(res[j], dis[j]); }
^
0_0_37746668_4788.cpp:114:34: error: could not convert 't' from 'std::vector<int>' to 'bool'
0_0_37746668_4788.cpp:114:35: error: expected ';' before ')' token
auto dis dijkstra(s); for (int j t) { res[j] = min(res[j], dis[j]); }
^
0_0_37746668_4788.cpp:114: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_37746668_4788.cpp:114: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_37746668_4788.cpp:114: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_37746668_4788.cpp:116:1: error: 'dis' was not declared in this scope
dis dijkstra(t); for (int j s) {
^
0_0_37746668_4788.cpp:116:29: error: expected ';' before 's'
dis dijkstra(t); for (int j s) {
^
0_0_37746668_4788.cpp:116:29: error: could not convert 's' from 'std::vector<int>' to 'bool'
0_0_37746668_4788.cpp:116:30: error: expected ';' before ')' token
dis dijkstra(t); for (int j s) {
^
0_0_37746668_4788.cpp:118:6: error: invalid types 'int[int]' for array subscript
res[j] = min(res[j], dis[j]);
^
0_0_37746668_4788.cpp:118:19: error: invalid types 'int[int]' for array subscript
res[j] = min(res[j], dis[j]);
^
0_0_37746668_4788.cpp:124:34: error: expected primary-expression before '<' token
cout << "Case #" << tt << ": " <<< *min_element (res.begin(), res.end()) << "\n";
^
0_0_37746668_4788.cpp:124: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_37746668_4788.cpp:124: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";
^
|