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

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


Compiler output:
main.c: In function 'main':
main.c:6:13: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    6 |   if(strcmp(a,"Sunny")=0){
      |             ^
      |             |
      |             char
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:6:23: error: lvalue required as left operand of assignment
    6 |   if(strcmp(a,"Sunny")=0){
      |                       ^
main.c:8:19: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    8 |   }else if(strcmp(a,"Cloudy")=0){
      |                   ^
      |                   |
      |                   char
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:8:30: error: lvalue required as left operand of assignment
    8 |   }else if(strcmp(a,"Cloudy")=0){
      |                              ^
main.c:10:19: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   10 |   }else if(strcmp(a,"Rainy")=0){
      |                   ^
      |                   |
      |                   char
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:10:29: error: lvalue required as left operand of assignment
   10 |   }else if(strcmp(a,"Rainy")=0){
      |                             ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:6: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    5 |   if(strcmp(a,"Sunny")=0){
      |      ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | int main(){
main.c:5:13: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    5 |   if(strcmp(a,"Sunny")=0){
      |             ^
      |             |
      |             char
main.c:5:13: note: expected 'const char *' but argument is of type 'char'
main.c:5:23: error: lvalue required as left operand of assignment
    5 |   if(strcmp(a,"Sunny")=0){
      |                       ^
main.c:7:19: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    7 |   }else if(strcmp(a,"Cloudy")=0){
      |                   ^
      |                   |
      |                   char
main.c:7:19: note: expected 'const char *' but argument is of type 'char'
main.c:7:30: error: lvalue required as left operand of assignment
    7 |   }else if(strcmp(a,"Cloudy")=0){
      |                              ^
main.c:9:19: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    9 |   }else if(strcmp(a,"Rainy")=0){
      |                   ^
      |                   |
      |                   char
main.c:9:19: note: expected 'const char *' but argument is of type 'char'
main.c:9:29: error: lvalue required as left operand of assignment
    9 |   }else if(strcmp(a,"Rainy")=0){
      |                             ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:8: error: 'Sunny' undeclared (first use in this function)
    5 |   if(a=Sunny){
      |        ^~~~~
main.c:5:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:14: error: 'Cloudy' undeclared (first use in this function)
    7 |   }else if(a=Cloudy){
      |              ^~~~~~
main.c:9:14: error: 'Rainy' undeclared (first use in this function)
    9 |   }else if(a=Rainy){
      |              ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: 'Sunny' undeclared (first use in this function)
    5 |   if(a==Sunny){
      |         ^~~~~
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:15: error: 'Cloudy' undeclared (first use in this function)
    7 |   }else if(a==Cloudy){
      |               ^~~~~~
main.c:9:15: error: 'Rainy' undeclared (first use in this function)
    9 |   }else if(a==Rainy){
      |               ^~~~~
Language: C++

// ABC141A.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//

#include "pch.h"
#include <iostream>
#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";
	}
}

// プログラムの実行: Ctrl + F5 または [デバッグ] > [デバッグなしで開始] メニュー
// プログラムのデバッグ: F5 または [デバッグ] > [デバッグの開始] メニュー

// 作業を開始するためのヒント: 
//    1. ソリューション エクスプローラー ウィンドウを使用してファイルを追加/管理します 
//   2. チーム エクスプローラー ウィンドウを使用してソース管理に接続します
//   3. 出力ウィンドウを使用して、ビルド出力とその他のメッセージを表示します
//   4. エラー一覧ウィンドウを使用してエラーを表示します
//   5. [プロジェクト] > [新しい項目の追加] と移動して新しいコード ファイルを作成するか、[プロジェクト] > [既存の項目の追加] と移動して既存のコード ファイルをプロジェクトに追加します
//   6. 後ほどこのプロジェクトを再び開く場合、[ファイル] > [開く] > [プロジェクト] と移動して .sln ファイルを選択します


Compiler output:
a.cc:4:10: fatal error: pch.h: No such file or directory
    4 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
int main(void)
{
	int i;
	char S[1000];
	scanf("%s",S);
	for(i=0;i<=100;i++)
	{
		if(i%2)
		{
			if(S[i]==R || S[i]==U || S[i]==D)
			printf("Yes");
			else
			printf("No");
		}
		else
		{
			if(S[i]==L || S[i]==U || S[i]==D)
			printf("Yes");
			else
			printf("No");
		}
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:34: error: 'R' undeclared (first use in this function)
   11 |                         if(S[i]==R || S[i]==U || S[i]==D)
      |                                  ^
main.c:11:34: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:45: error: 'U' undeclared (first use in this function)
   11 |                         if(S[i]==R || S[i]==U || S[i]==D)
      |                                             ^
main.c:11:56: error: 'D' undeclared (first use in this function)
   11 |                         if(S[i]==R || S[i]==U || S[i]==D)
      |                                                        ^
main.c:18:34: error: 'L' undeclared (first use in this function)
   18 |                         if(S[i]==L || S[i]==U || S[i]==D)
      |                                  ^
Language: C

#include<stdio.h>
int main(void)
{
	int i;
	char S[1000];
	scanf("%s",S);
	for(i=0;i<=100;i*2)
	{
		if(i%2)
		{
			if(S[i]==R||U||D)
			printf("Yes");
			else
			printf("No");
		}
	}
	for(i=1;i<=100;i*2+1)
	{
		else
		{
			if(S[i]==L||U||D)
			printf("Yes");
			else
			printf("No");
		}
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:34: error: 'R' undeclared (first use in this function)
   11 |                         if(S[i]==R||U||D)
      |                                  ^
main.c:11:34: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:37: error: 'U' undeclared (first use in this function)
   11 |                         if(S[i]==R||U||D)
      |                                     ^
main.c:11:40: error: 'D' undeclared (first use in this function)
   11 |                         if(S[i]==R||U||D)
      |                                        ^
main.c:19:17: error: 'else' without a previous 'if'
   19 |                 else
      |                 ^~~~
main.c:21:34: error: 'L' undeclared (first use in this function)
   21 |                         if(S[i]==L||U||D)
      |                                  ^
Language: C++

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

map<string, string> m;
m["Sunny"] = "Cloudy";
m["Cloudy"] = "Rainy";
m["Rainy"] = "Sunny";

int main() {
	string s;
  	cin >> s;
  	cout << m[s] << "\n";
}

Compiler output:
a.cc:5:1: error: 'm' does not name a type; did you mean 'tm'?
    5 | m["Sunny"] = "Cloudy";
      | ^
      | tm
a.cc:6:1: error: 'm' does not name a type; did you mean 'tm'?
    6 | m["Cloudy"] = "Rainy";
      | ^
      | tm
a.cc:7:1: error: 'm' does not name a type; did you mean 'tm'?
    7 | m["Rainy"] = "Sunny";
      | ^
      | tm
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define mod (ll)(1e9+7)
#define inf (ll)(3e18)
#define rep(i,n) for(int i=0;i<n;i++)
#define prique priority_queue
using namespace std;
typedef pair<ll,ll> P
signed main(){
	string s;
	cin>>s;
	if(s=="Sunny")puts("Cloudy");
	else if(s=="Cloudy")puts("Rainy");
	else puts("Sunny");
}


Compiler output:
a.cc:9:1: error: expected initializer before 'signed'
    9 | signed main(){
      | ^~~~~~
Language: Java

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

Compiler output:
Main.java:8: error: cannot find symbol
      if (s.equals(Sunny)) {
                   ^
  symbol:   variable Sunny
  location: class Main
Main.java:10: error: cannot find symbol
      } else if (s.equals(Cloudy)) {
                          ^
  symbol:   variable Cloudy
  location: class Main
2 errors
Language: Java

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

Compiler output:
Main.java:10: error: ')' expected
      } else if (s.equals(Cloudy) {
                                 ^
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.next();
      String wether = "Sunny";
      
      if (s.equals(Sunny)) {
        wether = "Cloudy";
      } else (s.equals(Cloudy) {
        wether = "Rainy";
      }
          
      System.out.println(wether);
      }
}

Compiler output:
Main.java:10: error: ')' expected
      } else (s.equals(Cloudy) {
                              ^
Main.java:10: error: not a statement
      } else (s.equals(Cloudy) {
             ^
2 errors
Language: Java

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

Compiler output:
Main.java:9: error: ';' expected
        wether = "Cloudy"
                         ^
Main.java:10: error: ')' expected
      } else (s.equals(Cloudy) {
                              ^
Main.java:10: error: not a statement
      } else (s.equals(Cloudy) {
             ^
3 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:10: error: array size missing in 'weather1'
    5 |     char weather1[];
      |          ^~~~~~~~
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<bool> vb;
typedef vector<string> vs;
typedef vector<ll> vl;
typedef vector<vector<int, int> > vvi;
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define in insert
#define FOR(i,a,b) for (int i = a; i < b; i++)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define speed ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
const int INF = 1e9 + 5;
int main(){
    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: In function 'int main()':
a.cc:26:40: error: expected ';' before '}' token
   26 |     else if(s=="Rainy") cout << "Sunny"
      |                                        ^
      |                                        ;
   27 | }
      | ~
Language: Java

import java.util.*;

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:11: error: cannot find symbol
	if(S.equals(Sunny)){
	            ^
  symbol:   variable Sunny
  location: class Main
Main.java:17: error: cannot find symbol
	else if(S.equals(Cloudy)){
	                 ^
  symbol:   variable Cloudy
  location: class Main
2 errors
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:9: error: incompatible types: String cannot be converted to int
	int S = sc.next();
	               ^
Main.java:11: error: cannot find symbol
	if(S.equals(Sunny)){
	            ^
  symbol:   variable Sunny
  location: class Main
Main.java:11: error: int cannot be dereferenced
	if(S.equals(Sunny)){
	    ^
Main.java:17: error: cannot find symbol
	else if(S.equals(Cloudy)){
	                 ^
  symbol:   variable Cloudy
  location: class Main
Main.java:17: error: int cannot be dereferenced
	else if(S.equals(Cloudy)){
	         ^
5 errors
Language: C++

#include <iostream>
#include <string.h>
 
using namespace std;
 
int main(void){
  char S[60];
  
  cin >> S;
  
  if (S == "Sunny"s) cout << "Cloudy" << endl;
  else if (S == "Cloudy"s) cout << "Rainy" << endl;
  else if(S == "Rainy"s) cout << "Sunny" << endl
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:13:49: error: expected ';' before '}' token
   13 |   else if(S == "Rainy"s) cout << "Sunny" << endl
      |                                                 ^
      |                                                 ;
   14 |     }
      |     ~
Language: C++

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

int main()
{
    string s;
    string ans;
    cin >> s;

    if( s == "Sunny"){
    printf("Cloudy")
    }else if(s == "Cloudy" ){
    printf("Rainy")
    }else{
    printf("Sunny")
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: expected ';' before '}' token
   12 |     printf("Cloudy")
      |                     ^
      |                     ;
   13 |     }else if(s == "Cloudy" ){
      |     ~                
a.cc:14:20: error: expected ';' before '}' token
   14 |     printf("Rainy")
      |                    ^
      |                    ;
   15 |     }else{
      |     ~               
a.cc:16:20: error: expected ';' before '}' token
   16 |     printf("Sunny")
      |                    ^
      |                    ;
   17 |     }
      |     ~
Language: C++

input = S
if(input = 'Sunny')
  print('Cloudy')
else if(input = 'Cloudy')
  print('Rainy')
else
  print('Sunny')

Compiler output:
a.cc:2:12: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    2 | if(input = 'Sunny')
      |            ^~~~~~~
a.cc:3:9: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    3 |   print('Cloudy')
      |         ^~~~~~~~
a.cc:4:17: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    4 | else if(input = 'Cloudy')
      |                 ^~~~~~~~
a.cc:5:9: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    5 |   print('Rainy')
      |         ^~~~~~~
a.cc:7:9: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    7 |   print('Sunny')
      |         ^~~~~~~
a.cc:1:1: error: 'input' does not name a type; did you mean 'int'?
    1 | input = S
      | ^~~~~
      | int
Language: C++

package main

import (
	"bufio"
	"fmt"
	"log"
	"os"
	"strconv"
	"strings"
)

func main() {
	scanner := makeWordScanner()
	s := eGetLine(scanner)
	w := []string{"Sunny", "Cloudy", "Rainy"}
	for i := 0; i < len(w); i++ {
		if s == w[i] {
			fmt.Println(w[(i+1)%3])
		}
	}
}

////////////////////////////////////////////////////////////////////////////////
// ライブラリ
////////////////////////////////////////////////////////////////////////////////
func makeScanner(maxByte int) *bufio.Scanner {
	scanner := bufio.NewScanner(os.Stdin)
	scanner.Buffer(make([]uint8, 0, 8192), maxByte)
	return scanner
}
func makeWordScanner() *bufio.Scanner {
	scanner := makeScanner(8192)
	scanner.Split(bufio.ScanWords)
	return scanner
}
func eGetLine(r *bufio.Scanner) string {
	if r.Scan() {
		return r.Text()
	}
	err := r.Err()
	if err != nil {
		log.Fatal(err)
	}
	// EOF
	return ""
}
func eGetInt(r *bufio.Scanner) int {
	line := eGetLine(r)
	return eAtoi(line)
}
func eGetInt64(r *bufio.Scanner) int64 {
	line := eGetLine(r)
	return eAtoInt64(line)
}
func eGetFields(r *bufio.Scanner) []string {
	line := eGetLine(r)
	return strings.Fields(line)
}
func eGetInts(r *bufio.Scanner) []int {
	fields := eGetFields(r)
	ints := make([]int, len(fields))
	for i := 0; i < len(ints); i++ {
		ints[i] = eAtoi(fields[i])
	}
	return ints
}
func eGetInt64s(r *bufio.Scanner) []int64 {
	fields := eGetFields(r)
	ints := make([]int64, len(fields))
	for i := 0; i < len(ints); i++ {
		ints[i] = eAtoInt64(fields[i])
	}
	return ints
}
func eGetChars(r *bufio.Scanner) []string {
	line := eGetLine(r)
	return strings.Split(line, "")
}
func eAtoi(s string) int {
	n, err := strconv.Atoi(s)
	if err != nil {
		log.Fatal(err)
	}
	return n
}
func eAtoInt64(s string) int64 {
	n, err := strconv.ParseInt(s, 10, 64)
	if err != nil {
		log.Fatal(err)
	}
	return n
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
a.cc:26:1: error: 'func' does not name a type
   26 | func makeScanner(maxByte int) *bufio.Scanner {
      | ^~~~
a.cc:31:1: error: 'func' does not name a type
   31 | func makeWordScanner() *bufio.Scanner {
      | ^~~~
a.cc:36:1: error: 'func' does not name a type
   36 | func eGetLine(r *bufio.Scanner) string {
      | ^~~~
a.cc:47:1: error: 'func' does not name a type
   47 | func eGetInt(r *bufio.Scanner) int {
      | ^~~~
a.cc:51:1: error: 'func' does not name a type
   51 | func eGetInt64(r *bufio.Scanner) int64 {
      | ^~~~
a.cc:55:1: error: 'func' does not name a type
   55 | func eGetFields(r *bufio.Scanner) []string {
      | ^~~~
a.cc:59:1: error: 'func' does not name a type
   59 | func eGetInts(r *bufio.Scanner) []int {
      | ^~~~
a.cc:67:1: error: 'func' does not name a type
   67 | func eGetInt64s(r *bufio.Scanner) []int64 {
      | ^~~~
a.cc:75:1: error: 'func' does not name a type
   75 | func eGetChars(r *bufio.Scanner) []string {
      | ^~~~
a.cc:79:1: error: 'func' does not name a type
   79 | func eAtoi(s string) int {
      | ^~~~
a.cc:86:1: error: 'func' does not name a type
   86 | func eAtoInt64(s string) int64 {
      | ^~~~
Language: C++

#include <iostream>

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


Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 | int main(){
      | ~~~
Language: C++

#include <iostream>

using namespace std
  
int main(){
  String s;
  cin >> s;
  
  if (s == "Sunny") {
    cout << "Cloudy" << '\n';
  } else if (s == "Cloudy") {
    cout << "Rainy" << '\n';
  } else if (s == "Rainy") {
    cout << "Sunny" << '\n';
  }
  return 0;
}

Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 | int main(){
      | ~~~                 
a.cc: In function 'int main()':
a.cc:6:3: error: 'String' was not declared in this scope
    6 |   String s;
      |   ^~~~~~
a.cc:7:10: error: 's' was not declared in this scope
    7 |   cin >> 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
  cout << "Sunny" << endl;
}

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

#include <iostream>
#include <string>

using ll = long long;
#define rep(i, n) for((long long) i = 0;(i) < (n);(i)++)
using namespace std;



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

int main()
{
	string s;
	cin >> s;
	rep(i, 3)
	{
		if (str[i] == s)
		{
			cout << str[(i + 1) % 3] << endl;
		}
	}
	return 0;
}

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

#include <stdio.h>
#include <stdlib.h>

int main()
{
 char s[20];
  scanf("%s", s);
  switch(s)
  {
    case "Sunny":
      printf("Cloudy");
      break;
    case "Cloudy":
      printf("Rainy");
      break;
    case "Rainy":
      printf("Sunny");
      break;
  }
}

Compiler output:
main.c: In function 'main':
main.c:8:10: error: switch quantity not an integer
    8 |   switch(s)
      |          ^
main.c:10:5: error: pointers are not permitted as case values
   10 |     case "Sunny":
      |     ^~~~
main.c:13:5: error: pointers are not permitted as case values
   13 |     case "Cloudy":
      |     ^~~~
main.c:16:5: error: pointers are not permitted as case values
   16 |     case "Rainy":
      |     ^~~~
Language: C

#include<stdio.h>
 
int main(){
   char we[10];
   fgets(we,sizeof(we),stdin);
   switch(we[0]){
     case 'S':
       printf("Cloudy");
       break;
     case 'C':
       printf("Rainy");
       break;
     default :
       printf("Sunny");
   }
  return 0;
}
   


  	printf("%d", a);
	return 0;
 
}

Compiler output:
main.c:21:16: error: expected declaration specifiers or '...' before string constant
   21 |         printf("%d", a);
      |                ^~~~
main.c:21:22: error: unknown type name 'a'
   21 |         printf("%d", a);
      |                      ^
main.c:22:9: error: expected identifier or '(' before 'return'
   22 |         return 0;
      |         ^~~~~~
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
Language: C++

#include <stdio.h>
#include <algorithm>
#include <string>
#include <vector>
#include <numeric>

const int mod = 1000000007;

int main() {
	const char* s[] = { "Sunny", "Cloudy", "Rainy" };
	char S[7];
	scanf("%s", S);
	int d;
	switch (S[0]) {
	case 'S':
		d = 0;
		break;
	case 'C':
		d = 1;
		break;
	case 'R':
		d = 2;
		break;
	}
	printf(S[(d + 1) % 3]);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:29: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   25 |         printf(S[(d + 1) % 3]);
      |                ~~~~~~~~~~~~~^
      |                             |
      |                             char
In file included 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: Java

import java.util.*;

class Main {
    public static void main(String[] args) throws java.lang.Exception {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        sc.close();
        String ret = "";
        if (s.equlas("Sunny")) {
            ret = "Cloudy";
        } else if (s.equals("Cloudy")) {
            ret = "Rainy";
        } else {
            ret = "Sunny";
        }
        System.out.println(ret);
    }
}


Compiler output:
Main.java:9: error: cannot find symbol
        if (s.equlas("Sunny")) {
             ^
  symbol:   method equlas(String)
  location: variable s of type String
1 error
Language: C++

#include "bits/stdc++.h"

using namespace std;

auto& ssin = cin;
unordered_map<string,string> mmm;

mmm["Sunny"]="Cloudy";
mmm["Cloudy"]="Rainy";
mmm["Rainy"]="Sunny";

string s;
ssin>>s;
cout << s << endl;

Compiler output:
a.cc:8:1: error: 'mmm' does not name a type
    8 | mmm["Sunny"]="Cloudy";
      | ^~~
a.cc:9:1: error: 'mmm' does not name a type
    9 | mmm["Cloudy"]="Rainy";
      | ^~~
a.cc:10:1: error: 'mmm' does not name a type
   10 | mmm["Rainy"]="Sunny";
      | ^~~
a.cc:13:1: error: 'ssin' does not name a type
   13 | ssin>>s;
      | ^~~~
a.cc:14:1: error: 'cout' does not name a type
   14 | cout << s << endl;
      | ^~~~
Language: Java

import java.util.Scanner;

public static void main(String[] args){
  public static void main{
    Scanner sc = new Scanner(System.in);
    String str = sc.nextInt();
    switch (str){
      case "Sunnny":
        System.out.println("Cloudy");
        break;
      case "Cloudy":
        System.out.println("Rainy");
        break;
       default
         System.out.println("Sunny");
        break;
    }
  }
}


Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: illegal start of expression
  public static void main{
  ^
Main.java:4: error: class, interface, enum, or record expected
  public static void main{
                ^
Main.java:7: error: class, interface, enum, or record expected
    switch (str){
    ^
Main.java:10: error: class, interface, enum, or record expected
        break;
        ^
Main.java:11: error: class, interface, enum, or record expected
      case "Cloudy":
      ^
Main.java:13: error: class, interface, enum, or record expected
        break;
        ^
Main.java:15: error: class, interface, enum, or record expected
         System.out.println("Sunny");
         ^
Main.java:16: error: class, interface, enum, or record expected
        break;
        ^
Main.java:17: error: class, interface, enum, or record expected
    }
    ^
10 errors
Language: Java

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class A {
    public static void main(String...args) {
        Scanner in = new Scanner(System.in);
        String wet = in.next();
        Map<String, String> wetmap = new HashMap<>();
        wetmap.put("Sunny", "Cloudy");
        wetmap.put("Cloudy", "Rainy");
        wetmap.put("Rainy", "Sunny");
        System.out.println(wetmap.get(wet));

    }
}


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

var s:string;
begin
  readln(s);
  if s = 'Sunny' then write('Cloudy')
  else if s = 'Cloudy' then write('Rainy')
  else if s = 'Rainy' then write('Sunny')
end.

Compiler output:
a.cc:4:10: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    4 |   if s = 'Sunny' then write('Cloudy')
      |          ^~~~~~~
a.cc:4:29: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    4 |   if s = 'Sunny' then write('Cloudy')
      |                             ^~~~~~~~
a.cc:5:15: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    5 |   else if s = 'Cloudy' then write('Rainy')
      |               ^~~~~~~~
a.cc:5:35: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    5 |   else if s = 'Cloudy' then write('Rainy')
      |                                   ^~~~~~~
a.cc:6:15: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    6 |   else if s = 'Rainy' then write('Sunny')
      |               ^~~~~~~
a.cc:6:34: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    6 |   else if s = 'Rainy' then write('Sunny')
      |                                  ^~~~~~~
a.cc:1:1: error: 'var' does not name a type
    1 | var s:string;
      | ^~~
a.cc:2:1: error: 'begin' does not name a type
    2 | begin
      | ^~~~~
a.cc:4:3: error: expected unqualified-id before 'if'
    4 |   if s = 'Sunny' then write('Cloudy')
      |   ^~
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;
  switch(s){
    case 'Sunny':
        cout << 'Cloudy' << endl;
        break;
    case 'Cloudy':
        cout << 'Rainy' << endl;
        break;
    case 'Rainy':
        cout << 'Sunny' << endl;
        break;
  }
}

Compiler output:
a.cc:9:10: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    9 |     case 'Sunny':
      |          ^~~~~~~
a.cc:10:17: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   10 |         cout << 'Cloudy' << endl;
      |                 ^~~~~~~~
a.cc:12:10: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   12 |     case 'Cloudy':
      |          ^~~~~~~~
a.cc:13:17: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   13 |         cout << 'Rainy' << endl;
      |                 ^~~~~~~
a.cc:15:10: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   15 |     case 'Rainy':
      |          ^~~~~~~
a.cc:16:17: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   16 |         cout << 'Sunny' << endl;
      |                 ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:10: error: switch quantity not an integer
    8 |   switch(s){
      |          ^
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;
  switch(s){
      case:"Sunny"
        cout >> "Cloudy" >> endl;
        break;
      case:"Cloudy"
        cout >> "Rainy" >> endl;
        break;
      case:"Rainy"
        cout >> "Sunny" >> endl;
        break;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: switch quantity not an integer
    8 |   switch(s){
      |          ^
a.cc:9:11: error: expected primary-expression before ':' token
    9 |       case:"Sunny"
      |           ^
a.cc:9:19: error: expected ';' before 'cout'
    9 |       case:"Sunny"
      |                   ^
      |                   ;
   10 |         cout >> "Cloudy" >> endl;
      |         ~~~~       
a.cc:12:11: error: expected primary-expression before ':' token
   12 |       case:"Cloudy"
      |           ^
a.cc:12:20: error: expected ';' before 'cout'
   12 |       case:"Cloudy"
      |                    ^
      |                    ;
   13 |         cout >> "Rainy" >> endl;
      |         ~~~~        
a.cc:15:11: error: expected primary-expression before ':' token
   15 |       case:"Rainy"
      |           ^
a.cc:15:19: error: expected ';' before 'cout'
   15 |       case:"Rainy"
      |                   ^
      |                   ;
   16 |         cout >> "Sunny" >> endl;
      |         ~~~~
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;
  switch(s){
      case:"Sunny"
        cout >> "Cloudy" >> endl;
        break;
      case:"Cloudy"
        cout >> "Rainny" >> endl;
        break;
      case:"Rainny"
        cout >> "Sunny" >> endl;
        break;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: switch quantity not an integer
    8 |   switch(s){
      |          ^
a.cc:9:11: error: expected primary-expression before ':' token
    9 |       case:"Sunny"
      |           ^
a.cc:9:19: error: expected ';' before 'cout'
    9 |       case:"Sunny"
      |                   ^
      |                   ;
   10 |         cout >> "Cloudy" >> endl;
      |         ~~~~       
a.cc:12:11: error: expected primary-expression before ':' token
   12 |       case:"Cloudy"
      |           ^
a.cc:12:20: error: expected ';' before 'cout'
   12 |       case:"Cloudy"
      |                    ^
      |                    ;
   13 |         cout >> "Rainny" >> endl;
      |         ~~~~        
a.cc:15:11: error: expected primary-expression before ':' token
   15 |       case:"Rainny"
      |           ^
a.cc:15:20: error: expected ';' before 'cout'
   15 |       case:"Rainny"
      |                    ^
      |                    ;
   16 |         cout >> "Sunny" >> endl;
      |         ~~~~
Language: C++

let input_line: String? = readLine()  // 標準入力

let ans: String

if(input_line! == "Sunny"){
    ans = "Cloudy"
}else if(input_line! == "Cloudy"){
    ans = "Rainy"
}else{
    ans = "Sunny"
}

print(ans)

Compiler output:
a.cc:1:1: error: 'let' does not name a type
    1 | let input_line: String? = readLine()  // 標準入力
      | ^~~
a.cc:7:2: error: expected unqualified-id before 'else'
    7 | }else if(input_line! == "Cloudy"){
      |  ^~~~
a.cc:9:2: error: expected unqualified-id before 'else'
    9 | }else{
      |  ^~~~
a.cc:13:6: error: expected constructor, destructor, or type conversion before '(' token
   13 | print(ans)
      |      ^
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      String s = sc.nextInt();
      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:5: error: incompatible types: int cannot be converted to String
      String s = sc.nextInt();
                           ^
1 error
Language: C++

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






Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: expected initializer before 's2'
    4 |         char s1 s2;
      |                 ^~
a.cc:5:20: error: 's1' was not declared in this scope
    5 |         scanf("%s",s1);
      |                    ^~
a.cc:6:12: error: 's' was not declared in this scope
    6 |         if(s==Sunny)    printf("Cloudy\n");
      |            ^
a.cc:6:15: error: 'Sunny' was not declared in this scope
    6 |         if(s==Sunny)    printf("Cloudy\n");
      |               ^~~~~
a.cc:7:20: error: 'Cloudy' was not declared in this scope
    7 |         else if(s==Cloudy)      printf("Rainy\n");
      |                    ^~~~~~
a.cc:8:20: error: 'Rainy' was not declared in this scope
    8 |         else if(s==Rainy)       printf("Sunny\n");
      |                    ^~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
    string str[3]={"Sunny","Cloudy", "Rainy"}
    string s;
    cin>>s;
    for(int i=0;i<3;i++){
        if(s==str[i]){
            i++;
            cout<<str[i%3]<<endl;
            break;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected ',' or ';' before 'string'
    7 |     string s;
      |     ^~~~~~
a.cc:8:10: error: 's' was not declared in this scope
    8 |     cin>>s;
      |          ^
Language: C

#include <stdio.h>
 
int main(void){
  
  char S[80];
  
  fgets(S,80.stdin);
  
  if(S == 'S'){
    puts("Cloudy");
  }
  else if(S == 'C'){
    puts("Rainy");
  }
  else{
    puts("Sunny");
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:11: error: invalid suffix "stdin" on floating constant
    7 |   fgets(S,80.stdin);
      |           ^~~~~~~~
main.c:7:3: error: too few arguments to function 'fgets'
    7 |   fgets(S,80.stdin);
      |   ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
main.c:9:8: warning: comparison between pointer and integer
    9 |   if(S == 'S'){
      |        ^~
main.c:12:13: warning: comparison between pointer and integer
   12 |   else if(S == 'C'){
      |             ^~
Language: Java

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        HashMap<String, String> weather = new Map();
        weather.put("Sunny", "Cloudy");
        weather.put("Cloudy", "Rainy");
        weather.put("Rainy", "Sunny");
        String a = sc.next();
        System.err.println(weather.get(a));
    }

    private static char[] rotateArray(char[] c, int d){
        char[] newc = new char[c.length];
        for(int i=0;i<c.length;i++){
            newc[(i+d)%c.length] = c[i];
        }
        return newc;
    }
    
    private static void sort(int[] d, int left, int right){
        if(left>=right){return;}
        int p = d[(left+right)/2];
        int l=left, r=right;
        int tmp;
        while(l<=r){
            while(d[l]<p){l++;}
            while(d[r]>p){r--;}
            if(l<=r){
                tmp=d[l];
                d[l] = d[r];
                d[r] = tmp;
                l++; r--;
            }
        }
        sort(d, left, r);
        sort(d, l, right);
    }
}

Compiler output:
Main.java:8: error: Map is abstract; cannot be instantiated
        HashMap<String, String> weather = new Map();
                                          ^
1 error
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected declaration specifiers before 'scanf'
    4 |         scanf("%s",vetor);
      |         ^~~~~
main.c:5:9: error: expected declaration specifiers before 'if'
    5 |         if(vetor[0]=='S'){
      |         ^~
main.c:8:9: error: expected declaration specifiers before 'else'
    8 |         else if(vetor[0]=='C'){
      |         ^~~~
main.c:11:9: error: expected declaration specifiers before 'else'
   11 |         else{
      |         ^~~~
main.c:14:9: error: expected declaration specifiers before 'return'
   14 |         return 0;
      |         ^~~~~~
main.c:15:1: error: expected declaration specifiers before '}' token
   15 | }
      | ^
main.c:2:5: error: old-style parameter declarations in prototyped function definition
    2 | int main(void)
      |     ^~~~
main.c:16: error: expected '{' at end of input
Language: C

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

Compiler output:
main.c:2:8: error: expected ';' before 'char'
    2 | int mai
      |        ^
      |        ;
    3 |     char vetor[10];
      |     ~~~~
main.c:4:15: error: expected declaration specifiers or '...' before string constant
    4 |         scanf("%s", vetor);
      |               ^~~~
main.c:4:21: error: expected declaration specifiers or '...' before 'vetor'
    4 |         scanf("%s", vetor);
      |                     ^~~~~
main.c:5:9: error: expected identifier or '(' before 'if'
    5 |         if(vetor[0]=='S'){
      |         ^~
main.c:8:9: error: expected identifier or '(' before 'else'
    8 |         else if(vetor[0]=='C'){
      |         ^~~~
main.c:11:9: error: expected identifier or '(' before 'else'
   11 |         else{
      |         ^~~~
main.c:14:9: error: expected identifier or '(' before 'return'
   14 |         return 0;
      |         ^~~~~~
main.c:15:1: error: expected identifier or '(' before '}' token
   15 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  char 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:6:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (S == "Sunny"){
      |       ~~^~~~~~~~~~
a.cc:8:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   }else if (S == "Cloudy"){
      |             ~~^~~~~~~~~~~
a.cc:10:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   }else if (S == "Rainy"){
      |             ~~^~~~~~~~~~
Language: C

#include <stdio.h>

int main(void){
  
  char[80] = S;
  
  scanf("%s",S);
  
  if(S == 'Sunny'){
    puts("Cloudy");
  }
  else if(S == 'Cloudy'){
    puts("Rainy");
  }
  else{
    puts("Sunny");
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected identifier or '(' before '[' token
    5 |   char[80] = S;
      |       ^
main.c:7:14: error: 'S' undeclared (first use in this function)
    7 |   scanf("%s",S);
      |              ^
main.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    9 |   if(S == 'Sunny'){
      |           ^~~~~~~
main.c:12:16: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   12 |   else if(S == 'Cloudy'){
      |                ^~~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int 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:6:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if (S == "Sunny"){
      |       ~~^~~~~~~~~~
a.cc:8:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   }else if (S == "Cloudy"){
      |             ~~^~~~~~~~~~~
a.cc:10:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   }else if (S == "Rainy"){
      |             ~~^~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int 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:6:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(S == "Sunny"){
      |      ~~^~~~~~~~~~
a.cc:8:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   }else if(S == "Cloudy"){
      |            ~~^~~~~~~~~~~
a.cc:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   }else if(S == "Rainy"){
      |            ~~^~~~~~~~~~
Language: C

#include <stdio.h>

int main(void){
  
  char[80] = S;
  
  scanf("%s",S);
  
  if(S == "Sunny"){
    puts("Cloudy");
  }
  else if(S == "Cloudy"){
    puts("Rainy");
  }
  else{
    puts("Sunny");
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected identifier or '(' before '[' token
    5 |   char[80] = S;
      |       ^
main.c:7:14: error: 'S' undeclared (first use in this function)
    7 |   scanf("%s",S);
      |              ^
main.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main (void){
  
  char[80] = S;
  
  scanf("%s",S);
  
  if(S == "Sunny"){
    puts("Cloudy");
  }
  else if(S == "Cloudy"){
    puts("Rainy");
  }
  else{
    puts("Sunny");
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected identifier or '(' before '[' token
    5 |   char[80] = S;
      |       ^
main.c:7:14: error: 'S' undeclared (first use in this function)
    7 |   scanf("%s",S);
      |              ^
main.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main (void){
  
  char[] = S;
  
  scanf("%s",&S);
  
  if(S == "Sunny"){
    puts("Cloudy");
  }
  else if(S == "Cloudy"){
    puts("Rainy");
  }
  else{
    puts("Sunny");
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected identifier or '(' before '[' token
    5 |   char[] = S;
      |       ^
main.c:7:15: error: 'S' undeclared (first use in this function)
    7 |   scanf("%s",&S);
      |               ^
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main (void){
  
  char[] = S;
  
  scanf("%s",S);
  
  if(S == "Sunny"){
    puts("Cloudy");
  }
  else if(S == "Cloudy"){
    puts("Rainy");
  }
  else{
    puts("Sunny");
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:7: error: expected identifier or '(' before '[' token
    5 |   char[] = S;
      |       ^
main.c:7:14: error: 'S' undeclared (first use in this function)
    7 |   scanf("%s",S);
      |              ^
main.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<cstdio>
#include<functional>
#include<algorithm>
#include<cstring>
using namespace std;
int main(void)
{
	char s[10];
	scanf("%s",s);
	if(strcmp(s,"Sunny")==0)	printf("Cloudy\n");
	else if(strcmp(s,"Cloudy")==0)	printf("Rainy\n");
	else printf("Sunny\n");
	return 0;

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

#include<iostream.h>
using namespace std;

int main()
{
  vector<string> A;
  A.push_back("Sunny");
  A.push_back("Cloudy");
  A.push_back("Rainy");
  A.push_back("Sunny");
  string s;
  cin>>s;
  for(int i=0;i<4;i++)
  {
    if(s==A[i]){cout<<A[i+1];break;}
  }
  return 0;
}

Compiler output:
a.cc:1:9: fatal error: iostream.h: No such file or directory
    1 | #include<iostream.h>
      |         ^~~~~~~~~~~~
compilation terminated.