记录详情

Runtime Error

foo.cc: In function 'void solve()':
foo.cc:120:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'LL' {aka 'long long int'} [-Wformat=]
  120 |                 printf("%d\n",pre[n][m]%mod);
      |                         ~^    ~~~~~~~~~~~~~
      |                          |             |
      |                          int           LL {aka long long int}
      |                         %lld
foo.cc: In function 'int main()':
foo.cc:131:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'LL*' {aka 'long long int*'} [-Wformat=]
  131 |         scanf("%d%d",&t,&k);
      |                ~^    ~~
      |                 |    |
      |                 int* LL* {aka long long int*}
      |                %lld
foo.cc:131:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'LL*' {aka 'long long int*'} [-Wformat=]
  131 |         scanf("%d%d",&t,&k);
      |                  ~^     ~~
      |                   |     |
      |                   int*  LL* {aka long long int*}
      |                  %lld
foo.cc: In function 'void solve()':
foo.cc:119:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  119 |                 scanf("%d%d",&n,&m);
      |                 ~~~~~^~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:131:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  131 |         scanf("%d%d",&t,&k);
      |         ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 89ms 31.242 MiB

信息

递交者
类型
自测
题目
P1332 组合数问题(数据弱化)
语言
C++
递交时间
2022-03-19 21:51:40
评测时间
2022-03-19 21:51:40
评测机
分数
0
总耗时
89ms
峰值内存
31.242 MiB