/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:78:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   78 |     scanf("%d%d",&n,&m);
      |     ~~~~~^~~~~~~~~~~~~~
foo.cc:82:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   82 |         scanf("%d",&a[i].opt);
      |         ~~~~~^~~~~~~~~~~~~~~~
foo.cc:83:42: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   83 |         if(a[i].opt==1||a[i].opt==5)scanf("%d",&a[i].num),s[++cnt]=a[i].num;
      |                                     ~~~~~^~~~~~~~~~~~~~~~
foo.cc:84:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   84 |         if(a[i].opt<=4)scanf("%d",&a[i].val),a[i].val=(a[i].val%mod+mod)%mod,a[i].inv=quick(a[i].val,mod-2);
      |                        ~~~~~^~~~~~~~~~~~~~~~
foo.cc:95:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   95 |     scanf("%d",&t);
      |     ~~~~~^~~~~~~~~
foo.cc:99:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   99 |         scanf("%d%d",&ai,&bi);
      |         ~~~~~^~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 106ms 2.367 MiB
#2 Accepted 104ms 2.234 MiB
#3 Accepted 87ms 2.367 MiB
#4 Accepted 95ms 2.367 MiB
#5 Accepted 105ms 2.242 MiB
#6 Accepted 584ms 2.367 MiB
#7 Accepted 526ms 2.367 MiB
#8 Accepted 569ms 2.242 MiB
#9 Accepted 606ms 2.367 MiB
#10 Accepted 567ms 2.391 MiB

信息

递交者
类型
递交
题目
P2051 快速查询
语言
C++
递交时间
2022-03-24 11:48:53
评测时间
2022-03-24 11:48:53
评测机
分数
100
总耗时
3355ms
峰值内存
2.391 MiB