记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:36: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:36:35: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
foo.cc:20: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:21: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 10ms 5.352 MiB
#2 Runtime Error Segmentation fault 10ms 5.281 MiB
#3 Runtime Error Segmentation fault 10ms 5.277 MiB
#4 Runtime Error Segmentation fault 25ms 5.656 MiB
#5 Runtime Error Segmentation fault 26ms 5.91 MiB
#6 Runtime Error Segmentation fault 27ms 5.883 MiB
#7 Runtime Error Segmentation fault 27ms 5.922 MiB
#8 Runtime Error Segmentation fault 26ms 5.828 MiB
#9 Runtime Error Segmentation fault 27ms 5.906 MiB
#10 Runtime Error Segmentation fault 26ms 5.953 MiB

信息

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