记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:7:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for(int i=1;i<=n;i++)
    ^~~
foo.cc:9:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
      scanf("%d",&s);
      ^~~~~
foo.cc:6:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d",&n);
    ~~~~~^~~~~~~~~
foo.cc:8:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
      scanf("%d",&a[i]);
      ~~~~~^~~~~~~~~~~~
foo.cc:9:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
      scanf("%d",&s);
      ~~~~~^~~~~~~~~
foo.cc:15:12: warning: 'h' may be used uninitialized in this function [-Wmaybe-uninitialized]
           h+=a[i];
           ~^~~~~~

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-07-10T07:27:39.771Z","handle":"2020-07-10T07:27:39.771Z","cache_start":"2020-07-10T07:27:39.777Z","read_cases":"2020-07-10T07:27:39.889Z","judge":"2020-07-10T07:27:39.889Z","done":"2020-07-10T07:27:41.289Z"}
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Wrong Answer 0a1 > -1 1ms 256.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 1ms 256.0 KiB
#6 Accepted 1ms 256.0 KiB
#7 Accepted 1ms 256.0 KiB

信息

递交者
类型
递交
题目
二分查找(binary)
题目数据
下载
语言
C++
递交时间
2019-07-03 11:11:48
评测时间
2020-07-10 15:27:39
评测机
分数
90
总耗时
10ms
峰值内存
256.0 KiB