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

using System;
using System.Collections;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
namespace Collections
{
    class program
    {
        //static long MAX_LONG = 5000000000000000;
        static void Main(string[] args)
        {

            // 入力
            //int[] input = Console.ReadLine().Split().Select(p => int.Parse(p)).ToArray();
            string S = Console.ReadLine();
            
            if(S=="Sunny")
            {
                Console.WriteLine("Cloudy");
            }
            else if (S == "Cloudy")
            {
                Console.WriteLine("Rainy");
            }
            else if (S == "Rainy")
            {
                Console.WriteLine("Sunny");
            }
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Text.RegularExpressions;
      |       ^~~~~~
a.cc:6:7: error: expected nested-name-specifier before 'System'
    6 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:12:26: error: 'string' has not been declared
   12 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:12:35: error: expected ',' or '...' before 'args'
   12 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:32:6: error: expected ';' after class definition
   32 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void Collections::program::Main(int*)':
a.cc:17:13: error: 'string' was not declared in this scope
   17 |             string S = Console.ReadLine();
      |             ^~~~~~
a.cc:19:16: error: 'S' was not declared in this scope
   19 |             if(S=="Sunny")
      |                ^
a.cc:21:17: error: 'Console' was not declared in this scope
   21 |                 Console.WriteLine("Cloudy");
      |                 ^~~~~~~
a.cc:25:17: error: 'Console' was not declared in this scope
   25 |                 Console.WriteLine("Rainy");
      |                 ^~~~~~~
a.cc:29:17: error: 'Console' was not declared in this scope
   29 |                 Console.WriteLine("Sunny");
      |                 ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main(){
char a;
  cin >>a;
if(a=='S') cout <<"Cloudy"
  else if(a=='C') cout <<"Rainy"
    else cout <<"Sunny"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: expected ';' before 'else'
    8 | if(a=='S') cout <<"Cloudy"
      |                           ^
      |                           ;
    9 |   else if(a=='C') cout <<"Rainy"
      |   ~~~~
Language: C++

#include<iostream>
#include<vector>
#include<string>
#include<cmath>
#include<limits>
#include<algorithm>
#include<numeric>
#include<utility>

using ull = unsigned long long int;
using ll = long long int; 

using namespace std;

int main(){
    string s;

    cin >> s;

    if(s=="Sunny") cout << "Cloudy" << endl;
    if(s=="Cloudy") cout << "Rainy" << endl;
    if(S=="Rainy") cout << "Sunny" << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:8: error: 'S' was not declared in this scope
   22 |     if(S=="Rainy") cout << "Sunny" << endl;
      |        ^
Language: Java

import java.util.Scanner;

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

    String S = sc.next();
    String T;
    if ("Sunny".equals(S)) {
      T = "Cloudy";
    } else if ("Cloudy".equals(S)) {
      T = "Rainy";
    } else if ("Rainly".equals(S)) {
      T = "Sunny";
    }
    System.out.println(T);
  }
}


Compiler output:
Main.java:16: error: variable T might not have been initialized
    System.out.println(T);
                       ^
1 error
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;

int main()
{
    string s; cin >> s;
    if (s = "Sunny") cout << "Cloudy" << endl;
    else if (s = "Cloudy") cout << "Rainy" << endl;
    else if (s = "Rainy") cout << "Sunny" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"Sunny"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    8 |     if (s = "Sunny") cout << "Cloudy" << endl;
      |         ~~^~~~~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:9:16: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"Cloudy"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |     else if (s = "Cloudy") cout << "Rainy" << endl;
      |              ~~^~~~~~~~~~
      |                |
      |                std::__cxx11::basic_string<char>
a.cc:10:16: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"Rainy"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |     else if (s = "Rainy") cout << "Sunny" << endl;
      |              ~~^~~~~~~~~
      |                |
      |                std::__cxx11::basic_string<char>
Language: C++

#include <bits/stdc++.h>

int main()
{
    string s;
    cin >> s;
    if (string == "Sunny") printf("Cloudy\n");
    if (string == "Cloudy") printf("Rainy\n");
    if (string == "Rainy") printf("Sunny\n");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'string' was not declared in this scope
    5 |     string s;
      |     ^~~~~~
a.cc:5:5: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> s;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:12: error: 's' was not declared in this scope
    6 |     cin >> s;
      |            ^
Language: C++

#include<bits/stdc++.h>
#define ios ios_base::sync_with_stdio(0);cin.tie(0);
using namespace std ;
typedef long long int ll ;


int main(){
	ios;
	string s;
	cin>>s;
	switch(s){
		case "Sunny":{
			cout<<"Cloudy\n";
			break;
		}
		case "Cloudy":{
			cout<<"Rainy\n";
			break;
		}
		case "Rainy":{
			cout<<"Sunny\n";
			break;
		}	
	}

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: switch quantity not an integer
   11 |         switch(s){
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  string s;
  cin >> s;
  if(s == "Sunny"){
    cout << "Cloudy" << endl;
  }
  else if(s == "Cloudy"){
    cout << "Rainy" <<endl;
  }
  else if(s == "Rainy"){
    cout << "Sunny" << endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

import java.util.*;

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

    if (s.equals("Sunny")) {
	  System.out.println("Cloudy");
    } else if (s.equals("Cloudy")) {
      System.out.println("Rainy");
    } else {
      System.out.println("Sunny");
    }
    
  }
}


Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to int
	int s = sc.next();
	               ^
Main.java:8: error: int cannot be dereferenced
    if (s.equals("Sunny")) {
         ^
Main.java:10: error: int cannot be dereferenced
    } else if (s.equals("Cloudy")) {
                ^
3 errors
Language: C++

/* 
	Author: ankrypt
*/


#include <bits/stdc++.h>

using namespace std;

#define MOD 1000000007
#define ll long long int
#define u64 unsigned long long int


int main() {
	cin >> S;
	if(S == "Sunny") {
		cout << "Cloudy";
	}
	else if(S == "Cloudy") {
		cout << "Rainy";
	}
	else if(S == "Rainy") {
		cout << "Sunny";
	}
	return 0;
}
/*
	Powered by Buggy Plugin
*/


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

#include<bits/stdc++.h>
#include<vector>
int main(void){
  string N;
  cin >> N;
  if(N == "Sunny"){
     cout << "Cloudy";
  } else if(N == "Cloudy"){
    cout << "Rainy";
  } else {
    cout << "Sunny";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string N;
      |   ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> N;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:10: error: 'N' was not declared in this scope
    5 |   cin >> N;
      |          ^
a.cc:7:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |      cout << "Cloudy";
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << "Rainy";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << "Sunny";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#define ll long long
int main()
{
    char a[10];
    gets(a);
    if(a[0]=='S')
        printf("Cloudy\n");
    else if(a[0]=='R')
        printf("Sunny\n");
    else if(a[0]=='C')
        printf("Rainy\n");
    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(a);
      |     ^~~~
      |     getw
Language: C++

#include<bits/stdc++.h>
#include <math.h>
#include <algorithm>
#include <functional>
#include<iostream>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define fro(i,j,n) for(int i=j;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)


int main() {
    string a[]={Sunny,Cloudy,Rainy};
    string x;
	cin >> x;
    string ans;
    fr(i,3){
      if(a[i]==x)ans=a[(i+1)%3];
    }
      cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: 'Sunny' was not declared in this scope
   16 |     string a[]={Sunny,Cloudy,Rainy};
      |                 ^~~~~
a.cc:16:23: error: 'Cloudy' was not declared in this scope
   16 |     string a[]={Sunny,Cloudy,Rainy};
      |                       ^~~~~~
a.cc:16:30: error: 'Rainy' was not declared in this scope
   16 |     string a[]={Sunny,Cloudy,Rainy};
      |                              ^~~~~
Language: C++

using System;
using System.Collections.Generic;
using System.Text;

namespace AtCoder.ABC141
{
    //https://atcoder.jp/contests/abc141/tasks/abc141_a
    public class QuestionA
    {
        public static void Main(string[] args)
        {
            string s = Console.ReadLine();

            switch(s)
            {
                case "Sunny":
                    Console.WriteLine("Cloudy");
                    return;
                case "Cloudy":
                    Console.WriteLine("Rainy");
                    return;
                default:
                    Console.WriteLine("Sunny");
                    return;
            }
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Text;
      |       ^~~~~~
a.cc:5:18: error: expected '{' before '.' token
    5 | namespace AtCoder.ABC141
      |                  ^
a.cc:5:18: error: expected unqualified-id before '.' token
Language: C++

    #include<bits/stdc++.h>
    using namespace std;
    signed main(){
      	string s;
      if(s=="Sunny") cout<<"Cloudy<<'\n';
        else if(s=="Cloudy") cout<<"Rainy"<<'\n';
      else cout<<"Sunny"<<'\n';
      return 0;
    }

Compiler output:
a.cc:5:28: warning: missing terminating " character
    5 |       if(s=="Sunny") cout<<"Cloudy<<'\n';
      |                            ^
a.cc:5:28: error: missing terminating " character
    5 |       if(s=="Sunny") cout<<"Cloudy<<'\n';
      |                            ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: expected primary-expression before 'else'
    6 |         else if(s=="Cloudy") cout<<"Rainy"<<'\n';
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;

int main()
{
    string s;
    if (s = "Sunny") cout << "Cloudy" << endl;
    else if (s = "Cloudy") cout << "Rainy" << endl;
    else if (s = "Rainy") cout << "Sunny" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"Sunny"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    8 |     if (s = "Sunny") cout << "Cloudy" << endl;
      |         ~~^~~~~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:9:16: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"Cloudy"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |     else if (s = "Cloudy") cout << "Rainy" << endl;
      |              ~~^~~~~~~~~~
      |                |
      |                std::__cxx11::basic_string<char>
a.cc:10:16: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"Rainy"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |     else if (s = "Rainy") cout << "Sunny" << endl;
      |              ~~^~~~~~~~~
      |                |
      |                std::__cxx11::basic_string<char>
Language: C++

#include <bits/stdc++.h>
using namespace std;
string s;
int main(){
	ios::sync_with_stdio(0), cin.tie(0);
	cin>>s;
	if(s[0] == 'S')cout<<"Cloudy\n";
	else if(s[0] == 'C') cout<<"Rainy\n";
	if(s[0] == 'R')cout<<"Sunny"\n;
}


Compiler output:
a.cc:9:37: error: stray '\' in program
    9 |         if(s[0] == 'R')cout<<"Sunny"\n;
      |                                     ^
a.cc: In function 'int main()':
a.cc:9:37: error: expected ';' before 'n'
    9 |         if(s[0] == 'R')cout<<"Sunny"\n;
      |                                     ^~
      |                                     ;
Language: Java

import java.util.Scanner;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   String N = sc.nextInt();
   if (N == "Sunny") System.out.println("Cloudy");   
   else if (N == "Cloudy") System.out.println("Rainy");   
   else if (N == "Rainy") System.out.println("Sunny");   
   
   
   
 }
}

Compiler output:
Main.java:5: error: incompatible types: int cannot be converted to String
   String N = sc.nextInt();
                        ^
1 error
Language: C++

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

int main() {
  string s;
  cin >> s;
  if(s == Rainy) cout << Sunny <<endl;
  if(s == Sunny) cout << Cloudy << endl;
  if(s == Cloudy) cout << Rainy << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'Rainy' was not declared in this scope
    7 |   if(s == Rainy) cout << Sunny <<endl;
      |           ^~~~~
a.cc:7:26: error: 'Sunny' was not declared in this scope
    7 |   if(s == Rainy) cout << Sunny <<endl;
      |                          ^~~~~
a.cc:8:11: error: 'Sunny' was not declared in this scope
    8 |   if(s == Sunny) cout << Cloudy << endl;
      |           ^~~~~
a.cc:8:26: error: 'Cloudy' was not declared in this scope
    8 |   if(s == Sunny) cout << Cloudy << endl;
      |                          ^~~~~~
a.cc:9:11: error: 'Cloudy' was not declared in this scope
    9 |   if(s == Cloudy) cout << Rainy << endl;
      |           ^~~~~~
a.cc:9:27: error: 'Rainy' was not declared in this scope
    9 |   if(s == Cloudy) cout << Rainy << endl;
      |                           ^~~~~
Language: C++

// #include <iostream>
// #include <string>
// #include <math.h>
// #include <map>
// #include <vector>
// #include <tuple>
// #include <algorithm>
// #include <queue>
#include<bits/stdc++.h>
using namespace std;
#define lli long long int
#define vi vector<int>
#define vlli vector<lli>
#define pii pair<int, int>
#define plli pair <lli, lli>
#define F(i,n) for(lli (i)=0;(i)<(n);(i)++)
#define FR(i,n) for(lli (i)=(n)-1;(i)>=0;(i)--)
#define FSG(i,a,b) for(lli (i)=(a);(i)<(b);(i)++)
#define FSGR(i,a,b) for(lli (i)=(b)-1;(i)>=(a);(i)--)
#define VAL(n) cout << n << endl;
#define VALD(n) cout << #n << ": " << n << endl;
template<typename T>
int main(){
  string s;
  cin >> s;
  string res = " ";
  if(s == "Sunny"){
    res = "Cloudy";
  }
  else if(s == "Cloudy"){
    res = "Rainy";
  }
  else{
    res = "Sunny";
  }
  cout << res << endl;
  return 0;
}


Compiler output:
a.cc:23:5: error: cannot declare '::main' to be a template
   23 | int main(){
      |     ^~~~
Language: C++

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

int main(){
	string s;
	cin >> s;
	if(s == "Sunny"){
		cout << "Cloudy";
	}
	if(s == "Cloudy"){
		cout << "Rainy";
	}
	if()s == "Rainy"){
		cout << "Sunny";
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: expected primary-expression before ')' token
   17 |         if()s == "Rainy"){
      |            ^
a.cc:17:25: error: expected ';' before ')' token
   17 |         if()s == "Rainy"){
      |                         ^
      |                         ;
a.cc:17:15: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   17 |         if()s == "Rainy"){
      |             ~~^~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

//Robs Code
/***********HEADER***************/
#include <iostream>
#include <bitset>
#include <deque>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <string>
#include <algorithm>
#include <list>
#include <vector>
#include <unordered_set>
#include <unordered_map>
#include <stack>
#include <set>
#include <queue>
#include <map>
/***********MACROS***************/
#define int long long int
#define fri(l,k) for (i=l;i<=k;i++)
#define frj(l,k) for (j=l;j>=k;j--)
#define fij(a,b,l,k) for(i=a;i<=b;i++) for(j=l;j<=k;j++)
#define all(x) x.begin(),x.end()
#define allr(x) x.rbegin(),x.rend()
#define endl "\n"
#define pb push_back
#define _1 first
#define _2 second
#define mxsz 1000000007
#define mxval 1e9 + 7
#define grt [](auto x,auto y){return x>y;}
#define pii pair<int,int>
/*********VARIABLE****************/
using namespace std;
int i,j,n,m,k,l,q,t,a,b,sum[3],tot[3],cnt[3];
/*********FUNCTIONS**************/
int powom(int a,int b) {
    int result = 1;
    while (b > 0) {
        if (b & 1)
            result = result * a;
        a = a * a;
        b >>= 1;
    }
    return result;
}
/***********MAIN**************/
signed main(){
    ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
    stirng s;
    cin>>s;
    if(s == "Sunny"){
        cout<<"Cloudy";
    }
    if(s=="Cloudy"){
        cout<<"Rainy";
    }
    if(s=="Rainy"){
        cout<<"Sunny";
    }
    return 0;
}
//.........

Compiler output:
a.cc: In function 'int main()':
a.cc:51:5: error: 'stirng' was not declared in this scope
   51 |     stirng s;
      |     ^~~~~~
a.cc:52:10: error: 's' was not declared in this scope
   52 |     cin>>s;
      |          ^
Language: C++

S = input()
if S[0] == 'S':print('Cloudy')
elif S[0] == 'C':print('Rainy')
elif S[0] == 'R':print('Sunny')


Compiler output:
a.cc:2:22: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    2 | if S[0] == 'S':print('Cloudy')
      |                      ^~~~~~~~
a.cc:3:24: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    3 | elif S[0] == 'C':print('Rainy')
      |                        ^~~~~~~
a.cc:4:24: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    4 | elif S[0] == 'R':print('Sunny')
      |                        ^~~~~~~
a.cc:1:1: error: 'S' does not name a type
    1 | S = input()
      | ^
Language: Java

import java.util.Scanner;

public class Solution {

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

        if(s.equals("Sunny")){
            System.out.println("Cloudy");
        } else if(s.equals("Cloudy")){
            System.out.println("Rainy");
        } else {
            System.out.println("Sunny");
        }
    }
}

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

#include <bits/stdc++.h>
using namespace std;
using Int = long long int;
template<typename T> void swap(T *t1, T *t2){ T* tmp=t1; t1=t2; t2=tmp;}


int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    string s;
    cin >> s;
    switch(s) {
        case "Sunny":
        cout << "Cloudy" << endl;
        break;
        case "Cloudy":
        cout << "Rainy" << endl;
        break;
        case "Rainy":
        cout << "Sunny" << endl;
        break;
        default:
        break;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: switch quantity not an integer
   12 |     switch(s) {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	string s;cin>>s;
	if (s=="Sunny")cout<<"Cloudy";
	if (s=="Cloudy")cout<<"Rainy";
	if (s=="Rainy")cout<<"Sunny"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:37: error: expected ';' before '}' token
    7 |         if (s=="Rainy")cout<<"Sunny"
      |                                     ^
      |                                     ;
    8 | }
      | ~
Language: C++

#include<iostream>
#include<vector>
#include<String>

using namespace std;

int main() {
	int a, b, c;
	string s;

	cin >> s;
	if (s == "Sunny") {
		cout << "Cloudy";
	}
	else if (s == "Cloudy") {
		cout << "Rainy";
	}
	else if (s == "Rainy") {
		cout << "Sunny";
	}





}

Compiler output:
a.cc:3:9: fatal error: String: No such file or directory
    3 | #include<String>
      |         ^~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for (int i = 0; i < (n); i++)
#define RREP(i, s, n) for (int i = s; i < (n); i++)
#define ALL(a) a.begin(), a.end()
#define RALL(a) a.rbegin(), a.rend()
using namespace std;
using ll = long long;
typedef pair<int, int> pint;
const ll MOD = 1000000007;
const ll INF = MOD * MOD;
const int inf = (1<<29);

int main() {

    string s;
    cin >> s;
    
    if (s[0] == 'S') {
        cout << "Cloudy" << endl;
    } else if (s[0] == 'R') {
        cout << "Sunny" << endl;
    } else {
        cout << Rainy << endl;
        
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:17: error: 'Rainy' was not declared in this scope
   23 |         cout << Rainy << endl;
      |                 ^~~~~
Language: C++

#include<iostream>
#include<vector>
#include<utility>
#include<algorithm>
#include<string>
#include<cstdio>
#include<queue>
#include<functional>
using namespace std;
int main() {
	string s; cin >> s;
	if (s == "Sunny") cout << "Cloudy" << endl;
	else if (s == "Cloudy") cout << "Rainy" << endl;
	else cout << "Sunny" << endl;
	return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: expected '}' at end of input
   15 |         return 0;
      |                  ^
a.cc:10:12: note: to match this '{'
   10 | int main() {
      |            ^
Language: C++

"#include <bits/stdc++.h>
#define int long long
using namespace std;
const int INF = 1LL<<60;
const int MOD = (int)1e9 + 7;

signed main() {
    string s;
    cin >> s;
    if (s == "Sunny") {
        cout << "Cloudy" << "\n";
    }
    else if (s == "Cloudy") {
        cout << "Rainy" << "\n";
    }
    else {
        cout << "Sunny" << "\n";
    }
}"

Compiler output:
a.cc:1:1: warning: missing terminating " character
    1 | "#include <bits/stdc++.h>
      | ^
a.cc:1:1: error: missing terminating " character
    1 | "#include <bits/stdc++.h>
      | ^~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:19:2: warning: missing terminating " character
   19 | }"
      |  ^
a.cc:19:2: error: missing terminating " character
a.cc: In function 'int main()':
a.cc:8:5: error: 'string' was not declared in this scope
    8 |     string s;
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | "#include <bits/stdc++.h>
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> s;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | "#include <bits/stdc++.h>
a.cc:9:12: error: 's' was not declared in this scope
    9 |     cin >> s;
      |            ^
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "Cloudy" << "\n";
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout << "Rainy" << "\n";
      |         ^~~~
a.cc:14:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << "Sunny" << "\n";
      |         ^~~~
a.cc:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main(){
  string s;
  cin >> s;
  if(s == "Sunny"){
    cout << Cloudy << endl;
  }
  else if(s == "Cloudy"){
    cout << "Rainy" <<endl;
  }
  else if(s == "Rainy"){
    cout << "Sunny" << endl;
  }
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'Cloudy' was not declared in this scope
    8 |     cout << Cloudy << endl;
      |             ^~~~~~
Language: Java

import java.util.*;

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

    if (s.equals("Sunny")) {
	  System.out.println("Cloudy");
    } else if (s.equals("Cloudy")) {
      System.out.println("Rainy");
    } else {
      System.out.println("Sunny")
    }
    
  }
}


Compiler output:
Main.java:13: error: ';' expected
      System.out.println("Sunny")
                                 ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
	
	int s; cin>>s;
	if(s == "Sunny") cout<<"Cloudy"<<"\n";
	if(s == "Rainy") cout<<"Sunny"<<"\n";
	if(s == "Cloudy") cout<<"Rainy"<<"\n";
	
	
	
	
	
	
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if(s == "Sunny") cout<<"Cloudy"<<"\n";
      |            ~~^~~~~~~~~~
a.cc:8:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if(s == "Rainy") cout<<"Sunny"<<"\n";
      |            ~~^~~~~~~~~~
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if(s == "Cloudy") cout<<"Rainy"<<"\n";
      |            ~~^~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,n) for(int (i) = 0; (i) < (n); (i)++)

int main(){
    string s;
    cin >> s;
    if(s == "Sunny") cout << "Cloudy" << endl;
    else if(s == "Cloudy") cout << "Rainy" << endl;
    else cout << "Sunny" << endl;v
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:34: error: 'v' was not declared in this scope
   11 |     else cout << "Sunny" << endl;v
      |                                  ^
Language: C++

#include "bits/stdc++.h"

using namespace std;
using LL = long long;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int s;
    cin >> s;
    if (s == "Sunny") cout << "Cloudy\n";
    else if (s == "Cloudy") cout << "Rainy\n";
    else cout << "Sunny\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if (s == "Sunny") cout << "Cloudy\n";
      |         ~~^~~~~~~~~~
a.cc:13:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     else if (s == "Cloudy") cout << "Rainy\n";
      |              ~~^~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i=0; i<(int)(n); i++)
using ll = long long;
using Graph = vector<vector<int>>;
using P pair<int, int>;

int main() {
  string s;
  cin >> s;
  if (s == "Sunny") cout << "Cloudy\n";
  else if (s == "Cloudy") cout << "Rainy\n";
  else cout << "Sunny\n";
  return 0;
}


Compiler output:
a.cc:6:7: error: expected nested-name-specifier before 'P'
    6 | using P pair<int, int>;
      |       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define fs first
#define sc second
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define ALL(A) A.begin(),A.end()
#define RALL(A) A.rbegin(),A.rend()
typedef long long LL;
typedef pair<int,int> P;
const LL mod=1000000007;
const LL LINF=1LL<<60;
const int INF=1<<30;






int main(){
    string s;cin >> s;
    if(s[0]=='S') puts("Cloudy");
    else if(s[o]=='C') puts("Rainy");
    else puts("Sunny");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:15: error: 'o' was not declared in this scope
   24 |     else if(s[o]=='C') puts("Rainy");
      |               ^
Language: C++

#include <bits/stdc++.h>
#define int long long
using namespace std;
const int INF = 1LL<<60;
const int MOD = (int)1e9 + 7;

signed main() {
    string s;
    cin >> s;
    if (s == "Sunny") {
        cout << "Cloudy" << "\n";
    }
    else if (s == "Cloudy") {
        cout << Rainy << "\n";
    }
    else {
        cout << "Sunny" << "\n";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'Rainy' was not declared in this scope
   14 |         cout << Rainy << "\n";
      |                 ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()

int main() {
  string s;
  cin >> s;
  if (s[0] == 'S') {
    cout << "Cloudy" << endl;
  } else if (s[0] == 'C') {
    cout << "Rainy" << endl;
    else {
      cout << "Sunny" << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: expected '}' before 'else'
   14 |     else {
      |     ^~~~
a.cc:12:27: note: to match this '{'
   12 |   } else if (s[0] == 'C') {
      |                           ^
a.cc: At global scope:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
using long long ll;

int main() {
  string s; cin >> s;
  if (s=="Sunny") cout << "Cloudy" << endl;
  if (s=="Cloudy") cout << "Rainy" << endl;
  if (s=="Rainy") cout << "Sunny" << endl;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'long'
    3 | using long long ll;
      |       ^~~~
Language: C++

5
#.###
....#
#....
###.#
#####

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #.
    2 | #.###
      |  ^
a.cc:3:5: error: stray '#' in program
    3 | ....#
      |     ^
a.cc:4:2: error: invalid preprocessing directive #...
    4 | #....
      |  ^~~
a.cc:5:1: error: stray '##' in program
    5 | ###.#
      | ^~
a.cc:5:3: error: stray '#' in program
    5 | ###.#
      |   ^
a.cc:5:5: error: stray '#' in program
    5 | ###.#
      |     ^
a.cc:6:1: error: stray '##' in program
    6 | #####
      | ^~
a.cc:6:3: error: stray '##' in program
    6 | #####
      |   ^~
a.cc:6:5: error: stray '#' in program
    6 | #####
      |     ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 5
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  size_t sz=s.size();
  for(i=0;i<sz;i++)if(((s[i]=='L')&(i^0))||((s[i]=='R')&(i&1))){cout<<"No"<<endl;return 0;}
  cout<<"Yes"<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0;i<sz;i++)if(((s[i]=='L')&(i^0))||((s[i]=='R')&(i&1))){cout<<"No"<<endl;return 0;}
      |       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  size_t sz=s.size();
  for(i=0;i<sz;i++)if(((s[i]=='L')&(i^0))||((s[i]=='R')&(i&1)))cout<<"No"<<endl,return 0;
  cout<<"Yes"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0;i<sz;i++)if(((s[i]=='L')&(i^0))||((s[i]=='R')&(i&1)))cout<<"No"<<endl,return 0;
      |       ^
a.cc:7:81: error: expected primary-expression before 'return'
    7 |   for(i=0;i<sz;i++)if(((s[i]=='L')&(i^0))||((s[i]=='R')&(i&1)))cout<<"No"<<endl,return 0;
      |                                                                                 ^~~~~~
Language: C++

#include<bits/stdc++.h>  
#include<random>  
#define int long long  
#define pp pair<int,int>  
#define ss second  
#define ff first  
#define pb push_back  
#define mod 1000000007  
using namespace std;  
void fastio()  
{    
  
  #ifndef ONLINE_JUDGE                  
  freopen("INPUT.txt","r",stdin);              
  freopen("OUTPUT.txt","w",stdout);              
  #endif    
     ios_base :: sync_with_stdio(false);   
     cin.tie(NULL) ;                             
      cout.tie(NULL);                              
   } 
   
signed main()  {    
        fastio();         
         int t=1;           
          // cin>>t;                
           while(t--)                  
              {                        
                string s,t;                          
                cin>>s;
               for(int i=0;i<n;i++){
                        if((s[i]=='L'&&i%2==0)||(s[i]=='R'&&i&1))
                        {
                        	cout<<"No";
                        	return 0;
                        }
               }
               cout<<"Yes";
                        
             }   
                    
    }     

Compiler output:
a.cc: In function 'int main()':
a.cc:30:30: error: 'n' was not declared in this scope
   30 |                for(int i=0;i<n;i++){
      |                              ^
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){
      if (S[i] == L){
        return 0;
      }
    }
    else{
      if (S[i] == R){
        return 0;
      }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'L' was not declared in this scope
   10 |       if (S[i] == L){
      |                   ^
a.cc:15:19: error: 'R' was not declared in this scope
   15 |       if (S[i] == R){
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
int main(void){
    // Your code here!
 int i,n;
 cin >> s;
 n=s.length();
 for(i=0;i<n;i++)
 {
  if((i%2 && s[i]=='R') || (i%2==0 && s[i]=='L'))
  {
   cout << "No";
   return 0;
  }
 }
 cout << "Yes";
 return 0;
}

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

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

Compiler output:
a.cc:11:70: error: extended character 　 is not valid in an identifier
   11 |   if(i%2==0) {if(s.at(i)=='R' || s.at(i)=='U' || s.at(i)=='D') sw++;}　
      |                                                                      ^
a.cc: In function 'int main()':
a.cc:11:70: error: '\U00003000' was not declared in this scope
   11 |   if(i%2==0) {if(s.at(i)=='R' || s.at(i)=='U' || s.at(i)=='D') sw++;}　
      |                                                                      ^~
Language: C++

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

//type
#define ll long long
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007    //10^9+7:合同式の法
#define MAXR 100000       //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#define F first      //pairの一つ目の要素
#define S second     //pairの二つ目の要素
#define Z class
// OTHER
// xの二乗を返す (関数テンプレート版)
template <typename T>
T square(T x) { return x * x; }
#define chmax(x, y) (x = max(x, y))
#define chmin(x, y) (x = min(x, y))
// loop
#define rep(i, n) for (int i = 0; i < (n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= ll(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= ll(b); i--)
#define FORA(i, I) for (const auto &i : I)

// vector
#define ALL(x) x.begin(), x.end()

// output
#define YES() printf("YES\n")
#define NO() printf("NO\n")
#define isYES(x) printf("%s\n", (x) ? "YES" : "NO")
#define Yes() printf("Yes\n")
#define No() printf("No\n")
#define ln cout << '\n'
template <Z A>
void pr(A a)
{
  cout << a;
  ln;
}
template <Z A, Z B>
void pr(A a, B b)
{
  cout << a << ' ';
  pr(b);
}

int ans = 0;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

int main()
{
  string s;
  cin >> s;
  rep(i, s.length())
  {
    if (i % 2 == 0 && s[i] != 'U' && s[i] != 'D' && s[i] != 'R')
    {
      No();

      return 0;
    }

    if (i % 2 != 0 && s[i] != 'U' && s[i] != 'L' && s[i] != 'D')
    {
      No();

      return 0;
    }
  }
  Yes();
}


Compiler output:
a.cc:75:6: error: stray '\16' in program
   75 |     }<U+000E>
      |      ^~~~~~~~
Language: C++

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

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

Compiler output:
a.cc:9:3: error: extended character 　 is not valid in an identifier
    9 |   　for(int i=0; i<S.size(); i++){
      |   ^
a.cc: In function 'int main()':
a.cc:9:9: error: expected primary-expression before 'int'
    9 |   　for(int i=0; i<S.size(); i++){
      |         ^~~
a.cc:9:18: error: 'i' was not declared in this scope
    9 |   　for(int i=0; i<S.size(); i++){
      |                  ^
a.cc:16:17: error: break statement not within loop or switch
   16 |                 break;
      |                 ^~~~~
a.cc: At global scope:
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: Java

import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Scanner;

public class K {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String word = input.next();
        for (int i = 0; i < word.length(); i++) {
            if ((i + 1) % 2 == 0) {
                if (word.charAt(i) == 'R') {
                    System.out.println("No");
                    return;
                }
            } else {
                if (word.charAt(i) == 'L') {
                    System.out.println("No");
                    return;
                }
            }
        }
        System.out.println("Yes");
    }
}


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

/*
 * a.cc:
 */

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<numeric>
#include<utility>
#include<complex>
#include<functional>
#include<iomanip>

using namespace std;

/* constant */

/* typedef */

/* global variables */

/* subroutines */

/* main */

int main(){
  string S;
  cin>>S;

  int M;
  M=S.size();

  for (int i=0;i<M;i++){
    if(i%2==1 && S.at(i)=="L"){
    cout<<"No"<<endl;
    break;
    }

    if(i%2==0 && S.at(i)=="R"){
      cout<<"No"<<endl;
      break;
    }



  }

  cout<<"Yes"<<endl;
  return 0;









}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   45 |     if(i%2==1 && S.at(i)=="L"){
      |                  ~~~~~~~^~~~~
a.cc:50:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   50 |     if(i%2==0 && S.at(i)=="R"){
      |                  ~~~~~~~^~~~~
Language: C++

/*
 * a.cc:
 */

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<numeric>
#include<utility>
#include<complex>
#include<functional>
#include<iomanip>

using namespace std;

/* constant */

/* typedef */

/* global variables */

/* subroutines */

/* main */

int main(){
  string S,;
  cin>>S;

  int M;
  M=S.size();

  for (int i=0;i<M;i++){
    if(i%2==1 && S.at(i)=="L"){
    cout<<"No"<<endl;
    break;
    }

    if(i%2==0 && S.at(i)=="R"){
      cout<<"No"<<endl;
      break;
    }



  }

  cout<<"Yes"<<endl;
  return 0;









}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:12: error: expected unqualified-id before ';' token
   38 |   string S,;
      |            ^
a.cc:45:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   45 |     if(i%2==1 && S.at(i)=="L"){
      |                  ~~~~~~~^~~~~
a.cc:50:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   50 |     if(i%2==0 && S.at(i)=="R"){
      |                  ~~~~~~~^~~~~
Language: C++

/*
 * a.cc:
 */

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<numeric>
#include<utility>
#include<complex>
#include<functional>
#include<iomanip>

using namespace std;

/* constant */

/* typedef */

/* global variables */

/* subroutines */

/* main */

int main(){
  string S,M;
  cin>>S;

  M=S.size()

  for (int i=0;i<M;i++){
    if(i%2==1 && S.at(i)=="L"){
    cout<<"No"<<endl;
    break;
    }

    if(i%2==0 && S.at(i)=="R"){
      cout<<"No"<<endl;
      break;
    }



  }

  cout<<"Yes"<<endl;
  return 0;









}


Compiler output:
a.cc: In function 'int main()':
a.cc:41:13: error: expected ';' before 'for'
   41 |   M=S.size()
      |             ^
      |             ;
   42 | 
   43 |   for (int i=0;i<M;i++){
      |   ~~~        
a.cc:43:16: error: 'i' was not declared in this scope
   43 |   for (int i=0;i<M;i++){
      |                ^
Language: C++

/*
 * a.cc:
 */

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<numeric>
#include<utility>
#include<complex>
#include<functional>
#include<iomanip>

using namespace std;

/* constant */

/* typedef */

/* global variables */

/* subroutines */

/* main */

int main(){
  string S;
  cin>>S;

  for (int i=0;i<S.size();i++){
    if(i%2==1 && S.at(i)=="L"){
    cout<<"No"<<endl;
    break;
    }

    if(i%2==0 && S.at(i)=="R"){
      cout<<"No"<<endl;
      break;
    }



  }

  cout<<"Yes"<<endl;
  return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   42 |     if(i%2==1 && S.at(i)=="L"){
      |                  ~~~~~~~^~~~~
a.cc:47:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   47 |     if(i%2==0 && S.at(i)=="R"){
      |                  ~~~~~~~^~~~~