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)提供评测服务