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; | ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1038 完数
- 语言
- C++
- 递交时间
- 2024-03-21 21:26:32
- 评测时间
- 2024-03-21 21:26:32
- 评测机
- 分数
- 50
- 总耗时
- 6ms
- 峰值内存
- 536.0 KiB