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

#include<stdio.h>
int main(){
	char a[]="Sunny";
	char b[]="Cloudy";
	char c[]="Rainy";
	char m[7];
	scanf("%s",m);
	char *p,*q,*r,*s;
	p=&a;
	q=&b;
	r=&c;
	s=&m;
	if(*s==*p)
	printf("Cloudy");
	else if(*s==*q)
	printf("Rainy");
	else if(*s==*r)
	printf("Sunny");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: cannot convert 'char (*)[6]' to 'char*' in assignment
    9 |         p=&a;
      |           ^~
      |           |
      |           char (*)[6]
a.cc:10:11: error: cannot convert 'char (*)[7]' to 'char*' in assignment
   10 |         q=&b;
      |           ^~
      |           |
      |           char (*)[7]
a.cc:11:11: error: cannot convert 'char (*)[6]' to 'char*' in assignment
   11 |         r=&c;
      |           ^~
      |           |
      |           char (*)[6]
a.cc:12:11: error: cannot convert 'char (*)[7]' to 'char*' in assignment
   12 |         s=&m;
      |           ^~
      |           |
      |           char (*)[7]
Language: Java

import java.util.Scanner;
class Main
{
	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:9: error: cannot find symbol
		if(s.equals(Sunny)){
		            ^
  symbol:   variable Sunny
  location: class Main
Main.java:12: error: cannot find symbol
		else if(s.equals(Cloudy)){
		                 ^
  symbol:   variable Cloudy
  location: class Main
2 errors
Language: Java

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

Compiler output:
Main.java:9: error: cannot find symbol
		if(s==Sunny){
		      ^
  symbol:   variable Sunny
  location: class Main
Main.java:12: error: cannot find symbol
		else if(s==Cloudy){
		           ^
  symbol:   variable Cloudy
  location: class Main
2 errors
Language: Java

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

Compiler output:
Main.java:7: error: cannot find symbol
		string s=sc.next();
		^
  symbol:   class string
  location: class Main
Main.java:9: error: cannot find symbol
		if(s==Sunny){
		      ^
  symbol:   variable Sunny
  location: class Main
Main.java:12: error: cannot find symbol
		else if(s==Cloudy){
		           ^
  symbol:   variable Cloudy
  location: class Main
3 errors
Language: Java

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

Compiler output:
Main.java:7: error: ';' expected
		string s=sc next();
		           ^
1 error
Language: Java

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

      String S  = sc.nextLine();

      if(S =="Sunny"){
        System.out.println("Cloudy");
      }
      if(S=="Cloudy"){
        System.out.println("Rainy");
      }
      if(S=="Rainy"){
        System.out.println("Sunny");
      }
                   }

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 's1' was not declared in this scope; did you mean 's'?
    8 |   else if(s1="Cloudy") ans="Rainy";
      |           ^~
      |           s
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <vector>
#include <map>
#include <queue> 
#include <stack>

using namespace std;
typedef long long ll;
#define rep(i, s, e) for (int(i) = (s); (i) <= (e); ++(i))
#define all(x) x.begin(),x.end()


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


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

#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const long long INF = 9999999999999999;
using ll = long long;
int main(){
  string s;
  cin>>s;
  if(s.at(i) == 'S'){
    cout << "Cloudy" << endl;
  }
  else if(s.at(i) == 'C'){
    cout << "Rainy" << endl;
  }
  else{
    cout << "Sunny" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'i' was not declared in this scope
    9 |   if(s.at(i) == 'S'){
      |           ^
Language: Java

import jdk.internal.util.xml.impl.Input;

import java.util.Scanner;

public class captain {
    public static void main(String[] args) {
        String str = null;
        Scanner cin = new Scanner(System.in);
        str = cin.next();
        if (str.equals("Sunny"))
            System.out.println("Cloudy");
        else if (str.equals("Cloudy"))
            System.out.println("Rainy");
        else if (str.equals("Rainy")) {
            System.out.println("Sunny");
        }
    }
}

Compiler output:
Main.java:5: error: class captain is public, should be declared in a file named captain.java
public class captain {
       ^
Main.java:1: error: package jdk.internal.util.xml.impl is not visible
import jdk.internal.util.xml.impl.Input;
                            ^
  (package jdk.internal.util.xml.impl is declared in module java.base, which does not export it to the unnamed module)
2 errors
Language: C++

s=input()
if s=='Sunny':
    print('Cloudy')
elif s=='Cloudy':
    print('Rainy')
else:
    print('Sunny')

Compiler output:
a.cc:2:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    2 | if s=='Sunny':
      |       ^~~~~~~
a.cc:3:11: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    3 |     print('Cloudy')
      |           ^~~~~~~~
a.cc:4:9: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    4 | elif s=='Cloudy':
      |         ^~~~~~~~
a.cc:5:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    5 |     print('Rainy')
      |           ^~~~~~~
a.cc:7:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    7 |     print('Sunny')
      |           ^~~~~~~
a.cc:1:1: error: 's' does not name a type
    1 | s=input()
      | ^
Language: C

#include<stdio.h>
 
int main(){
  char str[];
  scanf("%s",str);
  if(str == 'Sunny')
    printf("Cloudy");
  
  else if(str == 'Cloudy')
    printf("Rainy");
  
  else
    printf("Sunny");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:8: error: array size missing in 'str'
    4 |   char str[];
      |        ^~~
main.c:6:13: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    6 |   if(str == 'Sunny')
      |             ^~~~~~~
main.c:6:10: warning: comparison between pointer and integer
    6 |   if(str == 'Sunny')
      |          ^~
main.c:9:18: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    9 |   else if(str == 'Cloudy')
      |                  ^~~~~~~~
main.c:9:15: warning: comparison between pointer and integer
    9 |   else if(str == 'Cloudy')
      |               ^~
Language: C

#include<stdio.h>
 
int main(){
  char str;
  scanf("%s",str);
  if(str==Sunny)
    printf("Cloudy");
  
  else if(str==Cloudy)
    printf("Rainy");
  
  else
    printf("Sunny");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:11: error: 'Sunny' undeclared (first use in this function)
    6 |   if(str==Sunny)
      |           ^~~~~
main.c:6:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:16: error: 'Cloudy' undeclared (first use in this function)
    9 |   else if(str==Cloudy)
      |                ^~~~~~
Language: C

#include<stdio.h>

int main(){
  int n;
  scanf("%d",&n);
  
  if(n=Sunny)
    printf("Cloudy");
  
  else if(n=Cloudy)
    printf("Rainy");
  
  else
    printf("Sunny");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:8: error: 'Sunny' undeclared (first use in this function)
    7 |   if(n=Sunny)
      |        ^~~~~
main.c:7:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:13: error: 'Cloudy' undeclared (first use in this function)
   10 |   else if(n=Cloudy)
      |             ^~~~~~
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    char[] b = a.toCharArray();
    String c = "Yes";
    for(i = 0;i < b.length;i++){
      if(i % 2 == 0 && b[i] != 'L' || b[i] != 'U' ||  b[i] != 'D' ){
        c = "No"; 
      }else if(i % 2 == 1 && b[i] != 'R' || b[i] != 'U' ||  b[i] != 'D' ){
        c = "No"; 
      }
    }
      System.out.println(c);
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    for(i = 0;i < b.length;i++){
        ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
    for(i = 0;i < b.length;i++){
              ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
    for(i = 0;i < b.length;i++){
                           ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
      if(i % 2 == 0 && b[i] != 'L' || b[i] != 'U' ||  b[i] != 'D' ){
         ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
      if(i % 2 == 0 && b[i] != 'L' || b[i] != 'U' ||  b[i] != 'D' ){
                         ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
      if(i % 2 == 0 && b[i] != 'L' || b[i] != 'U' ||  b[i] != 'D' ){
                                        ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
      if(i % 2 == 0 && b[i] != 'L' || b[i] != 'U' ||  b[i] != 'D' ){
                                                        ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
      }else if(i % 2 == 1 && b[i] != 'R' || b[i] != 'U' ||  b[i] != 'D' ){
               ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
      }else if(i % 2 == 1 && b[i] != 'R' || b[i] != 'U' ||  b[i] != 'D' ){
                               ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
      }else if(i % 2 == 1 && b[i] != 'R' || b[i] != 'U' ||  b[i] != 'D' ){
                                              ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
      }else if(i % 2 == 1 && b[i] != 'R' || b[i] != 'U' ||  b[i] != 'D' ){
                                                              ^
  symbol:   variable i
  location: class Main
11 errors
Language: Java

public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    char[] b = a.toCharArray();
    String c = "Yes";
    for(i = 0;i < b.length;i++){
      if(i % 2 == 0 && b[i] != 'L' || b[i] != 'U' ||  b[i] != 'D' ){
        c = "No"; 
      }else if(i % 2 == 1 && b[i] != 'R' || b[i] != 'U' ||  b[i] != 'D' ){
        c = "No"; 
      }
    }
      System.out.println(c);
  }
}

Compiler output:
Main.java:3: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
                     ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
    for(i = 0;i < b.length;i++){
        ^
  symbol:   variable i
  location: class Main
Main.java:7: error: cannot find symbol
    for(i = 0;i < b.length;i++){
              ^
  symbol:   variable i
  location: class Main
Main.java:7: error: cannot find symbol
    for(i = 0;i < b.length;i++){
                           ^
  symbol:   variable i
  location: class Main
Main.java:8: error: cannot find symbol
      if(i % 2 == 0 && b[i] != 'L' || b[i] != 'U' ||  b[i] != 'D' ){
         ^
  symbol:   variable i
  location: class Main
Main.java:8: error: cannot find symbol
      if(i % 2 == 0 && b[i] != 'L' || b[i] != 'U' ||  b[i] != 'D' ){
                         ^
  symbol:   variable i
  location: class Main
Main.java:8: error: cannot find symbol
      if(i % 2 == 0 && b[i] != 'L' || b[i] != 'U' ||  b[i] != 'D' ){
                                        ^
  symbol:   variable i
  location: class Main
Main.java:8: error: cannot find symbol
      if(i % 2 == 0 && b[i] != 'L' || b[i] != 'U' ||  b[i] != 'D' ){
                                                        ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
      }else if(i % 2 == 1 && b[i] != 'R' || b[i] != 'U' ||  b[i] != 'D' ){
               ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
      }else if(i % 2 == 1 && b[i] != 'R' || b[i] != 'U' ||  b[i] != 'D' ){
                               ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
      }else if(i % 2 == 1 && b[i] != 'R' || b[i] != 'U' ||  b[i] != 'D' ){
                                              ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
      }else if(i % 2 == 1 && b[i] != 'R' || b[i] != 'U' ||  b[i] != 'D' ){
                                                              ^
  symbol:   variable i
  location: class Main
13 errors
Language: Java

public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    char[] b = a.toCharArray();
    String c = "Yes";
    for(i = 0;i < b.length;i++){
      if(i % 2 == 0 && b[i] != 'L' || b[i] != 'U' ||  b[i] != 'D' ){
        c = "No"; 
      }else if(i % 2 == 1 && b[i] != 'R' || b[i] != 'U' ||  b[i] != 'D' ){
        c = "No"; 
    }
      System.out.println(c);
  }
}

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

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

Compiler output:
Main.java:5: error: cannot find symbol
    String = a = sc.next();
    ^
  symbol:   variable String
  location: class Main
Main.java:5: error: cannot find symbol
    String = a = sc.next();
             ^
  symbol:   variable a
  location: class Main
Main.java:6: error: cannot find symbol
    if(a == "Sunny"){
       ^
  symbol:   variable a
  location: class Main
Main.java:8: error: cannot find symbol
    }else if(a == "Cloudy"){
             ^
  symbol:   variable a
  location: class Main
Main.java:10: error: cannot find symbol
    }else if(a == "Rainy"){
             ^
  symbol:   variable a
  location: class Main
5 errors
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 
    cout <<"Sunny" <<endl;
}

Compiler output:
a.cc:1:9: fatal error: bits/stdc++/h: No such file or directory
    1 | #include<bits/stdc++/h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
	string s;
	cin >> s;
	bool ret = true;
	for (int i = 0; i < s.size; i++) {
		if (i % 2 == 0 && s[i] == 'L')ret = false;
		if (i % 2 == 1 && s[i] == 'R')ret = false;
	}
	cout << (ret ? "Yes" : "No") << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    9 |         for (int i = 0; i < s.size; i++) {
      |                             ~~^~~~
      |                                   ()
Language: C++



#include <iostream>
#include <string>
using namespace std;
int main()
{
	string s;
	cin >> s;
	bool ret = true;
	for (int i = 0; i < s.size; i++) {
		if (i % 2 == 0 && s[i] == 'L')ret = false;
		if (i % 2 == 1 && s[i] == 'R')ret = false;
	}
	cout << (ret ? "Yes" : "No") << endl;
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   11 |         for (int i = 0; i < s.size; i++) {
      |                             ~~^~~~
      |                                   ()
Language: C++

input = gets.chomp
lis = ["Sunny", "Cloudy", "Rainy"]

if input == lis[0]
    puts lis[1]
elsif input == lis[1]
    puts lis[2]
else
    puts lis[0]
end

Compiler output:
a.cc:1:1: error: 'input' does not name a type; did you mean 'int'?
    1 | input = gets.chomp
      | ^~~~~
      | int
Language: C++

#include <stdio.h>
#include <string>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> s;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <string>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:9:10: error: switch quantity not an integer
    9 |   switch(s) {
      |          ^
a.cc:11:7: error: 'cout' was not declared in this scope
   11 |       cout << "Cloudy" << endl;
      |       ^~~~
a.cc:11:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:27: error: 'endl' was not declared in this scope
   11 |       cout << "Cloudy" << endl;
      |                           ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <string>
  +++ |+#include <ostream>
    3 | using namespace std;
Language: C++

#include <bits/stdc++.h>

using namespace std;

string N;

string res[] = {"Sunny", "Cloudy", "Rainy"};

int select = 0;

int main () {
	
  cin >> N;
  
  for (int i = 0; i < 3; i++) {
  
  	if (res[i] == N) {select = i; }
    
  }
  
  select = (select+1)%3;
  
  cout << res[select] << "\n";
  
  return 0;
  
}

Compiler output:
a.cc:9:5: error: 'int select' redeclared as different kind of entity
    9 | int select = 0;
      |     ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
                 from /usr/include/stdlib.h:514,
                 from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/sys/select.h:102:12: note: previous declaration 'int select(int, fd_set*, fd_set*, fd_set*, timeval*)'
  102 | extern int select (int __nfds, fd_set *__restrict __readfds,
      |            ^~~~~~
a.cc: In function 'int main()':
a.cc:17:34: error: assignment of function 'int select(int, fd_set*, fd_set*, fd_set*, timeval*)'
   17 |         if (res[i] == N) {select = i; }
      |                           ~~~~~~~^~~
a.cc:21:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   21 |   select = (select+1)%3;
      |             ~~~~~~^~
a.cc:21:22: error: invalid operands of types 'int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)' and 'int' to binary 'operator%'
   21 |   select = (select+1)%3;
      |            ~~~~~~~~~~^~
      |                   |   |
      |                   |   int
      |                   int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)
a.cc:23:14: error: invalid types 'std::string [3] {aka std::__cxx11::basic_string<char> [3]}[int(int, fd_set*, fd_set*, fd_set*, timeval*)]' for array subscript
   23 |   cout << res[select] << "\n";
      |              ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

string N;

string res[] = {"Sunny", "Cloudy", "Rainy"};

int select = 0;

int main () {
	
  cin >> N;
  
  for (int i = 0; i < 3; i++) {
  
  	if (res[i] == N) select = i; 
    
  }
  
  select = (select+1)%3;
  
  cout << res[select] << "\n";
  
  return 0;
  
}

Compiler output:
a.cc:9:5: error: 'int select' redeclared as different kind of entity
    9 | int select = 0;
      |     ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179,
                 from /usr/include/stdlib.h:514,
                 from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/sys/select.h:102:12: note: previous declaration 'int select(int, fd_set*, fd_set*, fd_set*, timeval*)'
  102 | extern int select (int __nfds, fd_set *__restrict __readfds,
      |            ^~~~~~
a.cc: In function 'int main()':
a.cc:17:33: error: assignment of function 'int select(int, fd_set*, fd_set*, fd_set*, timeval*)'
   17 |         if (res[i] == N) select = i;
      |                          ~~~~~~~^~~
a.cc:21:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   21 |   select = (select+1)%3;
      |             ~~~~~~^~
a.cc:21:22: error: invalid operands of types 'int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)' and 'int' to binary 'operator%'
   21 |   select = (select+1)%3;
      |            ~~~~~~~~~~^~
      |                   |   |
      |                   |   int
      |                   int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)
a.cc:23:14: error: invalid types 'std::string [3] {aka std::__cxx11::basic_string<char> [3]}[int(int, fd_set*, fd_set*, fd_set*, timeval*)]' for array subscript
   23 |   cout << res[select] << "\n";
      |              ^
Language: C++

#include <bits/stc++.h>

using namespace std;

string N, ans;

string res = ["Sunny", "Cloudy", "Rainy"]

int select;

int main () {
	
  cin >> N;
  
  for (int i = 0; i < 3; i++) {
  
  	if (res[i] == N) select = i; 
    
  }
  
  i = (i+1)%3;
  
  cout << res[i] << "\n";
  
  return 0;
  
}

Compiler output:
a.cc:1:10: fatal error: bits/stc++.h: No such file or directory
    1 | #include <bits/stc++.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

arr = {'Sunny':'Cloudy', 'Cloudy':'Rainy', 'Rainy':'Sunny'}
print(arr[input()])


Compiler output:
a.cc:1:8: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    1 | arr = {'Sunny':'Cloudy', 'Cloudy':'Rainy', 'Rainy':'Sunny'}
      |        ^~~~~~~
a.cc:1:16: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    1 | arr = {'Sunny':'Cloudy', 'Cloudy':'Rainy', 'Rainy':'Sunny'}
      |                ^~~~~~~~
a.cc:1:26: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    1 | arr = {'Sunny':'Cloudy', 'Cloudy':'Rainy', 'Rainy':'Sunny'}
      |                          ^~~~~~~~
a.cc:1:35: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    1 | arr = {'Sunny':'Cloudy', 'Cloudy':'Rainy', 'Rainy':'Sunny'}
      |                                   ^~~~~~~
a.cc:1:44: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    1 | arr = {'Sunny':'Cloudy', 'Cloudy':'Rainy', 'Rainy':'Sunny'}
      |                                            ^~~~~~~
a.cc:1:52: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    1 | arr = {'Sunny':'Cloudy', 'Cloudy':'Rainy', 'Rainy':'Sunny'}
      |                                                    ^~~~~~~
a.cc:1:1: error: 'arr' does not name a type
    1 | arr = {'Sunny':'Cloudy', 'Cloudy':'Rainy', 'Rainy':'Sunny'}
      | ^~~
a.cc:2:6: error: expected constructor, destructor, or type conversion before '(' token
    2 | print(arr[input()])
      |      ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if(s[0] == "S"){
      |            ~~~~~^~~~~~
Language: C

#include<stdio.h>
int main() {
	char w[10];
	char *x;
	x = &w[0];
	scanf_s("%s",x);
	if (x = "Rainy") printf("Sunny");
	else if (x = "Sunny") printf("Cloudy");
	else if (x = "Cloudy") printf("Rainy");
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%s",x);
      |         ^~~~~~~
      |         scanf
Language: C

#include<stdio.h>
int main() {
	char w[10];
	char *x;
	x = &w[0];
	scanf_s("%s",x,10);
	if (x = "Rainy") printf("Sunny");
	else if (x = "Sunny") printf("Cloudy");
	else if (x = "Cloudy") printf("Rainy");
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%s",x,10);
      |         ^~~~~~~
      |         scanf
Language: C

#include<stdio.h>
int main() {
	char* a[1] = "Sunny";
	char* a[2] = "Cloudy";
	char* a[3] = "Rainy";
	char w[10];
	char *x;
	x = &w[0];
	scanf("%s",x);
	if (x = "Rainy") printf("Sunny");
	else if (x = "Sunny") printf("Cloudy");
	else if (x = "Cloudy") printf("Rainy");
	else printf("error!");
}

Compiler output:
main.c: In function 'main':
main.c:3:22: error: invalid initializer
    3 |         char* a[1] = "Sunny";
      |                      ^~~~~~~
main.c:4:15: error: conflicting types for 'a'; have 'char *[2]'
    4 |         char* a[2] = "Cloudy";
      |               ^
main.c:3:15: note: previous definition of 'a' with type 'char *[1]'
    3 |         char* a[1] = "Sunny";
      |               ^
main.c:4:22: error: invalid initializer
    4 |         char* a[2] = "Cloudy";
      |                      ^~~~~~~~
main.c:5:15: error: conflicting types for 'a'; have 'char *[3]'
    5 |         char* a[3] = "Rainy";
      |               ^
main.c:4:15: note: previous definition of 'a' with type 'char *[2]'
    4 |         char* a[2] = "Cloudy";
      |               ^
main.c:5:22: error: invalid initializer
    5 |         char* a[3] = "Rainy";
      |                      ^~~~~~~
Language: C

#include<stdio.h>
int main (){
	char weth[7];
	scanf("%s",&weth);
	if(weth == "Sunny"){
		printf("Cloudy\n");
	}else if(weth == "Cloudy"){
		printf("Rainy\n");
	}else　if(weth == "Rainy"){
		printf("Sunny\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:14: error: stray '\343' in program
    9 |         }else<U+3000>if(weth == "Rainy"){
      |              ^~~~~~~~
Language: C++

///not today

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

#define SZ(x) (int)(x).size()
#define pb push_back
#define ll long long
#define xmax(x, y) (x) = max((x), (y))
#define xmin(x, y) (x) = min((x), (y))
#define F first
#define S second
#define pii pair<int, int>
#define pll pair<long long, long long>
#define int long long
#define pipii pair< int, pair<int, int> >
#define plpll pair< ll, pair<ll, ll> >

using namespace std;
vector <int> aj[maxn];

int32_t main(){
      string s;
      cin >>s;
      if(s == "Sunny")
            cout <<"Cloudy";
      else if(s == "Cloudy")
            cout <<"Rainy";
      else
            cout <<"Sunny";
      return false;
}


Compiler output:
a.cc:20:17: error: 'maxn' was not declared in this scope
   20 | vector <int> aj[maxn];
      |                 ^~~~
Language: C

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

int main(void){
  char wether[7];
  char cycle = {
    "Sunny",
    "Cloudy",
    "Rainy"
  };
  int a;
  scanf("%s", wether);
  if(strcmp(&cycle[0], "Sunny") == 0) a = 0;
  else if(strcmp(&cycle[1], "Cloudy") == 0) a = 1;
  else a = 2;
  printf("%s\n", cycle[a]);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:5: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    7 |     "Sunny",
      |     ^~~~~~~
main.c:7:5: note: (near initialization for 'cycle')
main.c:8:5: warning: excess elements in scalar initializer
    8 |     "Cloudy",
      |     ^~~~~~~~
main.c:8:5: note: (near initialization for 'cycle')
main.c:9:5: warning: excess elements in scalar initializer
    9 |     "Rainy"
      |     ^~~~~~~
main.c:9:5: note: (near initialization for 'cycle')
main.c:13:19: error: subscripted value is neither array nor pointer nor vector
   13 |   if(strcmp(&cycle[0], "Sunny") == 0) a = 0;
      |                   ^
main.c:14:24: error: subscripted value is neither array nor pointer nor vector
   14 |   else if(strcmp(&cycle[1], "Cloudy") == 0) a = 1;
      |                        ^
main.c:16:23: error: subscripted value is neither array nor pointer nor vector
   16 |   printf("%s\n", cycle[a]);
      |                       ^
Language: C

#include<stdio.h>
#include<string.h>
typedef enum weth{
  Sunny,
  Cloudy,
  Rainy
}Weth;
Weth Return(char *);

int main(void){
  char wether[7];
  char cycle = {
    "Sunny",
    "Cloudy",
    "Rainy"
  };
  scanf("%s", wether);
  printf("%s\n", cycle[Weth(wether)]);
  return 0;
}

Weth Return(char *wether){
  if(strcmp(wether, "Sunny") == 0) return Sunny;
  else if(strcmp(wether, "Cloudy") == 0) return Cloudy;
  else return Rainy;
}

Compiler output:
main.c: In function 'main':
main.c:13:5: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   13 |     "Sunny",
      |     ^~~~~~~
main.c:13:5: note: (near initialization for 'cycle')
main.c:14:5: warning: excess elements in scalar initializer
   14 |     "Cloudy",
      |     ^~~~~~~~
main.c:14:5: note: (near initialization for 'cycle')
main.c:15:5: warning: excess elements in scalar initializer
   15 |     "Rainy"
      |     ^~~~~~~
main.c:15:5: note: (near initialization for 'cycle')
main.c:18:24: error: expected expression before 'Weth'
   18 |   printf("%s\n", cycle[Weth(wether)]);
      |                        ^~~~
Language: C++

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

int main(){
  string 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:7:9: error: 'Sunny' was not declared in this scope
    7 |   if(s==Sunny)
      |         ^~~~~
a.cc:9:14: error: 'Cloudy' was not declared in this scope
    9 |   else if(s==Cloudy)
      |              ^~~~~~
Language: C++

#inlude <stdio.h>

int main(void)
{
	char N;
	char a = 'Sunny';
	char b = 'Cloudy';
	char c = 'Rainy';
	scanf("%c",&N);
	if(N == a){
		scanf("%c",&b);
	}
	if(N == b){
		scanf("%c",&c);
	}
	if(N == c){
		scanf("%c",&a);
	}
	
	return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude <stdio.h>
      |  ^~~~~~
      |  include
a.cc:6:18: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    6 |         char a = 'Sunny';
      |                  ^~~~~~~
a.cc:7:18: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    7 |         char b = 'Cloudy';
      |                  ^~~~~~~~
a.cc:8:18: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    8 |         char c = 'Rainy';
      |                  ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:18: warning: overflow in conversion from 'int' to 'char' changes value from '1970171513' to '121' [-Woverflow]
    6 |         char a = 'Sunny';
      |                  ^~~~~~~
a.cc:7:18: warning: overflow in conversion from 'int' to 'char' changes value from '1869964409' to '121' [-Woverflow]
    7 |         char b = 'Cloudy';
      |                  ^~~~~~~~
a.cc:8:18: warning: overflow in conversion from 'int' to 'char' changes value from '1634299513' to '121' [-Woverflow]
    8 |         char c = 'Rainy';
      |                  ^~~~~~~
a.cc:9:9: error: 'scanf' was not declared in this scope
    9 |         scanf("%c",&N);
      |         ^~~~~
Language: C

#include<stdio.h>
int main(){
  char s[10];
  scanf("%s",&s);
  
  if(s='Sunny') printf("Cloudy");
  else if(s='Cloudy') printf("Rainy");
  else (s='Rainy') printf("Sunny");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:8: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    6 |   if(s='Sunny') printf("Cloudy");
      |        ^~~~~~~
main.c:6:7: error: assignment to expression with array type
    6 |   if(s='Sunny') printf("Cloudy");
      |       ^
main.c:7:13: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    7 |   else if(s='Cloudy') printf("Rainy");
      |             ^~~~~~~~
main.c:7:12: error: assignment to expression with array type
    7 |   else if(s='Cloudy') printf("Rainy");
      |            ^
main.c:8:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    8 |   else (s='Rainy') printf("Sunny");
      |           ^~~~~~~
main.c:8:10: error: assignment to expression with array type
    8 |   else (s='Rainy') printf("Sunny");
      |          ^
main.c:8:19: error: expected ';' before 'printf'
    8 |   else (s='Rainy') printf("Sunny");
      |                   ^~~~~~~
      |                   ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:36: error: expected ';' before 'else'
    6 |    if(s[0] == 'S') cout << "Cloudy"
      |                                    ^
      |                                    ;
    7 |    else if(s[0] == 'C') cout << "Rainy"
      |    ~~~~
Language: C++


#include <iostream>
#include <strinng>
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;
  }

 rerturn 0;
}

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

#include <bits/stdc++.h>
#define st first
#define nd second
#define mp make_pair
#define pb push_back
#define sol (k+k)
#define sag (k+k+1)
#define orta (bas + (son-bas)/2)
#define coc g[node][i]
#define mod 1000000007
#define inf 1e18
#define N 1000005

using namespace std;
 
typedef long long ll;

string s;

int main()
{
	cin >> s;

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

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:32: error: expected ';' before '}' token
   30 |                 cout << "Sunny"
      |                                ^
      |                                ;
   31 |         }
      |         ~
Language: C++

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

int main() {
    string S;
    cin >> S;
    if(S[0] == 'S') printf("Cloudy");
    else if(S[0] =='R') printf("Sunny");
    else printf('Rainy');
    return 0;
}

Compiler output:
a.cc:9:17: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    9 |     else printf('Rainy');
      |                 ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:17: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    9 |     else printf('Rainy');
      |                 ^~~~~~~
      |                 |
      |                 int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 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/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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

int main() {
    string S;
    cin >> S;
    if(S[0] == "S") printf("Cloudy");
    else if(S[0] =="R") printf("Sunny");
    else printf("Rainy");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(S[0] == "S") printf("Cloudy");
a.cc:8:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     else if(S[0] =="R") printf("Sunny");
Language: C++

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

int main() {
    strings S;
    cin >> S;
    if(S[0] == "S") printf("Cloudy");
    else if(S[0] =="R") printf("Sunny");
    else printf("Rainy");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'strings' was not declared in this scope; did you mean 'stdin'?
    5 |     strings S;
      |     ^~~~~~~
      |     stdin
a.cc:6:12: error: 'S' was not declared in this scope
    6 |     cin >> S;
      |            ^
Language: C++

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

int main() {
    char* S;
    cin >> S;
    if(S[1] == "S") printf("Cloudy");
    else if(S[1] =="R") printf("Sunny");
    else printf("Rainy");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(S[1] == "S") printf("Cloudy");
      |        ~~~~~^~~~~~
a.cc:8:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     else if(S[1] =="R") printf("Sunny");
      |             ~~~~~^~~~~
Language: C++

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


Compiler output:
a.cc:2:1: error: 'suing' does not name a type
    2 | suing namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:5: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:6:3: 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:8: error: 's' was not declared in this scope
    6 |   cin>>s;
      |        ^
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     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:15:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |    cout<<"Sunny";
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |     cout<<"Cloudy";
      |     ^~~~
      |     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>
suing namespace std;
int main()
{
  string s;
  cin>>s;
  if(s=="Sunny")
    cout<<"Cloudy";
  else if(s=="Cloudy")
  {
    cout<<"Rainy";
  }
  else
  {
    cout<<"Cloudy";
  }
  return 0;
}

Compiler output:
a.cc:2:1: error: 'suing' does not name a type
    2 | suing namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:5: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:6:3: 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:8: error: 's' was not declared in this scope
    6 |   cin>>s;
      |        ^
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     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:15:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     cout<<"Cloudy";
      |     ^~~~
      |     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>
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;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: expected primary-expression before ',' token
   11 |     cout<<"Rainy"<,endl;
      |                   ^
Language: C++

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

int main() {
  std::string S;
  cin >> S;
  bool retbool = true;
  for (ll i = 0; i < S.size(); ++i) {
    if (i%2==0) retbool = (S[i] == "R") ? false : true;
    else retbool = (S[i] == "L") ? false : true;
    
    if (retbool == false) break;
  }
  cout << (retbool) ? "Yes" : "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (i%2==0) retbool = (S[i] == "R") ? false : true;
a.cc:11:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     else retbool = (S[i] == "L") ? false : true;
a.cc:15:36: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 |   cout << (retbool) ? "Yes" : "No" << endl;
      |                               ~~~~~^~~~~~~