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_39753502_30488.cpp:5:13: error: 'll' does not name a type
    5 | struct edge{ll v,a,b;};
      |             ^~
0_0_39753502_30488.cpp:7:1: error: 'll' does not name a type
    7 | ll d[N],vis[N];
      | ^~
0_0_39753502_30488.cpp: In function 'void dijkstra()':
0_0_39753502_30488.cpp:11:27: error: 'd' was not declared in this scope
   11 |     for(int i=0;i<=n;i++) d[i]=inf;
      |                           ^
0_0_39753502_30488.cpp:12:5: error: 'd' was not declared in this scope
   12 |     d[1]=0;
      |     ^
0_0_39753502_30488.cpp:18:12: error: 'vis' was not declared in this scope
   18 |         if(vis[u]) continue;
      |            ^~~
0_0_39753502_30488.cpp:19:9: error: 'vis' was not declared in this scope
   19 |         vis[u]=1;
      |         ^~~
0_0_39753502_30488.cpp:22:23: error: 'struct edge' has no member named 'v'
   22 |             int to=ed.v,a=ed.a,b=ed.b;
      |                       ^
0_0_39753502_30488.cpp:23:42: error: 'struct edge' has no member named 'a'
   23 |             if(1.0 * log2(1.0 + 1.0 * ed.a / d[u]) < 1.0 * ed.b) continue;
      |                                          ^
0_0_39753502_30488.cpp:23:63: error: 'struct edge' has no member named 'b'
   23 |             if(1.0 * log2(1.0 + 1.0 * ed.a / d[u]) < 1.0 * ed.b) continue;
      |                                                               ^
0_0_39753502_30488.cpp:24:27: error: 'a' was not declared in this scope
   24 |             if(d[to]>d[u]+a)
      |                           ^
0_0_39753502_30488.cpp:27:23: error: no matching function for call to 'std::priority_queue<std::pair<int, int> >::push(<brace-enclosed initializer list>)'
   27 |                 q.push({-d[to],to});// O(lgV)
      |                 ~~~~~~^~~~~~~~~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/queue:66,
                 from .\stdc++.h:157:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_queue.h:738:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >; _Compare = std::less<std::pair<int, int> >; value_type = std::pair<int, int>]'
  738 |       push(const value_type& __x)
      |       ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_queue.h:738:30: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::priority_queue<std::pair<int, int> >::value_type&' {aka 'const std::pair<int, int>&'}
  738 |       push(const value_type& __x)
      |            ~~~~~~~~~~~~~~~~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_queue.h:746:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >; _Compare = std::less<std::pair<int, int> >; value_type = std::pair<int, int>]'
  746 |       push(value_type&& __x)
      |       ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_queue.h:746:25: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<std::pair<int, int> >::value_type&&' {aka 'std::pair<int, int>&&'}
  746 |       push(value_type&& __x)
      |            ~~~~~~~~~~~~~^~~
0_0_39753502_30488.cpp: In function 'void _()':
0_0_39753502_30488.cpp:41:23: error: no matching function for call to 'std::vector<edge>::push_back(<brace-enclosed initializer list>)'
   41 |         e[a].push_back({b,c,d});
      |         ~~~~~~~~~~~~~~^~~~~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/vector:66,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/functional:64,
                 from .\stdc++.h:53:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:1276:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = edge; _Alloc = std::allocator<edge>; value_type = edge]'
 1276 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:1276:35: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::vector<edge>::value_type&' {aka 'const edge&'}
 1276 |       push_back(const value_type& __x)
      |                 ~~~~~~~~~~~~~~~~~~^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:1293:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = edge; _Alloc = std::allocator<edge>; value_type = edge]'
 1293 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_vector.h:1293:30: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<edge>::value_type&&' {aka 'edge&&'}
 1293 |       push_back(value_type&& __x)
      |                 ~~~~~~~~~~~~~^~~


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-11-25 09:53:43, Gzip enabled