/ WHOJ /

记录详情

Accepted

foo.cc: In member function 'void Matrix::in()':
foo.cc:12:16: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int*' [-Wformat=]
   12 |       scanf(" %c",a[i]+j);
      |               ~^  ~~~~~~
      |                |      |
      |                char*  int*
      |               %d
foo.cc: In function 'int main()':
foo.cc:41:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   41 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~
foo.cc: In member function 'void Matrix::in()':
foo.cc:12:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   12 |       scanf(" %c",a[i]+j);
      |       ~~~~~^~~~~~~~~~~~~~
正在同步测试数据,请稍后
Found 7 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 3ms 384.0 KiB
#4 Accepted 3ms 384.0 KiB
#5 Accepted 3ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1225 [USACO1.2] 方块转换 Transformations
题目数据
下载
语言
C++
递交时间
2022-06-29 20:34:18
评测时间
2022-06-29 20:34:18
评测机
分数
100
总耗时
20ms
峰值内存
384.0 KiB