记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:17:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(int i=1;i<=n;++i)
   ^~~
foo.cc:21:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    cout<<ans<<endl;
    ^~~~
foo.cc:13:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ~~~~~^~~~~~~~~
foo.cc:14: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 7 testcases.
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 4ms 2.25 MiB
#2 Runtime Error Segmentation fault 4ms 2.273 MiB
#3 Runtime Error Segmentation fault 4ms 2.277 MiB
#4 Wrong Answer Read 199999, expect 39999800000. 25ms 1.562 MiB
#5 Runtime Error Segmentation fault 43ms 4.523 MiB
#6 Runtime Error Segmentation fault 47ms 4.52 MiB
#7 Runtime Error Segmentation fault 57ms 4.473 MiB

信息

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