记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:15:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(int i=1;i<=n;++i)
   ^~~
foo.cc:19:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    cout<<ans<<endl;
    ^~~~
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:12:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for(int i=1;i<=n;++i)scanf("%d",&a[i]);
                       ~~~~~^~~~~~~~~~~~
Found 6 testcases.
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 3ms 2.23 MiB
#2 Runtime Error Segmentation fault 3ms 2.215 MiB
#3 Runtime Error Segmentation fault 3ms 2.277 MiB
#4 Runtime Error Segmentation fault 41ms 3.18 MiB
#5 Runtime Error Segmentation fault 41ms 3.184 MiB
#6 Runtime Error Segmentation fault 41ms 3.172 MiB

信息

递交者
类型
递交
题目
P1026 数对 pair
语言
C++
递交时间
2021-04-10 15:34:20
评测时间
2021-04-10 15:34:20
评测机
分数
0
总耗时
136ms
峰值内存
3.184 MiB