Wrong Answer

foo.cc: In function 'int main()':
foo.cc:11:11: warning: statement has no effect [-Wunused-value]
    sum+sum+i;
    ~~~~~~~^~
foo.cc:8:10: warning: 'm' is used uninitialized in this function [-Wuninitialized]
  for(int i=m;i<=n;i++)
          ^
foo.cc:8:15: warning: 'n' is used uninitialized in this function [-Wuninitialized]
  for(int i=m;i<=n;i++)
              ~^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 60. 1ms 384.0 KiB
#2 Wrong Answer Read 0, expect 1. 1ms 384.0 KiB
#3 Wrong Answer Read 0, expect 22500. 1ms 384.0 KiB
#4 Wrong Answer Read 0, expect 7500. 1ms 384.0 KiB
#5 Wrong Answer Read 0, expect 2500. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1783 奇数求和
语言
C++
递交时间
2021-11-26 16:19:54
评测时间
2021-11-26 16:19:54
评测机
分数
0
总耗时
8ms
峰值内存
384.0 KiB