Time Exceeded

foo.cc: In function 'int search(int)':
foo.cc:18:1: warning: control reaches end of non-void function [-Wreturn-type]
   18 | }
      | ^
foo.cc: In function 'int main()':
foo.cc:21:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   21 |  scanf("%d",&n);
      |  ~~~~~^~~~~~~~~
foo.cc:22:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   22 |  for(int i=1;i<=n;i++)scanf("%d",a+i);
      |                       ~~~~~^~~~~~~~~~
foo.cc:24:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   24 |  scanf("%d",&x);
      |  ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 12, expect 3. 2ms 384.0 KiB
#2 Time Exceeded ≥1077ms ≥16.016 MiB

信息

递交者
类型
递交
题目
P1169 插入查找
语言
C++
递交时间
2021-12-12 19:56:41
评测时间
2021-12-12 19:56:41
评测机
分数
0
总耗时
≥1080ms
峰值内存
≥16.016 MiB