问题遇到的现象和发生背景
操作环境、软件版本等信息
尝试过的解决方法
我想要达到的结果
问一下出来这个哪里出错了?显示/home/runner/temp/34106820.12606/Main.cc: In function ‘int main()’:
/home/runner/temp/34106820.12606/Main.cc:10:2: error: ‘gets’ was not declared in this scope; did you mean ‘fgets’?
10 | gets(b);
| ^~~~
| fgets,题目是OJ基因相关性。代码没有问题,就是需要gets、puts这输入输出需要怎么修改?