Language: C++

#include<bits/stdc++.h>
#define loop(i,m,n) for(ll i=m ; i<=n ; i++)
#define looprev(i,m,n) for(ll i=m ; i>=n ; i--)
#define endl "\n"
#define max(a,b) return (a>b?a:b)
#define min(a,b) return (a<b?a:b)
#define maxi(a,b,c) return (max(a,max(b,c)))
#define mini(a,b,c) return (min(a,min(b,c)))
typedef long long int ll;
typedef unsigned long long int ull;
typedef long double ld;
using namespace std;
const ll mod=1000000007;
int main()
{
	string s;
	cin>>s;
	if( strcmp(s,"RRS")==0 || strcmp("SRR"))
	{
		cout<<2<<endl;
	}
	else if(strcmp(s,"RRR")==0)
	{
		cout<<3<<endl;
	}
	else if(strcmp(s,"SRS")==0 || strcmp(s,"RSR")==0 || strcmp(s,"RRS")==0)
	{
		cout<<1<<endl;
	}
	else
	{
		cout<<0<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   18 |         if( strcmp(s,"RRS")==0 || strcmp("SRR"))
      |                    ^
      |                    |
      |                    std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:18:41: error: too few arguments to function 'int strcmp(const char*, const char*)'
   18 |         if( strcmp(s,"RRS")==0 || strcmp("SRR"))
      |                                   ~~~~~~^~~~~~~
/usr/include/string.h:156:12: note: declared here
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |            ^~~~~~
a.cc:22:24: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   22 |         else if(strcmp(s,"RRR")==0)
      |                        ^
      |                        |
      |                        std::string {aka std::__cxx11::basic_string<char>}
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:26:24: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   26 |         else if(strcmp(s,"SRS")==0 || strcmp(s,"RSR")==0 || strcmp(s,"RRS")==0)
      |                        ^
      |                        |
      |                        std::string {aka std::__cxx11::basic_string<char>}
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:26:46: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   26 |         else if(strcmp(s,"SRS")==0 || strcmp(s,"RSR")==0 || strcmp(s,"RRS")==0)
      |                                              ^
      |                                              |
      |                                              std::string {aka std::__cxx11::basic_string<char>}
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:26:68: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   26 |         else if(strcmp(s,"SRS")==0 || strcmp(s,"RSR")==0 || strcmp(s,"RRS")==0)
      |                                                                    ^
      |                                                                    |
      |                                                                    std::string {aka std::__cxx11::basic_string<char>}
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~