Language: C++

#include<bits/stdc++.h>
// #include <ext/pb_ds/assoc_container.hpp>
// #include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
using namespace std;

// #define ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>
#define ll long long int
#define ld long double
#define pb push_back
#define mp make_pair
#define pll pair<ll,ll>

vector <ll> v;

ll fep(ll x, ll y, ll mod)
{ll res=1;while(y>0){if(y&1)res=(res*x)%mod;
    y=y>>1;x=(x*x)%mod;}return res%mod;}

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);cout.tie(0);

	ll n,i,m,j,k,x,y,a,b,t;
	string s;
	
	cin >> s;
	if(s="SSS")
		cout << 0;
	if(s="RSR")
		cout << 0;
	if(s="RSS")
		cout << 1;
	if(s="SRS")
		cout << 1;
	if(s="SSR")
		cout << 1;
	if(s="RRS")
		cout << 2;
	if(s="SRR")
		cout << 2;
	if(s="RRR")
		cout << 3;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:13: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"SSS"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   29 |         if(s="SSS")
      |            ~^~~~~~
      |             |
      |             std::__cxx11::basic_string<char>
a.cc:31:13: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"RSR"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   31 |         if(s="RSR")
      |            ~^~~~~~
      |             |
      |             std::__cxx11::basic_string<char>
a.cc:33:13: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"RSS"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   33 |         if(s="RSS")
      |            ~^~~~~~
      |             |
      |             std::__cxx11::basic_string<char>
a.cc:35:13: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"SRS"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   35 |         if(s="SRS")
      |            ~^~~~~~
      |             |
      |             std::__cxx11::basic_string<char>
a.cc:37:13: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"SSR"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   37 |         if(s="SSR")
      |            ~^~~~~~
      |             |
      |             std::__cxx11::basic_string<char>
a.cc:39:13: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"RRS"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   39 |         if(s="RRS")
      |            ~^~~~~~
      |             |
      |             std::__cxx11::basic_string<char>
a.cc:41:13: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"SRR"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   41 |         if(s="SRR")
      |            ~^~~~~~
      |             |
      |             std::__cxx11::basic_string<char>
a.cc:43:13: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"RRR"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   43 |         if(s="RRR")
      |            ~^~~~~~
      |             |
      |             std::__cxx11::basic_string<char>