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

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

int main(){
    vector <string> A = {"Sunny", "Cloudy", "Rainy"};
    string S;
    cin >> S;

    for(int i = 0; i < 3; i++){
        if(S == A(i)) cout << A((i+1)%3) << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   10 |         if(S == A(i)) cout << A((i+1)%3) << endl;
      |                 ~^~~
a.cc:10:32: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int)'
   10 |         if(S == A(i)) cout << A((i+1)%3) << endl;
      |                               ~^~~~~~~~~
Language: C++

#include<string.h>
int main()
{
  char weather1[20],weather2[20];
  cin>>weather1;
  if(strcmp(weather1, "Sunny"))weather2="Cloudy";
  if(strcmp(weather1, "Cloudy"))weather2="Rainy";
  if(strcmp(weather1, "Rainy"))weather2="Sunny";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>weather1;
      |   ^~~
a.cc:6:40: error: incompatible types in assignment of 'const char [7]' to 'char [20]'
    6 |   if(strcmp(weather1, "Sunny"))weather2="Cloudy";
      |                                ~~~~~~~~^~~~~~~~~
a.cc:7:41: error: incompatible types in assignment of 'const char [6]' to 'char [20]'
    7 |   if(strcmp(weather1, "Cloudy"))weather2="Rainy";
      |                                 ~~~~~~~~^~~~~~~~
a.cc:8:40: error: incompatible types in assignment of 'const char [6]' to 'char [20]'
    8 |   if(strcmp(weather1, "Rainy"))weather2="Sunny";
      |                                ~~~~~~~~^~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, N) for (int i=0; i<(int)N; i++)
#define rep1(i, N) for (int i=1; i<(int)N; i++)

using namespace std;

string s;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'strint' was not declared in this scope; did you mean 'strcat'?
   11 |   strint t;
      |   ^~~~~~
      |   strcat
a.cc:13:21: error: 't' was not declared in this scope; did you mean 'tm'?
   13 |   if (s == "Sunny") t = "Cloudy";
      |                     ^
      |                     tm
a.cc:14:22: error: 't' was not declared in this scope; did you mean 'tm'?
   14 |   if (s == "Cloudy") t = "Rainy";
      |                      ^
      |                      tm
a.cc:15:21: error: 't' was not declared in this scope; did you mean 'tm'?
   15 |   if (s == "Rainy") t = "Sunny";
      |                     ^
      |                     tm
a.cc:17:11: error: 't' was not declared in this scope; did you mean 'tm'?
   17 |   cout << t;
      |           ^
      |           tm
Language: C

#include <stdio.h>

int main()
{
  scanf("%s",&S);
  if (S[0] == 'S')
  {
    printf("Cloudy");
  }
  else if (S[1] == 'C')
  {
    printf("Rainy");
  }
  else
  {
    printf("Sunny");
  }
}

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

#include <iostream>
using namespace std;

int main()
{
  string str[] = {"Sunny", "Cloudy", " Rainy"}
  int n; cin>>n;
  cout<<str[n%3];
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'int'
    7 |   int n; cin>>n;
      |   ^~~
a.cc:7:15: error: 'n' was not declared in this scope
    7 |   int n; cin>>n;
      |               ^
Language: C++

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

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

#pragma GCC optimize("Ofast")
#include"bits/stdc++.h"
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:40: error: expected ';' before ':' token
   15 |                 cout << "Sunny" << endl:
      |                                        ^
      |                                        ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,c) for(int i=0;i<c;++i)
int main(){
 string s;
 cin >> s;
 if(s=="Sunny"){
     cout << "Cloudy" << endl;
 }else if(s=="Cloudy"){
     cout << "Rainy" << endl;
 }else{
     cout << "Sunny" << endl:
 }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: expected ';' before ':' token
   12 |      cout << "Sunny" << endl:
      |                             ^
      |                             ;
Language: C++

#include <iostream>
#include <string>
#include <cmath>
#include <algorithm>
#include <cctype>
#include <cstring>
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;
    
}#include <iostream>
#include <string>
#include <cmath>
#include <algorithm>
#include <cctype>
#include <cstring>
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:19:2: error: stray '#' in program
   19 | }#include <iostream>
      |  ^
