Help me in solving TSTROBOT problem

My issue

what was wrong in?

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int t,n;
	cin>>t;
	while(t--){
	    cin>>n;
	    long int x;
	    cin>>x;
	    string s;
	    cin>>s;
	    int c1=0;
	    for(int i=0;i<n;i++){
	        if(s[i]=='R') c1++;
	    }
	    if(c1>n-c1){
	        cout<<c1+1<<endl;
	    }else{
	        cout<<n-c1+1<<endl;
	    }
	}
	return 0;
}

Problem Link: TSTROBOT Problem - CodeChef

@deepakjdh31
Your logic is not right.
just use some data structure like map or set to find the number of distinct points.