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

//include
//------------------------------------------
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>

using namespace std;

//conversion
//------------------------------------------
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}

//math
//-------------------------------------------
template<class T> inline T sqr(T x) {return x*x;}

//typedef
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;

//container util
//------------------------------------------
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())

//repetition
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)

//constant
//--------------------------------------------
const double EPS = 1e-10;
const double PI  = acos(-1.0);

//clear memory
#define CLR(a) memset((a), 0 ,sizeof(a))

//debug
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

int main(){
    char S;
    cin >> S;
    if(S=="Sunnny") cout << "Cloudy";
    if(S=="Cloudy") cout << "Rainy";
    if(S=="Rainy") cout << "Sunny";

    cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:75:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   75 |     if(S=="Sunnny") cout << "Cloudy";
      |        ~^~~~~~~~~~
a.cc:76:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   76 |     if(S=="Cloudy") cout << "Rainy";
      |        ~^~~~~~~~~~
a.cc:77:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   77 |     if(S=="Rainy") cout << "Sunny";
      |        ~^~~~~~~~~
Language: C++

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

int main(){
  string S;
  vector<string> s = {"Sunny","Cloudy","Rainy"}
  cin >> S;
  if(S == s.at(0))
    cout << s.at(1);
  if(S == s.at(1))
    cout << s.at(2);
  if(S == s.at(2))
    cout << s.at(0);
  return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'cin'
    7 |   cin >> S;
      |   ^~~
Language: Java

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

Compiler output:
Main.java:5: error: incompatible types: String cannot be converted to int
        int S = sc.nextLine();
                           ^
Main.java:7: error: cannot find symbol
      if(S == Cloudy) N = Rainy;
              ^
  symbol:   variable Cloudy
  location: class Main
Main.java:7: error: cannot find symbol
      if(S == Cloudy) N = Rainy;
                          ^
  symbol:   variable Rainy
  location: class Main
Main.java:8: error: cannot find symbol
      if(S == Rainy) N = Sunny;
              ^
  symbol:   variable Rainy
  location: class Main
Main.java:8: error: cannot find symbol
      if(S == Rainy) N = Sunny;
                         ^
  symbol:   variable Sunny
  location: class Main
Main.java:9: error: cannot find symbol
      if(S == Sunny) N = Cloudy;
              ^
  symbol:   variable Sunny
  location: class Main
Main.java:9: error: cannot find symbol
      if(S == Sunny) N = Cloudy;
                         ^
  symbol:   variable Cloudy
  location: class Main
7 errors
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: expected primary-expression before ')' token
    6 |   if(strcmp(s,"Sunny")==0;){
      |                           ^
a.cc:9:28: error: expected primary-expression before ')' token
    9 |   if(strcmp(s,"Cloudy")==0;){
      |                            ^
a.cc:12:27: error: expected primary-expression before ')' token
   12 |   if(strcmp(s,"Rainy")==0;){
      |                           ^
Language: C

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

int main(void)
{
	char c, temp[8];
	int i;

	for (i = 0; i < 8; i++)
	{
		temp[i] = '\0';
	}

	i = 0;

	while ((c = getchar()) != '\n')
	{
		temp[i] = c;
		i++;
	}

	if (strcmp(temp, "Sunny") == 0)printf("Cloudy");
	if (strcmp(temp, "Cloudy") == 0)printf("Rainy");
	if (strcmp(temp, "Rainy") == 0)printf("Sunny");

	return 0;
}


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

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

int main(){
  string S;
  vector<string> s = {"Sunny","Cloudy","Rainy"}
  cin >> S;
  if(S == s.at(0))
    cout << s.at(1);
  if(S == s.at(1))
    cout << s.at(2);
  if(S == s.at(2))
    cout << s.at(0);
  return 0;
    
}

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


import java.util.*;
import java.util.Scanner;

public class first {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner s=new Scanner(System.in);
		String str=s.next();
		if(str.contentEquals("Sunny")) {
			System.out.println("Cloudy");
		}
		else if(str.contentEquals("Cloudy")) {
			System.out.println("Rainy");
		}
		else {
			System.out.println("Sunny");
		}
	} 

}


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

#include<iostream>
#include<string>

using namespace std;

int main()
{
  int S;
  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:10:7: error: invalid types 'int[int]' for array subscript
   10 |   if(S[0] == 'S')
      |       ^
a.cc:12:12: error: invalid types 'int[int]' for array subscript
   12 |   else if(S[0] == "C")
      |            ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main(void)
{
	string tenki;
    cin >> tenki;
  
  if(tenki[0] == "S")
    cout << "Cloudy" << endl;
    if(tenki[0] == "C")
    cout << "Rainy" << endl;
  if(tenki[0] == "R")
    cout << "Sunny" << endl;
  return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: 'strcmp' was not declared in this scope
    5 |   if(strcmp(s,"Sunny")==0;){
      |      ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<stdio.h>
  +++ |+#include <cstring>
    2 | int main(){
a.cc:5:27: error: expected primary-expression before ')' token
    5 |   if(strcmp(s,"Sunny")==0;){
      |                           ^
a.cc:8:6: error: 'strcmp' was not declared in this scope
    8 |   if(strcmp(s,"Cloudy")==0;){
      |      ^~~~~~
a.cc:8:6: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:8:28: error: expected primary-expression before ')' token
    8 |   if(strcmp(s,"Cloudy")==0;){
      |                            ^
a.cc:11:6: error: 'strcmp' was not declared in this scope
   11 |   if(strcmp(s,"Rainy")==0;){
      |      ^~~~~~
a.cc:11:6: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:11:27: error: expected primary-expression before ')' token
   11 |   if(strcmp(s,"Rainy")==0;){
      |                           ^
Language: C++

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

using ll=long long;
using int64=int64_t;
const int inf=100000000;

int in(){
  int a;
  cin >> a;
  return a;
}//int型関数の受け取り

void forin(int* x,int y){
  for (int i=0;i<y;i++){
    cin >> x[i];
  }
}//(x,y) int型配列x[y]の受け取り

int intpow(int x,int y){
  double a=x,b=y;
  return pow(a,b);
}//(x,y) xをy乗

int intfabs(int x){
  double a=x;
  return fabs(a);
}//(x) xの絶対値

int fact(int x){
  if (x == 1) return 1;
  return x*fact(x-1);
}//(x) x!

int fib(int x){
  if (x <= 2) return x;
  int a[x];
  a[0]=1;
  a[1]=2;
  for (int i=2;i<x;i++){
    a[i]=a[i-1]+a[i-2];
  }
  return a[x-1];
}//(x) フィボナッチ数列のx番目

int div1(ll x){
  return x%1000000007;
}

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

Compiler output:
a.cc:50:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   50 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:51:20: error: expected identifier before string constant
   51 |     string s,w[3]=["Sunny","Cloudy","Rainy"];
      |                    ^~~~~~~
a.cc:51:27: error: expected ']' before ',' token
   51 |     string s,w[3]=["Sunny","Cloudy","Rainy"];
      |                           ^
      |                           ]
a.cc: In lambda function:
a.cc:51:27: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:51:19: error: array must be initialized with a brace-enclosed initializer
   51 |     string s,w[3]=["Sunny","Cloudy","Rainy"];
      |                   ^~~~~~~~
a.cc:51:28: error: expected unqualified-id before string constant
   51 |     string s,w[3]=["Sunny","Cloudy","Rainy"];
      |                            ^~~~~~~~
Language: C++

(defun f(s)
  (if (string= s "Sunny")
    "Cloudy"
    (if (string= s "Cloudy")
      "Rainy"
      "Sunny")))
(let ((line (read-line nil nil)))
  (format t "~A" (f line)))


Compiler output:
a.cc:1:7: error: expected ')' before 'f'
    1 | (defun f(s)
      | ~     ^~
      |       )
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  char wather;
  cin >> wather;
 
  // 以下のコメント/* */を消して追記する
  if (wather == "Sunny") {
    cout << "Cloudy" << endl;
  }
  
   if (wather == "Cloudy") {
    cout << "Rainy" << endl;
  }
  
   if (wather == "Rainy") {
    cout << "Sunny" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if (wather == "Sunny") {
      |       ~~~~~~~^~~~~~~~~~
a.cc:13:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |    if (wather == "Cloudy") {
      |        ~~~~~~~^~~~~~~~~~~
a.cc:17:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |    if (wather == "Rainy") {
      |        ~~~~~~~^~~~~~~~~~
Language: C++

#include <iostream>
#include <string.h>

using namespace std;

int main(void){
  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:11:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (S =="Sunny") cout << "Cloudy" << endl;
      |       ~~^~~~~~~~~
a.cc:12:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   else if (S == "Cloudy") cout << "Rainy" << endl;
      |            ~~^~~~~~~~~~~
a.cc:13:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   else if(S == "Rainy") cout << "Sunny << endl;"
      |           ~~^~~~~~~~~~
a.cc:13:49: error: expected ';' before '}' token
   13 |   else if(S == "Rainy") cout << "Sunny << endl;"
      |                                                 ^
      |                                                 ;
   14 | }
      | ~
Language: C++


//RohitKaushal
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define mp make_pair
#define pb push_back
#define print(x) cerr << (#x) << "is "<< x << "\n"
typedef long long ll;
const int MOD = 1e9+7;


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

   // char *a[]={"Sunny","cloudy","Rainy"};
   string str;

   cin>> str;

   if(str= "Sunny"){
   	cout<<"Cloudy";
   }

   if(str= "Cloudy"){
   	cout<<"Rainy";
   }

   if(str= "Rainy"){
   	cout<<"Sunny";
   }
   return 0;
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:23:10: error: could not convert 'str.std::__cxx11::basic_string<char>::operator=(((const char*)"Sunny"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   23 |    if(str= "Sunny"){
      |       ~~~^~~~~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:27:10: error: could not convert 'str.std::__cxx11::basic_string<char>::operator=(((const char*)"Cloudy"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   27 |    if(str= "Cloudy"){
      |       ~~~^~~~~~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:31:10: error: could not convert 'str.std::__cxx11::basic_string<char>::operator=(((const char*)"Rainy"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   31 |    if(str= "Rainy"){
      |       ~~~^~~~~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
Language: Java

public class Main {
    public static void main(String[] args) throws Exception {
        String todayWeather = args[0];
        if(todayWeather.equals("Sunny")){
            System.out.println("Cloudy");
        }else if(todayWeather.equals(Cloudy)){
            System.out.println("Rainy");
        } else{
            System.out.println("Sunny");
        }
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        }else if(todayWeather.equals(Cloudy)){
                                     ^
  symbol:   variable Cloudy
  location: class Main
1 error
Language: C++

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

int main () {
  string s; cin >> s;
  if(s.at(0) == S)
    cout << "Cloudy";
  else if(s.at(0) == C)
    cout << "Rainy";
  else if (s.at(0) == R) 
    cout << "Sunny";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'S' was not declared in this scope
    7 |   if(s.at(0) == S)
      |                 ^
a.cc:9:22: error: 'C' was not declared in this scope
    9 |   else if(s.at(0) == C)
      |                      ^
a.cc:11:23: error: 'R' was not declared in this scope
   11 |   else if (s.at(0) == R)
      |                       ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <numeric>
#include <algorithm>
#include <windows.h>
using namespace std;
string S;

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

	return 0;
}


Compiler output:
a.cc:7:10: fatal error: windows.h: No such file or directory
    7 | #include <windows.h>
      |          ^~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;

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

Compiler output:
Main.java:7: error: cannot find symbol
      	if(weather.equals(Sunny)){
      	                  ^
  symbol:   variable Sunny
  location: class Main
Main.java:9: error: cannot find symbol
        }else if(weather.equals(Cloudy)){
                                ^
  symbol:   variable Cloudy
  location: class Main
Main.java:11: error: cannot find symbol
        }else if(weather.equals(Rainy)){
                                ^
  symbol:   variable Rainy
  location: class Main
3 errors
Language: C++

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

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:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include<cstdio>
using namespace std;
#define ll long long
int main()
{
    char a[10];
    gets(a);
    if(a[0]=='S')
        printf("Cloudy\n");
    else if(a[0]=='R')
        printf("Sunny\n");
    else if(a[0]=='C')
        printf("Rainy\n");
    return 0;
}



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

#include <stdio.h>


int main()
{
	char i;
	scanf_s("%c", &i);
	if (i == 'S') {
		printf("Cloudy\n");
	}
	if (i == 'C') {
		printf("Rainy\n");
	}
	if (i == 'R') {
		printf("Sunny\n");
	}
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |         scanf_s("%c", &i);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<iostream>
#include<string>
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: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<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<math.h>
#include<map>
using namespace std;
int main() {
   string s;
   cin >> s;
   if(s == "Sunny"){
      cout << "Cloudy" <<endl;
   }else if(s == "Rainy"){
      cout << "Sunny" << endl;
   }else{
      cout << "Rainy" << endl;
   }
   cout << ans << endl;
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
   18 |    cout << ans << endl;
      |            ^~~
      |            abs
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
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;
    }
    return 0;
}

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

int main(void){

	char txt[256];
	scanf("%s",txt);

	if(txt[0]=='S'){
		printf("Cloudy");
	}else if(txt[0]=='C'){
		printf("Rainy");
	}else if(txt[0]=='R'){
		printf("Sunny");
	}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%s",txt);
      |         ^~~~~
a.cc:7:17: error: 'printf' was not declared in this scope
    7 |                 printf("Cloudy");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void){
a.cc:9:17: error: 'printf' was not declared in this scope
    9 |                 printf("Rainy");
      |                 ^~~~~~
a.cc:9:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:11:17: error: 'printf' was not declared in this scope
   11 |                 printf("Sunny");
      |                 ^~~~~~
a.cc:11:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: Java

public class Main {

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

		String s = null;
		
		try {
			s = args[0];
//			String[] s = scanner.nextLine().split(" ");
		} catch (NumberFormatException e) {
		} catch (NullPointerException e) {
		}

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


Compiler output:
Main.java:4: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);
		                      ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <iostream>
using namespace std;

int main(){
    string weather;
    cin >> weather;
    string next;

    switch (weather)
    {
    case "Sunny":
        next = "Cloudy";
        break;
    case "Cloudy":
        next = "Rainy";
        break;
    case "Rainy ":
        next = "Sunny";
        break;
    }
    cout << next;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: switch quantity not an integer
    9 |     switch (weather)
      |             ^~~~~~~
Language: C++

//include
//------------------------------------------
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>

using namespace std;

//conversion
//------------------------------------------
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}

//math
//-------------------------------------------
template<class T> inline T sqr(T x) {return x*x;}

//typedef
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;

//container util
//------------------------------------------
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())

//repetition
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)

//constant
//--------------------------------------------
const double EPS = 1e-10;
const double PI  = acos(-1.0);

//clear memory
#define CLR(a) memset((a), 0 ,sizeof(a))

//debug
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

int main(){
    char S;
    cin >> S;
    if(S=="Sunnny") V = "Cloudy";
    if(S=="Cloudy") V = "Rainy";
    if(S=="Rainy") V = "Sunny";

    cout << V << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:75:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   75 |     if(S=="Sunnny") V = "Cloudy";
      |        ~^~~~~~~~~~
a.cc:75:21: error: 'V' was not declared in this scope
   75 |     if(S=="Sunnny") V = "Cloudy";
      |                     ^
a.cc:76:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   76 |     if(S=="Cloudy") V = "Rainy";
      |        ~^~~~~~~~~~
a.cc:76:21: error: 'V' was not declared in this scope
   76 |     if(S=="Cloudy") V = "Rainy";
      |                     ^
a.cc:77:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   77 |     if(S=="Rainy") V = "Sunny";
      |        ~^~~~~~~~~
a.cc:77:20: error: 'V' was not declared in this scope
   77 |     if(S=="Rainy") V = "Sunny";
      |                    ^
a.cc:79:13: error: 'V' was not declared in this scope
   79 |     cout << V << endl;
      |             ^
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected ';' before '}' token
    9 |     ans = "Cloudy"
      |                   ^
      |                   ;
   10 |   }
      |   ~                
a.cc:13:18: error: expected ';' before '}' token
   13 |     ans = "Rainy"
      |                  ^
      |                  ;
   14 |   }
      |   ~               
a.cc:17:18: error: expected ';' before '}' token
   17 |     ans = "Sunny"
      |                  ^
      |                  ;
   18 |   }
      |   ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'string' was not declared in this scope
    3 |   string S;
      |   ^~~~~~
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> S;
      |   ^~~
a.cc:4:10: error: 'S' was not declared in this scope
    4 |   cin >> S;
      |          ^
a.cc:5:9: error: expected ';' before 's'
    5 |   string s,c,r;
      |         ^~
      |         ;
a.cc:6:3: error: 's' was not declared in this scope
    6 |   s="Sunny";
      |   ^
a.cc:7:3: error: 'c' was not declared in this scope
    7 |   c="Cloudy";
      |   ^
a.cc:8:3: error: 'r' was not declared in this scope
    8 |   r="Rainy";
      |   ^
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << c << endl;
      |     ^~~~
a.cc:11:18: error: 'endl' was not declared in this scope
   11 |     cout << c << endl;
      |                  ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << r << endl;
      |     ^~~~
a.cc:13:18: error: 'endl' was not declared in this scope
   13 |     cout << r << endl;
      |                  ^~~~
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << s << endl;
      |     ^~~~
a.cc:15:18: error: 'endl' was not declared in this scope
   15 |     cout << s << endl;
      |                  ^~~~
Language: Java

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

}

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:5: error: cannot find symbol
      	if(weather.equals(Sunny)){
      	                  ^
  symbol:   variable Sunny
  location: class Main
Main.java:7: error: cannot find symbol
        }else if(weather.equals(Cloudy)){
                                ^
  symbol:   variable Cloudy
  location: class Main
Main.java:9: error: cannot find symbol
        }else if(weather.equals(Rainy)){
                                ^
  symbol:   variable Rainy
  location: class Main
5 errors
Language: C++

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

using ll=long long;
using int64=int64_t;
const int inf=100000000;

int in(){
  int a;
  cin >> a;
  return a;
}//int型関数の受け取り

void forin(int* x,int y){
  for (int i=0;i<y;i++){
    cin >> x[i];
  }
}//(x,y) int型配列x[y]の受け取り

int intpow(int x,int y){
  double a=x,b=y;
  return pow(a,b);
}//(x,y) xをy乗

int intfabs(int x){
  double a=x;
  return fabs(a);
}//(x) xの絶対値

int fact(int x){
  if (x == 1) return 1;
  return x*fact(x-1);
}//(x) x!

int fib(int x){
  if (x <= 2) return x;
  int a[x];
  a[0]=1;
  a[1]=2;
  for (int i=2;i<x;i++){
    a[i]=a[i-1]+a[i-2];
  }
  return a[x-1];
}//(x) フィボナッチ数列のx番目

int div1(ll x){
  return x%1000000007;
}

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

Compiler output:
a.cc:50:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   50 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:51:20: error: expected identifier before string constant
   51 |     string s,w[3]=["Sunny","Cloudy","Rainy"]
      |                    ^~~~~~~
a.cc:51:27: error: expected ']' before ',' token
   51 |     string s,w[3]=["Sunny","Cloudy","Rainy"]
      |                           ^
      |                           ]
a.cc: In lambda function:
a.cc:51:27: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:51:19: error: array must be initialized with a brace-enclosed initializer
   51 |     string s,w[3]=["Sunny","Cloudy","Rainy"]
      |                   ^~~~~~~~
a.cc:51:28: error: expected unqualified-id before string constant
   51 |     string s,w[3]=["Sunny","Cloudy","Rainy"]
      |                            ^~~~~~~~
a.cc:54:40: error: expected ';' before '}' token
   54 |         if (s==w[i]) cout << w[(i+1)%3]
      |                                        ^
      |                                        ;
   55 |     }
      |     ~
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: 'enll' was not declared in this scope
    7 |   if(a=="Cloudy")cout<<"Rainy"<<enll;
      |                                 ^~~~
Language: Java


import java.util.Scanner;

public class LeetCode {

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

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

}


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

#include <iostream>

using namespace std;
using ll = long long;
using vll = vector<ll>;
using vvll = vector<vll>;

#define REP(i, n, m) for(ll i=n; i<(ll)m; ++i)
#define IREP(i, n, m) for(ll i=n-1; i>=m; --i)
#define rep(i, n) REP(i, 0, n)
#define irep(i, n) IREP(i, n, 0)
#define all(v) v.begin(), v.end()

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:5:13: error: 'vector' does not name a type
    5 | using vll = vector<ll>;
      |             ^~~~~~
a.cc:6:14: error: 'vector' does not name a type
    6 | using vvll = vector<vll>;
      |              ^~~~~~
Language: C++

#include<cstdio>
#define ll long long
int main()
{
    char a[10];
    gets(a);
    if(a[0]=='S')
        printf("Cloudy\n");
    else if(a[0]=='R')
        printf("Sunny\n");
    else if(a[0]=='C')
        printf("Rainy\n");
    return 0;
}



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

s = input()
m = {"Sunny": "Cloudy", "Cloudy": "Rainy", "Rainy": "Sunny"}

print(m[s])


Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s = input()
      | ^
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | print(m[s])
      |      ^
Language: C++

(defun f(s)
  (if (string= s "Sunny")
    "Cloudy"
    (if (string= s "Cloudy")
      "Rainy"
      "Sunny")))
(let (line (read-line nil nil))
  (format t "~A" (f line)))


Compiler output:
a.cc:1:7: error: expected ')' before 'f'
    1 | (defun f(s)
      | ~     ^~
      |       )
Language: C++

#include<iostream>
#include<String>
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:2:9: fatal error: String: No such file or directory
    2 | #include<String>
      |         ^~~~~~~~
compilation terminated.
Language: C

#include <iostream>
using namespace std;

int main(void) {
    string S;

    cin >> S;

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

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#define ll long long int
#define pb push_back
using namespace std;

int main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    string s;
    cin >> s;
    if (s == "Sunny")
        puts("Cloudy");
    if (s == "Cloudy")
        puts("Rainy");
    if (s == "Rainy")
        puts("Sunny");Rainy
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: 'Rainy' was not declared in this scope
   16 |         puts("Sunny");Rainy
      |                       ^~~~~
Language: C++

#include <iostream>

using namespace std;

int main(void){
  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:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (S =="Sunny") cout << "Cloudy" << endl;
      |       ~~^~~~~~~~~
a.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else if (S == "Cloudy") cout << "Rainy" << endl;
      |            ~~^~~~~~~~~~~
a.cc:12:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   else if(S == "Rainy") cout << "Sunny << endl;"
      |           ~~^~~~~~~~~~
a.cc:12:49: error: expected ';' before '}' token
   12 |   else if(S == "Rainy") cout << "Sunny << endl;"
      |                                                 ^
      |                                                 ;
   13 | }
      | ~
Language: C++

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

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

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

int main(void)
{
  string s;
  cin >> s >> t;

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



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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'string' was not declared in this scope
    3 |   string s;
      |   ^~~~~~
a.cc:4:6: error: 's' was not declared in this scope
    4 |   if(s=="Sunny"){
      |      ^
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout << "Cloudy" << endl;
      |     ^~~~
a.cc:5:25: error: 'endl' was not declared in this scope
    5 |     cout << "Cloudy" << endl;
      |                         ^~~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << "Rainy" << endl;
      |     ^~~~
a.cc:7:24: error: 'endl' was not declared in this scope
    7 |     cout << "Rainy" << endl;
      |                        ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "Sunny" << endl;
      |     ^~~~
a.cc:9:24: error: 'endl' was not declared in this scope
    9 |     cout << "Sunny" << endl;
      |                        ^~~~
Language: C++

#include  <bitas/stdc++.h>

#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define repk(i,m,n) for(int i=m;i<n;i++)
typedef long long ll;
using namespace std;
int main()
{
    string s;
    while(cin>>s)
    {
        if(s=="Sunny")
            cout<<"Cloudy";
        else if(s=="Cloudy")
            cout<<"Rainy";
        else
            cout<<"Sunny";
    }
}


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

#include<bits/stdc++.h>
#define ll long long
int main()
{
    char a[10];
    gets(a);
    if(a[0]=='S')
        printf("Cloudy\n");
    else if(a[0]=='R')
        printf("Sunny\n");
    else if(a[0]=='C')
        printf("Rainy\n");
    return 0;
}



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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
    2 |   string S;
      |   ^~~~~~
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> S;
      |   ^~~
a.cc:3:10: error: 'S' was not declared in this scope
    3 |   cin >> S;
      |          ^
a.cc:4:20: error: 'cout' was not declared in this scope
    4 |   if(S == "Sunny") cout << "Cloudy" << endl;
      |                    ^~~~
a.cc:4:40: error: 'endl' was not declared in this scope
    4 |   if(S == "Sunny") cout << "Cloudy" << endl;
      |                                        ^~~~
a.cc:5:21: error: 'cout' was not declared in this scope
    5 |   if(S == "Cloudy") cout << "Rainy" << endl;
      |                     ^~~~
a.cc:5:40: error: 'endl' was not declared in this scope
    5 |   if(S == "Cloudy") cout << "Rainy" << endl;
      |                                        ^~~~
a.cc:6:20: error: 'cout' was not declared in this scope
    6 |   if(S == "Rainy") cout << "Sunny" << endl;
      |                    ^~~~
a.cc:6:39: error: 'endl' was not declared in this scope
    6 |   if(S == "Rainy") cout << "Sunny" << endl;
      |                                       ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'string' was not declared in this scope
    2 |         string str;
      |         ^~~~~~
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> str;
      |         ^~~
a.cc:3:16: error: 'str' was not declared in this scope; did you mean 'std'?
    3 |         cin >> str;
      |                ^~~
      |                std
a.cc:5:17: error: 'cout' was not declared in this scope
    5 |                 cout << "Cloudy" << endl;
      |                 ^~~~
a.cc:5:37: error: 'endl' was not declared in this scope
    5 |                 cout << "Cloudy" << endl;
      |                                     ^~~~
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout << "Rainy" << endl;
      |                 ^~~~
a.cc:7:36: error: 'endl' was not declared in this scope
    7 |                 cout << "Rainy" << endl;
      |                                    ^~~~
a.cc:9:17: error: 'cout' was not declared in this scope
    9 |                 cout << "Sunny" << endl;
      |                 ^~~~
a.cc:9:36: error: 'endl' was not declared in this scope
    9 |                 cout << "Sunny" << endl;
      |                                    ^~~~
Language: Java

import org.junit.Test;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;

public class MainTest {

    @Test
    public void test1() {
        String input = "Sunny";
        String expected = "Cloudy";

        assertThat(execute(input + "\n"), is(expected + "\n"));
    }

    @Test
    public void test2() {
        String input = "Rainy";
        String expected = "Sunny";

        assertThat(execute(input + "\n"), is(expected + "\n"));
    }


    private String execute(String input) {
        ByteArrayOutputStream os = new ByteArrayOutputStream();
        Main.solve(
                new ByteArrayInputStream(input.getBytes()), new PrintStream(os)
        );
        return os.toString().replace(System.lineSeparator(), "\n");
    }
}


Compiler output:
Main.java:10: error: class MainTest is public, should be declared in a file named MainTest.java
public class MainTest {
       ^
Main.java:1: error: package org.junit does not exist
import org.junit.Test;
                ^
Main.java:7: error: package org.hamcrest does not exist
import static org.hamcrest.CoreMatchers.is;
                          ^
Main.java:7: error: static import only from classes and interfaces
import static org.hamcrest.CoreMatchers.is;
^
Main.java:8: error: package org.hamcrest does not exist
import static org.hamcrest.MatcherAssert.assertThat;
                          ^
Main.java:8: error: static import only from classes and interfaces
import static org.hamcrest.MatcherAssert.assertThat;
^
Main.java:12: error: cannot find symbol
    @Test
     ^
  symbol:   class Test
  location: class MainTest
Main.java:20: error: cannot find symbol
    @Test
     ^
  symbol:   class Test
  location: class MainTest
Main.java:17: error: cannot find symbol
        assertThat(execute(input + "\n"), is(expected + "\n"));
                                          ^
  symbol:   method is(String)
  location: class MainTest
Main.java:25: error: cannot find symbol
        assertThat(execute(input + "\n"), is(expected + "\n"));
                                          ^
  symbol:   method is(String)
  location: class MainTest
Main.java:31: error: cannot access Main
        Main.solve(
        ^
  bad source file: ./Main.java
    file does not contain class Main
    Please remove or make sure it appears in the correct subdirectory of the sourcepath.
11 errors
Language: Java

import java.util.*;
public class A {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		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:2: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: C++

#include<iosteam>
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: iosteam: No such file or directory
    1 | #include<iosteam>
      |         ^~~~~~~~~
compilation terminated.