Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:9:18: warning: ‘s’ may be used uninitialized [-Wmaybe-uninitialized]
    9 |                 s+=n%10;
      |                 ~^~~~~~
foo.cc:5:15: note: ‘s’ was declared here
    5 |         int n,s;
      |               ^
# 状态 耗时 内存占用
#1 Wrong Answer On line 1: Read -941970338, expect 22. 2ms 500.0 KiB
#2 Wrong Answer On line 1: Read 1225972949, expect 45. 2ms 504.0 KiB
#3 Wrong Answer On line 1: Read -982150505, expect 15. 3ms 504.0 KiB
#4 Wrong Answer On line 1: Read 1799509193, expect 1. 2ms 500.0 KiB
#5 Wrong Answer On line 1: Read 1504761322, expect 18. 2ms 500.0 KiB

信息

递交者
类型
递交
题目
P1059 A4-1 回文数专题:数字之和
语言
C++
递交时间
2025-04-03 19:43:09
评测时间
2025-04-03 19:43:09
评测机
分数
0
总耗时
14ms
峰值内存
504.0 KiB