/ Vijos /

记录详情

Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:39:13: warning: ‘sum’ may be used uninitialized [-Wmaybe-uninitialized]
   39 |         int max=sum[1],u;
      |             ^~~
foo.cc:8:13: note: ‘sum’ declared here
    8 |         int sum[1000],num=0,qimo[1000],pingyi[1000],c[1000];
      |             ^~~
In file included from /nix/gcc-13.2.0/include/c++/13.2.0/string:54,
                 from /nix/gcc-13.2.0/include/c++/13.2.0/bitset:52,
                 from stdc++.h:52:
In member function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_data() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’,
    inlined from ‘const _CharT* std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::data() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at /nix/gcc-13.2.0/include/c++/13.2.0/bits/basic_string.h:2597:23,
    inlined from ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]’ at /nix/gcc-13.2.0/include/c++/13.2.0/bits/basic_string.h:4025:30,
    inlined from ‘int main()’ at foo.cc:46:14:
/nix/gcc-13.2.0/include/c++/13.2.0/bits/basic_string.h:223:28: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized]
  223 |       { return _M_dataplus._M_p; }
      |                            ^~~~
foo.cc: In function ‘int main()’:
foo.cc:39:24: note: ‘u’ was declared here
   39 |         int max=sum[1],u;
      |                        ^
# 状态 耗时 内存占用
#1 Wrong Answer Read 8000254900, expect LyFr. 2ms 536.0 KiB
#2 Wrong Answer Read XHEDY8000231550, expect YDCmkIYBPOy. 3ms 536.0 KiB
#3 Wrong Answer Read S8000212050, expect IXrLPdJhEekBRgsbkqI. 2ms 536.0 KiB
#4 Wrong Answer Read BGTi8000216750, expect HHeXOMfgB. 3ms 580.0 KiB
#5 Wrong Answer Read SgzbizBGhc8000216050, expect IlB. 3ms 580.0 KiB
#6 Wrong Answer Read EgZA8000237200, expect DGMqW. 3ms 536.0 KiB
#7 Wrong Answer Read FNdCECSt8000222350, expect F. 2ms 536.0 KiB
#8 Wrong Answer Read LKmTZKyzAogY8000..., expect YBqilxkGZJx. 2ms 516.0 KiB
#9 Wrong Answer Read RaC8000176700, expect RaC. 2ms 804.0 KiB
#10 Wrong Answer Read WtEEnIDxjkneYioJ..., expect WtEEnIDxjkneYioJpF. 2ms 536.0 KiB

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2024-05-05 14:21:37
评测时间
2024-05-05 14:21:37
评测机
分数
0
总耗时
29ms
峰值内存
804.0 KiB