Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:24: warning: 'sum2' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<sum1<<endl<<sum2;
                        ^
/in/foo.cc:16:8: warning: 'sum1' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<sum1<<endl<<sum2;
        ^~~~
/in/foo.cc:7:2: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for(int i;i<=n;i++)
  ^~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 360.0 KiB

信息

递交者
类型
自测
语言
C++
递交时间
2024-12-21 08:07:21
评测时间
2024-12-21 08:07:21
评测机
分数
0
总耗时
1ms
峰值内存
360.0 KiB