编译错误
查看原帖
编译错误
759120
luogu_MeiFengqi楼主2022/9/11 11:41
#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

一测试——编译错误

求大佬相助

2022/9/11 11:41
加载中...