foo.cc: In function 'long long int read(T&)':
foo.cc:18:1: warning: no return statement in function returning non-void [-Wreturn-type]
18 | }void write(RE x){if (x>9) write(x/10);
| ^
foo.cc: In function 'void floyd()':
foo.cc:48:20: warning: operation on 'v' may be undefined [-Wsequence-point]
48 | d1[i][v=e1[j].v]=min(d1[i][v],work(j,e1[fi].d));
| ~^~~~~~~~
foo.cc:53:30: warning: operation on 'v' may be undefined [-Wsequence-point]
53 | if (j^fi) d2[i][v=e1[j].v]=min(d2[i][v],work(j,f-e1[fi].d));
| ~^~~~~~~~
In file included from /nix/store/h5kvfrjmpw792v8jg7nrzfkffmn0iyy8-gcc-12.3.0/include/c++/12.3.0/string:50,
from /nix/store/h5kvfrjmpw792v8jg7nrzfkffmn0iyy8-gcc-12.3.0/include/c++/12.3.0/bits/locale_classes.h:40,
from /nix/store/h5kvfrjmpw792v8jg7nrzfkffmn0iyy8-gcc-12.3.0/include/c++/12.3.0/bits/ios_base.h:41,
from /nix/store/h5kvfrjmpw792v8jg7nrzfkffmn0iyy8-gcc-12.3.0/include/c++/12.3.0/ios:42,
from /nix/store/h5kvfrjmpw792v8jg7nrzfkffmn0iyy8-gcc-12.3.0/include/c++/12.3.0/istream:38,
from /nix/store/h5kvfrjmpw792v8jg7nrzfkffmn0iyy8-gcc-12.3.0/include/c++/12.3.0/sstream:38,
from /nix/store/h5kvfrjmpw792v8jg7nrzfkffmn0iyy8-gcc-12.3.0/include/c++/12.3.0/complex:45,
from /nix/store/h5kvfrjmpw792v8jg7nrzfkffmn0iyy8-gcc-12.3.0/include/c++/12.3.0/ccomplex:39,
from stdc++.h:54:
In function 'const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = long long int]',
inlined from 'void floyd()' at foo.cc:53:43:
/nix/store/h5kvfrjmpw792v8jg7nrzfkffmn0iyy8-gcc-12.3.0/include/c++/12.3.0/bits/stl_algobase.h:235:15: warning: 'v' may be used uninitialized [-Wmaybe-uninitialized]
235 | if (__b < __a)
| ~~~~^~~~~
foo.cc: In function 'void floyd()':
foo.cc:52:17: note: 'v' was declared here
52 | for (RE v,j=head1[i];j;j=e1[j].next)
| ^
In function 'const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = long long int]',
inlined from 'void floyd()' at foo.cc:48:33:
/nix/store/h5kvfrjmpw792v8jg7nrzfkffmn0iyy8-gcc-12.3.0/include/c++/12.3.0/bits/stl_algobase.h:235:15: warning: 'v' may be used uninitialized [-Wmaybe-uninitialized]
235 | if (__b < __a)
| ~~~~^~~~~
foo.cc: In function 'void floyd()':
foo.cc:47:17: note: 'v' was declared here
47 | for (RE v,j=head1[i];j;j=e1[j].next)
| ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务