记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:20:36: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type*' {aka 'int*'} [-Wformat=]
   20 |  for (i = 0; i < n; i++) scanf("%lld", &v[i]);
      |                                 ~~~^
      |                                    |
      |                                    long long int*
      |                                 %d
foo.cc:70:37: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-Wformat=]
   70 |  for (i = 0; i < q; i++) printf("%lld\n", cnt[i]);
      |                                  ~~~^
      |                                     |
      |                                     long long int
      |                                  %d
foo.cc:20:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   20 |  for (i = 0; i < n; i++) scanf("%lld", &v[i]);
      |                          ~~~~~^~~~~~~~~~~~~~~
foo.cc:23:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   23 |   scanf("%lld%lld", &t[i].l, &t[i].r);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 384.0 KiB

信息

递交者
类型
自测
题目
P1316 Multiple of k
语言
C++
递交时间
2022-02-03 12:19:54
评测时间
2022-02-03 12:19:54
评测机
分数
10
总耗时
4ms
峰值内存
384.0 KiB