F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_23702954_14722.cpp:1:24: error: missing terminating > character
 #include <bits/stdc++.h
                        ^
0_0_23702954_14722.cpp:9:2: error: 'vint' does not name a type
  vint p[202];
  ^
0_0_23702954_14722.cpp:10:2: error: 'cint' does not name a type
  cint mx = 1e7;
  ^
0_0_23702954_14722.cpp: In function 'int dijkstra()':
0_0_23702954_14722.cpp:20:16: error: 'cpii' has not been declared
  auto cmp = [](cpii a, cpii b){return b.second < a.second;};
                ^
0_0_23702954_14722.cpp:20:24: error: 'cpii' has not been declared
  auto cmp = [](cpii a, cpii b){return b.second < a.second;};
                        ^
0_0_23702954_14722.cpp: In lambda function:
0_0_23702954_14722.cpp:20:41: error: request for member 'second' in 'b', which is of non-class type 'int'
  auto cmp = [](cpii a, cpii b){return b.second < a.second;};
                                         ^
0_0_23702954_14722.cpp:20:52: error: request for member 'second' in 'a', which is of non-class type 'int'
  auto cmp = [](cpii a, cpii b){return b.second < a.second;};
                                                    ^
0_0_23702954_14722.cpp: In function 'int dijkstra()':
0_0_23702954_14722.cpp:21:17: error: 'pii' was not declared in this scope
  priority_queue<pii, vector<pii>, decltype(cmp)> q(cmp);
                 ^
0_0_23702954_14722.cpp:21:29: error: the value of 'pii' is not usable in a constant expression
  priority_queue<pii, vector<pii>, decltype(cmp)> q(cmp);
                             ^
0_0_23702954_14722.cpp:21:17: note: 'pii' was not declared 'constexpr'
  priority_queue<pii, vector<pii>, decltype(cmp)> q(cmp);
                 ^
0_0_23702954_14722.cpp:21:32: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
  priority_queue<pii, vector<pii>, decltype(cmp)> q(cmp);
                                ^
0_0_23702954_14722.cpp:21:32: error:   expected a type, got 'pii'
0_0_23702954_14722.cpp:21:32: error: template argument 2 is invalid
0_0_23702954_14722.cpp:21:48: error: template argument 1 is invalid
  priority_queue<pii, vector<pii>, decltype(cmp)> q(cmp);
                                                ^
0_0_23702954_14722.cpp:21:48: error: template argument 2 is invalid
0_0_23702954_14722.cpp:21:51: error: invalid type in declaration before '(' token
  priority_queue<pii, vector<pii>, decltype(cmp)> q(cmp);
                                                   ^
0_0_23702954_14722.cpp:21:55: error: invalid user-defined conversion from 'dijkstra()::<lambda(int, int)>' to 'int' [-fpermissive]
  priority_queue<pii, vector<pii>, decltype(cmp)> q(cmp);
                                                       ^
0_0_23702954_14722.cpp:20:30: note: candidate is: dijkstra()::<lambda(int, int)>::operator void (*)(int, int)() const <near match>
  auto cmp = [](cpii a, cpii b){return b.second < a.second;};
                              ^
0_0_23702954_14722.cpp:20:30: note:   no known conversion from 'void (*)(int, int)' to 'int'
0_0_23702954_14722.cpp:22:4: error: request for member 'push' in 'q', which is of non-class type 'int'
  q.push(make_pair(s, 0));
    ^
0_0_23702954_14722.cpp:24:12: error: request for member 'empty' in 'q', which is of non-class type 'int'
  while (!q.empty())
            ^
0_0_23702954_14722.cpp:26:3: error: 'cpii' was not declared in this scope
   cpii node = q.top(); q.pop();
   ^
0_0_23702954_14722.cpp:26:26: error: request for member 'pop' in 'q', which is of non-class type 'int'
   cpii node = q.top(); q.pop();
                          ^
0_0_23702954_14722.cpp:27:3: error: 'cint' was not declared in this scope
   cint u = node.first;
   ^
0_0_23702954_14722.cpp:28:7: error: 'u' was not declared in this scope
   if (u == t) return d[t];
       ^
0_0_23702954_14722.cpp:29:8: error: 'u' was not declared in this scope
   done[u] = true;
        ^
0_0_23702954_14722.cpp:30:8: error: 'uint' was not declared in this scope
   for (uint i = 0; i < p[u].size(); ++i)
        ^
0_0_23702954_14722.cpp:30:20: error: 'i' was not declared in this scope
   for (uint i = 0; i < p[u].size(); ++i)
                    ^
0_0_23702954_14722.cpp:30:24: error: 'p' was not declared in this scope
   for (uint i = 0; i < p[u].size(); ++i)
                        ^
0_0_23702954_14722.cpp:32:9: error: expected ';' before 'v'
    cint v = p[u][i];
         ^
0_0_23702954_14722.cpp:33:6: error: 'v' was not declared in this scope
    d[v] = min(d[v], d[u] + x[u][v]);
      ^
0_0_23702954_14722.cpp:34:20: error: request for member 'push' in 'q', which is of non-class type 'int'
    if (!done[v]) q.push(make_pair(v, d[v]));
                    ^
0_0_23702954_14722.cpp: In function 'int hdu1874()':
0_0_23702954_14722.cpp:47:8: error: 'uint' was not declared in this scope
   for (uint i = 0; i < p[i].size(); ++i)
        ^
0_0_23702954_14722.cpp:47:20: error: 'i' was not declared in this scope
   for (uint i = 0; i < p[i].size(); ++i)
                    ^
0_0_23702954_14722.cpp:47:24: error: 'p' was not declared in this scope
   for (uint i = 0; i < p[i].size(); ++i)
                        ^
0_0_23702954_14722.cpp:49:8: error: 'uint' was not declared in this scope
   for (uint i = 0; i < n; ++i)
        ^
0_0_23702954_14722.cpp:49:20: error: 'i' was not declared in this scope
   for (uint i = 0; i < n; ++i)
                    ^
0_0_23702954_14722.cpp:50:14: error: expected ';' before 'j'
    for (uint j = 0; j < n; ++j)
              ^
0_0_23702954_14722.cpp:50:21: error: 'j' was not declared in this scope
    for (uint j = 0; j < n; ++j)
                     ^
0_0_23702954_14722.cpp:51:28: error: 'mx' was not declared in this scope
     x[i][j] = i == j ? 0 : mx;
                            ^
0_0_23702954_14722.cpp:53:8: error: 'uint' was not declared in this scope
   for (uint i = 0; i < m; ++i)
        ^
0_0_23702954_14722.cpp:53:20: error: 'i' was not declared in this scope
   for (uint i = 0; i < m; ++i)
                    ^
0_0_23702954_14722.cpp:55:9: error: expected ';' before 'a'
    uint a, b, c;
         ^
0_0_23702954_14722.cpp:56:11: error: 'a' was not declared in this scope
    cin >> a >> b >> c;
           ^
0_0_23702954_14722.cpp:56:16: error: 'b' was not declared in this scope
    cin >> a >> b >> c;
                ^
0_0_23702954_14722.cpp:56:21: error: 'c' was not declared in this scope
    cin >> a >> b >> c;
                     ^
0_0_23702954_14722.cpp:57:4: error: 'p' was not declared in this scope
    p[a].push_back(b);
    ^
0_0_23702954_14722.cpp:65:19: error: 'mx' was not declared in this scope
   cout << (dis == mx ? -1 : dis) << endl;
                   ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-06-28 02:27:41, Gzip enabled