criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str;
  cin >> str;

  int counter = 1;
  bool is_not_easy = false;
  
  for (int i = 0; i < str.size(); i++){
    if (counter % 2 == 0){
      if (str[counter-1] != "L" || str[counter-1] != "U" || str[counter-1] != "D"){
        is_not_easy = true;
      }
    }else{
      if (str[counter-1] != "R" || str[counter-1] != "U" || str[counter-1] != "D"){
        is_not_easy = true;
      }
    }
  }
  if (is_not_easy){
  	cout << "No" << endl;
  }else{
  	cout << "Yes" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |       if (str[counter-1] != "L" || str[counter-1] != "U" || str[counter-1] != "D"){
a.cc:13:51: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |       if (str[counter-1] != "L" || str[counter-1] != "U" || str[counter-1] != "D"){
a.cc:13:76: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |       if (str[counter-1] != "L" || str[counter-1] != "U" || str[counter-1] != "D"){
a.cc:17:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |       if (str[counter-1] != "R" || str[counter-1] != "U" || str[counter-1] != "D"){
a.cc:17:51: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |       if (str[counter-1] != "R" || str[counter-1] != "U" || str[counter-1] != "D"){
a.cc:17:76: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |       if (str[counter-1] != "R" || str[counter-1] != "U" || str[counter-1] != "D"){
Language: C++

#include <bits/stdc++.h>
using namespace std;


int main (){

string s;
  
  cin>>s;
  
  for(int i=1;i<s.size();i++){
	if(i%2==1&&(s.at(i)=="R"||s.at(i)=="U"||s.at(i)=="D")){
    }
    else if(i%2==0&&(s.at(i)=="L"||s.at(i)=="U"||s.at(i)=="D")){
    }
    
   else{
     cout<<"No"<<endl;
     exit(0);

   }
    
  }
  
  cout<<"Yes"<<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         if(i%2==1&&(s.at(i)=="R"||s.at(i)=="U"||s.at(i)=="D")){
      |                     ~~~~~~~^~~~~
a.cc:12:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         if(i%2==1&&(s.at(i)=="R"||s.at(i)=="U"||s.at(i)=="D")){
      |                                   ~~~~~~~^~~~~
a.cc:12:56: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         if(i%2==1&&(s.at(i)=="R"||s.at(i)=="U"||s.at(i)=="D")){
      |                                                 ~~~~~~~^~~~~
a.cc:14:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     else if(i%2==0&&(s.at(i)=="L"||s.at(i)=="U"||s.at(i)=="D")){
      |                      ~~~~~~~^~~~~
a.cc:14:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     else if(i%2==0&&(s.at(i)=="L"||s.at(i)=="U"||s.at(i)=="D")){
      |                                    ~~~~~~~^~~~~
a.cc:14:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     else if(i%2==0&&(s.at(i)=="L"||s.at(i)=="U"||s.at(i)=="D")){
      |                                                  ~~~~~~~^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  string s;
  cin>>s;
  for(int i=0;i<s.length();++i)
  { if(i%2 && s[i]=='R')
  {
    cout<<"No";
    break;
  }
  else if(i%2==0 && s[i]=='L')
   {
     cout<<"No";
     break;
   }
  }
   else if(i==s.length()-1) cout<<"Yes";
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:19:4: error: 'else' without a previous 'if'
   19 |    else if(i==s.length()-1) cout<<"Yes";
      |    ^~~~
a.cc:19:12: error: 'i' was not declared in this scope
   19 |    else if(i==s.length()-1) cout<<"Yes";
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  string s;
  cin>>s;
  for(int i=1;i<=s.length();i++)
  {
    if(i%2==0){
      if(s[i]=='L'||s[i]=='U'||s[i]=='D')
        g++;
      else
        break;}
    if(i&1){
      if(s[i]=='R'||s[i]=='U'||s[i]=='D')
        g++;
    else
      break;}
  }
  if(g==s.length())
    cout<<"Yes";
  else
    cout<<"No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'g' was not declared in this scope
   11 |         g++;
      |         ^
a.cc:16:9: error: 'g' was not declared in this scope
   16 |         g++;
      |         ^
a.cc:20:6: error: 'g' was not declared in this scope
   20 |   if(g==s.length())
      |      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
string a;
int i=0;
bool b=true,c=true;
int main(){
  cin>>a;
 // for(i=0;i<a.size();i++){
    if(i%2==0){
      if(a[i]=="L")b=false;
    else(a[i]=="R")c=false;
    }
//  }
  if(b==true&&c==true)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |       if(a[i]=="L")b=false;
a.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     else(a[i]=="R")c=false;
a.cc:11:20: error: expected ';' before 'c'
   11 |     else(a[i]=="R")c=false;
      |                    ^
      |                    ;
Language: C

#include<stdio.h>
#include<string.h>

int main() {
	char count[100];
	scanf("%s", count);
	int flg = 0;
	
	for (int i = 0; i < 50:i++) {
		if (count[2 * i] == 'L')flg = 1;
	}
	for (int i = 0; i < 50; i++) {
		if (count[2 * i + 1] == 'R')flg = 1;
	}
	if (flg == 0)printf("Yes");
	else printf("No");


	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:31: error: expected ';' before ':' token
    9 |         for (int i = 0; i < 50:i++) {
      |                               ^
      |                               ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  string s;
  cin>>s;
  for(int i=0;i<s.length();++i)
  { if(i%2 && s[i]=='R')
  {
    cout<<"No";
    break;
  }
  else if(i%2==0 && s[i]=='L')
   {
     cout<<"No";
     break;
   }
   else cout<<"Yes";
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <bits/stdc++.h>

#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
typedef long long ll;

using namespace std;


int inputValue(){
    int a;
    cin >> a;
    return a;
};

void inputArray(int * p, int a){
    rep(i, a){
        cin >> p[i];
    }
};

void inputVector(vector<int> * p, int a){
    rep(i, a){
        int input;
        cin >> input;
        p -> push_back(input);
    }
}

template <typename T>
void output(T a, int precision) {
    if(precision > 0){
        cout << setprecision(precision)  << a << "\n";
    }
    else{
        cout << a << "\n";
    }
}

int main(int argc, const char * argv[]) {
    
    // source code
  string s;
  cin >> s;
  rep(i,s.Length)
  {
    if(i%2 == 0) //guusu
    {
      if(s[i] == 'R')
      {
        cout << "No";
        return;
      }
    }
    else//kisuu
    {
            if(s[i] == 'L')
      {
        cout << "No";
        return;
      }
    }
  }
          cout << "Yes";
        return;
  
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:45:11: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'Length'; did you mean 'length'?
   45 |   rep(i,s.Length)
      |           ^~~~~~
a.cc:3:39: note: in definition of macro 'repd'
    3 | #define repd(i,a,b) for (int i=(a);i<(b);i++)
      |                                       ^
a.cc:45:3: note: in expansion of macro 'rep'
   45 |   rep(i,s.Length)
      |   ^~~
a.cc:52:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   52 |         return;
      |         ^~~~~~
a.cc:60:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   60 |         return;
      |         ^~~~~~
a.cc:65:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   65 |         return;
      |         ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;


int main (){

string s;
  
  cin>>s;
  
  for(int i=0;i<s.size();i++){
	if(i%2==1&&(s.at(i)=="R"||s.at(i)=="U"||s.at(i)=="D")){
    }
    else if(i%2==0&&(s.at(i)=="L"||s.at(i)=="U"||s.at(i)=="D")){
    }
    
   else{
     cout<<"No"<<endl;
     exit(0);

   }
    
  }
  
  cout<<"Yes"<<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         if(i%2==1&&(s.at(i)=="R"||s.at(i)=="U"||s.at(i)=="D")){
      |                     ~~~~~~~^~~~~
a.cc:12:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         if(i%2==1&&(s.at(i)=="R"||s.at(i)=="U"||s.at(i)=="D")){
      |                                   ~~~~~~~^~~~~
a.cc:12:56: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         if(i%2==1&&(s.at(i)=="R"||s.at(i)=="U"||s.at(i)=="D")){
      |                                                 ~~~~~~~^~~~~
a.cc:14:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     else if(i%2==0&&(s.at(i)=="L"||s.at(i)=="U"||s.at(i)=="D")){
      |                      ~~~~~~~^~~~~
a.cc:14:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     else if(i%2==0&&(s.at(i)=="L"||s.at(i)=="U"||s.at(i)=="D")){
      |                                    ~~~~~~~^~~~~
a.cc:14:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     else if(i%2==0&&(s.at(i)=="L"||s.at(i)=="U"||s.at(i)=="D")){
      |                                                  ~~~~~~~^~~~~
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <set>
#include <map>

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define for_p(i, a, b) for(int i = a; i < b; i++)
#define for_m(i, a, b) for(int i = a - 1; i >= b; i--)

//a = s1.size();
//vector<string> s1;
//string s2 = accumulate( s1.begin(), s1.end(), string() );

using namespace std;

int main()
{
  int a = 0 , b = 0, c = 0, d = 0, e = 0, f = 0;
  int i = 0, j = 0;
  double d1 = 0, d2 = 0, d3 = 0, d4 = 0, d5 = 0, d6 = 0;
  int a1[256], a2[512], a3[1024];
  char s1[200000], s2[200000], s3[200000];
  string x, y, z;
  
  cin >> s1;
  a = s1.size();
  
  for(i = 1; i <= a; i++){
    if(i % 2 == 0){
      if(s1[i - 1] == 'L' || s1[i - 1] == 'U' || s1[i - 1] == 'D'){
        c++;
       }
      else{
        b++;
      }
    }else{
        if(s1[i - 1] == 'R' || s1[i - 1] == 'U' || s1[i - 1] == 'D'){
          c++;
        }else{
          b++;
        }
      }
    }
  
    if(b == 0){
      cout << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
  }
        
  







Compiler output:
a.cc: In function 'int main()':
a.cc:35:10: error: request for member 'size' in 's1', which is of non-class type 'char [200000]'
   35 |   a = s1.size();
      |          ^~~~
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(){
  string s;
  cin >> s;
  for(int i=0;i<s.length();i++){
    string k = s.substr(i,1);
    if( (k == "L") && (i % 2 == 1) ){
      cout << "No" << endl;
      return;
    }
    if( (k == "R") && (i % 2 == 0) ){
      cout << "No" << endl;
      return;
    }
  }
  cout << "Yes" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |       return;
      |       ^~~~~~
a.cc:17:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   17 |       return;
      |       ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string S;
  cin >> S;
  
  string ans = "Yes";

  for (int i = 0; i < S.length; i++) {
	if (i %% 2 == 0) {
      if (S[i] == "L") {
        ans = "No";
        break;
      };
    }
	else if (i %% 2 == 1) {
      if (S[i] == "R") {
        ans = "No";
        break;
      }
    }
  }
  
  cout << ans << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   10 |   for (int i = 0; i < S.length; i++) {
      |                       ~~^~~~~~
      |                               ()
a.cc:11:16: error: expected primary-expression before '%' token
   11 |         if (i %% 2 == 0) {
      |                ^
a.cc:12:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |       if (S[i] == "L") {
a.cc:17:21: error: expected primary-expression before '%' token
   17 |         else if (i %% 2 == 1) {
      |                     ^
a.cc:18:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |       if (S[i] == "R") {
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
using namespace std;

int main(){
    string s;
    bool ans = false;
    cin >> s;
    for(int i=0;i<s.size();i+=2){
        if(s[i] != 'R')ans == true;
        else ans = false;

    for(int i=1;i<s.size();i+=2){
        if(s[i] != 'L')ans == true;
        else ans = false;
    }


    if(ans)cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

int main(void) {
	string s;
	cin >> s;
	int count = s.length();
	int x = 0;
	for (int i = 0; i < count; i += 2) {
		if (s[i] == 'R' || s[i] == 'U' || s[i] == 'D') {
			x = 1;
		}
		else {
			x = 0;
			break;
		}
	}
	if (x == 1) {
		for (int i = 1; i < count; i += 2) {
			if (s[i] == 'L' || s[i] == 'U' || s[i] == 'D') {
				x = 1;
			}
			else {
				x = 0;
				break;
			}
		}
	}
	if (x == 1) {
		cout << "Yes";
	}
	else {
		cout << "No";
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'string' was not declared in this scope
    2 |         string s;
      |         ^~~~~~
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> s;
      |         ^~~
a.cc:3:16: error: 's' was not declared in this scope
    3 |         cin >> s;
      |                ^
a.cc:27:17: error: 'cout' was not declared in this scope; did you mean 'count'?
   27 |                 cout << "Yes";
      |                 ^~~~
      |                 count
a.cc:30:17: error: 'cout' was not declared in this scope; did you mean 'count'?
   30 |                 cout << "No";
      |                 ^~~~
      |                 count
Language: C++


        if(a[i]=='L')
        {
            cout<<"NO";
            flag=1;
            return 0;
        }
    }
    for(int i=2;i<=l;i=i+2)
    {
        if(a[i]=='R')
        {
            cout<<"NO";
            flag=1;
            return 0;
        }
    }
    if(flag==0)
        cout<<"YES";
    return 0;
}


Compiler output:
a.cc:2:9: error: expected unqualified-id before 'if'
    2 |         if(a[i]=='L')
      |         ^~
a.cc:8:5: error: expected declaration before '}' token
    8 |     }
      |     ^
a.cc:9:5: error: expected unqualified-id before 'for'
    9 |     for(int i=2;i<=l;i=i+2)
      |     ^~~
a.cc:9:17: error: 'i' does not name a type
    9 |     for(int i=2;i<=l;i=i+2)
      |                 ^
a.cc:9:22: error: 'i' does not name a type
    9 |     for(int i=2;i<=l;i=i+2)
      |                      ^
a.cc:18:5: error: expected unqualified-id before 'if'
   18 |     if(flag==0)
      |     ^~
a.cc:20:5: error: expected unqualified-id before 'return'
   20 |     return 0;
      |     ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <set>
#include <map>

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define for_p(i, a, b) for(int i = a; i < b; i++)
#define for_m(i, a, b) for(int i = a - 1; i >= b; i--)

//a = s1.size();
//vector<string> s1;
//string s2 = accumulate( s1.begin(), s1.end(), string() );

using namespace std;

int main()
{
  int a = 0 , b = 0, c = 0, d = 0, e = 0, f = 0;
  int i = 0, j = 0;
  double d1 = 0, d2 = 0, d3 = 0, d4 = 0, d5 = 0, d6 = 0;
  int a1[256], a2[512], a3[1024];
  char s1[200000], s2[200000], s3[200000];
  string x, y, z;
  
  cin >> s1;
  a = s1.size();
  
  for(i = 1; i <= a; i++){
    if(i % 2 == 0){
      if(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D"){
        c++;
       }
      else{
        b++;
      }
    }else{
        if(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D"){
          c++;
        }else{
          b++;
        }
      }
    }
  
    if(b == 0){
      cout << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
  }
        
  






Compiler output:
a.cc: In function 'int main()':
a.cc:35:10: error: request for member 'size' in 's1', which is of non-class type 'char [200000]'
   35 |   a = s1.size();
      |          ^~~~
a.cc:39:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |       if(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D"){
      |          ~~~~~~~~~~^~~~~~
a.cc:39:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |       if(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D"){
      |                              ~~~~~~~~~~^~~~~~
a.cc:39:60: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |       if(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D"){
      |                                                  ~~~~~~~~~~^~~~~~
a.cc:46:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   46 |         if(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D"){
      |            ~~~~~~~~~~^~~~~~
a.cc:46:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   46 |         if(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D"){
      |                                ~~~~~~~~~~^~~~~~
a.cc:46:62: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   46 |         if(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D"){
      |                                                    ~~~~~~~~~~^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
string a;
bool b=true,c=true;
int main(){
  cin>>a;
//  for(int i=0;i<a.size();i++){
    if(i%2==0){
      if(a[i]=="L")b=false;
    else(a[i]=="R")c=false;
    }
 // }
  if(b==true&&c==true)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'i' was not declared in this scope
    8 |     if(i%2==0){
      |        ^
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <set>
#include <map>

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define for_p(i, a, b) for(int i = a; i < b; i++)
#define for_m(i, a, b) for(int i = a - 1; i >= b; i--)

//a = s1.size();
//vector<string> s1;
//string s2 = accumulate( s1.begin(), s1.end(), string() );

using namespace std;

int main()
{
  int a = 0 , b = 0, c = 0, d = 0, e = 0, f = 0;
  int i = 0, j = 0;
  double d1 = 0, d2 = 0, d3 = 0, d4 = 0, d5 = 0, d6 = 0;
  int a1[256], a2[512], a3[1024];
  char s1[200000], s2[200000], s3[200000];
  string x, y, z;
  
  cin >> s1;
  a = s1.size();
  
  for(i = 1; i =< a; i++){
    if(i % 2 == 0){
      if(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D"){
        c++;
       }
      else{
        b++;
      }
    }else{
        if(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D"){
          c++;
        }else{
          b++;
        }
      }
    }
  
    if(b == 0){
      cout << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
  }
        
  





Compiler output:
a.cc: In function 'int main()':
a.cc:35:10: error: request for member 'size' in 's1', which is of non-class type 'char [200000]'
   35 |   a = s1.size();
      |          ^~~~
a.cc:37:17: error: expected primary-expression before '<' token
   37 |   for(i = 1; i =< a; i++){
      |                 ^
a.cc:39:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |       if(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D"){
      |          ~~~~~~~~~~^~~~~~
a.cc:39:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |       if(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D"){
      |                              ~~~~~~~~~~^~~~~~
a.cc:39:60: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |       if(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D"){
      |                                                  ~~~~~~~~~~^~~~~~
a.cc:46:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   46 |         if(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D"){
      |            ~~~~~~~~~~^~~~~~
a.cc:46:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   46 |         if(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D"){
      |                                ~~~~~~~~~~^~~~~~
a.cc:46:62: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   46 |         if(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D"){
      |                                                    ~~~~~~~~~~^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
string a;
bool b=true,c=true;
int main(){
  cin>>a;
  for(int i=0;i<a.size();i++){
    if(i%2==0){
      if(a[i]=="L")b=false;
    else(a[i]=="R")c=false;
    }
  }
  if(b==true&&c==true)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |       if(a[i]=="L")b=false;
a.cc:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     else(a[i]=="R")c=false;
a.cc:10:20: error: expected ';' before 'c'
   10 |     else(a[i]=="R")c=false;
      |                    ^
      |                    ;
Language: C++

#include <bits/stdc++.h>

#define sz(s) (int)(s).size()
#define re(i, n) for (int i = 1; i <= n; i ++)
#define pb push_back
#define finish(x) return cout << x << endl, 0
#define MP make_mair
#define trav(x, a) for(auto& x: a)
#define all(x) (x).begin,(x).end()
#define Sor(x) sort(all(x))
#define REV(x) reverse(all(x))
#define F first
#define S second
#define I insert
#define N 222222
#define MOD 100000007

using namespace std;

typedef long long ll;
vector <ll> vll;
template <class T> bool umin(T& a, T b) {if(a>b){a = b; return 1;}return 0;}
template <class T> bool umax(T& a, T b) {if(a<b){a=b; return 1;}return 0;}
template <class T, class TT> bool pal(T a, TT n){int k = 0; for(int i =0; i <= n / 2; i ++){if(a[i]!=a[n-i-1]){k=1;break;}}return k?0:1;}

ll powmod(ll a, ll b, ll m = MOD){ll r = 1;while(b>0){if(b&1)r=r*a%m;a=a*a%m;b>>=1;}return r;}


int main()
{
	cin >> s;
            for(int i = 0; i < s.size(); i++)
              if(!(i & 1) && s[i] == 'L')
                return cout << "No", 0;
              else if((i & 1) && s[i] == 'R')
                return cout << "No", 0;
            cout << "Yes";







	getchar();
	getchar();
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:16: error: 's' was not declared in this scope
   31 |         cin >> s;
      |                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main()
{
    int i,j,k,cnt_1 = 0,cnt_2 = 0,len,ans;
    char c[113];
    gets(c);
    len = strlen(c);
    if(len%2!=0)
    {
        j = (len/2) + 1;
        k = len - j;
        for(i=0; i<len; i++)
        {
            if(i%2==0)
            {
                if(c[i]=='R' || c[i]=='U' || c[i]=='D')
                {
                    cnt_1++;
                }
            }
            else if(i%2!=0)
            {
                if(c[i]=='L' || c[i]=='U' || c[i]=='D')
                {
                    cnt_2++;
                }
            }
        }
        if(cnt_1==j && cnt_2==k)
        {
            cout<<"Yes"<<endl;
        }
        else
        {
            cout<<"No"<<endl;
        }
    }
    else if(len%2==0)
    {
        j = len/2;
        for(i=0; i<len; i++)
        {
            if(i%2==0)
            {
                if(c[i]=='R' || c[i]=='U' || c[i]=='D')
                {
                    cnt_1++;
                }
            }
            else if(i%2!=0)
            {
                if(c[i]=='L' || c[i]=='U' || c[i]=='D')
                {
                    cnt_2++;
                }
            }
        }
        if(cnt_1==j && cnt_2==j)
        {
            cout<<"Yes"<<endl;
        }
        else
        {
            cout<<"No"<<endl;
        }
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |     gets(c);
      |     ^~~~
      |     getw
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    String[] s = sc.next().split("");
    int l =  s.length;
    int count =0;
    for(int i=0; i<l; i++){
      if(s[i].equals("U")||s[i].equals("D")){
        count +=1;
        continue;
      }


      if(i%2==0){
        if(s[i].equals("R")){
          count += 1;
        }
      }else{
        if(s[i].equals("L")){
          count += 1;
        }
      }
    }
    if(count == l){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }

Compiler output:
Main.java:31: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

import java.util.*;
public class Contenst {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        char[] cs = sc.nextLine().toCharArray();

        boolean flagA = true;

        //偶数
        for (int i = 0; i < cs.length; i+=2) {
            if (cs[i] == 'L') {
                flagA = false;
                break;
            }
        }

        boolean flagB = true;
        //奇数
        for (int i = 1; i < cs.length; i+=2) {
            if (cs[i] == 'R') {
                flagB = false;
                break;
            }
        }
        if (flagA && flagB) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}


Compiler output:
Main.java:2: error: class Contenst is public, should be declared in a file named Contenst.java
public class Contenst {
       ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end() //使うときはsort(all())という感じで
using ll = long long;

int main(){
  string s;
  cin>>s;
  int n=sizeof(s);
  bool ju=true,jud=true;
  for(int i=1;i<=n;i++){
    if(i%2==0){
      if(s[i-1]=='R'){
        ju=false;
      }
    }
    else{
      if(s[i-1]=='L'){
        jud=false;
      }
    }
  }
  if(jujud){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:6: error: 'jujud' was not declared in this scope; did you mean 'jud'?
   24 |   if(jujud){
      |      ^~~~~
      |      jud
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string S;
  cin >> S;
  bool flag = true;
  for (int i = 0; i < S.size(); i += 2) {
    if (S.at(i) == L) {
      flag = false;
    }
    
    if (S.at(i + 1) == R) {
      flag = false;
    }
  }
  
  if (flag == true) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'L' was not declared in this scope
    9 |     if (S.at(i) == L) {
      |                    ^
a.cc:13:24: error: 'R' was not declared in this scope
   13 |     if (S.at(i + 1) == R) {
      |                        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  string s;
  cin >> s;
  for(int i = 0; i < s.size(); i++){
  	if(i % 2 == 0 && s[i] == 'L'){
      cout<<"No"<<endl;
    	return;
    }else if(i % 2 != 0 && s[i] == 'R'){
    	cout<<"No"<<endl;
      	return;
    }
  }
  
  cout<<"Yes"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |         return;
      |         ^~~~~~
a.cc:13:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |         return;
      |         ^~~~~~
Language: C

#include<stdio.h>

int main(void){
  char tmp[101]={'\0'};
  scanf("%s",tmp);
  for(int i=0;tmp[i];i++){
    if(i%2==0){
    if(s[i]=='L'){
      puts("No");
      return0;
    }
    }
    else{
     if(s[i]=='R'){
      puts("No");
      return0;
     }
    }
  }
   puts("Yes");
      return0;
}
  

Compiler output:
main.c: In function 'main':
main.c:8:8: error: 's' undeclared (first use in this function)
    8 |     if(s[i]=='L'){
      |        ^
main.c:8:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:7: error: 'return0' undeclared (first use in this function)
   10 |       return0;
      |       ^~~~~~~
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <set>
#include <map>

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define for_p(i, a, b) for(int i = a; i < b; i++)
#define for_m(i, a, b) for(int i = a - 1; i >= b; i--)

//a = s1.size();
//vector<string> s1;
//string s2 = accumulate( s1.begin(), s1.end(), string() );

using namespace std;

int main()
{
  int a = 0 , b = 0, c = 0, d = 0, e = 0, f = 0;
  int i = 0, j = 0;
  double d1 = 0, d2 = 0, d3 = 0, d4 = 0, d5 = 0, d6 = 0;
  int a1[256], a2[512], a3[1024];
  char s1[200000], s2[200000], s3[200000];
  string x, y, z;
  
  cin >> s1;
  a = s1.size();
  
  for(i = 1; i =< a; i++){
    if(i % 2 == 0){
      if(!(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D")){
        b++;
       }
    }else{
        if(!(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D")){
          b++;
        }
     }
   }
  
    if(b == 0){
      cout << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
  }
        
  





Compiler output:
a.cc: In function 'int main()':
a.cc:35:10: error: request for member 'size' in 's1', which is of non-class type 'char [200000]'
   35 |   a = s1.size();
      |          ^~~~
a.cc:37:17: error: expected primary-expression before '<' token
   37 |   for(i = 1; i =< a; i++){
      |                 ^
a.cc:39:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |       if(!(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |            ~~~~~~~~~~^~~~~~
a.cc:39:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |       if(!(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |                                ~~~~~~~~~~^~~~~~
a.cc:39:62: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |       if(!(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |                                                    ~~~~~~~~~~^~~~~~
a.cc:43:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   43 |         if(!(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |              ~~~~~~~~~~^~~~~~
a.cc:43:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   43 |         if(!(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |                                  ~~~~~~~~~~^~~~~~
a.cc:43:64: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   43 |         if(!(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |                                                      ~~~~~~~~~~^~~~~~
Language: C++

#include "bits/stdc++.h"
using namespace std;
typedef pair<int, int> P;
typedef long long ll;
const int MOD = 1000000007;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main(){
  string s;
  cin >> s;
  
  for (i = 0; i < s.length(); i++)
  {
    if (i % 0 == 0)	// 偶数
    {
      if (s[i] == 'R' || s[i] == 'U' || s[i] == 'D')	continue;
      else 
      {
        cout << "No";
        return 0;
      }
    }
    else
    {
      if (s[i] == 'L' || s[i] == 'U' || s[i] == 'D')	continue;
      else 
      {
        cout << "No";
        return 0;
      }    
    }
  }
  
  cout << "Yes";
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: 'i' was not declared in this scope
   12 |   for (i = 0; i < s.length(); i++)
      |        ^
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <set>
#include <map>

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define for_p(i, a, b) for(int i = a; i < b; i++)
#define for_m(i, a, b) for(int i = a - 1; i >= b; i--)

//a = s1.size();
//vector<string> s1;
//string s2 = accumulate( s1.begin(), s1.end(), string() );

using namespace std;

int main()
{
  int a = 0 , b = 0, c = 0, d = 0, e = 0, f = 0;
  int i = 0, j = 0;
  double d1 = 0, d2 = 0, d3 = 0, d4 = 0, d5 = 0, d6 = 0;
  int a1[256], a2[512], a3[1024];
  char s1[200000], s2[200000], s3[200000];
  string x, y, z;
  
  cin >> s1;
  a = s1.size();
  
  for(i = 1; i =< a; i++){
    if(i % 2 == 0){
      if(!(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D")){
        b++;
       }
    }else{
        if(!(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D")){
          b++;
        }
      }
    }
  
    if(b == 0){
      cout << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
  }
        
  




Compiler output:
a.cc: In function 'int main()':
a.cc:35:10: error: request for member 'size' in 's1', which is of non-class type 'char [200000]'
   35 |   a = s1.size();
      |          ^~~~
a.cc:37:17: error: expected primary-expression before '<' token
   37 |   for(i = 1; i =< a; i++){
      |                 ^
a.cc:39:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |       if(!(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |            ~~~~~~~~~~^~~~~~
a.cc:39:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |       if(!(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |                                ~~~~~~~~~~^~~~~~
a.cc:39:62: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |       if(!(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |                                                    ~~~~~~~~~~^~~~~~
a.cc:43:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   43 |         if(!(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |              ~~~~~~~~~~^~~~~~
a.cc:43:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   43 |         if(!(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |                                  ~~~~~~~~~~^~~~~~
a.cc:43:64: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   43 |         if(!(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |                                                      ~~~~~~~~~~^~~~~~
Language: Java

import java.util.*;
 
public class Main{
	public static void main(String [] args){
		Scanner sc = new Scanner(System.in);
		String step = sc.next();
      	for(int i = 0; i < step.length(); i++){
        	if(i%2 == 0){
            	if(step.charAt(i) == 'R'){
                	System.out.println("NO");
                  	break;
                }
            }else if(i%2 == 1){
            	if(step.charAt(i) == 'L'){
                	System.out.println("NO");
                  	break;
                }
            if(i == step.length()-1){
            	System.out.println("YES");
            }
        }
      	
	}
 
}

Compiler output:
Main.java:25: error: reached end of file while parsing
}
 ^
1 error
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main(void)
{
	string tap;
  bool flg;
    cin >> tap;

  for(int i = 0;i < tap.length();i++)
  {
  	if(i % 2 )
    {
      if(tap[i] == "L")
        flg = True;
    }
      else
      {
        if(tap[i] == "R")
          flg = True;
      }
  }
  
  if(flg)
    cout << "No";
  else
    cout << "Yes";
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |       if(tap[i] == "L")
a.cc:15:15: error: 'True' was not declared in this scope
   15 |         flg = True;
      |               ^~~~
a.cc:19:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |         if(tap[i] == "R")
a.cc:20:17: error: 'True' was not declared in this scope
   20 |           flg = True;
      |                 ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
string a;
bool b=true,c=true;
int main(){
  cin>>a;
  for(int i=0;i<a.size();i++){
    if(i%2==0){
      if(a[i]!="R" || a[i]!="U" || a[i]!="D")b=false;
    }else(a[i]!="L" || a[i]!="U" || a[i]!="D")c=false;
  }
  if(b==true&&c==true)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |       if(a[i]!="R" || a[i]!="U" || a[i]!="D")b=false;
a.cc:9:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |       if(a[i]!="R" || a[i]!="U" || a[i]!="D")b=false;
a.cc:9:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |       if(a[i]!="R" || a[i]!="U" || a[i]!="D")b=false;
a.cc:10:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     }else(a[i]!="L" || a[i]!="U" || a[i]!="D")c=false;
a.cc:10:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     }else(a[i]!="L" || a[i]!="U" || a[i]!="D")c=false;
a.cc:10:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     }else(a[i]!="L" || a[i]!="U" || a[i]!="D")c=false;
a.cc:10:47: error: expected ';' before 'c'
   10 |     }else(a[i]!="L" || a[i]!="U" || a[i]!="D")c=false;
      |                                               ^
      |                                               ;
Language: C++

#include <bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;++i)
#define rep1(i,n) for(int i=1;i<=n;++i)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define double long double
using namespace std;
//桁
int kt(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
 }
int lcm(int a,int b){
  int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return d*e/f;
    }
  int gcm(int a,int b){
      int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return f;
  }
signed main(){
  string s;
  cin>>s;
  bool c=true;
  rep(i,a.size()){
    if(i%2==0){
      if(s.at(i)=='L'){
    c=false;
        break;
      }
    }
    else{
      if(s.at(i)=='R'){
c=false;
        break;
      }
    }
  }
    if(c)
         cout<<"Yes";
         else
         cout<<"No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:56:9: error: 'a' was not declared in this scope
   56 |   rep(i,a.size()){
      |         ^
a.cc:3:32: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<n;++i)
      |                                ^
Language: C++

#include<cstdio>
#include<string>
using namespace std;

int main(){
  char S[105];

  scanf("%s", &S);

  int len = strlen(S);

  bool ans = true;
 
  for(int i = 0; i < len; i++){
    int a = (i+1) % 2;
    if (a == 0 && S[i] == 'R'){
      ans = false;
      break;
    }
    if (a== 1 && S[i] == 'L'){
      ans = false;
      break;
    }
  }

  if (ans) printf("Yes\n");
  else printf("No\n");

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'strlen' was not declared in this scope
   10 |   int len = strlen(S);
      |             ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<string>
  +++ |+#include <cstring>
    3 | using namespace std;
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <set>
#include <map>

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define for_p(i, a, b) for(int i = a; i < b; i++)
#define for_m(i, a, b) for(int i = a - 1; i >= b; i--)

//a = s1.size();
//vector<string> s1;
//string s2 = accumulate( s1.begin(), s1.end(), string() );

using namespace std;

int main()
{
  int a = 0 , b = 0, c = 0, d = 0, e = 0, f = 0;
  int i = 0, j = 0;
  double d1 = 0, d2 = 0, d3 = 0, d4 = 0, d5 = 0, d6 = 0;
  int a1[256], a2[512], a3[1024];
  char s1[200000], s2[200000], s3[200000];
  string x, y, z;
  
  cin >> s1;
  a = s1.size();
  
  for(i = 1; i =< a; i++){
    if(i % 2 == 0){
      if(!(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D")){
        b++;
       }
      else{
        if(!(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D")){
          b++;
        }
      }
    }
  }
    if(b == 0){
      cout << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
  }
        
  



Compiler output:
a.cc: In function 'int main()':
a.cc:35:10: error: request for member 'size' in 's1', which is of non-class type 'char [200000]'
   35 |   a = s1.size();
      |          ^~~~
a.cc:37:17: error: expected primary-expression before '<' token
   37 |   for(i = 1; i =< a; i++){
      |                 ^
a.cc:39:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |       if(!(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |            ~~~~~~~~~~^~~~~~
a.cc:39:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |       if(!(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |                                ~~~~~~~~~~^~~~~~
a.cc:39:62: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   39 |       if(!(s1[i - 1] == "L" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |                                                    ~~~~~~~~~~^~~~~~
a.cc:43:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   43 |         if(!(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |              ~~~~~~~~~~^~~~~~
a.cc:43:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   43 |         if(!(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |                                  ~~~~~~~~~~^~~~~~
a.cc:43:64: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   43 |         if(!(s1[i - 1] == "R" || s1[i - 1] == "U" || s1[i - 1] == "D")){
      |                                                      ~~~~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string S;
  int N;
  cin >> S;
  N = S.size();
  int a=1;
  for (int i=0; i<N; ++i) {
    if (i%2 == 1 && (S.at(i) == 'L' || S.at(i) == 'U' || S.at(i) == 'D')) {
      a = 1;
    }else if (i%2 == 0 && (S.at(i) == 'R' || S.at(i) == 'U' || S.at(i) == 'D')) {
      a = 1;
    }else{
      a = 0;
    }
  }
  if (a == 0) {
    cout << No << endl;
  }else{
    cout << Yes << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: 'No' was not declared in this scope; did you mean 'N'?
   20 |     cout << No << endl;
      |             ^~
      |             N
a.cc:22:13: error: 'Yes' was not declared in this scope
   22 |     cout << Yes << endl;
      |             ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
string S;
  bool a=true;
  for(int i=0;i<N;i++){
    if(i%2==0){
      if(S.at(i)=='L'){
a=false;
      }
    }
    if(i%2!=0){
      if(S.at(i)=='R'){
 a=false
      }
    }
  }
 if(a==true){
  cout<<"Yes"<<endl;
 }
  else{
    cut<<"No"<<endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'N' was not declared in this scope
    7 |   for(int i=0;i<N;i++){
      |                 ^
a.cc:15:9: error: expected ';' before '}' token
   15 |  a=false
      |         ^
      |         ;
   16 |       }
      |       ~  
a.cc:23:5: error: 'cut' was not declared in this scope
   23 |     cut<<"No"<<endl;
      |     ^~~
Language: C++

#include <bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;++i)
#define rep1(i,n) for(int i=1;i<=n;++i)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define double long double
using namespace std;
//桁
int kt(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
 }
int lcm(int a,int b){
  int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return d*e/f;
    }
  int gcm(int a,int b){
      int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return f;
  }
signed main(){
  string a;
  cin>>a;
  bool c=true;
  rep(i,a.size()){
    if(i%2==0){
      if(s.at(i)=='L'){
    c=false;
        break;
      }
    }
    else{
      if(s.at(i)=='R'){
c=false;
        break;
      }
    }
  }
    if(c)
         cout<<"Yes";
         else
         cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:58:10: error: 's' was not declared in this scope
   58 |       if(s.at(i)=='L'){
      |          ^
a.cc:64:10: error: 's' was not declared in this scope
   64 |       if(s.at(i)=='R'){
      |          ^
Language: C++


#include <bits/stdc++.h>
using namespace std;


int main (){

string s;
  
  cin>>s;
  
  for(int i=0;i<s.size();i++){
	if(i%2==1&&(s=="R"||s=="U"||s=="D")){
    }
    else if(i%2==0&&(s=="L"||s=="U"||s=="D")){
    }
    
   else{
     cout<<"No"<<endl;
     exit();

   }
    
  }
  
  cout<<"Yes"<<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: too few arguments to function 'void exit(int)'
   20 |      exit();
      |      ~~~~^~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:2:
/usr/include/stdlib.h:756:13: note: declared here
  756 | extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
      |             ^~~~