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

#include<iostream>
#include<string>
int main(){
  string s; cin >> s;
  if(s == "Sunny"){
    puts("Cloudy");
  } else if(s[0] == 'C'){
    puts("Rainy");
  } else {
    puts("Sunny");
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s; cin >> s;
      |   ^~~~~~
a.cc:4:3: 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:4:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   string s; cin >> s;
      |             ^~~
      |             std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:20: error: 's' was not declared in this scope
    4 |   string s; cin >> s;
      |                    ^
Language: C++

s = input()

haps = {'Sunny': 'Cloudy' , 'Rainy':'Sunny' , 'Cloudy':'Rainy'}

print(haps[s])



Compiler output:
a.cc:3:9: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    3 | haps = {'Sunny': 'Cloudy' , 'Rainy':'Sunny' , 'Cloudy':'Rainy'}
      |         ^~~~~~~
a.cc:3:18: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    3 | haps = {'Sunny': 'Cloudy' , 'Rainy':'Sunny' , 'Cloudy':'Rainy'}
      |                  ^~~~~~~~
a.cc:3:29: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    3 | haps = {'Sunny': 'Cloudy' , 'Rainy':'Sunny' , 'Cloudy':'Rainy'}
      |                             ^~~~~~~
a.cc:3:37: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    3 | haps = {'Sunny': 'Cloudy' , 'Rainy':'Sunny' , 'Cloudy':'Rainy'}
      |                                     ^~~~~~~
a.cc:3:47: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    3 | haps = {'Sunny': 'Cloudy' , 'Rainy':'Sunny' , 'Cloudy':'Rainy'}
      |                                               ^~~~~~~~
a.cc:3:56: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    3 | haps = {'Sunny': 'Cloudy' , 'Rainy':'Sunny' , 'Cloudy':'Rainy'}
      |                                                        ^~~~~~~
a.cc:1:1: error: 's' does not name a type
    1 | s = input()
      | ^
a.cc:5:6: error: expected constructor, destructor, or type conversion before '(' token
    5 | print(haps[s])
      |      ^
Language: C++

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

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




Compiler output:
a.cc:9:10: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    9 |     case 'Sunny':
      |          ^~~~~~~
a.cc:12:10: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   12 |     case 'Cloudy':
      |          ^~~~~~~~
a.cc:15:10: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   15 |     case 'Rainy':
      |          ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:10: error: switch quantity not an integer
    8 |   switch(S){
      |          ^
Language: C++

#include <bits/stdc++.h>
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:
a.cc:12:13: warning: missing terminating " character
   12 |     cout << "Sunny;
      |             ^
a.cc:12:13: error: missing terminating " character
   12 |     cout << "Sunny;
      |             ^~~~~~~
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before '}' token
   10 |     cout << "Rainy"
      |                    ^
      |                    ;
   11 |   }else{
      |   ~                 
a.cc:13:3: error: expected primary-expression before '}' token
   13 |   }
      |   ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    string s;
    cin>>s;
    if(a=="Sunny"){
            cout<< "Cloudy" <<endl;
    }
    else if(a=="Cloudy"){
            cout<< "Rainy" <<endl;
    }
    else{
            cout<< "Rainy" <<endl;
    }    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'a' was not declared in this scope
    7 |     if(a=="Sunny"){
      |        ^
Language: C++

#include "pch.h"
#include <iostream>
#include <vector>
#include <string>

using namespace std;

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



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

#include<stdio.h>

int main (void){
    char* S;
    scnaf("%s",S);

    if(S == "Sunny"){
        printf("Cloudy\n");
    }else if(S =="Rainy"){
        printf("Sunny\n");
    }else{
        printf("Rainy\n");
    }
    return 0;
}

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

#include <stdio.h>
int main(){
  int i,j;
  char S[100];
  scanf("%s",S);
  for(i=0;i<100;i++){
    for(j=0;j<3;j++){
    if((S[2*i+1]!='R')&&S[2*i]!='L')){
     printf("No");
      return 0;
    }
   }
  }
      printf("Yes");
      return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:37: error: expected statement before ')' token
    8 |     if((S[2*i+1]!='R')&&S[2*i]!='L')){
      |                                     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:6: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    5 |   if(strcmp(Sunny,weather)==0); printf("Cloudy");
      |      ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | int main(){
main.c:5:13: error: 'Sunny' undeclared (first use in this function)
    5 |   if(strcmp(Sunny,weather)==0); printf("Cloudy");
      |             ^~~~~
main.c:5:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:13: error: 'Cloudy' undeclared (first use in this function)
    6 |   if(strcmp(Cloudy,weather)==0); printf("Rainy");
      |             ^~~~~~
main.c:7:13: error: 'Rainy' undeclared (first use in this function)
    7 |   if(strcmp(Rainy,weather)==0); printf("Sunny");
      |             ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:6: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    5 |   if(strcmp(Sunny,weather)==0); printf("Cloudy");
      |      ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | int main(){
main.c:5:13: error: 'Sunny' undeclared (first use in this function)
    5 |   if(strcmp(Sunny,weather)==0); printf("Cloudy");
      |             ^~~~~
main.c:5:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:19: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    5 |   if(strcmp(Sunny,weather)==0); printf("Cloudy");
      |                   ^~~~~~~
      |                   |
      |                   int
main.c:5:19: note: expected 'const char *' but argument is of type 'int'
main.c:6:13: error: 'Cloudy' undeclared (first use in this function)
    6 |   if(strcmp(Cloudy,weather)==0); printf("Rainy");
      |             ^~~~~~
main.c:6:20: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    6 |   if(strcmp(Cloudy,weather)==0); printf("Rainy");
      |                    ^~~~~~~
      |                    |
      |                    int
main.c:6:20: note: expected 'const char *' but argument is of type 'int'
main.c:7:13: error: 'Rainy' undeclared (first use in this function)
    7 |   if(strcmp(Rainy,weather)==0); printf("Sunny");
      |             ^~~~~
main.c:7:19: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    7 |   if(strcmp(Rainy,weather)==0); printf("Sunny");
      |                   ^~~~~~~
      |                   |
      |                   int
main.c:7:19: note: expected 'const char *' but argument is of type 'int'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:6: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    5 |   if(strcmp(Sunny==weather)); printf("Cloudy");
      |      ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | int main(){
main.c:5:13: error: 'Sunny' undeclared (first use in this function)
    5 |   if(strcmp(Sunny==weather)); printf("Cloudy");
      |             ^~~~~
main.c:5:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:6: warning: too few arguments to built-in function 'strcmp' expecting 2 [-Wbuiltin-declaration-mismatch]
    5 |   if(strcmp(Sunny==weather)); printf("Cloudy");
      |      ^~~~~~
main.c:6:13: error: 'Cloudy' undeclared (first use in this function)
    6 |   if(strcmp(Cloudy==weather)); printf("Rainy");
      |             ^~~~~~
main.c:6:6: warning: too few arguments to built-in function 'strcmp' expecting 2 [-Wbuiltin-declaration-mismatch]
    6 |   if(strcmp(Cloudy==weather)); printf("Rainy");
      |      ^~~~~~
main.c:7:13: error: 'Rainy' undeclared (first use in this function)
    7 |   if(strcmp(Rainy==weather)); printf("Sunny");
      |             ^~~~~
main.c:7:6: warning: too few arguments to built-in function 'strcmp' expecting 2 [-Wbuiltin-declaration-mismatch]
    7 |   if(strcmp(Rainy==weather)); printf("Sunny");
      |      ^~~~~~
Language: C

#include<stdio.h>
#include<string.h> //strcmp、strncmp関数を使うために必要
int main(){
  char *s = "Sunny";
  char *c = "Cloudy";
  char *r = "Rainy";
  char w[10]
  scanf("%s",w);
  if(strcmp(w,s) == 0) printf("Cloudy");
  else if(strcmp(w,c) == 0) printf("Rainy");
  else printf("Sunny");
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    8 |   scanf("%s",w);
      |   ^~~~~
main.c:8:14: error: 'w' undeclared (first use in this function)
    8 |   scanf("%s",w);
      |              ^
main.c:8:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

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

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

#include <stdio.h>
int main()
{
char S;
scanf("%s",&S);  
if(S[0]=='S')
	puts("Cloudy");
if(S[0]=='C')
	puts("Rainy");
if(S[0]=='R')
	puts("Sunny");
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: subscripted value is neither array nor pointer nor vector
    6 | if(S[0]=='S')
      |     ^
main.c:8:5: error: subscripted value is neither array nor pointer nor vector
    8 | if(S[0]=='C')
      |     ^
main.c:10:5: error: subscripted value is neither array nor pointer nor vector
   10 | if(S[0]=='R')
      |     ^
Language: C

#include <stdio.h>
int main()
{
char S;
scanf("%s",&S);  
if(S[0]=='S')
	puts(Cloudy);
if(S[0]=='C')
	puts(Rainy);
if(S[0]=='R')
	puts(Sunny);
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: subscripted value is neither array nor pointer nor vector
    6 | if(S[0]=='S')
      |     ^
main.c:7:14: error: 'Cloudy' undeclared (first use in this function)
    7 |         puts(Cloudy);
      |              ^~~~~~
main.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: subscripted value is neither array nor pointer nor vector
    8 | if(S[0]=='C')
      |     ^
main.c:9:14: error: 'Rainy' undeclared (first use in this function)
    9 |         puts(Rainy);
      |              ^~~~~
main.c:10:5: error: subscripted value is neither array nor pointer nor vector
   10 | if(S[0]=='R')
      |     ^
main.c:11:14: error: 'Sunny' undeclared (first use in this function)
   11 |         puts(Sunny);
      |              ^~~~~
Language: C

#include <stdio.h>
int main()
{
char S;
scanf("%s",&S);  
if(S=="Sunny")
	puts(Cloudy);
if(S=="Cloudy")
	puts(Rainy);
if(S=="Rainy")
	puts(Sunny);
}

Compiler output:
main.c: In function 'main':
main.c:6:5: warning: comparison between pointer and integer
    6 | if(S=="Sunny")
      |     ^~
main.c:7:14: error: 'Cloudy' undeclared (first use in this function)
    7 |         puts(Cloudy);
      |              ^~~~~~
main.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: warning: comparison between pointer and integer
    8 | if(S=="Cloudy")
      |     ^~
main.c:9:14: error: 'Rainy' undeclared (first use in this function)
    9 |         puts(Rainy);
      |              ^~~~~
main.c:10:5: warning: comparison between pointer and integer
   10 | if(S=="Rainy")
      |     ^~
main.c:11:14: error: 'Sunny' undeclared (first use in this function)
   11 |         puts(Sunny);
      |              ^~~~~
Language: C

#include <stdio.h>
int main()
{
char S;
scanf("%s",&S);  
if(S="Sunny")
	puts(Cloudy);
if(S="Cloudy")
	puts(Rainy);
if(S="Rainy")
	puts(Sunny);
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    6 | if(S="Sunny")
      |     ^
main.c:7:14: error: 'Cloudy' undeclared (first use in this function)
    7 |         puts(Cloudy);
      |              ^~~~~~
main.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    8 | if(S="Cloudy")
      |     ^
main.c:9:14: error: 'Rainy' undeclared (first use in this function)
    9 |         puts(Rainy);
      |              ^~~~~
main.c:10:5: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   10 | if(S="Rainy")
      |     ^
main.c:11:14: error: 'Sunny' undeclared (first use in this function)
   11 |         puts(Sunny);
      |              ^~~~~
Language: C++

even = 'LUD'
odd = 'RUD'

s = input()

for i in range(0,len(s)):

    if i + 1 % 2 == 0 and s[i] not in even:
        print('No')
        exit()

    if i + 1  % 2 == 1 and s[i] not in odd:
        print('No')
        exit()

print('Yes')

Compiler output:
a.cc:1:8: warning: multi-character character constant [-Wmultichar]
    1 | even = 'LUD'
      |        ^~~~~
a.cc:2:7: warning: multi-character character constant [-Wmultichar]
    2 | odd = 'RUD'
      |       ^~~~~
a.cc:9:15: warning: multi-character character constant [-Wmultichar]
    9 |         print('No')
      |               ^~~~
a.cc:13:15: warning: multi-character character constant [-Wmultichar]
   13 |         print('No')
      |               ^~~~
a.cc:16:7: warning: multi-character character constant [-Wmultichar]
   16 | print('Yes')
      |       ^~~~~
a.cc:1:1: error: 'even' does not name a type
    1 | even = 'LUD'
      | ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: 'st' was not declared in this scope; did you mean 's'?
    8 |                 if(a[i]==st){
      |                          ^~
      |                          s
Language: C++


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: structured binding declaration cannot have type 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   10 |   string[] weather = {"Sunny", "Cloudy", "Rainy"};
      |         ^~
a.cc:10:9: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:10:9: error: empty structured binding declaration
a.cc:10:12: error: expected initializer before 'weather'
   10 |   string[] weather = {"Sunny", "Cloudy", "Rainy"};
      |            ^~~~~~~
a.cc:13:9: error: 'weather' was not declared in this scope
   13 |     if (weather[i] == S)
      |         ^~~~~~~
Language: C++

#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 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(){
    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:71:11: error: 'Sunny' was not declared in this scope
   71 |     if(s==Sunny) cout << Cloudy << endl;
      |           ^~~~~
a.cc:71:26: error: 'Cloudy' was not declared in this scope
   71 |     if(s==Sunny) cout << Cloudy << endl;
      |                          ^~~~~~
a.cc:72:16: error: 'Cloudy' was not declared in this scope
   72 |     else if(s==Cloudy) cout << Rainy << endl;
      |                ^~~~~~
a.cc:72:32: error: 'Rainy' was not declared in this scope
   72 |     else if(s==Cloudy) cout << Rainy << endl;
      |                                ^~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,m,n) for(int i=m; 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;
  }
  
  return 0;
}

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

#include<bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc:5:13: warning: missing terminating " character
    5 | int main() {"
      |             ^
a.cc:5:13: error: missing terminating " character
Language: C++

#include <stdio.h>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
#include <algorithm>
//#include <tuple>

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

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

  if(equal(s, "Sunny")) {
    cout << "Cloudy" << endl;
  } else if (equal(s, "Cloudy")) {
    cout << "Rainy" << endl;
  } else {
    cout << "Sunny" << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: 's' was not declared in this scope
   18 |   if(equal(s, "Sunny")) {
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string S;
  cin>>S;
  switch(S){
    case ="Sunny":
      cout<<"Cloudy"<<endl;
      break;
    case ="Cloudy":
      cout<<"Rainy"<<endl;
      break;
    case ="Rainy":
      cout<<"Sunny"<<endl;
      break;
    default:
      break;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: switch quantity not an integer
    6 |   switch(S){
      |          ^
a.cc:7:10: error: expected primary-expression before '=' token
    7 |     case ="Sunny":
      |          ^
a.cc:10:10: error: expected primary-expression before '=' token
   10 |     case ="Cloudy":
      |          ^
a.cc:13:10: error: expected primary-expression before '=' token
   13 |     case ="Rainy":
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string S;
  cin>>S;
  switch(S){
    case "Sunny":
      cout<<"Cloudy"<<endl;
      break;
    case "Cloudy":
      cout<<"Rainy"<<endl;
      break;
    case "Rainy":
      cout<<"Sunny"<<endl;
      break;
    default:
      break;
  }
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  string S;
  cin>>S;
  switch(S){
    case Sunny:
      cout<<Cloudy<<endl;
      break;
    case Cloudy:
      cout<<Rainy<<endl;
      break;
    case Rainy:
      cout<<Sunny<<endl;
      break;
    default:
      break;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: switch quantity not an integer
    6 |   switch(S){
      |          ^
a.cc:7:10: error: 'Sunny' was not declared in this scope
    7 |     case Sunny:
      |          ^~~~~
a.cc:8:13: error: 'Cloudy' was not declared in this scope
    8 |       cout<<Cloudy<<endl;
      |             ^~~~~~
a.cc:11:13: error: 'Rainy' was not declared in this scope
   11 |       cout<<Rainy<<endl;
      |             ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string S;
  cin>>S;
  switch S{
    case Sunny:
      cout<<Cloudy<<endl;
      break;
    case Cloudy:
      cout<<Rainy<<endl;
      break;
    case Rainy:
      cout<<Sunny<<endl;
      break;
    default:
      break;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected '(' before 'S'
    6 |   switch S{
      |          ^
      |          (
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string S;
  cin>>S;
  switch S{
    case Sunny:
      cout<<Cloudy<<endl;
      break;
    case Cloudy:
      cout<<Rainy<<endl;
      break;
    case Rainy:
      cout<<Sunny<<endl;
      break;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected '(' before 'S'
    6 |   switch S{
      |          ^
      |          (
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:9:8: 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:8: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"Cloudy"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |   if(s ="Cloudy") cout << "Rainy" << endl;
      |      ~~^~~~~~~~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:11:8: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"Rainy"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |   if(s ="Rainy") cout << "Sunny" << endl;
      |      ~~^~~~~~~~
      |        |
      |        std::__cxx11::basic_string<char>
Language: C++

#include<iostream>

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;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'Sunny' was not declared in this scope
   10 | if (S == Sunny)
      |          ^~~~~
a.cc:12:15: error: 'Cloudy' was not declared in this scope
   12 | else if (S == Cloudy )
      |               ^~~~~~
a.cc:14:15: error: 'Rainy' was not declared in this scope
   14 | else if (S == Rainy)
      |               ^~~~~
Language: C

#include"stdio.h"

int main(){
  char a[7]="Sunny",b[7]="Cloudy",c[7]"Rainy",s[7];
  scanf("%s",&s);
  if(strcmp(a,s)==0)printf("%s",b);
  if(strcmp(b,s)==0)printf("%s",c);
  if(strcmp(c,s)==0)printf("%s",a);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before string constant
    4 |   char a[7]="Sunny",b[7]="Cloudy",c[7]"Rainy",s[7];
      |                                       ^~~~~~~
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
main.c:6:6: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    6 |   if(strcmp(a,s)==0)printf("%s",b);
      |      ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include"stdio.h"
  +++ |+#include <string.h>
    2 | 
main.c:7:33: error: 'c' undeclared (first use in this function)
    7 |   if(strcmp(b,s)==0)printf("%s",c);
      |                                 ^
Language: C++

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskA solver = new TaskA();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskA {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            String cycle[] = {"Sunny", "Cloudy", "Rainy", "Sunny"};
            String s = in.next();
            for (int i = 0; i < 3; i++) {
                if (s.equals(cycle[i])) {
                    out.println(cycle[i + 1]);
                }
            }
        }

    }
}



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.OutputStream;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.IOException;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStream;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.io.PrintWriter;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.util.Scanner;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:11:1: error: expected unqualified-id before 'public'
   11 | public class Main {
      | ^~~~~~
Language: C++

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

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

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

#include<iostream>
using namespace std;
int main()
{

string s, Sunny, Rainy ,Cloudy;
cin>>s;
if (s==Sunny)
cout<<"Cloudy"<<endl;

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

if(s==Cludy)
    cout<<"Rainy"endl;



    return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'Cludy' was not declared in this scope; did you mean 'Cloudy'?
   14 | if(s==Cludy)
      |       ^~~~~
      |       Cloudy
a.cc:15:11: error: unable to find string literal operator 'operator""endl' with 'const char [6]', 'long unsigned int' arguments
   15 |     cout<<"Rainy"endl;
      |           ^~~~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected ';' before '{' token
   12 |   }else(s=="Rainy"){
      |                    ^
      |                    ;
a.cc:12:10: 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]
   12 |   }else(s=="Rainy"){
      |        ~~^~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

#include <iostream>

using namespace std;

int main(){
  int s;
  cin >> s;
  if(s=="Sunny"){
    printf("Cloudy");
  }else if(s=="Cloudy"){
    printf("Rainy");
  }else(s=="Rainy"){
    printf("Sunny");
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(s=="Sunny"){
      |      ~^~~~~~~~~
a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   }else if(s=="Cloudy"){
      |            ~^~~~~~~~~~
a.cc:12:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   }else(s=="Rainy"){
      |         ~^~~~~~~~~
a.cc:12:20: error: expected ';' before '{' token
   12 |   }else(s=="Rainy"){
      |                    ^
      |                    ;
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:8:13: warning: missing terminating " character
    8 |     cout << "Cloudy << endl;
      |             ^
a.cc:8:13: error: missing terminating " character
    8 |     cout << "Cloudy << endl;
      |             ^~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"Sunny"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |   if (S = "Sunny") {
      |       ~~^~~~~~~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:9:1: error: expected primary-expression before '}' token
    9 | } else if ( S = "Cloudy") {
      | ^
a.cc:9:15: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"Cloudy"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 | } else if ( S = "Cloudy") {
      |             ~~^~~~~~~~~~
      |               |
      |               std::__cxx11::basic_string<char>
Language: C++

//
//  sublime text 3,
//  emre yazicioglu
//

#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <climits>
#include <iostream>
#include <queue>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>

using namespace std;

typedef long long ll;
typedef pair <ll, ll> pll;
typedef vector <ll> vll;
typedef vector <pll> vpll;
#define pb push_back
#define fi first
#define se second
#define INF (ll) (1e18 + 7)
#define MOD (ll) (1e9 + 7)

const int N = 2e6 + 7;
ll mn = INF, mx = -INF;
ll n, m, k, s, q, t;
ll a, b, c, d, e;
ll ans, cur, sum, cnt;
ll ar[N], p[N], dp[N];
string str; bool h[N];
pll pp[N]; vll v;

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

  // freopen("../in.txt","r",stdin);
  // freopen("../out.txt","w",stdout);

  cin >> str;
  if(str == "Sunny")
    cout << "Cloudy";
  else if(str[i] == "Rainy")
    cout << "Sunny";
  else
    cout << "Rainy";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:51:15: error: 'i' was not declared in this scope
   51 |   else if(str[i] == "Rainy")
      |               ^
Language: Java

import java.util.Scanner;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:98: error: expected ':' before ')' token
    6 |         cout << ((S == "Sunny") ? "Cloudy" : (S == "Cloudy") ? "Rainy" : (S == "Rainy") ? "Sunny");
      |                                                                                                  ^
      |                                                                                                  :
a.cc:6:98: error: expected primary-expression before ')' token
Language: C

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


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

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


Compiler output:
main.c: In function 'main':
main.c:4:13: error: invalid operands to binary & (have 'char *' and 'char *')
    4 |   scanf("%s"&a);
      |         ~~~~^
      |         |   |
      |         |   char *
      |         char *
main.c:5:9: error: 'Sunny' undeclared (first use in this function)
    5 |   if(a==Sunny){
      |         ^~~~~
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:15: error: 'Cloudy' undeclared (first use in this function)
    7 |   }else if(a==Cloudy){
      |               ^~~~~~
main.c:9:12: error: 'Rainy' undeclared (first use in this function)
    9 |   }else(a==Rainy){
      |            ^~~~~
main.c:9:18: error: expected ';' before '{' token
    9 |   }else(a==Rainy){
      |                  ^
      |                  ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:14: error: 'Sunny' undeclared (first use in this function)
    4 |   char b[10]=Sunny;
      |              ^~~~~
main.c:4:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:14: error: 'Cloudy' undeclared (first use in this function)
    5 |   char c[10]=Cloudy;
      |              ^~~~~~
main.c:6:14: error: 'Rainy' undeclared (first use in this function)
    6 |   char d[10]=Rainy;
      |              ^~~~~
main.c:7:13: error: invalid operands to binary & (have 'char *' and 'char *')
    7 |   scanf("%s"&a);
      |         ~~~~^
      |         |   |
      |         |   char *
      |         char *
main.c:12:14: error: expected ';' before '{' token
   12 |   }else(a==d){
      |              ^
      |              ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'cut' was not declared in this scope
    6 |         if(s=="Sunny")cut<<"Cloudy";
      |                       ^~~
Language: C++

#pragma GCC optimize ("O3")
#include <bits/stdc++.h>
#define ll long long
#define IO ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
using namespace std;
const int N = 1e5 + 5, M = 3e5 + 5;

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

int main(){
    string k;
    cin >> k;
    for(int i = 0 ; i < n ; ++i)
        if(s[i] == k)
            cout << (s[(i + 1) % 3]) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: 'n' was not declared in this scope
   13 |     for(int i = 0 ; i < n ; ++i)
      |                         ^
Language: Java

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

Compiler output:
Main.java:5: error: cannot find symbol
    String a = stdIn.nextString();
                    ^
  symbol:   method nextString()
  location: variable stdIn of type Scanner
1 error
Language: Java

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

Compiler output:
Main.java:5: error: cannot find symbol
    String a = stdIn.nextString();
                    ^
  symbol:   method nextString()
  location: variable stdIn of type Scanner
Main.java:6: error: cannot find symbol
    String s = Sunny;
               ^
  symbol:   variable Sunny
  location: class Main
Main.java:7: error: cannot find symbol
    String c = Cloudy;
               ^
  symbol:   variable Cloudy
  location: class Main
Main.java:8: error: cannot find symbol
    String r = Rainy;
               ^
  symbol:   variable Rainy
  location: class Main
4 errors
Language: C

#include <stdio.h>
#include <string.h>
 
int main(void){
	char s[128];
  	scanf("%s",s);
  	switch(s){
      case "Sunny" :	printf("Cloudy");	break;
  	  case "Cloudy":	printf("Rainy");	break;
      case "Rainy" :	printf("Sunny");	break;
    }
    }
  

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:16: error: switch quantity not an integer
    7 |         switch(s)
      |                ^
main.c:8:7: error: pointers are not permitted as case values
    8 |       case "Sunny" :    printf("Cloudy");       break;
      |       ^~~~
main.c:8:49: error: break statement not within loop or switch
    8 |       case "Sunny" :    printf("Cloudy");       break;
      |                                                 ^~~~~
main.c:9:11: error: case label not within a switch statement
    9 |           case "Cloudy":        printf("Rainy");        break;
      |           ^~~~
main.c:9:57: error: break statement not within loop or switch
    9 |           case "Cloudy":        printf("Rainy");        break;
      |                                                         ^~~~~
main.c:10:3: error: case label not within a switch statement
   10 |   case "Rainy" :        printf("Sunny");        break;
      |   ^~~~
main.c:10:49: error: break statement not within loop or switch
   10 |   case "Rainy" :        printf("Sunny");        break;
      |                                                 ^~~~~
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.print("Cloudy");
        } else if (s = "Cloudy") {
          System.out.print("Rainy");
        } else {
          System.out.print("Sunny");
        }       
    }
}

Compiler output:
Main.java:8: error: incompatible types: String cannot be converted to boolean
      	if (s = "Sunny") {
      	      ^
Main.java:10: error: incompatible types: String cannot be converted to boolean
        } else if (s = "Cloudy") {
                     ^
2 errors
Language: Java

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

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

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

Compiler output:
Main.java:8: error: incompatible types: String cannot be converted to int
      	if (s = "Sunny") {
      	        ^
Main.java:8: error: incompatible types: int cannot be converted to boolean
      	if (s = "Sunny") {
      	      ^
Main.java:10: error: incompatible types: String cannot be converted to int
        } else if (s = "Cloudy") {
                       ^
Main.java:10: error: incompatible types: int cannot be converted to boolean
        } else if (s = "Cloudy") {
                     ^
4 errors