0_0_34379753_19945.cpp: In function 'int sol(int, int, int)':
0_0_34379753_19945.cpp:81:24: error: converting to 'std::tuple<int, int, int>' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {int&, int&, int}; <template-parameter-2-2> = void; _Elements = {int, int, int}]'
edge[++nm] = {id[u], id[v], w - dis[v]};
^
0_0_34379753_19945.cpp: In function 'int main()':
0_0_34379753_19945.cpp:102:30: error: converting to 'std::tuple<int, int, int>' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {int, int, int}; <template-parameter-2-2> = void; _Elements = {int, int, int}]'
edge[++cntp] = {a[i]+j, a[i]+j-1, 0};
^
0_0_34379753_19945.cpp:112:26: error: converting to 'std::tuple<int, int, int>' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {int&, int&, int&}; <template-parameter-2-2> = void; _Elements = {int, int, int}]'
edge[++cntp] = {p1, p2, c};
^
|