a.cc:19:3: error: 'include' does not name a type
   19 | }#include <iostream>
      |   ^~~~~~~
a.cc:26:5: error: redefinition of 'int main()'
   26 | int main()
      |     ^~~~
a.cc:8:5: note: 'int main()' previously defined here
    8 | int main()
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected primary-expression before ']' token
    7 |   else if(s[]0=='R')cout<<"Sunny";
      |             ^
a.cc:7:14: error: expected ')' before numeric constant
    7 |   else if(s[]0=='R')cout<<"Sunny";
      |          ~   ^
      |              )
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  string S;
  cin>>S;
  vector<string>A={"Sunny","Cloudy","Rainy"};
  for(int i=0;i<A.size();i++){
    if(S==A.at(i)s)cout<<i-2<<endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ')' before 's'
    9 |     if(S==A.at(i)s)cout<<i-2<<endl;
      |       ~          ^
      |                  )
Language: Java

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

Compiler output:
Main.java:3: error: <identifier> expected
  public static void main(String[] void){
                                  ^
Main.java:3: error: <identifier> expected
  public static void main(String[] void){
                                       ^
Main.java:6: error: ')' expected
    if(today.equals("Sunny"){
                            ^
Main.java:8: error: ')' expected
    }else if(today.equlas("Cloudy"){
                                   ^
4 errors
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: expected ';' before 's'
    8 |   cin s;
      |      ^~
      |      ;
a.cc:11:22: error: expected ';' before 'cout'
   11 |   else (s == "Rainy")   cout << "Sunny";
      |                      ^  ~~~~
      |                      ;
a.cc:11:11: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   11 |   else (s == "Rainy")   cout << "Sunny";
      |        ~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

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

int main() {
  string S;
  cin >> S;
  
  vector<string> weather = {"Sunny", "Cloudy", "Rainy"};
  
  for (int i = 0; i < 3; i++){
    if (S == weather.at(i) && S != "Rainy"){
      cout << weather.at(i + 1) << endl;
    }
  }
  else if (S == "Rainy"){
    cout << "Sunny" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else if (S == "Rainy"){
      |   ^~~~
Language: C++

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

int main() {
  string S;
  cin >> S;
  
  vector<string> weather = {"Sunny", "Cloudy", "Rainy"}
  
  for (int i = 0; i < 3; i++){
    if (S == weather.at(i) && S != "Rainy"){
      cout << weather.at(i + 1) << endl;
    }
    else if (S == "Rainy"){
      cout << "Sunny" << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'for'
   10 |   for (int i = 0; i < 3; i++){
      |   ^~~
a.cc:10:19: error: 'i' was not declared in this scope
   10 |   for (int i = 0; i < 3; i++){
      |                   ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: expected ';' before 'if'
    9 |   if (s[0] == 'S') ans = "Cloudy"
      |                                  ^
      |                                  ;
   10 |   if (s[0] == 'C') ans = "Rainy"
      |   ~~
Language: C++

#include<iostream>
main(char s){std::cin>>s;std::cout<<(s-83?(s-67?"Sunn":"Rain"):"Cloud")<<"y;}


Compiler output:
a.cc:2:74: warning: missing terminating " character
    2 | main(char s){std::cin>>s;std::cout<<(s-83?(s-67?"Sunn":"Rain"):"Cloud")<<"y;}
      |                                                                          ^
a.cc:2:74: error: missing terminating " character
    2 | main(char s){std::cin>>s;std::cout<<(s-83?(s-67?"Sunn":"Rain"):"Cloud")<<"y;}
      |                                                                          ^~~~
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(char s){std::cin>>s;std::cout<<(s-83?(s-67?"Sunn":"Rain"):"Cloud")<<"y;}
      | ^~~~
a.cc:2:1: warning: first argument of 'int main(char)' should be 'int' [-Wmain]
a.cc:2:1: warning: 'int main(char)' takes only zero or two arguments [-Wmain]
a.cc: In function 'int main(char)':
a.cc:2:74: error: expected primary-expression at end of input
    2 | main(char s){std::cin>>s;std::cout<<(s-83?(s-67?"Sunn":"Rain"):"Cloud")<<"y;}
      |                                                                          ^
a.cc:2:74: error: expected '}' at end of input
    2 | main(char s){std::cin>>s;std::cout<<(s-83?(s-67?"Sunn":"Rain"):"Cloud")<<"y;}
      |             ~                                                            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'weel' was not declared in this scope; did you mean 'week'?
   11 |       cout<<weel[(i+1)%3]<<endl;
      |             ^~~~
      |             week
Language: C++

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'string' was not declared in this scope
    5 |     string S;
      |     ^~~~~~
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> S;
      |     ^~~
a.cc:6:12: error: 'S' was not declared in this scope
    6 |     cin >> S;
      |            ^
a.cc:7:20: error: 'cout' was not declared in this scope
    7 |     if(S=="Sunny") cout << "Cloudy" <<endl;
      |                    ^~~~
a.cc:7:39: error: 'endl' was not declared in this scope
    7 |     if(S=="Sunny") cout << "Cloudy" <<endl;
      |                                       ^~~~
a.cc:8:21: error: 'cout' was not declared in this scope
    8 |     if(S=="Cloudy") cout << "Rainy" <<endl;
      |                     ^~~~
a.cc:8:39: error: 'endl' was not declared in this scope
    8 |     if(S=="Cloudy") cout << "Rainy" <<endl;
      |                                       ^~~~
a.cc:9:20: error: 'cout' was not declared in this scope
    9 |     if(S=="Rainy") cout << "Sunny" << endl;
      |                    ^~~~
a.cc:9:39: error: 'endl' was not declared in this scope
    9 |     if(S=="Rainy") cout << "Sunny" << endl;
      |                                       ^~~~
Language: C++

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

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

      if(S="Sunny")
        cout << "Cloudy" << endl;

      if(S="Cloudy")
        cout << "Rainy" << endl;

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected '(' before 's'
    9 |     switch s {
      |            ^
      |            (
Language: C++

#include<iostream>
#include<string>

int main()
{
std::string s; std::cin >> s;
std::string so[3] = {"Sunny", "Cloudy", "Rainy"};
if(s == "Rainy")
{
std::cout << so[0];
}
else if(s == "Sunny")
{
std::cout << so[1];
}
else
{
std::cout << so[2];
}


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

#include<iostream>
#include<string>

int main()
{
std::string s; std::cin >> s;
string so[3] = {"Sunny", "Cloudy", "Rainy"};
if(s == "Rainy")
{
std::cout << so[0];
}
else if(s == "Sunny")
{
std::cout << so[1];
}
else
{
std::cout << so[2];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'string' was not declared in this scope
    7 | string so[3] = {"Sunny", "Cloudy", "Rainy"};
      | ^~~~~~
a.cc:7:1: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:10:14: error: 'so' was not declared in this scope; did you mean 's'?
   10 | std::cout << so[0];
      |              ^~
      |              s
a.cc:14:14: error: 'so' was not declared in this scope; did you mean 's'?
   14 | std::cout << so[1];
      |              ^~
      |              s
a.cc:18:14: error: 'so' was not declared in this scope; did you mean 's'?
   18 | std::cout << so[2];
      |              ^~
      |              s
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include "bits/stdc++.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
typedef pair<P,ll> Pll;
typedef pair<P,P> PP;
#define rep(i,a,n) for(ll i = a;i < n;i++)
#define repr(i,a,n) for(ll i = n-1;i >= a;i--)
#define LINF (ll)1e17
#define INF (int)1e9
#define MOD (ll)1e9+7
#define sMOD 1e5
#define fs first
#define sc second

ll gcd(ll a,ll b){
	if(!b) return a;
	return gcd(b,a%b);
	
}

signed main(){
	string s;
	string t[4] = {Sunny,Cloudy,Rainy,Sunny};
	cin >> s;
	rep(i,0,3) if(s == t[i]) cout << t[i+1];
    return 0;
}

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

#include <stdio.h>
 
int main(){
 char S[10];
  
  scanf("%s",S);
  if(strcmp(S,"sunny")==0){
    printf("cloudy");
  }
  else if(strcmp(S,"cloudy")==0){
    printf("rainny");
  }
  else if(strcmp(S,"rainy")==0){
    printf("sunny");
  }
  else
}

Compiler output:
main.c: In function 'main':
main.c:7:6: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    7 |   if(strcmp(S,"sunny")==0){
      |      ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:17:1: error: expected expression before '}' token
   17 | }
      | ^
Language: C

#include <stdio.h>
 
int main(){
  
  str S[10];
  
  scanf("%s",&S);
  
  if(strcmp(S,Sunny)==0){
    printf("cloudy");
  }
  else if(strcmp(S,cloudy)==0){
    printf("rainny");
  }
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: unknown type name 'str'
    5 |   str S[10];
      |   ^~~
main.c:9:6: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    9 |   if(strcmp(S,Sunny)==0){
      |      ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:9:15: error: 'Sunny' undeclared (first use in this function)
    9 |   if(strcmp(S,Sunny)==0){
      |               ^~~~~
main.c:9:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:13: error: passing argument 1 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
    9 |   if(strcmp(S,Sunny)==0){
      |             ^
      |             |
      |             int *
main.c:9:13: note: expected 'const char *' but argument is of type 'int *'
main.c:12:20: error: 'cloudy' undeclared (first use in this function)
   12 |   else if(strcmp(S,cloudy)==0){
      |                    ^~~~~~
main.c:12:18: error: passing argument 1 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
   12 |   else if(strcmp(S,cloudy)==0){
      |                  ^
      |                  |
      |                  int *
main.c:12:18: note: expected 'const char *' but argument is of type 'int *'
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=="Sunny"){
      System.out.println("Cloudy");
    }else if(s == "Cloudy"){
      System.out.println("Rainy");
    }else{
      System.out.println("Sunny");
    }
  }
}


Compiler output:
Main.java:3: error: '{' expected
class Main(){
          ^
1 error
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:10:13: error: 'S' was not declared in this scope
   10 |     else if(S == "Cloudy"){
      |             ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  string S;
  cin >> S;
  
  for(int i=1; i<101; i++){
    
  if(i%2==0 && S[i] !="R")
    else if(i%2!=0 && S[i] !="L"){
      cout << "No";
    }
      else{
        cout <<"Yes";
      }
  } 
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(i%2==0 && S[i] !="R")
a.cc:11:5: error: expected primary-expression before 'else'
   11 |     else if(i%2!=0 && S[i] !="L"){
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  string S;
  cin >> S;
  
  for(i=1; i<101; i++){
    
  if(i%2==0 && S[i] !="R")
    else if(i%2!=0 && S[i] !="L"){
      cout << "No";
      
      else{
        cout <<"Yes";
      }
      
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=1; i<101; i++){
      |       ^
a.cc:11:5: error: expected primary-expression before 'else'
   11 |     else if(i%2!=0 && S[i] !="L"){
      |     ^~~~
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:8:23: note: to match this '{'
    8 |   for(i=1; i<101; i++){
      |                       ^
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
string s;
cin>>s;
if(s=="Sunny"s) cout<<"Cloudy"<<endl;
if(s=="Cloudy"s) cout<<"Rainy"<<endl;
if(s=="Rainy"s) cout<<"Sunny"<<endl;
return 0}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ';' before '}' token
   10 | return 0}
      |         ^
      |         ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:5: error: 'string' was not declared in this scope
    2 |     string S;
      |     ^~~~~~
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >>S;
      |     ^~~
a.cc:3:11: error: 'S' was not declared in this scope
    3 |     cin >>S;
      |           ^
a.cc:4:22: error: 'cout' was not declared in this scope
    4 |     if(S == "Sunny") cout << "Cloudy" <<endl;
      |                      ^~~~
a.cc:4:41: error: 'endl' was not declared in this scope
    4 |     if(S == "Sunny") cout << "Cloudy" <<endl;
      |                                         ^~~~
a.cc:5:28: error: 'cout' was not declared in this scope
    5 |     else if(S == "Cloudy") cout << "Rainly" <<endl;
      |                            ^~~~
a.cc:5:47: error: 'endl' was not declared in this scope
    5 |     else if(S == "Cloudy") cout << "Rainly" <<endl;
      |                                               ^~~~
a.cc:6:10: error: 'cout' was not declared in this scope
    6 |     else cout << "Sunny" <<endl;
      |          ^~~~
a.cc:6:28: error: 'endl' was not declared in this scope
    6 |     else cout << "Sunny" <<endl;
      |                            ^~~~
Language: C++

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


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

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

int main() {
  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:5:10: error: 'S' was not declared in this scope
    5 |   cin >> S;
      |          ^
a.cc:8:34: error: 'Sunny' was not declared in this scope
    8 |   else if (S == "Rainy") cout << Sunny << endl;
      |                                  ^~~~~
Language: C++

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

int main(void){
    char string[7] = {};
    gets(string);
    if(!strcmp(string,"Sunny"))
       printf("Cloudy");
    else if(!strcmp(string,"Cloudy"))
        printf("Rainy");
    else
        printf("Sunny");
    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(string);
      |     ^~~~
      |     getw
Language: Java

import java.util.Scanner;



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


Compiler output:
Main.java:5: error: <identifier> expected
public class public {
            ^
Main.java:5: error: class, interface, enum, or record expected
public class public {
                    ^
Main.java:6: 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:20: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java


import java.util.Scanner;



public class ps3 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String s = input.nextLine();
        if(s.equals("Sunny")){
            System.out.println("Cloudy");
        }
        else if(s.equals("Cloudy")){
            System.out.println("Rainy");
        }
        else if(s.equals("Rainy")){
            System.out.println("Sunny");
        }
    }
    
}


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


#include<stdio.h>
int main()
{
char a[5];
scanf("%s",a)
{
    if(!strcmp(a,"Sunny"))
        printf("Cloudy\n");
        else if(!strcmp(a,"Cloudy"))
        printf("Rainy\n");
           else if(!strcmp(a,"Rainy"))
        printf("Sunny\n");
}

    return 0;
    }


Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected ';' before '{' token
    6 | scanf("%s",a)
      |              ^
      |              ;
    7 | {
      | ~
Language: C++

#include<iostream>
using namespace std;
int main()
{
 string S;
 cin >> S;
  if(S=="Sunny"){
    cout << "Cloudy"
  }else if(S=="Rainy"){
    cout << "Sunny"
      }else if(S=="Cloudy"){
    cout << "Sunny"
  }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before '}' token
    8 |     cout << "Cloudy"
      |                     ^
      |                     ;
    9 |   }else if(S=="Rainy"){
      |   ~                  
a.cc:10:20: error: expected ';' before '}' token
   10 |     cout << "Sunny"
      |                    ^
      |                    ;
   11 |       }else if(S=="Cloudy"){
      |       ~             
a.cc:12:20: error: expected ';' before '}' token
   12 |     cout << "Sunny"
      |                    ^
      |                    ;
   13 |   }
      |   ~
Language: C++

#include<iostream>
using namespace std;
int main()
{
 string = S;
  cin << S;
  if(S=="Sunny"){
    cout << "Cloudy";
  } else if(S=="Cloudy"){
    cout << "Rainy";
  }  if(S=="Rainy"){
    cout << "Sunny";
  }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected unqualified-id before '=' token
    5 |  string = S;
      |         ^
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin << S;
      |          ^
Language: C++

#include <iostream>

using namespace std;
string s[3] ={"Sunny","Cloudy","Rainy"};
int main()
{
    string m;
    cin>>m;
        if(m[0]==s[0][0]){
            cout<<s[1];
   
        else  if{
            cout<<s[2];

        }
        else{
            cout<<s[0];
        }












    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected '}' before 'else'
   12 |         else  if{
      |         ^~~~
a.cc:9:26: note: to match this '{'
    9 |         if(m[0]==s[0][0]){
      |                          ^
a.cc:12:17: error: expected '(' before '{' token
   12 |         else  if{
      |                 ^
      |                 (
a.cc:16:9: error: 'else' without a previous 'if'
   16 |         else{
      |         ^~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
    string m;
    cin>>m;
    if (m[0]=='s'){
        cout<<"cloudy";
    }
    else if (m[0]=='c'){
        cout<<"rainy";
    }
    else{
        cout<< "sunny";
    }




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

#include <iostream>
using namespace std;

int main(){
    string arr[3] = { "Sunny" , "Cloudy" , "Rainy" }

    string s;
    cin >> s;

    for ( int i = 0; i < 3; ++i ){
        if ( s == arr[i] ){
            if ( i == 2 ){
                cout << arr[0];
            }
            else{
                cout << arr[i + 1];
            }
        }
    }
    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:12: error: 's' was not declared in this scope
    8 |     cin >> s;
      |            ^
Language: C++

#include <iostream>
using namespace std;
 
int main() {
string r;
cin >>r;
if(r=="sunny")
 cout <<"Cloudy";
else if(r=="cloudy")
 cout<<"Rainy" ;
else if (r==rainy" )
 cout <<"Sunny";
    return 0;
} 

Compiler output:
a.cc:11:18: warning: missing terminating " character
   11 | else if (r==rainy" )
      |                  ^
a.cc:11:18: error: missing terminating " character
   11 | else if (r==rainy" )
      |                  ^~~
a.cc: In function 'int main()':
a.cc:11:13: error: 'rainy' was not declared in this scope
   11 | else if (r==rainy" )
      |             ^~~~~
a.cc:13:5: error: expected primary-expression before 'return'
   13 |     return 0;
      |     ^~~~~~
a.cc:12:17: error: expected ')' before 'return'
   12 |  cout <<"Sunny";
      |                 ^
      |                 )
   13 |     return 0;
      |     ~~~~~~       
a.cc:11:9: note: to match this '('
   11 | else if (r==rainy" )
      |         ^
Language: C++

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

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


Compiler output:
a.cc:10:14: warning: missing terminating ' character
   10 |        cout<<'"Cloudy";
      |              ^
a.cc:10:14: error: missing terminating ' character
   10 |        cout<<'"Cloudy";
      |              ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:5: error: expected primary-expression before 'else'
   11 |     else if(x=="Cloudy")
      |     ^~~~
Language: C++

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

int main() {
   string Arr[3]={"Sunny", "Cloudy", "Rainy"};
   string S;
   cin>>S;
   for (int i=0; i<3;++i){
        if (S==Arr[i]){
         if (i==2) i=0;
         cout<<Arr[i+1]<<endl;
    }
    }



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

#include <iostram>
using namespace std;
int main(){
    string s;
    cin>>s;
    if(s=="Sunny") cout<<"Cloudy"<<endl;
    if(s=="Cloudy") cout<<"Rainy"<<endl;
    if(s=="Rainy") cout<<"Sunny"<<endl;
}


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

#include <iostream>
using namespace std;

int main(void){
  char s;
  cin >> s;
  
  switch(s){
    case "Sunny": cout << "Cloudy" << '\n';break;
    case "Cloudy": cout << "Rainy" << '\n';break;
    case "Rainy": cout <<"Sunny" << '\n';break;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: conversion from 'const char*' to 'int' in a converted constant expression
    9 |     case "Sunny": cout << "Cloudy" << '\n';break;
      |          ^~~~~~~
a.cc:9:10: error: could not convert '"Sunny"' from 'const char [6]' to 'int'
    9 |     case "Sunny": cout << "Cloudy" << '\n';break;
      |          ^~~~~~~
      |          |
      |          const char [6]
a.cc:10:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   10 |     case "Cloudy": cout << "Rainy" << '\n';break;
      |          ^~~~~~~~
a.cc:10:10: error: could not convert '"Cloudy"' from 'const char [7]' to 'int'
   10 |     case "Cloudy": cout << "Rainy" << '\n';break;
      |          ^~~~~~~~
      |          |
      |          const char [7]
a.cc:11:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   11 |     case "Rainy": cout <<"Sunny" << '\n';break;
      |          ^~~~~~~
a.cc:11:10: error: could not convert '"Rainy"' from 'const char [6]' to 'int'
   11 |     case "Rainy": cout <<"Sunny" << '\n';break;
      |          ^~~~~~~
      |          |
      |          const char [6]
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: C++

#include <iostream>
using namespace std;

int main(void){
  char s;
  cin >> s;
  
  switch(s){
    case "Sunny": cout << "Cloudy";break;
    case "Cloudy": cout << "Rainy";break;
    case "Rainy": cout <<"Sunny";break;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: conversion from 'const char*' to 'int' in a converted constant expression
    9 |     case "Sunny": cout << "Cloudy";break;
      |          ^~~~~~~
a.cc:9:10: error: could not convert '"Sunny"' from 'const char [6]' to 'int'
    9 |     case "Sunny": cout << "Cloudy";break;
      |          ^~~~~~~
      |          |
      |          const char [6]
a.cc:10:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   10 |     case "Cloudy": cout << "Rainy";break;
      |          ^~~~~~~~
a.cc:10:10: error: could not convert '"Cloudy"' from 'const char [7]' to 'int'
   10 |     case "Cloudy": cout << "Rainy";break;
      |          ^~~~~~~~
      |          |
      |          const char [7]
a.cc:11:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   11 |     case "Rainy": cout <<"Sunny";break;
      |          ^~~~~~~
a.cc:11:10: error: could not convert '"Rainy"' from 'const char [6]' to 'int'
   11 |     case "Rainy": cout <<"Sunny";break;
      |          ^~~~~~~
      |          |
      |          const char [6]
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: C++

#include <iostream>
using namespace std;

int main(void){
  char s;
  cin >> s;
  
  switch(s){
    case "Sunny": cout << "Cloudy";
    case "Cloudy": cout << "Rainy";
    case "Rainy": cout <<"Sunny"
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: conversion from 'const char*' to 'int' in a converted constant expression
    9 |     case "Sunny": cout << "Cloudy";
      |          ^~~~~~~
a.cc:9:10: error: could not convert '"Sunny"' from 'const char [6]' to 'int'
    9 |     case "Sunny": cout << "Cloudy";
      |          ^~~~~~~
      |          |
      |          const char [6]
a.cc:10:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   10 |     case "Cloudy": cout << "Rainy";
      |          ^~~~~~~~
a.cc:10:10: error: could not convert '"Cloudy"' from 'const char [7]' to 'int'
   10 |     case "Cloudy": cout << "Rainy";
      |          ^~~~~~~~
      |          |
      |          const char [7]
a.cc:11:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   11 |     case "Rainy": cout <<"Sunny"
      |          ^~~~~~~
a.cc:11:10: error: could not convert '"Rainy"' from 'const char [6]' to 'int'
   11 |     case "Rainy": cout <<"Sunny"
      |          ^~~~~~~
      |          |
      |          const char [6]
a.cc:11:33: error: expected ';' before 'return'
   11 |     case "Rainy": cout <<"Sunny"
      |                                 ^
      |                                 ;
   12 | 
   13 |   return 0;
      |   ~~~~~~                         
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'else' without a previous 'if'
   13 |     else if(i%2==1 && s[i]=='R') puts("No"); return 0;
      |     ^~~~
Language: C++

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

long long n,a,m,k,q,b,c=1;
string ss,s1,s2;
int main(){
    cin>>ss;
    if (ss[0]=="S"){
        cout<<"Cloudy";
    }
    else if (ss[0]=="C"){
        cout<<"Rainy";
    }
    else{
        cout<<"Sunny";
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if (ss[0]=="S"){
a.cc:12:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     else if (ss[0]=="C"){
Language: C++

#include <bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define RFOR(i, a, b) for (int i = (a); i >= (b); i--)
#define LFOR(i, a, b) for (long long int i = (a); i <= (b); i++)
#define LRFOR(i, a, b) for (long long int i = (a); i >= (b); i--)
#define MOD 1000000007
#define INF 1000000000           // 2000000000
#define LINF 1000000000000000000 // 9000000000000000000
#define DINF 1000000000000000.0
#define PI 3.14159265358979

//.size()はunsigned int　0-1をするとオーバーフローする

using namespace std;
typedef long long int ll;
typedef pair<long long int, long long int> P;

int dy[5] = {-1, 0, 1, 0, 0};
int dx[5] = {0, -1, 0, 1, 0};

int main(void) {
    string s;

    cin>>s;

    switch(s[i]){
        case 'S':
            cout<<"Cloudy"<<endl;
            break;
        case 'C':
            cout<<"Rainy"<<endl;
            break;
        default:
            cout<<"Sunny"<<endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:14: error: 'i' was not declared in this scope
   26 |     switch(s[i]){
      |              ^
Language: C

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ')' before ';' token
    8 |   for(int i=0;i<3;i++;){
      |      ~               ^
      |                      )
a.cc:8:23: error: expected primary-expression before ')' token
    8 |   for(int i=0;i<3;i++;){
      |                       ^
Language: C++

#include <iostream>
#include <bits/stdc++.h>
#include <windows.h>
using namespace std;
int main()
{
    string s,w[3]={"Sunny","Cloudy","Rainy"};
    cin>>s;
    for(int i=0;i<3;i++)
    {
        if(s=="Rainy")
        {
          cout<<"Sunny";
            break;
        }
        else if(s==w[i])
        {
            cout<<w[i+1];
            break;
        }
    }
}



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

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


import java.util.Scanner;

/**
 *
 * @author Nour
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String x;
        Scanner n =new Scanner(System.in);
        x=n.next();
        if(x.equals("Sunny"))
            System.out.print("Cloudy");
        else if(x.equals("Cloudy"))
            System.out.print("Rainy");
        else if(x.equals("Rainy"))
            System.out.print("Sunny");
    }
    
}


Compiler output:
main.c:8:1: error: unknown type name 'import'
    8 | import java.util.Scanner;
      | ^~~~~~
main.c:8:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    8 | import java.util.Scanner;
      |            ^
main.c:14:1: error: unknown type name 'public'
   14 | public class Main {
      | ^~~~~~
main.c:14:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
   14 | public class Main {
      |              ^~~~
Language: Java

import java.util.Scanner;

/**
 *
 * @author Nour
 */
public class JavaApplication41 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String x;
        Scanner n =new Scanner(System.in);
        x=n.next();
        if(x.equals("Sunny"))
            System.out.print("Cloudy");
        else if(x.equals("Cloudy"))
            System.out.print("Rainy");
        else if(x.equals("Rainy"))
            System.out.print("Sunny");
    }
    
}

Compiler output:
Main.java:7: error: class JavaApplication41 is public, should be declared in a file named JavaApplication41.java
public class JavaApplication41 {
       ^
1 error
Language: Java

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

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


Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:2: error: illegal character: '#'
#include <stdlib.h>
^
Main.java:6: error: class, interface, enum, or record expected
        scanf("%s",&x);
        ^
Main.java:7: error: class, interface, enum, or record expected
        if(x=="Sunny")
        ^
Main.java:9: error: class, interface, enum, or record expected
        else if(x=="Cloudy")
        ^
Main.java:11: error: class, interface, enum, or record expected
        else if(x=="Rainy")
        ^
Main.java:13: error: class, interface, enum, or record expected
    return 0;
    ^
Main.java:14: error: class, interface, enum, or record expected
}
^
9 errors
Language: Java

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


import java.util.Scanner;

/**
 *
 * @author Nour
 */
public class JavaApplication41 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String x;
        Scanner n =new Scanner(System.in);
        x=n.next();
        if(x.equals("Sunny"))
            System.out.print("Cloudy");
        else if(x.equals("Cloudy"))
            System.out.print("Rainy");
        else if(x.equals("Rainy"))
            System.out.print("Sunny");
    }
    
}


Compiler output:
Main.java:14: error: class JavaApplication41 is public, should be declared in a file named JavaApplication41.java
public class JavaApplication41 {
       ^
1 error
Language: Java

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String x;
        Scanner n =new Scanner(System.in);
        x=n.next();
        if(x.equals("Sunny"))
            System.out.print("Cloudy");
        else if(x.equals("Cloudy"))
            System.out.print("Rainy");
        else if(x.equals("Rainy"))
            System.out.print("Sunny");
    }
    



Compiler output:
Main.java:10: 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)
1 error