/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:183:33: warning: 'z2y0' may be used uninitialized [-Wmaybe-uninitialized]
  183 |     start.z2x = z2x0; start.z2y = z2y0; start.z2hp = z;
      |                       ~~~~~~~~~~^~~~~~
/in/foo.cc:164:37: note: 'z2y0' was declared here
  164 |     int mx0, my0, z1x0, z1y0, z2x0, z2y0;
      |                                     ^~~~
/in/foo.cc:183:15: warning: 'z2x0' may be used uninitialized [-Wmaybe-uninitialized]
  183 |     start.z2x = z2x0; start.z2y = z2y0; start.z2hp = z;
      |     ~~~~~~~~~~^~~~~~
/in/foo.cc:164:31: note: 'z2x0' was declared here
  164 |     int mx0, my0, z1x0, z1y0, z2x0, z2y0;
      |                               ^~~~
/in/foo.cc:182:33: warning: 'z1y0' may be used uninitialized [-Wmaybe-uninitialized]
  182 |     start.z1x = z1x0; start.z1y = z1y0; start.z1hp = z;
      |                       ~~~~~~~~~~^~~~~~
/in/foo.cc:164:25: note: 'z1y0' was declared here
  164 |     int mx0, my0, z1x0, z1y0, z2x0, z2y0;
      |                         ^~~~
/in/foo.cc:182:15: warning: 'z1x0' may be used uninitialized [-Wmaybe-uninitialized]
  182 |     start.z1x = z1x0; start.z1y = z1y0; start.z1hp = z;
      |     ~~~~~~~~~~^~~~~~
/in/foo.cc:164:19: note: 'z1x0' was declared here
  164 |     int mx0, my0, z1x0, z1y0, z2x0, z2y0;
      |                   ^~~~
/in/foo.cc:164:14: warning: 'my0' may be used uninitialized [-Wmaybe-uninitialized]
  164 |     int mx0, my0, z1x0, z1y0, z2x0, z2y0;
      |              ^~~
In file included from /usr/include/c++/12/bits/stl_map.h:63,
                 from /usr/include/c++/12/map:61,
                 from /in/foo.cc:4:
In constructor 'constexpr std::_Head_base<_Idx, _Head, false>::_Head_base(const _Head&) [with long unsigned int _Idx = 0; _Head = int]',
    inlined from 'constexpr std::_Tuple_impl<_Idx, _Head, _Tail ...>::_Tuple_impl(const _Head&, const _Tail& ...) [with long unsigned int _Idx = 0; _Head = int; _Tail = {int, int, int, int, int, int, int, int}]' at /usr/include/c++/12/tuple:284:44,
    inlined from 'constexpr std::tuple< <template-parameter-1-1> >::tuple(const _Elements& ...) [with bool _NotEmpty = true; typename std::enable_if<_TCC<_Dummy>::__is_implicitly_constructible<const _Elements& ...>(), bool>::type <anonymous> = true; _Elements = {int, int, int, int, int, int, int, int, int}]' at /usr/include/c++/12/tuple:729:28,
    inlined from 'constexpr std::tuple<typename std::__strip_reference_wrapper<typename std::decay<_Elements>::type>::__type ...> std::make_tuple(_Elements&& ...) [with _Elements = {const int&, const int&, const int&, const int&, const int&, const int&, const int&, const int&, const int&}]' at /usr/include/c++/12/tuple:1581:62,
    inlined from 'StateKey make_key(const QueueNode&)' at /in/foo.cc:49:110,
    inlined from 'int main()' at /in/foo.cc:186:21:
/usr/include/c++/12/tuple:193:9: warning: 'mx0' may be used uninitialized [-Wmaybe-uninitialized]
  193 |       : _M_head_impl(__h) { }
      |         ^~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:164:9: note: 'mx0' was declared here
  164 |     int mx0, my0, z1x0, z1y0, z2x0, z2y0;
      |         ^~~
# 状态 耗时 内存占用
#1 Accepted 4ms 840.0 KiB
#2 Accepted 2ms 548.0 KiB
#3 Accepted 4ms 716.0 KiB
#4 Accepted 15ms 1.59 MiB
#5 Accepted 2ms 536.0 KiB

信息

递交者
类型
递交
题目
P1766 1 marine VS 2 zergling
语言
C++
递交时间
2026-03-14 00:26:49
评测时间
2026-03-14 00:26:49
评测机
分数
100
总耗时
29ms
峰值内存
1.59 MiB