记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:16:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int i=1;i<=m;i++)
     ^~~
foo.cc:22:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
      sort(c,c+n);
      ^~~~
foo.cc:9:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&n,&m);
  ~~~~~^~~~~~~~~~~~~~
foo.cc:12:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d",&a[i].n1,&a[i].m1);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 2ms 368.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 2ms 384.0 KiB
#8 Accepted 2ms 384.0 KiB
#9 Runtime Error Segmentation fault 2ms 384.0 KiB
#10 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
1.开心的金明(happy)
题目数据
下载
语言
C++
递交时间
2019-07-06 11:02:48
评测时间
2021-04-28 03:32:41
评测机
分数
90
总耗时
23ms
峰值内存
384.0 KiB