Wrong Answer

foo.cc: In function 'int main()':
foo.cc:7:19: warning: left operand of comma operator has no effect [-Wunused-value]
    7 |         for(i=1;;i<n-1,i++)
      |                  ~^~~~
foo.cc:16:34: warning: 's' may be used uninitialized [-Wmaybe-uninitialized]
   16 |                                 s+=i;
      |                                 ~^~~
foo.cc:5:13: note: 's' was declared here
    5 |         int s,n,i;
      |             ^
# 状态 耗时 内存占用
#1 Wrong Answer Read No, expect Yes. 3ms 328.0 KiB
#2 Accepted 3ms 536.0 KiB

信息

递交者
类型
递交
题目
P1038 完数
语言
C++
递交时间
2024-03-21 21:26:32
评测时间
2024-03-21 21:26:32
评测机
分数
50
总耗时
6ms
峰值内存
536.0 KiB