记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:18:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=1;i<=n;i++) cout<<s[i]<<" ";cout<<endl;
  ^~~
/in/foo.cc:18:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  for(int i=1;i<=n;i++) cout<<s[i]<<" ";cout<<endl;
                                        ^~~~
/in/foo.cc:9:30: warning: iteration 299 invokes undefined behavior [-Waggressive-loop-optimizations]
  for(int i=1;i<=300;i++) s[i]=99999999;
                          ~~~~^~~~~~~~~
/in/foo.cc:9:15: note: within this loop
  for(int i=1;i<=300;i++) s[i]=99999999;
              ~^~~~~
# 状态 耗时 内存占用
#1 Runtime Error 2ms 1.051 MiB
#2 Runtime Error 2ms 208.0 KiB
#3 Runtime Error 1ms 308.0 KiB
#4 Runtime Error 1ms 192.0 KiB
#5 Runtime Error 1ms 200.0 KiB

信息

递交者
类型
递交
题目
4# 课题选择
题目数据
下载
语言
C++
递交时间
2018-11-03 21:26:49
评测时间
2018-11-03 21:26:49
评测机
分数
0
总耗时
9ms
峰值内存
1.051 MiB