/ WHOJ /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:110:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  110 |     scanf("%d%d%d", &n, &m, &p);//n个数字, m个操作, 模为p
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:113:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  113 |         scanf("%lld", &a[i]);
      |         ~~~~~^~~~~~~~~~~~~~~
foo.cc:119:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  119 |         scanf("%d", &op);
      |         ~~~~~^~~~~~~~~~~
foo.cc:124:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  124 |             scanf("%d%d%lld", &x, &y, &k);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:129:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  129 |             scanf("%d%d%lld", &x, &y, &k);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:134:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  134 |             scanf("%d%d", &x, &y);
      |             ~~~~~^~~~~~~~~~~~~~~~
Found 3 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 695ms 9.574 MiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 512.0 KiB

信息

递交者
类型
递交
题目
P1102 【模板】线段树 2
题目数据
下载
语言
C++
递交时间
2022-04-04 16:53:07
评测时间
2022-04-04 16:53:07
评测机
分数
100
总耗时
700ms
峰值内存
9.574 MiB