0_0_39046343_24000.cpp: In function 'int djs(int, int)':
0_0_39046343_24000.cpp:23:26: error: incompatible types in assignment of 'int' to 'int [201]'
23 | dj[now.s]=now.f;
| ^
0_0_39046343_24000.cpp:25:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
25 | if(dj[l[i].u]>now.f+l[i].w)
| ~~~~~~~~~~^~~~~~~~~~~~~
0_0_39046343_24000.cpp:27:43: error: incompatible types in assignment of 'int' to 'int [201]'
27 | dj[l[i].u]=now.f+l[i].w;
| ~~~~~~~~~~^~~~~~~~~~~~~
0_0_39046343_24000.cpp:28:39: error: no matching function for call to 'std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >::push(<brace-enclosed initializer list>)'
28 | q.push({dj[l[i].u],l[i].u});
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~
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> >; _Compare = std::greater<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>, std::vector<std::pair<int, int> >, std::greater<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> >; _Compare = std::greater<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>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >::value_type&&' {aka 'std::pair<int, int>&&'}
746 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
0_0_39046343_24000.cpp:32:21: error: invalid conversion from 'int*' to 'int' [-fpermissive]
32 | return dj[ed];
| ~~~~~^
| |
| int*
0_0_39046343_24000.cpp: In function 'int main()':
0_0_39046343_24000.cpp:65:32: error: 'k' was not declared in this scope
65 | for(int i=1;i<=k;i++)
| ^
|