记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:24:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(maxx<num[i])
   ^~
foo.cc:26:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
      printf("%d\n",maxx);
      ^~~~~~
foo.cc:7:8: warning: variable 'data' set but not used [-Wunused-but-set-variable]
  int n,data[10],m;
        ^~~~
foo.cc:7:17: warning: unused variable 'm' [-Wunused-variable]
  int n,data[10],m;
                 ^
foo.cc:11:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ~~~~~^~~~~~~~~
foo.cc:13:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&a[i]);
     ~~~~~^~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Runtime Error Aborted 2ms 348.0 KiB
#3 Runtime Error Aborted 3ms 384.0 KiB
#4 Runtime Error Segmentation fault 2ms 384.0 KiB
#5 Runtime Error Segmentation fault 2ms 384.0 KiB
#6 Runtime Error Segmentation fault 2ms 416.0 KiB
#7 Runtime Error Segmentation fault 2ms 428.0 KiB
#8 Runtime Error Segmentation fault 2ms 384.0 KiB
#9 Runtime Error Segmentation fault 2ms 420.0 KiB
#10 Runtime Error Segmentation fault 2ms 384.0 KiB

信息

递交者
类型
递交
题目
4-2 最长递增子序列
比赛
2020苏青奥赛集训营(2021-4-3假期作业)
语言
C++
递交时间
2021-04-06 06:39:15
评测时间
2021-04-06 06:39:15
评测机
分数
10
总耗时
28ms
峰值内存
428.0 KiB