/ WHOJ /

记录详情

Wrong Answer

foo.cc: In function 'void operate1()':
foo.cc:55:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   55 |     scanf("%lld%lld%lld", &a, &b, &c); now++;
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'void operate2()':
foo.cc:59:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   59 |     scanf("%lld%lld", &a, &b);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'void operate3()':
foo.cc:63:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   63 |     scanf("%lld%lld%lld", &a, &b, &c);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:68:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   68 |     scanf("%lld%lld", &n, &m);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:69:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   69 |     for (int i = 1; i <= n; i++) scanf("%lld", &w[i]);
      |                                  ~~~~~^~~~~~~~~~~~~~~
foo.cc:73:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   73 |         scanf("%s", opt);
      |         ~~~~~^~~~~~~~~~~
foo.cc:78:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   78 |             case 'B' : scanf("%lld", &now); break;
      |                        ~~~~~^~~~~~~~~~~~~~
Found 6 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 384.0 KiB
#2 Accepted 4ms 384.0 KiB
#3 Accepted 3ms 384.0 KiB
#4 Wrong Answer Read 0, expect 212160. 4ms 384.0 KiB
#5 Accepted 6ms 1.125 MiB
#6 Accepted 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1178 【模板】可持续化线段树 1
题目数据
下载
语言
C++
递交时间
2022-06-03 18:16:59
评测时间
2022-06-03 18:17:03
评测机
分数
83
总耗时
28ms
峰值内存
1.125 MiB