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

#include <iostream>
#include <math.h>
using namespace std;

int main(void) {
  
  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:11:13: error: 'Sunny' was not declared in this scope
   11 |   if ( S == Sunny ) {
      |             ^~~~~
a.cc:16:18: error: 'Cloudy' was not declared in this scope
   16 |   else if ( S == Cloudy ) {
      |                  ^~~~~~
a.cc:21:18: error: 'Rainy' was not declared in this scope
   21 |   else if ( S == Rainy ) {
      |                  ^~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
int main() {
    string S ;
    cin >> S ; // S is 'Sunny', 'Cloudy', or 'Rainy'.
    if (S == "Sunny") cout << "Cloudy" << endl;
    else if (S == "Cloudy") cout << "Rainy" << endl;
         else cout << "Sunny" << endl;
	return 0;
  ]

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected primary-expression before ']' token
   12 |   ]
      |   ^
a.cc:12:4: error: expected '}' at end of input
   12 |   ]
      |    ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C

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

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

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
	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:33:26: error: expected ';' before 'endl'
   33 |           cout << "Sunny" endl;
      |                          ^~~~~
      |                          ;
Language: C++

/*
 * cpp_filepath
 */

// C++ 14
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstring> // memset
#include <cassert>
using namespace std;
#define ll long long
#define loop(__x, __start, __end) for(int __x = __start; __x < __end; __x++)
template <class T> ostream & operator << (ostream & out, vector<T> const & v) {
  for (auto &&a: v) out << a << " "; out << endl; return out;
}
template <class T> void dump(T &a) { cout << a << endl; }
void solve();
int main() { solve(); return 0; }


void solve() {
  vector<string> S {"Sunny", "Cloudy", "Rainy"};
  string s; cin >> s;
  auto it = S.find(S.begin(), S.end(), s);
  it++;
  if (it == S.end()) it = S.begin();
  cout << *it << endl;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:26:15: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'find'
   26 |   auto it = S.find(S.begin(), S.end(), s);
      |               ^~~~
Language: C++

/*
 * cpp_filepath
 */

// C++ 14
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstring> // memset
#include <cassert>
using namespace std;
#define ll long long
#define loop(__x, __start, __end) for(int __x = __start; __x < __end; __x++)
template <class T> ostream & operator << (ostream & out, vector<T> const & v) {
  for (auto &&a: v) out << a << " "; out << endl; return out;
}
template <class T> void dump(T &a) { cout << a << endl; }
void solve();
int main() { solve(); return 0; }


void solve() {
  string S[] = {"Sunny", "Cloudy", "Rainy"};
  string s; cin >> s;
  auto idx = find(S, S+3, s);
  idx = (idx+1) % 3;
  cout << S[idx] << endl;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:27:17: error: invalid operands of types 'std::__cxx11::basic_string<char>*' and 'int' to binary 'operator%'
   27 |   idx = (idx+1) % 3;
      |         ~~~~~~~ ^ ~
      |             |     |
      |             |     int
      |             std::__cxx11::basic_string<char>*
a.cc:28:12: error: invalid types 'std::string [3] {aka std::__cxx11::basic_string<char> [3]}[std::__cxx11::basic_string<char>*]' for array subscript
   28 |   cout << S[idx] << endl;
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ',' or ';' before '=' token
    8 |  vector<string> a(4)={"Sunny","Cloudy","Rainy","Sunny"};
      |                     ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'S' was not declared in this scope
   12 |   else if (S.at(0) == 'C') cout << "Rainy" << endl;
      |            ^
Language: C++

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

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



}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: expected ';' before '}' token
   18 |   cout << T<< endl
      |                   ^
      |                   ;
......
   22 | }
      | ~
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:9:11: error: expected ';' before '}' token
    9 |   return 0
      |           ^
      |           ;
   10 | }
      | ~
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:3: error: 'else' without a previous 'if'
    7 |   else if(s=="Cloudy") cout<<"Rainy"<<endl;
      |   ^~~~
a.cc:9:11: error: expected ';' before '}' token
    9 |   return 0
      |           ^
      |           ;
   10 | }
      | ~
Language: Java

import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Arrays;
import java.util.Collections;
import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int S = scan.next();
    if(S.equals("Sunny")){
      System.out.println("Cloudy");
    }
    else if(S.equals("Cloudy")){
      System.out.println("Rainy");
    }
    else{
      System.out.println("Sunny");
    }
  }
}

Compiler output:
Main.java:11: error: incompatible types: String cannot be converted to int
    int S = scan.next();
                     ^
Main.java:12: error: int cannot be dereferenced
    if(S.equals("Sunny")){
        ^
Main.java:15: error: int cannot be dereferenced
    else if(S.equals("Cloudy")){
             ^
3 errors
Language: C++

#include <bits/stdc++.h>
using ll = long long;
using namespace std;
#define rep(i,n) for(int i=0, i##_len=(int)(n); i<i##_len; i++)
#define reps(i,n) for(int i=1 , i##_len=(int)(n);i<=i##_len;i++)
#define rrep(i,n) for(int i=((int)(n)-1);i>=0;i--)
#define rreps(i,n) for(int i=((int)(n));i>0;i--)
#define repi(i,x) for(auto i=(x).begin(),i##_fin=(x).end();i!=i##_fin;i++)
#define all(x) (x).begin(), (x).end()
#define F first
#define S second
#define mp make_pair
#define pb push_back
#define solve(a) ((a)?"Yes":"No")
typedef vector<int> Vi;
typedef vector<Vi> VVi;
typedef pair<int , int> Pi;
typedef vector<Pi> VPi;
typedef vector<long long> V;
typedef vector<V> VV;
typedef pair<long long , long long> P;
typedef vector<P> VP;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1;} return 0;}
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1;} return 0;}
const long long INFLL = 1LL<<60;
const int INF = 1<<30;
const double PI=acos(-1);
int main(){
//	string a[3]={"Sunny","Cloudy","Rainy"};
	string s;
	string ans=0;
	cin >>s;
	if(s=="Cloudy"){
		ans="Sunny";
	}else if(s=="Rainy"){
		ans="Cloudy"
	}else{
		ans="Rainy";
	}
	cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:29: error: expected ';' before '}' token
   36 |                 ans="Cloudy"
      |                             ^
      |                             ;
   37 |         }else{
      |         ~
Language: C++

#include <bits/stdc++.h>
using ll = long long;
using namespace std;
#define rep(i,n) for(int i=0, i##_len=(int)(n); i<i##_len; i++)
#define reps(i,n) for(int i=1 , i##_len=(int)(n);i<=i##_len;i++)
#define rrep(i,n) for(int i=((int)(n)-1);i>=0;i--)
#define rreps(i,n) for(int i=((int)(n));i>0;i--)
#define repi(i,x) for(auto i=(x).begin(),i##_fin=(x).end();i!=i##_fin;i++)
#define all(x) (x).begin(), (x).end()
#define F first
#define S second
#define mp make_pair
#define pb push_back
#define solve(a) ((a)?"Yes":"No")
typedef vector<int> Vi;
typedef vector<Vi> VVi;
typedef pair<int , int> Pi;
typedef vector<Pi> VPi;
typedef vector<long long> V;
typedef vector<V> VV;
typedef pair<long long , long long> P;
typedef vector<P> VP;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1;} return 0;}
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1;} return 0;}
const long long INFLL = 1LL<<60;
const int INF = 1<<30;
const double PI=acos(-1);
int main(){
	vector<string>a={"Sunny","Cloudy","Rainy"};
	string s;
	string ans=0;
	cin >>s;
	if(s=="Sunny"){
		ans=a[1];
	}else if(s="Cloudy"){
		ans=a[2];
	}else{
		ans=a[0];
	}
	cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:19: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"Cloudy"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   35 |         }else if(s="Cloudy"){
      |                  ~^~~~~~~~~
      |                   |
      |                   std::__cxx11::basic_string<char>
Language: C

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

int main() {
  string S; cin >> S;
  string w = {"Sunny", "Cloudy", "Rainy", "Sunny"}; 
  for (int i=0; i<w.length()-1; i++) {
    if (S == w[i]) cout << w[i+1] << endl;
  }
  return 0;
}


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

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

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

  return 0;
}


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

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

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

  return 0;
}


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

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

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

  return 0;
}


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

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

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

  return 0;
}


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

#include <iostream>
#include <string>
int main(){
  string S[4] ={"Sunny","Cloudy","Rainy","Sunny"};
  string t;
  cin >> t;
  for(int i = 0; i < 3; i++){
    if(S[i] == t) {
      cout << S[i+1] << endl;
      return 0;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string S[4] ={"Sunny","Cloudy","Rainy","Sunny"};
      |   ^~~~~~
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:5:9: error: expected ';' before 't'
    5 |   string t;
      |         ^~
      |         ;
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> t;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:10: error: 't' was not declared in this scope; did you mean 'tm'?
    6 |   cin >> t;
      |          ^
      |          tm
a.cc:8:8: error: 'S' was not declared in this scope
    8 |     if(S[i] == t) {
      |        ^
a.cc:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |       cout << S[i+1] << endl;
      |       ^~~~
      |       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:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |       cout << S[i+1] << endl;
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <bitset>
#include <vector>
#include <string>
#include <algorithm>
#include <set>
#include <map>
using namespace std;
using ll = long long int;
using dd = long double;
const ll MOD = 1e9 + 7;

vector<string> dfs(string s, ll depth, vector<char> symbol)
{
    vector<string> ret;
    if (depth == 0)
    {
        ret.push_back(s);
        return ret;
    }

    for (ll i = 0; i < symbol.size(); i++)
    {
        auto vec = dfs(s + symbol[i], depth - 1, symbol);
        for (auto &&e : vec)
        {
            ret.push_back(e);
        }
    }
    return ret;
}

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

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

    string Sunny = "Sunny";
    string Cloudy = "Cloudy";
    string Rainy = "Rainy";

    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:51:13: error: switch quantity not an integer
   51 |     switch (s)
      |             ^
a.cc:53:10: error: the value of 'Sunny' is not usable in a constant expression
   53 |     case Sunny:
      |          ^~~~~
a.cc:47:12: note: 'Sunny' was not declared 'constexpr'
   47 |     string Sunny = "Sunny";
      |            ^~~~~
a.cc:56:10: error: the value of 'Cloudy' is not usable in a constant expression
   56 |     case Cloudy:
      |          ^~~~~~
a.cc:48:12: note: 'Cloudy' was not declared 'constexpr'
   48 |     string Cloudy = "Cloudy";
      |            ^~~~~~
a.cc:59:10: error: the value of 'Rainy' is not usable in a constant expression
   59 |     case Rainy:
      |          ^~~~~
a.cc:49:12: note: 'Rainy' was not declared 'constexpr'
   49 |     string Rainy = "Rainy";
      |            ^~~~~
Language: Java

public class Main{
  public static void main(String args[]){
    Scanner Weather=new Scanner(System.in);
    
    String str0=Weather.nextLine();
    System.out.println("str0");
    
    String str1="Sunny";
    String str2="Cloudy";
    String str3="Rainy";
    
    
    if(str0==str1){
      System.out.println("Cloudy");
    }else if(str0==str2){
      System.out.println("Rainy");
    }else{
      System.out.println("Sunny");
    }
  }
}



Compiler output:
Main.java:3: error: cannot find symbol
    Scanner Weather=new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
    Scanner Weather=new Scanner(System.in);
                        ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

public class Main{
  public static void main(String args[]){
    Scanner Weather=new Scanner(System.in);
    
    String str0=Weather.nextLine();
    String str1="Sunny";
    String str2="Cloudy";
    String str3="Rainy";
    
    
    if(str0==str1){
      System.out.println("Cloudy");
    }else if(str0==str2){
      System.out.println("Rainy");
    }else{
      System.out.println("Sunny");
    }
  }
}



Compiler output:
Main.java:3: error: cannot find symbol
    Scanner Weather=new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
    Scanner Weather=new Scanner(System.in);
                        ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

public class Main{
  public static void main(String args[]){
    Scanner Weather=new Scanner(System.in);
    
    String str0=Weather;
    String str1="Sunny";
    String str2="Cloudy";
    String str3="Rainy";
    
    
    if(str0==str1){
      System.out.println("Cloudy");
    }else if(str0==str2){
      System.out.println("Rainy");
    }else{
      System.out.println("Sunny");
    }
  }
}



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

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

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  string ss;cin>>ss;
  if(ss="Sunny")cout<<"Cloudy"<<endl;
  else if(ss="Cloudy")cout<<"Rainy"<<endl;
  else cout<<"Sunny"<<endl;
  return 0;
  }


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

#include<stdio.h>
#include<string.h>
int main()
{
    int i,d;
    char give[7];
    scanf("%s",give);
    char a[3][7]={"Sunny","Cloudy","Rainy"};
    for(i=0;i<3;i++)
    {
        if(strcmpi(give,a[i])==0)
        {
            d=i;
            break;
        }

    }
    if(d==2)
        printf("%s",a[0]);
    else
        printf("%s",a[d+1]);
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:12: error: implicit declaration of function 'strcmpi'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
   11 |         if(strcmpi(give,a[i])==0)
      |            ^~~~~~~
      |            strcmp
Language: C++

# include <iostream>
# include <string>

using namespace std;

int main ()  {
  strring s;
  cin>>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:7:3: error: 'strring' was not declared in this scope; did you mean 'stdin'?
    7 |   strring s;
      |   ^~~~~~~
      |   stdin
a.cc:8:8: error: 's' was not declared in this scope
    8 |   cin>>s;
      |        ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:12: error: 'Sunny' undeclared (first use in this function)
    6 |      if(S==Sunny)
      |            ^~~~~
main.c:6:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:17: error: 'Cloudy' undeclared (first use in this function)
    8 |      else if(S==Cloudy)
      |                 ^~~~~~
main.c:10:17: error: 'Rainy' undeclared (first use in this function)
   10 |      else if(S==Rainy)
      |                 ^~~~~
Language: C

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


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

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

int main() {
  string weather;
  cin >> weather;
  if(weather == "Sunny") cout << "Cloudy" << endl;
  if(weather == "Cloudy")cout << "Rainy" << endl;
  id (weather == "Rainy") cout << "Sunny" << endl;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'id' was not declared in this scope
    9 |   id (weather == "Rainy") cout << "Sunny" << endl;
      |   ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:10: error: 'o' undeclared (first use in this function)
    7 |     if(s[o]=='S')
      |          ^
main.c:7:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
//A	Weather Prediction	2 sec	1024 MB	提出
int Question141A() {
	char s1[7] = { 'S','u','n','n','y' };
	char s2[7] = { 'C','l','o','u','d','y' };
	char s3[7] = { 'R','a','i','n','y' };
	char n[7];
	
	scanf("%s", n);
	
	if(*n==*s1) puts(s2);
	else if (*n == *s2) puts(s3);
	else if (*n == *s3) puts(s1);
	else return 1;
	
	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 Question141A() {
	char s1[7] = { 'S','u','n','n','y' };
	char s2[7] = { 'C','l','o','u','d','y' };
	char s3[7] = { 'R','a','i','n','y' };
	char n[7] = { 0 };
	
	scanf("%s", n);
	
	if(*n==*s1) puts(s2);
	else if (*n == *s2) puts(s3);
	else if (*n == *s3) puts(s1);
	else return 1;
	
	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

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int Question141A(void) {
	char s1[7] = { 'S','u','n','n','y' };
	char s2[7] = { 'C','l','o','u','d','y' };
	char s3[7] = { 'R','a','i','n','y' };
	char n[7] = { 0 };
	
	scanf_s("%s", n);
	
	if(*n==*s1) puts(s2);
	else if (*n == *s2) puts(s3);
	else if (*n == *s3) puts(s1);
	else return 1;
	
	return 0;
}


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

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int Question141A(void) {
	char s1[7] = { 'S','u','n','n','y' };
	char s2[7] = { 'C','l','o','u','d','y' };
	char s3[7] = { 'R','a','i','n','y' };
	char n[7] = { 0 };
	
	scanf("%s", n);
	
	if(*n==*s1) puts(s2);
	else if (*n == *s2) puts(s3);
	else if (*n == *s3) puts(s1);
	else return 1;
	
	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 <bits/stdc++.h>
using namespace std;

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


Compiler output:
a.cc:4:11: error: extended character 　 is not valid in an identifier
    4 | int main()　{
      |           ^
a.cc:4:11: error: expected initializer before '\U00003000'
    4 | int main()　{
      |           ^~
Language: C++

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

int main(){
  vector<string> a(4)={'Sunny','Cloudy','Rainy'};
  string s;
  cin >> s;
  
  for(int i=0;i<4;i++){
    if(s==a.at(i)){
      cout << a.at(i+1) << endl;
      break;
    }
  }
}

Compiler output:
a.cc:5:24: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    5 |   vector<string> a(4)={'Sunny','Cloudy','Rainy'};
      |                        ^~~~~~~
a.cc:5:32: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    5 |   vector<string> a(4)={'Sunny','Cloudy','Rainy'};
      |                                ^~~~~~~~
a.cc:5:41: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    5 |   vector<string> a(4)={'Sunny','Cloudy','Rainy'};
      |                                         ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:22: error: expected ',' or ';' before '=' token
    5 |   vector<string> a(4)={'Sunny','Cloudy','Rainy'};
      |                      ^
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;
  else cout << "Sunny" << ednl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: 'ednl' was not declared in this scope
    9 |   else cout << "Sunny" << ednl;
      |                           ^~~~
Language: C++

# ABC 141 A - Weather Prediction
# https://atcoder.jp/contests/abc141/tasks/abc141_a

s = read_line
case s
when "Sunny"
  puts "Cloudy"
when "Cloudy"
  puts "Rainy"
when "Rainy"
  puts "Sunny"
end


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #ABC
    1 | # ABC 141 A - Weather Prediction
      |   ^~~
a.cc:2:3: error: invalid preprocessing directive #https
    2 | # https://atcoder.jp/contests/abc141/tasks/abc141_a
      |   ^~~~~
a.cc:4:1: error: 's' does not name a type
    4 | s = read_line
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | 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
    cout << "Sunny" << endl;
     
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(S == "Sunny")
      |      ~~^~~~~~~~~~
a.cc:9:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   else if(S == "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 (s == "Rainy") cout << "Sunny" <<endl;

  return 0;
}

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

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

  }
}

Compiler output:
Main.java:9: error: not a statement
    Sunny, Cloudy, Rainy
    ^
Main.java:9: error: ';' expected
    Sunny, Cloudy, Rainy
         ^
Main.java:9: error: not a statement
    Sunny, Cloudy, Rainy
           ^
Main.java:9: error: ';' expected
    Sunny, Cloudy, Rainy
                 ^
Main.java:9: error: not a statement
    Sunny, Cloudy, Rainy
                   ^
Main.java:9: error: ';' expected
    Sunny, Cloudy, Rainy
                        ^
Main.java:11: error: ')' expected
    if(a.equals("Sunny"){
                        ^
Main.java:12: error: ';' expected
      System.out.println("Cloudy")
                                  ^
8 errors
Language: C++

#include <bits/stdc++.h>
#include <cmath>
#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(S=="Sunny") S="Cloudy";
      |      ~^~~~~~~~~
a.cc:10:20: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 |   if(S=="Sunny") S="Cloudy";
      |                    ^~~~~~~~
      |                    |
      |                    const char*
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else if(S=="Cloudy") S="Rainy";
      |           ~^~~~~~~~~~
a.cc:11:26: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   11 |   else if(S=="Cloudy") S="Rainy";
      |                          ^~~~~~~
      |                          |
      |                          const char*
a.cc:12:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   12 |   else S="Sunny";
      |          ^~~~~~~
      |          |
      |          const char*
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    5 |   gets(a);
      |   ^~~~
      |   fgets
main.c:6:5: error: assignment to expression with array type
    6 | if(a="Sunny") printf("Cloudy");
      |     ^
main.c:7:10: error: assignment to expression with array type
    7 | else if(a="Cloudy") printf("Rainy");
      |          ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:5: error: assignment to expression with array type
    6 | if(a="Sunny") printf("Cloudy");
      |     ^
main.c:7:10: error: assignment to expression with array type
    7 | else if(a="Cloudy") printf("Rainy");
      |          ^
Language: C

#include<stdio.h>
#include <string.h>
using namespace std;
int main()
{
   char s[100];
   gets(s);
   if(s[0]=='S'){

        printf("Cloudy\n");

   }else if(s[0]=='C'){

         printf("Rainy\n");

   }else{
        printf("Sunny\n");



   }

    return 0;


}


Compiler output:
main.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
main.c: In function 'main':
main.c:7:4: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |    gets(s);
      |    ^~~~
      |    fgets
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
   char s[100];
   gets(s);
   if(s[0]=='S'){
        cout<<"Cloudy"<<endl;

   }else if(s[0]=='C'){
         cout<<"Rainy"<<endl;

   }else{
         cout<<"Sunny"<<endl;



   }

    return 0;


}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'i' was not declared in this scope
    8 |   i(S=="Cloudy")
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string X; cin >> X;
  map<string, string> weather;
  weather["Sunny"] = "Cloudy", weather["Cloudy"] = "Rainy", weather["Rainy"] = "Sunny";
  cout << weater.at(X) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'weater' was not declared in this scope; did you mean 'weather'?
    7 |   cout << weater.at(X) << endl;
      |           ^~~~~~
      |           weather
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cmath>
using namespace std;

int main() {

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


Compiler output:
a.cc: In function 'int main()':
a.cc:28:24: error: expected ';' before '}' token
   28 |         cout << "Rainy"
      |                        ^
      |                        ;
   29 |     }
      |     ~
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cmath>
using namespace std;

int main() {

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


Compiler output:
a.cc: In function 'int main()':
a.cc:24:10: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"Sunny"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   24 |     if (s="Sunny") {
      |         ~^~~~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:27:16: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"Cloudy"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   27 |     else if (s = "Cloudy") {
      |              ~~^~~~~~~~~~
      |                |
      |                std::__cxx11::basic_string<char>
a.cc:28:24: error: expected ';' before '}' token
   28 |         cout << "Rainy"
      |                        ^
      |                        ;
   29 |     }
      |     ~
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 {
    cout << "Sunny" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if ( S == "Sunny" ){
      |        ~~^~~~~~~~~~
a.cc:11:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   else if ( S == "Cloudy" ){
      |             ~~^~~~~~~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'sring' was not declared in this scope
    7 |   vector <sring> a(3);
      |           ^~~~~
a.cc:7:16: error: template argument 1 is invalid
    7 |   vector <sring> a(3);
      |                ^
a.cc:7:16: error: template argument 2 is invalid
a.cc:8:34: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment
    8 |   a = {"Sunny", "Cloudy", "Rainy"}
      |                                  ^
a.cc:9:19: error: 'i' was not declared in this scope
    9 |   for (int i = 0; i<3; i++) {
      |                   ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected primary-expression before '=' token
   12 |     if(s= = "Rainy")cout << "Sunny" <<endl;
      |           ^
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
  string s;
  cin>>s;
  string ans="Sunny";
  if(s[0]=="S") ans="Cloudy";
  if(s[0]=="C") ans="Rainy";
  cout<<ans<<endl;
}


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

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


int main() {
    string s[] = {'Sunny', 'Cloudy', 'Rainy'},inp;
    cin >>inp;
    rep(i,3){
        if(inp==s[i])cout << s[(i+1)%3] <<endl;
    }
}

Compiler output:
a.cc:7:19: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    7 |     string s[] = {'Sunny', 'Cloudy', 'Rainy'},inp;
      |                   ^~~~~~~
a.cc:7:28: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    7 |     string s[] = {'Sunny', 'Cloudy', 'Rainy'},inp;
      |                            ^~~~~~~~
a.cc:7:38: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    7 |     string s[] = {'Sunny', 'Cloudy', 'Rainy'},inp;
      |                                      ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:19: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |     string s[] = {'Sunny', 'Cloudy', 'Rainy'},inp;
      |                   ^~~~~~~
a.cc:7:28: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |     string s[] = {'Sunny', 'Cloudy', 'Rainy'},inp;
      |                            ^~~~~~~~
a.cc:7:38: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |     string s[] = {'Sunny', 'Cloudy', 'Rainy'},inp;
      |                                      ^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
template <typename X> ostream& operator << (ostream& x,const vector<X>& v){for(ll i=0;i<v.size();++i) x<<v[i]<<" ";return x;}
template <typename X> ostream& operator << (ostream& x,const set<X>& v){for(auto it:v) x<<it<<" ";return x;}
template <typename X, typename Y> ostream& operator << (ostream& x, const pair<X,Y>& v) {x<<v.ff<<" "<<v.ss;return x;}
template <typename T, typename S> ostream& operator << (ostream& os, const map<T, S>& v) { for (auto it : v) os << it.first << "=>" << it.second << endl; return os; }
struct pair_hash {inline std::size_t operator()(const std::pair<ll, ll> & v) const {return v.first*31+v.second;}};
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize ("O3")
#pragma GCC optimize ("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define speed ios_base::sync_with_stdio(false);cin.tie(NULL)
#define pb push_back
#define fr first
#define sc second
#define prnt(m) for(auto it = m.begin() ; it != m.end() ; ++it){cout<<*it<<endl;}
#define tra(it,m) for(auto it=m.begin();it!=m.end();++it)
#define DBG(x) cout<<"# # #     "<<x<<'\n';
#define fri(i,s,n) for(int i=s;i<n;i++)
#define mod 1000000007LL
#define mod2 998244353
#define vct2 vector<vector<ll>>
#define vct vector<ll>
#define pll pair<ll,ll>
#define rz(n) resize(n)
#define all(v) v.begin(),v.end()
#define mkp make_pair
#define arrin(a,n) for(ll i = 0; i < n ; i++){cin>>a[i];}
#define arrout(a,n) for(ll i = 0;i < n; i++){cout<<a[i]<<" ";}
#define ex(s) cout<<s<<endl,exit(0);
#define inf 1e18
#define five 100005;
#define six 1000005;
#define prllclock cerr<<"Time : "<<1000*(ld)clock()/(ld)CLOCKS_PER_SEC<<"ms\n";
//___________________________________________________________________________________________________________________________________________________________
int main()
{
       map<string,string> mp;
       cin>>s;
       mp["Sunny"] = "Cloudy";
       mp["Cloudy"]  = "Rainy";
       mp["Rainy"] = "Sunny";
       string s;
       cin>>s;
       cout<<mp[s];
}


Compiler output:
a.cc: In function 'int main()':
a.cc:41:13: error: 's' was not declared in this scope; did you mean 'sc'?
   41 |        cin>>s;
      |             ^
      |             sc
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < n; i++)
#define ll long long
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:10:25: error: extended character 　 is not valid in an identifier
   10 |     else if(s=="Cloudy")　cout<<"Rainy"<<endl;
      |                         ^
a.cc: In function 'int main()':
a.cc:10:25: error: '\U00003000cout' was not declared in this scope
   10 |     else if(s=="Cloudy")　cout<<"Rainy"<<endl;
      |                         ^~~~~~
Language: C++

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

using ll=long long;
const ll MOD=1000000007;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(s=="Sunny")
      |      ~^~~~~~~~~
a.cc:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   else if(s=="Cloudy")
      |           ~^~~~~~~~~~
Language: C

#include <stdio.h>
#include <string.h>
#include <conio.h>
int main()
{
    char S[100];
    scanf("%s",&S);
    if(strcmp(S,"SUNNY")==0){
        printf("CLOUDY");
        }
        if(strcmp(S,"CLOUDY")==0){
            printf("RAINY");
        }
        if(strcmp(S,"RAINY")==0){
            printf("SUNNY");
        }
        return 0;
}


Compiler output:
main.c:3:10: fatal error: conio.h: No such file or directory
    3 | #include <conio.h>
      |          ^~~~~~~~~
compilation terminated.