记录详情

Compile Error

foo.c: In function 'main':
foo.c:14:5: warning: 'gets' is deprecated [-Wdeprecated-declarations]
   14 |     gets("%d%d",&n,&k);
      |     ^~~~
In file included from foo.c:1:
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.c:14:5: error: too many arguments to function 'gets'
   14 |     gets("%d%d",&n,&k);
      |     ^~~~
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.c:18:9: warning: 'gets' is deprecated [-Wdeprecated-declarations]
   18 |         gets("%d",&a[j]);
      |         ^~~~
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.c:18:9: error: too many arguments to function 'gets'
   18 |         gets("%d",&a[j]);
      |         ^~~~
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.c:26:9: error: too many arguments to function 'puts'
   26 |         puts("%d ",m);
      |         ^~~~
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:661:12: note: declared here
  661 | extern int puts (const char *__s);
      |            ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
5-2 模运算的逆元
语言
C
递交时间
2023-10-01 19:38:59
评测时间
2023-10-01 19:38:59
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes