记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:38:35: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%d\n%d\n",f[0][0],f[0][1]);
                    ~~~~~~~        ^
foo.cc:38:35: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
foo.cc:22:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&n,&m);
  ~~~~~^~~~~~~~~~~~~~
foo.cc:23:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for(int i=1;i<=n;i++) scanf("%d",&a[i]);
                        ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 9ms 5.328 MiB
#2 Runtime Error Segmentation fault 9ms 5.234 MiB
#3 Runtime Error Segmentation fault 9ms 5.309 MiB
#4 Runtime Error Segmentation fault 22ms 5.664 MiB
#5 Runtime Error Segmentation fault 25ms 5.848 MiB
#6 Runtime Error Segmentation fault 21ms 5.832 MiB
#7 Runtime Error Segmentation fault 17ms 5.844 MiB
#8 Runtime Error Segmentation fault 18ms 5.906 MiB
#9 Runtime Error Segmentation fault 17ms 5.898 MiB
#10 Runtime Error Segmentation fault 18ms 5.945 MiB

信息

递交者
类型
递交
题目
对决 (game.cpp\c\pas)
题目数据
下载
语言
C++
递交时间
2021-08-05 11:48:54
评测时间
2021-08-05 11:48:54
评测机
分数
0
总耗时
171ms
峰值内存
5.945 MiB