#include <bits/stdc++.h>
using namespace std;
int main()
{
char a[10];
scanf("%s",a);
strrev(a);
printf("%s",a);
}
代码自测全对
/tmp/compiler_tnnnwl0s/src: 在函数‘int main()’中:
/tmp/compiler_tnnnwl0s/src:7:5: 错误:‘strrev’ was not declared in this scope; did you mean ‘strsep’?
7 | strrev(a);
| ^~~~~~
| strsep
一测试——编译错误
求大佬相助