Accepted

In file included from /usr/include/c++/12/istream:39,
                 from /usr/include/c++/12/sstream:38,
                 from /usr/include/c++/12/complex:45,
                 from /usr/include/c++/12/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/12/bits/stdc++.h:54,
                 from /in/foo.cc:1:
In member function 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>]',
    inlined from 'int main()' at /in/foo.cc:17:33:
/usr/include/c++/12/ostream:221:25: warning: 'b' may be used uninitialized [-Wmaybe-uninitialized]
  221 |       { return _M_insert(__f); }
      |                ~~~~~~~~~^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:5:18: note: 'b' was declared here
    5 |         double a,b;
      |                  ^
# 状态 耗时 内存占用
#1 Accepted 2ms 492.0 KiB
#2 Accepted 1ms 492.0 KiB
#3 Accepted 1ms 532.0 KiB
#4 Accepted 1ms 352.0 KiB
#5 Accepted 1ms 480.0 KiB
#6 Accepted 1ms 488.0 KiB
#7 Accepted 1ms 480.0 KiB
#8 Accepted 1ms 536.0 KiB
#9 Accepted 1ms 344.0 KiB
#10 Accepted 1ms 348.0 KiB

信息

递交者
类型
递交
题目
P1717 狗的年龄
语言
C++
递交时间
2025-11-08 13:54:44
评测时间
2025-11-08 13:54:44
评测机
分数
100
总耗时
18ms
峰值内存
536.0 KiB