/ WHOJ /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:70:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'long long unsigned int' [-Wsign-compare]
   70 |     for(ll i=1; i<=n; i++)
      |                 ~^~~
foo.cc:71:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   71 |         scanf("%lld",&a[i]);
      |         ~~~~~^~~~~~~~~~~~~~
foo.cc:74:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   74 |         scanf("%lld",&op);//操作方式
      |         ~~~~~^~~~~~~~~~~~
foo.cc:77:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   77 |                 scanf("%lld%lld%lld",&l,&r,&k);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:82:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   82 |                 scanf("%lld%lld",&l,&r);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~
Found 5 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 126ms 5.742 MiB
#4 Accepted 3ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1080 【模板】线段树 1
题目数据
下载
语言
C++
递交时间
2022-03-10 22:07:15
评测时间
2022-03-10 22:07:15
评测机
分数
100
总耗时
137ms
峰值内存
5.742 MiB