Wrong Answer

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<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>]',
    inlined from 'int main()' at /in/foo.cc:16:8:
/usr/include/c++/12/ostream:202:25: warning: 'sum' may be used uninitialized [-Wmaybe-uninitialized]
  202 |       { return _M_insert(__n); }
      |                ~~~~~~~~~^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:5:25: note: 'sum' was declared here
    5 |         long long n,m=0,sum;
      |                         ^~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 480.0 KiB
#2 Wrong Answer 1ms 476.0 KiB
#3 Wrong Answer 2ms 524.0 KiB
#4 Wrong Answer 2ms 508.0 KiB

信息

递交者
类型
递交
题目
P1650 国际象棋上的麦粒
语言
C++
递交时间
2025-10-25 14:27:05
评测时间
2025-10-25 14:27:05
评测机
分数
0
总耗时
8ms
峰值内存
524.0 KiB