/ 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 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 1.375 MiB
#2 Accepted 2ms 1.375 MiB
#3 Accepted 3ms 1.375 MiB
#4 Accepted 3ms 1.375 MiB
#5 Accepted 2ms 1.375 MiB
#6 Accepted 4ms 1.375 MiB
#7 Accepted 2ms 1.375 MiB
#8 Accepted 2ms 1.375 MiB
#9 Accepted 4ms 1.375 MiB
#10 Accepted 6ms 1.375 MiB

信息

递交者
类型
递交
题目
P1113 [NOIP2016 提高组] 玩具谜题
题目数据
下载
语言
C++
递交时间
2022-03-24 20:24:00
评测时间
2022-05-15 20:07:36
评测机
分数
100
总耗时
35ms
峰值内存
1.375 MiB