记录详情

Accepted

foo.cc: In function 'int left_find(Iv&, int)':
foo.cc:99:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   99 |         int mid = l+r>>1;
      |                   ~^~
foo.cc:104:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  104 |     if(l>=array.size()||array[l]!=num)
      |        ~^~~~~~~~~~~~~~
foo.cc: In function 'int right_find(Iv&, int)':
foo.cc:115:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  115 |         int mid=l+r>>1;
      |                 ~^~
foo.cc: In function 'void solve()':
foo.cc:131:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  131 |         scanf("%d%d%d",&n,&k,&q);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:133:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  133 |                 scanf("%d",data+i);
      |                 ~~~~~^~~~~~~~~~~~~
foo.cc:141:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  141 |                 scanf("%d%d",&L,&R);
      |                 ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB

信息

递交者
类型
自测
题目
P1316 Multiple of k
语言
C++
递交时间
2022-02-01 11:46:06
评测时间
2022-02-01 11:46:06
评测机
分数
10
总耗时
2ms
峰值内存
384.0 KiB