记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:30: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
  scanf("%d%d%d%d",&a,&b,&c,&d);
                              ^
/in/foo.cc:6:30: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:6:30: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
/in/foo.cc:6:30: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'long long int*' [-Wformat=]
/in/foo.cc:7:17: error: invalid operands of types 'int' and 'double' to binary 'operator%'
  printf("%d\n",n%(1e9+7));
                ~^~~~~~~~

信息

递交者
类型
递交
题目
P1289 B. It's my own Invention
比赛
南京师范大学2021年11月程序设计竞赛
语言
C++
递交时间
2021-11-21 14:53:29
评测时间
2021-11-21 14:53:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes