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

#include<bits/std++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define YES cout<<"YES"<<endl
#define NO cout<<"NO"<<endl
#define Yes cout<<"Yes"<<endl
#define No cout<<"No"<<endl
#define all(a) a.begin(),a.end()
#define SORT(a) sort(all(a))
#define int long long
#define FOR(i, m, n) for(int i = m;i < n;i++)
typedef vector<int> VI;
typedef vector<VI> VVI;
const int MOD=1000000007;
const long long INF = 1LL << 60;
//----------------------------------------------
signed main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    
    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:1:9: fatal error: bits/std++.h: No such file or directory
    1 | #include<bits/std++.h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'S\U0000ff1d\U0000ff1d' was not declared in this scope
    7 |   if(S＝＝"Sunny") cout<<"Cloudy"<<endl;
      |      ^~~~~
a.cc:7:11: error: expected ')' before string constant
    7 |   if(S＝＝"Sunny") cout<<"Cloudy"<<endl;
      |     ~     ^~~~~~~
      |           )
a.cc:8:16: error: expected ')' before string constant
    8 |   else if(S＝＝"Cloudy") cout<<"Rainy"<<endl;
      |          ~     ^~~~~~~~
      |                )
a.cc:9:16: error: expected ')' before string constant
    9 |   else if(S＝＝"Rainy")cout<<"Sunny"<<endl;
      |          ~     ^~~~~~~
      |                )
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
  string s;
  cin>>s;
  if(strcmp(s,"Sunny")==0)
    cout<<"Cloudy\n";
  else if(strcmp(s,"Cloudy")==0)
    cout<<"Rainy\n";
  else(strcmp(s,"Rainy")==0
       cout<<"Sunny\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    8 |   if(strcmp(s,"Sunny")==0)
      |             ^
      |             |
      |             std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:10:18: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   10 |   else if(strcmp(s,"Cloudy")==0)
      |                  ^
      |                  |
      |                  std::string {aka std::__cxx11::basic_string<char>}
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:12:15: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   12 |   else(strcmp(s,"Rainy")==0
      |               ^
      |               |
      |               std::string {aka std::__cxx11::basic_string<char>}
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:12:28: error: expected ')' before 'cout'
   12 |   else(strcmp(s,"Rainy")==0
      |       ~                    ^
      |                            )
   13 |        cout<<"Sunny\n";
      |        ~~~~
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";
	return 0;
}

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

import java.util.Scanner;

public class q1 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String k = s.next();
		if(k.compareTo("Sunny")==0) {
			System.out.println("Cloudy");
		}
		else if(k.compareTo("Cloudy")==0) {
			System.out.println("Rainy");
		}
		else if(k.compareTo("Rainy")==0) {
			System.out.println("Sunny");
		}
	}
}


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

#include <iostream> 
#include <string>

using namespace std;

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

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<stdio.h>
int main()
{
    char str[100];
    gets(str);
    if(str[0]=='S')
        printf("Cloudy");
    else if(str[0]=='C')
        printf("Rainy");
    else if(str[0]=='R')
        printf("Sunny");
    return 0;
}






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

#include<stdio.h>
int main()
{
    char str[100];
    gets(str);
    if(str=='S')
        printf("Cloudy");
    else if(str[0]=='C')
        printf("Rainy");
    else if(str[0]=='R')
        printf("Sunny");
    return 0;
}






Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    5 |     gets(str);
      |     ^~~~
      |     getw
a.cc:6:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |     if(str=='S')
      |        ~~~^~~~~
Language: C++

#include<stdio.h>
int main()
{
    char str[100];
    gets(str);
    if(str=="Sunny")
        printf("Cloudy");
    else if(str[0]=='C')
        printf("Rainy");
    else if(str[0]=='R')
        printf("Sunny");
    return 0;
}




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

#include<iostream>
#include<math.h>
#include<algorithm>
#include<vector>
#include<pair>
#define rep(i,n) for(i = 0; i < n; i++)
using namespace std;

int main2(), main();


int main(){
    int n, k, x, i, j;
    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:5:9: fatal error: pair: No such file or directory
    5 | #include<pair>
      |         ^~~~~~
compilation terminated.
Language: Java

import java.util.*;
public 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=='Rainy'){
     System.out.println('Sunny');
    }else{
     System.out.println('Rainy');
    }
	}
}

