/ WHOJ /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:13:18: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'char*' [-Wformat=]
   13 |         scanf("%ld%s", er_dir+i, er_occ[i]);
      |                ~~^     ~~~~~~~~
      |                  |           |
      |                  long int*   char*
      |                %hhd
foo.cc:11:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   11 |     scanf("%ld%ld", &n, &m);
      |     ~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:13:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   13 |         scanf("%ld%s", er_dir+i, er_occ[i]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:16:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   16 |         scanf("%ld%ld", &a, &s);        // 获取左右和序数
      |         ~~~~~^~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
Found 20 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 5ms 1.375 MiB
#2 Accepted 4ms 1.375 MiB
#3 Accepted 7ms 1.375 MiB
#4 Accepted 6ms 1.5 MiB
#5 Accepted 6ms 1.375 MiB
#6 Accepted 7ms 1.375 MiB
#7 Accepted 2ms 1.375 MiB
#8 Accepted 3ms 1.375 MiB
#9 Accepted 3ms 1.375 MiB
#10 Accepted 4ms 1.375 MiB
#11 Accepted 3ms 1.375 MiB
#12 Accepted 4ms 1.375 MiB
#13 Accepted 3ms 1.375 MiB
#14 Accepted 3ms 1.375 MiB
#15 Accepted 3ms 1.375 MiB
#16 Accepted 3ms 1.375 MiB
#17 Accepted 60ms 1.375 MiB
#18 Accepted 59ms 1.375 MiB
#19 Accepted 40ms 1.375 MiB
#20 Accepted 39ms 1.375 MiB

信息

递交者
类型
递交
题目
P1113 [NOIP2016 提高组] 玩具谜题
题目数据
下载
语言
C++
递交时间
2022-03-26 09:23:10
评测时间
2022-03-26 09:23:10
评测机
分数
100
总耗时
273ms
峰值内存
1.5 MiB