Time Exceeded

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:20: warning: for increment expression has no effect [-Wunused-value]
  for(int i;i<=n;2-n+1)
                 ~~~^~
/in/foo.cc:7:13: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for(int i;i<=n;2-n+1)
            ~^~~
/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;
        ^~~~
# 状态 耗时 内存占用
#1 Time Exceeded ≥1005ms ≥360.0 KiB

信息

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