Compiler output:
Main.java:8: error: unclosed character literal
	if(s=='Sunny'){
	      ^
Main.java:8: error: unclosed character literal
	if(s=='Sunny'){
	            ^
Main.java:8: error: not a statement
	if(s=='Sunny'){
	        ^
Main.java:9: error: unclosed character literal
       System.out.println('Cloudy');
                          ^
Main.java:9: error: unclosed character literal
       System.out.println('Cloudy');
                                 ^
Main.java:9: error: not a statement
       System.out.println('Cloudy');
                            ^
Main.java:10: error: unclosed character literal
    }else if(s=='Rainy'){
                ^
Main.java:10: error: 'else' without 'if'
    }else if(s=='Rainy'){
     ^
Main.java:10: error: unclosed character literal
    }else if(s=='Rainy'){
                      ^
Main.java:10: error: not a statement
    }else if(s=='Rainy'){
                  ^
Main.java:11: error: unclosed character literal
     System.out.println('Sunny');
                        ^
Main.java:11: error: unclosed character literal
     System.out.println('Sunny');
                              ^
Main.java:11: error: not a statement
     System.out.println('Sunny');
                          ^
Main.java:13: error: unclosed character literal
     System.out.println('Rainy');
                        ^
Main.java:13: error: unclosed character literal
     System.out.println('Rainy');
                              ^
Main.java:13: error: not a statement
     System.out.println('Rainy');
                          ^
Main.java:12: error: 'else' without 'if'
    }else{
     ^
17 errors
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int64_t i=0;i<(n);i++)
#define ALL(a)  (a).begin(),(a).end()
#define SORT(c) sort((c).begin(),(c).end())
#define REV(c) reverse((c).begin(),(c).end())
#define YES cout << "YES" << endl;
#define NO cout << "NO" << endl;
#define Yes cout << "Yes" << endl;
#define No cout << "No" << endl;
#define COUTDOUBLE(d,i) cout << setprecision((i)) << (d) << endl;
#define VIN(v) for(int64_t i=0;i<(v).size();i++){cin >> (v).at(i);}
#define MREP(i,m) for(auto i=(m).begin(); i != (m).end(); ++i) // auto key = i->first;auto value = i->second;

using namespace std;
typedef int64_t I;
typedef pair<I,I> P;
typedef vector<I> V;

I MOD = pow(10,9)+7;
I MAX = LONG_MAX;
I MIN = LONG_MIN;

// 最大公約数
I gcd(I a, I b) {
  return b != 0 ? gcd(b, a % b) : a;
}

// 最小公倍数
I lcm(I a, I b) {
  return a * b / gcd(a, b);
}

int ctoi(char c){
  return c - '0';
}

int main(){
  I n;
  cin >> n;
  string s;
  cin >> s;
  I t=0;
  REP(i,n/2+1){
    if (i==0) continue;
    unordered_map<string, P> mp;
    string s2 = s.substr(0,i);;
    REP(j,n-i+1){
      if (j > 0){
        s2.erase(0,1);
        s2 += s.at(i+j-1);
      }
      mp.emplace(s2,P(0,0));
    }
    string s2 = s.substr(0,i);;
    REP(j,n-i+1){
      if (j > 0){
        s2.erase(0,1);
        s2 += s.at(i+j-1);
      }
      P p = mp[s2];
      if (p.second == 0 || p.second < j){
        p.first++;
        p.second = j+i-1;
      }
      mp[s2] = p;
      if (p.first > 1){
        t = i;
        break;
      }
    }
  }
  /*
  REP(i,n){
    string s2;
    s2 += s.at(i);
    P p;
    if (s2.size() >= t){
      p = mp[s2];
      if (p.second < i){
        p.first += 1;
        p.second = i;
        if (p.first > 1){
          I tmp = s2.size();
          t = max(t,tmp);
        }
        mp[s2] = p;
      }
    }
    for(I j=i+1;j<n;j++){
      s2 += s.at(j);
      if (s2.size() <= t) continue;
      p = mp[s2];
      if (p.second < i){
        p.first += 1;
        p.second = i + s2.size() - 1;
        if (p.first > 1){
          I tmp=s2.size();
          t = max(t,tmp);
        }
        mp[s2] = p;
      }
    }
  }
  */
  cout << t << endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:54:12: error: redeclaration of 'std::string s2'
   54 |     string s2 = s.substr(0,i);;
      |            ^~
a.cc:46:12: note: 'std::string s2' previously declared here
   46 |     string s2 = s.substr(0,i);;
      |            ^~
Language: C++


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


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

#include <bits/stdc++.h>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'if'
    7 |   cin >> s
      |           ^
      |           ;
    8 |   if (s == "Sunny") {
      |   ~~       
a.cc:10:5: error: 'else' without a previous 'if'
   10 |   } else if (s == "Cloudy") {
      |     ^~~~
Language: C++

#include <bitstdc++.h>
using namespace std;

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string S;
  cin >> S;
 
  int count = 0;
  for (int i = 0; i < S.size(); i++) {
    if (i % 2 == 1) {
      if (S.at(i) == "L"){
        count++;
        cout << "No" << endl;
        break;
      }
    }
    
    if (i % 2 == 0) {
      if (S.at(i) == "R"){
        count++;
        cout << "No" << endl;
        break;
      }
    }
  }
  if (count == 0){
  cout << "Yes" << endl;
  }
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |       if (S.at(i) == "L"){
      |           ~~~~~~~~^~~~~~
a.cc:19:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |       if (S.at(i) == "R"){
      |           ~~~~~~~~^~~~~~
a.cc: At global scope:
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C

include<stdio.h>

int main(){

int S[8]

scanf("%s",S);

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

return 0;

}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cint' was not declared in this scope; did you mean 'uint'?
    8 |   cint >> S;
      |   ^~~~
      |   uint
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:19: error: 'S' undeclared (first use in this function)
    6 |   if(strcmp(&s[0],S)==0){
      |                   ^
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:24: error: 'C' undeclared (first use in this function)
    9 |   else if(strcmp(&s[0],C)==0){
      |                        ^
Language: C

#include<stdio.h>

int main(){
  
  char S[10];
  char S1[] = Sunny;
  char S2[] = Cloudy;
  char S3[] = Rainy;
  
  scanf("%s",S);
  
  if('S'==S1[]){
    printf("Cloudy");
  }if('S'==S2[]){
    prinf("Rainy");
  }if('S'==S3[]){
    printf(Sunny);
  }
  
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: 'Sunny' undeclared (first use in this function)
    6 |   char S1[] = Sunny;
      |               ^~~~~
main.c:6:15: 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 |   char S2[] = Cloudy;
      |               ^~~~~~
main.c:8:15: error: 'Rainy' undeclared (first use in this function)
    8 |   char S3[] = Rainy;
      |               ^~~~~
main.c:12:14: error: expected expression before ']' token
   12 |   if('S'==S1[]){
      |              ^
main.c:14:15: error: expected expression before ']' token
   14 |   }if('S'==S2[]){
      |               ^
main.c:15:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   15 |     prinf("Rainy");
      |     ^~~~~
      |     printf
main.c:16:15: error: expected expression before ']' token
   16 |   }if('S'==S3[]){
      |               ^
Language: C++


#include <stdio.h>
int main()
{
  int i,j,n;
  char tenki[10];

  scanf("%s",tenki);

  if(!strcmp(tenki, "Sunny"))
    {
      printf("Cloudy\n");
    }
  else if(!strcmp(tenki, "Cloudy"))
    {
      printf("Rainy\n");
    }
  else if(!strcmp(tenki, "Rainy"))
    {
      printf("Sunny\n");
    }
  
  



  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'strcmp' was not declared in this scope
   10 |   if(!strcmp(tenki, "Sunny"))
      |       ^~~~~~
a.cc:3:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <stdio.h>
  +++ |+#include <cstring>
    3 | int main()
Language: C

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

int main(void){
  
  char N[100];
  
  scanf("%s", N);
  
  if(N==Sunny){
    printf("Cloudy");
  }if(N==Cloudy){
    printf("Rainy");
  }if(N==Rainy){
    printf("Sunny");
  }
  
  return 0;
  
}

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

#include <iostream>
#include <vector>
#include <set>
#include <string>
#include <utility>
#include <functional>
#include <queue>
#include <cmath>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <iomanip>      // std::setprecision
#include <boost/optional.hpp>
#include <boost/range/irange.hpp>
#include <boost/range/algorithm.hpp>
#include <boost/range/numeric.hpp>
#include <boost/bimap/bimap.hpp>
#include <boost/bimap/multiset_of.hpp>
#include <boost/multi_array.hpp>
#include <boost/math/common_factor_ct.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/pending/disjoint_sets.hpp>
#include <boost/icl/interval_map.hpp>
#include <boost/graph/graph_traits.hpp>
#include <boost/graph/strong_components.hpp>
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/dijkstra_shortest_paths.hpp>
#include <boost/graph/kruskal_min_spanning_tree.hpp>
#include <boost/graph/graph_utility.hpp>
#include <boost/numeric/ublas/vector.hpp>

#define REP(i, N) for(int i=0; i<(N); i++)
#define REC(f, ...) const auto f = [&](const auto f, __VA_ARGS__)
using namespace std;
using namespace boost::math;
using namespace boost::numeric;
namespace bst = boost;

int main() {
  int S;

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

  return 0;
}


Compiler output:
a.cc:13:10: fatal error: boost/optional.hpp: No such file or directory
   13 | #include <boost/optional.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	char w[6];
	scanf("%s",w)
	if(w[0]=='S'){
		cout<<"Cloudy"<<endl;
	}
	else if(w[0]=='C'){
		cout<<"Rainy"<<endl;
	}
	else cout<<"Sunny\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: expected ';' before 'if'
    5 |         scanf("%s",w)
      |                      ^
      |                      ;
    6 |         if(w[0]=='S'){
      |         ~~            
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else if(w[0]=='C'){
      |         ^~~~
Language: C++

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

int main()
{
	        char str [6];
		cin >> str;
	if (str == sunny)
 {
		cout << "Cloudy\n";
	}
	else if(str == cloudy)
{
		cout << "Rainy\n";
	}
	else if(str == rainy)
{
		cout << "Sunny\n";
        }
        else
{
		cout << "Yeah\n";
        }
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'sunny' was not declared in this scope
    9 |         if (str == sunny)
      |                    ^~~~~
a.cc:13:24: error: 'cloudy' was not declared in this scope
   13 |         else if(str == cloudy)
      |                        ^~~~~~
a.cc:17:24: error: 'rainy' was not declared in this scope
   17 |         else if(str == rainy)
      |                        ^~~~~
Language: C++

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

int main()
{
	        char str [6];
		cin >> str;
	if (str == Sunny)
 {
		cout << "Cloudy\n";
	}
	else if(str == Cloudy)
{
		cout << "Rainy\n";
	}
	else if(str == Rainy)
{
		cout << "Sunny\n";
        }
        else
{
		cout << "Yeah\n";
        }
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'Sunny' was not declared in this scope
    9 |         if (str == Sunny)
      |                    ^~~~~
a.cc:13:24: error: 'Cloudy' was not declared in this scope
   13 |         else if(str == Cloudy)
      |                        ^~~~~~
a.cc:17:24: error: 'Rainy' was not declared in this scope
   17 |         else if(str == 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: In function 'int main()':
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:9: error: ')' expected
       } else if(s.equals("Rainy"){
                                  ^
1 error
Language: C++

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

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

    string s;
    cin >> s;
    string answer ;
    if(s == "Rainy"){
        answer = "Sunny\n";
    }
    else
    if(s == "Sunny"){
        answer = "Cloudy\n";
    }
    else{
        answer = "Rainy\n";
    }
    cout << anaswer << "\n";


return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:13: error: 'anaswer' was not declared in this scope; did you mean 'answer'?
   21 |     cout << anaswer << "\n";
      |             ^~~~~~~
      |             answer
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'Sunny' was not declared in this scope
    8 |   if (S == Sunny){
      |            ^~~~~
a.cc:11:17: error: 'Cloudy' was not declared in this scope
   11 |   else if (S == Cloudy){
      |                 ^~~~~~
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
 
using namespace std;
 
int main(){
	string S;
 	cout << S;
	bool isOk = true;
  
  	for (int i = 0; i < S.size();i++){
    	if(i%2 == 1){
          if(S.at(i)=='R'){
              isOK = false;
          }
        }else
        {
        	if(S.at(i)== 'L'){
              isOK = false;
          }
        }
    }
  	if(isOK){
    	cout<<"Yes";
    }else{
    	cout <<"No";
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: 'isOK' was not declared in this scope; did you mean 'isOk'?
   13 |               isOK = false;
      |               ^~~~
      |               isOk
a.cc:18:15: error: 'isOK' was not declared in this scope; did you mean 'isOk'?
   18 |               isOK = false;
      |               ^~~~
      |               isOk
a.cc:22:12: error: 'isOK' was not declared in this scope; did you mean 'isOk'?
   22 |         if(isOK){
      |            ^~~~
      |            isOk
Language: C++

#include <iostream>
using namespace std;

int main()
{
	        string a;
		cin >> a;
	if (a == Sunny)
 {
		cout << "Cloudy\n";
	}
	else if(a == Cloudy)
{
		cout << "Rainy\n";
	}
	else if(a == Rainy)
{
		cout << "Sunny\n";
        }
        else
{
		cout << "Yeah\n";
        }
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 'Sunny' was not declared in this scope
    8 |         if (a == Sunny)
      |                  ^~~~~
a.cc:12:22: error: 'Cloudy' was not declared in this scope
   12 |         else if(a == Cloudy)
      |                      ^~~~~~
a.cc:16:22: error: 'Rainy' was not declared in this scope
   16 |         else if(a == Rainy)
      |                      ^~~~~
Language: Java

import java.util.Scanner

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

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
Main.java:9: error: ')' expected
       } else if(s.equals("Rainy"){
                                  ^
2 errors
Language: C

#include<stdio.h>

int main(){
  
  char N[100];
  
  scanf("%s",N);
  
  if(N==Sunny){
    printf("Cloudy");
  }if(N==Cloudy){
    printf("Rainy");
  }if(N==Rainy){
    printf("Sunny");
  }
  
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'Sunny' undeclared (first use in this function)
    9 |   if(N==Sunny){
      |         ^~~~~
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:10: error: 'Cloudy' undeclared (first use in this function)
   11 |   }if(N==Cloudy){
      |          ^~~~~~
main.c:13:10: error: 'Rainy' undeclared (first use in this function)
   13 |   }if(N==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;
  }
  
  
    

  cout <<  << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:12: error: expected primary-expression before '<<' token
   21 |   cout <<  << endl;
      |            ^~
Language: C++

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

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

  return 0;  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'tommorow' was not declared in this scope; did you mean 'tomorrow'?
   15 |     tommorow = "Cloudy";
      |     ^~~~~~~~
      |     tomorrow
a.cc:19:5: error: 'tommorow' was not declared in this scope; did you mean 'tomorrow'?
   19 |     tommorow = "Rainy";
      |     ^~~~~~~~
      |     tomorrow
a.cc:23:5: error: 'tommorow' was not declared in this scope; did you mean 'tomorrow'?
   23 |     tommorow = "Sunny";
      |     ^~~~~~~~
      |     tomorrow
Language: C

#include<stdio.h>

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

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

#include <iostream>
using namespace std;

int main()
{
	        string a;
		cin >> a;
	if (a == Sunny)
 {
		cout << "Cloudy\n";
	}
	else if(a == Cloudy)
{
		cout << "Rainy\n";
	}
	else if(a == Rainy)
{
		cout << "Sunny\n";
        else
{
		cout << "ちんこ\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 'Sunny' was not declared in this scope
    8 |         if (a == Sunny)
      |                  ^~~~~
a.cc:12:22: error: 'Cloudy' was not declared in this scope
   12 |         else if(a == Cloudy)
      |                      ^~~~~~
a.cc:16:22: error: 'Rainy' was not declared in this scope
   16 |         else if(a == Rainy)
      |                      ^~~~~
a.cc:19:9: error: expected '}' before 'else'
   19 |         else
      |         ^~~~
a.cc:17:1: note: to match this '{'
   17 | {
      | ^
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C

#include<stdio.h>

int main(){
  
  int S[100];
  
  scanf("%s",S);
  
  if(S==Sunny){
    printf("Cloudy");
  }if(S==Cloudy){
    printf("Rainy");
  }if(S==Rainy){
    printf("Sunny");
  }
  
  return 0;
  
}

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

#include<iostream.h>
int main(){
char s;
cin>>s;
if(s=="Rainy"){
  cout<<"Sunny";
}else if (s=="Cloudy"){
  cout<<"Rainy";
  }else if (s=="Sunny"){
cout<<"cloudy";
}

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

#include<iostream>
int main(){
char s;
cin>>s;
if(s=="Rainy"){
  cout<<"Sunny";
}else if (s=="Cloudy"){
  cout<<"Rainy";
  }else if (s=="Sunny"){
cout<<"cloudy";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | cin>>s;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    5 | if(s=="Rainy"){
      |    ~^~~~~~~~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<"Sunny";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 | }else if (s=="Cloudy"){
      |           ~^~~~~~~~~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout<<"Rainy";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   }else if (s=="Sunny"){
      |             ~^~~~~~~~~
a.cc:10:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | cout<<"cloudy";
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'Sunny' was not declared in this scope
    8 |   if ( S == Sunny ) {
      |             ^~~~~
a.cc:12:16: error: 'Cloudy' was not declared in this scope
   12 |      if ( S == Cloudy ) {
      |                ^~~~~~
a.cc:16:16: error: 'Rainy' was not declared in this scope
   16 |      if ( S == Rainy ) {
      |                ^~~~~
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:11:8: note: to match this '{'
   11 |   else {
      |        ^
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
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;
  }
  
  
    

  cout <<  << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'Sunny' was not declared in this scope
    8 |   if (S == Sunny){
      |            ^~~~~
a.cc:11:17: error: 'Cloudy' was not declared in this scope
   11 |   else if (S == Cloudy){
      |                 ^~~~~~
a.cc:21:12: error: expected primary-expression before '<<' token
   21 |   cout <<  << endl;
      |            ^~
Language: C++

#includce<iostream.h>
int main(){
char s;
cin>>s;
if(s=="Rainy"){
  cout<<"Sunny";
}else if (s=="Cloudy"){
  cout<<"Rainy";
  }else if (s=="Sunny"){
cout<<"cloudy";
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includce; did you mean #include?
    1 | #includce<iostream.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope
    4 | cin>>s;
      | ^~~
a.cc:5:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    5 | if(s=="Rainy"){
      |    ~^~~~~~~~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<"Sunny";
      |   ^~~~
a.cc:7:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 | }else if (s=="Cloudy"){
      |           ~^~~~~~~~~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout<<"Rainy";
      |   ^~~~
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   }else if (s=="Sunny"){
      |             ~^~~~~~~~~
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout<<"cloudy";
      | ^~~~
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

#include<iostream>
int main(){
char s;
cin>>s;
if(s=="Rainy"){
  cout<<"Sunny";
}else if (s=="Cloudy"){
  cout<<"Rainy";
  }else if (s=="Sunny"){
cout<<"cloudy";
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | cin>>s;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    5 | if(s=="Rainy"){
      |    ~^~~~~~~~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<"Sunny";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 | }else if (s=="Cloudy"){
      |           ~^~~~~~~~~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout<<"Rainy";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   }else if (s=="Sunny"){
      |             ~^~~~~~~~~
a.cc:10:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | cout<<"cloudy";
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
 
using namespace std;
 
int main(){
	string S;
 	cout << S;
	bool isOk = true;
  
  	for (int i = 0; i < S.length();i++){
    	if(i%2 == 1){
          if(S[i]== ("R")){
              isOK = false;
          }
        }else
        {
        	if(S[i]== ("L")){
              isOK = false;
          }
        }
    }
  	if(isOK){
    	cout<<"Yes";
    }else{
    	cout <<"No";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |           if(S[i]== ("R")){
a.cc:13:15: error: 'isOK' was not declared in this scope; did you mean 'isOk'?
   13 |               isOK = false;
      |               ^~~~
      |               isOk
a.cc:17:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |                 if(S[i]== ("L")){
a.cc:18:15: error: 'isOK' was not declared in this scope; did you mean 'isOk'?
   18 |               isOK = false;
      |               ^~~~
      |               isOk
a.cc:22:12: error: 'isOK' was not declared in this scope; did you mean 'isOk'?
   22 |         if(isOK){
      |            ^~~~
      |            isOk
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'cin' was not declared in this scope
    3 | cin>>s;
      | ^~~
a.cc:4:6: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    4 | if(s="Rainy"){
      |      ^~~~~~~
      |      |
      |      const char*
a.cc:5:3: error: 'cout' was not declared in this scope
    5 |   cout<<"Sunny";
      |   ^~~~
a.cc:6:13: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    6 | }else if (s="Cloudy"){
      |             ^~~~~~~~
      |             |
      |             const char*
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<"Rainy";
      |   ^~~~
a.cc:8:15: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    8 |   }else if (s="Sunny"){
      |               ^~~~~~~
      |               |
      |               const char*
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<"cloudy";
      | ^~~~
a.cc: At global scope:
a.cc:12:5: error: redefinition of 'int main()'
   12 | int main(){
      |     ^~~~
a.cc:1:5: note: 'int main()' previously defined here
    1 | int main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:14:1: error: 'cin' was not declared in this scope
   14 | cin>>s;
      | ^~~
a.cc:15:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 | if(s=="Rainy"){
      |    ~^~~~~~~~~
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout<<"Sunny";
      |   ^~~~
a.cc:17:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 | }else if (s=="Cloudy"){
      |           ~^~~~~~~~~~
a.cc:18:3: error: 'cout' was not declared in this scope
   18 |   cout<<"Rainy";
      |   ^~~~
a.cc:19:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |   }else if (s=="Sunny"){
      |             ~^~~~~~~~~
a.cc:20:1: error: 'cout' was not declared in this scope
   20 | cout<<"cloudy";
      | ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'cin' was not declared in this scope
    3 | cin>>s;
      | ^~~
a.cc:4:6: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    4 | if(s="Rainy"){
      |      ^~~~~~~
      |      |
      |      const char*
a.cc:5:3: error: 'cout' was not declared in this scope
    5 |   cout<<"Sunny";
      |   ^~~~
a.cc:6:13: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    6 | }else if (s="Cloudy"){
      |             ^~~~~~~~
      |             |
      |             const char*
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<"Rainy";
      |   ^~~~
a.cc:8:15: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    8 |   }else if (s="Sunny"){
      |               ^~~~~~~
      |               |
      |               const char*
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<"cloudy";
      | ^~~~
Language: C

#include<stdio.h>

int main(void){
    int S = Sunny,Rainy,Cloudy;

    scanf("%d",&S);

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

Compiler output:
main.c: In function 'main':
main.c:4:13: error: 'Sunny' undeclared (first use in this function)
    4 |     int S = Sunny,Rainy,Cloudy;
      |             ^~~~~
main.c:4:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'cin' was not declared in this scope
    3 | cin>>s;
      | ^~~
a.cc:4:5: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    4 | if(s=="Rainy"){
      |    ~^~~~~~~~~
a.cc:5:3: error: 'cout' was not declared in this scope
    5 |   cout<<"Sunny";
      |   ^~~~
a.cc:6:13: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    6 | }else if (s="Cloudy"){
      |             ^~~~~~~~
      |             |
      |             const char*
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout>>"Rainy";
      |   ^~~~
a.cc:8:15: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    8 |   }else if (s="Sunny"){
      |               ^~~~~~~
      |               |
      |               const char*
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout>>"cloudy";
      | ^~~~
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;
  }
  // 莉･荳九�ｮ繧ｳ繝｡繝ｳ繝�/* */繧呈ｶ医＠縺ｦ霑ｽ險倥☆繧�
  //cout << /* 1蟷ｴ縺ｯ菴慕ｧ偵° */ << endl;
  //cout << /* 2蟷ｴ縺ｯ菴慕ｧ偵° */ << endl;
  //cout << /* 5蟷ｴ縺ｯ菴慕ｧ偵° */ << endl;
  //cout << /* 10蟷ｴ縺ｯ菴慕ｧ偵° */ << endl;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: switch quantity not an integer
    9 |   switch (S)
      |           ^