criyle/codenet-compile-errors huggingface dataset:
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 == 0){
          if(std::equal(S[i], "R")){
              isOK = false;
          }
        }else
        {
        	if(std::equal(S[ai], "L")){
              isOK = false;
          }
        }
    }
  	if(isOK){
    	cout<<"Yes";
    }else{
    	cout <<"No";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: no matching function for call to 'equal(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&, const char [2])'
   12 |           if(std::equal(S[i], "R")){
      |              ~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:1582:5: note: candidate: 'template<class _II1, class _II2> bool std::equal(_II1, _II1, _II2)'
 1582 |     equal(_II1 __first1, _II1 __last1, _II2 __first2)
      |     ^~~~~
/usr/include/c++/14/bits/stl_algobase.h:1582:5: note:   candidate expects 3 arguments, 2 provided
/usr/include/c++/14/bits/stl_algobase.h:1613:5: note: candidate: 'template<class _IIter1, class _IIter2, class _BinaryPredicate> bool std::equal(_IIter1, _IIter1, _IIter2, _BinaryPredicate)'
 1613 |     equal(_IIter1 __first1, _IIter1 __last1,
      |     ^~~~~
/usr/include/c++/14/bits/stl_algobase.h:1613:5: note:   candidate expects 4 arguments, 2 provided
/usr/include/c++/14/bits/stl_algobase.h:1704:5: note: candidate: 'template<class _II1, class _II2> bool std::equal(_II1, _II1, _II2, _II2)'
 1704 |     equal(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2)
      |     ^~~~~
/usr/include/c++/14/bits/stl_algobase.h:1704:5: note:   candidate expects 4 arguments, 2 provided
/usr/include/c++/14/bits/stl_algobase.h:1737:5: note: candidate: 'template<class _IIter1, class _IIter2, class _BinaryPredicate> bool std::equal(_IIter1, _IIter1, _IIter2, _IIter2, _BinaryPredicate)'
 1737 |     equal(_IIter1 __first1, _IIter1 __last1,
      |     ^~~~~
/usr/include/c++/14/bits/stl_algobase.h:1737:5: note:   candidate expects 5 arguments, 2 provided
a.cc:13:15: error: 'isOK' was not declared in this scope; did you mean 'isOk'?
   13 |               isOK = false;
      |               ^~~~
      |               isOk
a.cc:17:33: error: 'ai' was not declared in this scope; did you mean 'i'?
   17 |                 if(std::equal(S[ai], "L")){
      |                                 ^~
      |                                 i
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<stdio.h>

int main(){
    int i;
    char s[101];
    scanf("%s",s);
    for(i=0;i<100;i++){
      　if(s[i]=='\0'){
			break;
        }
        else if(i/2==0&&s[i]=='L'){
            printf("No");
            return 0;
        }
        else if(i/2==1&&s[i]=='R'){
            printf("No");
            return 0;
        }
    }
    printf("Yes");
}


Compiler output:
a.cc:8:7: error: extended character 　 is not valid in an identifier
    8 |       　if(s[i]=='\0'){
      |       ^
a.cc: In function 'int main()':
a.cc:8:7: error: '\U00003000if' was not declared in this scope
    8 |       　if(s[i]=='\0'){
      |       ^~~~
a.cc:11:9: error: 'else' without a previous 'if'
   11 |         else if(i/2==0&&s[i]=='L'){
      |         ^~~~
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 == 0){
          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:19: 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:25: 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++

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

Compiler output:
a.cc:6:9: error: extended character “ is not valid in an identifier
    6 |   if(s==“Sunny”)
      |         ^
a.cc:6:9: error: extended character ” is not valid in an identifier
a.cc:7:11: error: extended character “ is not valid in an identifier
    7 |     cout<<“Cloudy”<<endl;
      |           ^
a.cc:7:11: error: extended character ” is not valid in an identifier
a.cc:8:14: error: extended character “ is not valid in an identifier
    8 |   else if(s==“Cloudy”)
      |              ^
a.cc:8:14: error: extended character ” is not valid in an identifier
a.cc:9:11: error: extended character “ is not valid in an identifier
    9 |     cout<<“Rainy”<<endl;
      |           ^
a.cc:9:11: error: extended character ” is not valid in an identifier
a.cc:10:14: error: extended character “ is not valid in an identifier
   10 |   else cout<<“Sunny”<<endl;
      |              ^
a.cc:10:14: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:6:9: error: '\U0000201cSunny\U0000201d' was not declared in this scope
    6 |   if(s==“Sunny”)
      |         ^~~~~~~
a.cc:7:11: error: '\U0000201cCloudy\U0000201d' was not declared in this scope
    7 |     cout<<“Cloudy”<<endl;
      |           ^~~~~~~~
a.cc:8:14: error: '\U0000201cCloudy\U0000201d' was not declared in this scope
    8 |   else if(s==“Cloudy”)
      |              ^~~~~~~~
a.cc:9:11: error: '\U0000201cRainy\U0000201d' was not declared in this scope
    9 |     cout<<“Rainy”<<endl;
      |           ^~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |     if(S == Sunny) ans = Cloudy;
      |                    ^~~
      |                    abs
a.cc:9:21: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |     if(S == Cloudy) ans = Rainy;
      |                     ^~~
      |                     abs
a.cc:10:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     if(S == Rainy) ans = Sunny;
      |                    ^~~
      |                    abs
a.cc:11:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'Sunny' was not declared in this scope
    8 |     if(S == Sunny) ans = Cloudy;
      |             ^~~~~
a.cc:8:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |     if(S == Sunny) ans = Cloudy;
      |                    ^~~
      |                    abs
a.cc:8:26: error: 'Cloudy' was not declared in this scope
    8 |     if(S == Sunny) ans = Cloudy;
      |                          ^~~~~~
a.cc:9:13: error: 'Cloudy' was not declared in this scope
    9 |     if(S == Cloudy) ans = Rainy;
      |             ^~~~~~
a.cc:9:21: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |     if(S == Cloudy) ans = Rainy;
      |                     ^~~
      |                     abs
a.cc:9:27: error: 'Rainy' was not declared in this scope
    9 |     if(S == Cloudy) ans = Rainy;
      |                           ^~~~~
a.cc:10:13: error: 'Rainy' was not declared in this scope
   10 |     if(S == Rainy) ans = Sunny;
      |             ^~~~~
a.cc:10:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     if(S == Rainy) ans = Sunny;
      |                    ^~~
      |                    abs
a.cc:10:26: error: 'Sunny' was not declared in this scope
   10 |     if(S == Rainy) ans = Sunny;
      |                          ^~~~~
a.cc:11:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str;
  cin >> str;
 
  int counter = 1;
  bool is_not_easy = false;
  
  for (int i = 0; i < str.size(); i++){
    char c = str[counter-1]];
    if (counter % 2 == 0){
      if (c != "L" && c != "U" && c != "D"){
        is_not_easy = true;
      }
    }else{
      if (c != "R" && c != "U" && c != "D"){
        is_not_easy = true;
      }
    }
    counter += 1;
  }
  
  if (is_not_easy){
  	cout << "No" << endl;
  }else{
  	cout << "Yes" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: expected ',' or ';' before ']' token
   12 |     char c = str[counter-1]];
      |                            ^
a.cc:14:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |       if (c != "L" && c != "U" && c != "D"){
      |           ~~^~~~~~
a.cc:14:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |       if (c != "L" && c != "U" && c != "D"){
      |                       ~~^~~~~~
a.cc:14:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |       if (c != "L" && c != "U" && c != "D"){
      |                                   ~~^~~~~~
a.cc:18:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |       if (c != "R" && c != "U" && c != "D"){
      |           ~~^~~~~~
a.cc:18:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |       if (c != "R" && c != "U" && c != "D"){
      |                       ~~^~~~~~
a.cc:18:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |       if (c != "R" && c != "U" && c != "D"){
      |                                   ~~^~~~~~
Language: C++

#include <iostream>

using namespace std;

int main(){
	string S;
 	cout << S;
  	const char *s = S.c_str();
	bool isOk = true;
  
  	for (int i = 0; i < S.length();i++){
    	if(i%2 == 0){
          switch(s[i]){
          	case:"R":
              isOK = false;
          }
        }else
        {
        	switch(s[i]){
          		case:"L":
              isOK = false;
          }
        }
    }
  	cout << isOK;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: expected primary-expression before ':' token
   14 |                 case:"R":
      |                     ^
a.cc:14:25: error: expected ';' before ':' token
   14 |                 case:"R":
      |                         ^
      |                         ;
a.cc:20:29: error: expected primary-expression before ':' token
   20 |                         case:"L":
      |                             ^
a.cc:20:33: error: expected ';' before ':' token
   20 |                         case:"L":
      |                                 ^
      |                                 ;
a.cc:25:17: error: 'isOK' was not declared in this scope; did you mean 'isOk'?
   25 |         cout << isOK;
      |                 ^~~~
      |                 isOk
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
string WeatherPrediction(string s) {
    switch(s){
        case "Sunny": return "Cloudy";
        case "Cloudy": return "Rainy";
        case "Rainy": return "Sunny";
    }
    return s;
}
 
int main(){
    string s;
    cin >> s;
	
  	s = WeatherPrediction(s);
    
  	cout << s << "\n";
    return 0;
}
#include <iostream>
#include <string>
using namespace std;
 
string WeatherPrediction(string s) {
	if(s == "Sunny") return "Cloudy";
  	if(s == "Cloudy") return "Rainy";
  	if(s == "Rainy") return "Sunny";
}
 
int main(){
    string s;
    cin >> s;
	
  	s = WeatherPrediction(s);
    
  	cout << s << "\n";
    return 0;
}
提出情報


Compiler output:
a.cc: In function 'std::string WeatherPrediction(std::string)':
a.cc:6:12: error: switch quantity not an integer
    6 |     switch(s){
      |            ^
a.cc: At global scope:
a.cc:27:8: error: redefinition of 'std::string WeatherPrediction(std::string)'
   27 | string WeatherPrediction(string s) {
      |        ^~~~~~~~~~~~~~~~~
a.cc:5:8: note: 'std::string WeatherPrediction(std::string)' previously defined here
    5 | string WeatherPrediction(string s) {
      |        ^~~~~~~~~~~~~~~~~
a.cc:33:5: error: redefinition of 'int main()'
   33 | int main(){
      |     ^~~~
a.cc:14:5: note: 'int main()' previously defined here
   14 | int main(){
      |     ^~~~
a.cc:42:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   42 | 提出情報
      | ^~~~~~~~
a.cc: In function 'std::string WeatherPrediction(std::string)':
a.cc:31:1: warning: control reaches end of non-void function [-Wreturn-type]
   31 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str;
  cin >> str;
 
  int counter = 1;
  bool is_not_easy = false;
  
  for (int i = 0; i < str.size(); i++){
    char c = str[counter-1];
    if (counter % 2 == 0){
      if (c != 'L' || c != 'U' || c != 'D'){
        is_not_easy = true;
      }
    }else{
      if (c != 'R' || c != 'U' || c != 'D'){
        is_not_easy = true;
      }
    }
    counter += 1;
  }
  
  if (is_not_easy){
  	cout << "No" << endl;
  }else{
  	cout << "Yes" << endl;
  }
  return 0;
}
#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str;
  cin >> str;
 
  int counter = 1;
  bool is_not_easy = false;
  
  for (int i = 0; i < str.size(); i++){
    char c = str[counter-1]];
    if (counter % 2 == 0){
      if (c != 'L' || c != 'U' || c != 'D'){
        is_not_easy = true;
      }
    }else{
      if (c != 'R' || c != 'U' || c != 'D'){
        is_not_easy = true;
      }
    }
    counter += 1;
  }
  
  if (is_not_easy){
  	cout << "No" << endl;
  }else{
  	cout << "Yes" << endl;
  }
  return 0;
}


Compiler output:
a.cc:35:5: error: redefinition of 'int main()'
   35 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc: In function 'int main()':
a.cc:43:28: error: expected ',' or ';' before ']' token
   43 |     char c = str[counter-1]];
      |                            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str;
  cin >> str;
 
  int counter = 1;
  bool is_not_easy = false;
  
  for (int i = 0; i < str.size(); i++){
    char c = str[counter-1]];
    if (counter % 2 == 0){
      if (c != 'L' || c != 'U' || c != 'D'){
        is_not_easy = true;
      }
    }else{
      if (c != 'R' || c != 'U' || c != 'D'){
        is_not_easy = true;
      }
    }
    counter += 1;
  }
  
  if (is_not_easy){
  	cout << "No" << endl;
  }else{
  	cout << "Yes" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: expected ',' or ';' before ']' token
   12 |     char c = str[counter-1]];
      |                            ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
string WeatherPrediction(string s) {
    switch(s){
        case "Sunny": return "Cloudy";
        case "Cloudy": return "Rainy";
        case "Rainy": return "Sunny";
    }
    return s;
}
 
int main(){
    string s;
    cin >> s;
	
  	s = WeatherPrediction(s);
    
  	cout << s << "\n";
    return 0;
}

Compiler output:
a.cc: In function 'std::string WeatherPrediction(std::string)':
a.cc:6:12: error: switch quantity not an integer
    6 |     switch(s){
      |            ^
Language: C++

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

int main(){
  char a[]="Sunny";
  char b[]="Cloudy";
  char c[]="Rainy";
  char d[256];
  cin >> d;
  if(a[1]==d[1]){
    cout << b;
  }
  else if(b[1]==d[1]){
    cout << c;
  }
  else if(c[1]==d[1]){
    cout << a;
  }
  else{
    cout << "A";
  }

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

#include <iostream>

using namespace std;

int main(){
	string S;
 	cout << S;
  	char *s = S.data();
	bool isOk = true;
  
  	for (int i = 0; i < S.length;i++){
    	if(i%2 == 0){
          switch(s[i]){
          	case:"R":
              isOK = false;
          }
        }else
        {
        	switch(s[i]){
          		case:"L":
              isOK = false;
          }
        }
    }
  	cout << isOK;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   11 |         for (int i = 0; i < S.length;i++){
      |                             ~~^~~~~~
      |                                     ()
a.cc:14:21: error: expected primary-expression before ':' token
   14 |                 case:"R":
      |                     ^
a.cc:14:25: error: expected ';' before ':' token
   14 |                 case:"R":
      |                         ^
      |                         ;
a.cc:20:29: error: expected primary-expression before ':' token
   20 |                         case:"L":
      |                             ^
a.cc:20:33: error: expected ';' before ':' token
   20 |                         case:"L":
      |                                 ^
      |                                 ;
a.cc:25:17: error: 'isOK' was not declared in this scope; did you mean 'isOk'?
   25 |         cout << isOK;
      |                 ^~~~
      |                 isOk
Language: Java

import java.util.Scanner;

class Main{
 public void main(String args[]){
  Scanner scan = new Scanner();
  String str = scan.Scanner(System.in);
   
  switch(str){
    case "Sunny":
      System.out.println("Cloudy");
    case "Cloudy":
      System.out.println("Rainy");
    case "Rainy":
      System.out.println("Sunny");
  }
 }
  
}

Compiler output:
Main.java:5: error: no suitable constructor found for Scanner(no arguments)
  Scanner scan = new Scanner();
                 ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
Main.java:6: error: cannot find symbol
  String str = scan.Scanner(System.in);
                   ^
  symbol:   method Scanner(InputStream)
  location: variable scan of type Scanner
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str;
  cin >> str;
 
  int counter = 1;
  bool is_not_easy = false;
  
  for (int i = 0; i < str.size(); i++){
    char c = str[counter-1];
    
    if (counter % 2 == 0){
      if (c != "L" || c != "U" || c != "D"){
        is_not_easy = true;
      }
    }else{
      if (c != "R" || c != "U" || c != "D"){
        is_not_easy = true;
      }
    }
    counter += 1;
  }
  
  if (is_not_easy){
  	cout << "No" << endl;
  }else{
  	cout << "Yes" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |       if (c != "L" || c != "U" || c != "D"){
      |           ~~^~~~~~
a.cc:15:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |       if (c != "L" || c != "U" || c != "D"){
      |                       ~~^~~~~~
a.cc:15:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |       if (c != "L" || c != "U" || c != "D"){
      |                                   ~~^~~~~~
a.cc:19:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |       if (c != "R" || c != "U" || c != "D"){
      |           ~~^~~~~~
a.cc:19:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |       if (c != "R" || c != "U" || c != "D"){
      |                       ~~^~~~~~
a.cc:19:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |       if (c != "R" || c != "U" || c != "D"){
      |                                   ~~^~~~~~
Language: C++

int main(){

string s;
cin >> s;

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

return 0;

}




Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'string' was not declared in this scope
    3 | string s;
      | ^~~~~~
a.cc:4:1: error: 'cin' was not declared in this scope
    4 | cin >> s;
      | ^~~
a.cc:4:8: error: 's' was not declared in this scope
    4 | cin >> s;
      |        ^
a.cc:6:15: error: 'cout' was not declared in this scope
    6 | if(s=="Sunny")cout << "Cloudy" << endl;
      |               ^~~~
a.cc:6:35: error: 'endl' was not declared in this scope
    6 | if(s=="Sunny")cout << "Cloudy" << endl;
      |                                   ^~~~
a.cc:7:21: error: 'cout' was not declared in this scope
    7 | else if(s=="Cloudy")cout << "Rainy" << endl;
      |                     ^~~~
a.cc:7:40: error: 'endl' was not declared in this scope
    7 | else if(s=="Cloudy")cout << "Rainy" << endl;
      |                                        ^~~~
a.cc:8:6: error: 'cout' was not declared in this scope
    8 | else cout << "Sunny"<< endl;
      |      ^~~~
a.cc:8:24: error: 'endl' was not declared in this scope
    8 | else cout << "Sunny"<< endl;
      |                        ^~~~
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespcae'
    2 | using namespcae std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 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/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>s;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:8: error: 's' was not declared in this scope
    6 |   cin>>s;
      |        ^
a.cc:7:9: error: expected ';' before 'ans'
    7 |   string ans;
      |         ^~~~
      |         ;
a.cc:9:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |     ans="Cloudy";
      |     ^~~
      |     abs
a.cc:11:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     ans="Rainy";
      |     ^~~
      |     abs
a.cc:12:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |   else ans="Sunny";
      |        ^~~
      |        abs
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout<<ans;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |   cout<<ans;
      |         ^~~
      |         abs
Language: C++

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


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

#include <iostream>
using namespace std;
#include <string>
#include<string.h>
 
int main()
{
  string s1;
  cin>>s1;
  if(strcmp(s1,"Sunny")==0)
    cout<<"Cloudy";
   else if(strcmp(s1,"cloudy")==0)
    cout<<"Rainy";
   else if(strcmp(s1,"Rainy")==0)
    cout<<"Sunny";
 return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   10 |   if(strcmp(s1,"Sunny")==0)
      |             ^~
      |             |
      |             std::string {aka std::__cxx11::basic_string<char>}
In file included from a.cc:4:
/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:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   12 |    else if(strcmp(s1,"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:14:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   14 |    else if(strcmp(s1,"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)
      |                    ~~~~~~~~~~~~^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str;
  cin >> str;
 
  int counter = 1;
  bool is_not_easy = false;
  
  for (int i = 0; i < str.size(); i++){
    char c = str[counter-1]];
    if (counter % 2 == 0){
      if (c != "L" || c != "U" || c != "D"){
        is_not_easy = true;
      }
    }else{
      if (c != "R" || c != "U" || c != "D"){
        is_not_easy = true;
      }
    }
    counter += 1;
  }
  
  if (is_not_easy){
  	cout << "No" << endl;
  }else{
  	cout << "Yes" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: expected ',' or ';' before ']' token
   12 |     char c = str[counter-1]];
      |                            ^
a.cc:14:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |       if (c != "L" || c != "U" || c != "D"){
      |           ~~^~~~~~
a.cc:14:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |       if (c != "L" || c != "U" || c != "D"){
      |                       ~~^~~~~~
a.cc:14:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |       if (c != "L" || c != "U" || c != "D"){
      |                                   ~~^~~~~~
a.cc:18:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |       if (c != "R" || c != "U" || c != "D"){
      |           ~~^~~~~~
a.cc:18:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |       if (c != "R" || c != "U" || c != "D"){
      |                       ~~^~~~~~
a.cc:18:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |       if (c != "R" || c != "U" || c != "D"){
      |                                   ~~^~~~~~
Language: Java

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

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

#include <iostream>
using namespace std;
#include <string>
#include<string.h>
 
int main()
{
  string s1;
  cin>>s1;
  if(strcmp(s1,"Sunny")==0)
    cout<<"Cloudy";
   else if(strcmp(s1,"cloudy")==0)
    cout<<"Rainy";
   else if(strcmp(s1,"Rainy")==0)
    cout<<"Sunny";
 return 0; 


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   10 |   if(strcmp(s1,"Sunny")==0)
      |             ^~
      |             |
      |             std::string {aka std::__cxx11::basic_string<char>}
In file included from a.cc:4:
/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:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   12 |    else if(strcmp(s1,"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:14:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   14 |    else if(strcmp(s1,"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:16:11: error: expected '}' at end of input
   16 |  return 0;
      |           ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    6 |   if(c="S")cout<<"Cloudy";
      |        ^~~
      |        |
      |        const char*
a.cc:7:8: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    7 |   if(c="C")cout<<"Rainy";
      |        ^~~
      |        |
      |        const char*
a.cc:8:8: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    8 |   if(c="R")cout<<"Sunny";
      |        ^~~
      |        |
      |        const char*
Language: C++

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

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

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

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

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

	int nTommorow;
	for (int i = 0; i < 3; i++) {
		if (weathers[i] == S) {
			nTommorow = i + 1;
			break;
		}
	}

	if (nTommorow == 3) {
		nTommorow = 0;
	}

	cout << weathers[nTommorow];

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: a function-definition is not allowed here before '{' token
    5 |   int main(void) {
      |                  ^
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

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

int main() {
	char sun[] = "Sunny";
	char clo[] = "Clody";
	char rai[] = "Rainy";
	char s[256];

	gets_s(s, 256);
	if (strcmp(sun, s) == 0) {
		printf("%s\n", clo);
	}
	else if (strcmp(clo, s) == 0) {
		printf("%s\n", rai);
	}
	else {
		printf("%s\n", sun);
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
   10 |         gets_s(s, 256);
      |         ^~~~~~
Language: C++

#include<iostream>
int main(){
  char c;
  cin>>c;
  if(c="S")cout<<"Cloudy";
  if(c="C")cout<<"Rainy";
  if(c="R")cout<<"Sunny";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>c;
      |   ^~~
      |   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:8: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    5 |   if(c="S")cout<<"Cloudy";
      |        ^~~
      |        |
      |        const char*
a.cc:5:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   if(c="S")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:6:8: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    6 |   if(c="C")cout<<"Rainy";
      |        ^~~
      |        |
      |        const char*
a.cc:6:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if(c="C")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:7:8: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    7 |   if(c="R")cout<<"Sunny";
      |        ^~~
      |        |
      |        const char*
a.cc:7:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(c="R")cout<<"Sunny";
      |            ^~~~
      |            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 <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <set>
#include <map>

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define for_p(i, a, b) for(int i = a; i < b; i++)
#define for_m(i, a, b) for(int i = a - 1; i >= b; i--)

//a = s1.size();
//vector<string> s1;
//string s2 = accumulate( s1.begin(), s1.end(), string() );

using namespace std;

int main()
{
  int a = 0 , b = 0, c = 0, d = 0, e = 0, f = 0;
  int i = 0, j = 0;
  double d1 = 0, d2 = 0, d3 = 0, d4 = 0, d5 = 0, d6 = 0;
  int a1[256], a2[512], a3[1024];
  char s1[200000], s2[200000], s3[200000];
  string x, y, z;
  
  cin >> s1;
  a = s1.length();
  
  for(i = 1; i <= a; i++){
    if(i % 2 == 0){
      if(s1[i - 1] == 'L' || s1[i - 1] == 'U' || s1[i - 1] == 'D'){
        c++;
       }
      else{
        b++;
      }
    }else{
        if(s1[i - 1] == 'R' || s1[i - 1] == 'U' || s1[i - 1] == 'D'){
          c++;
        }else{
          b++;
        }
      }
    }
  
    if(b == 0){
      cout << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
  }
        
  








Compiler output:
a.cc: In function 'int main()':
a.cc:35:10: error: request for member 'length' in 's1', which is of non-class type 'char [200000]'
   35 |   a = s1.length();
      |          ^~~~~~
Language: C++

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

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

    switch (in)
    {
    case "Sunny":
        cout << "Cloudy" << endl;
        break;
    
    case "Cloudy":
        cout << "Rainy" << endl;
        break;

    case "Rainy":
        cout << "Sunny" << endl;
    }
}

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

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

int main()
{
  string s1;
  cin>>s1;
  if(strcmp(s1,"Sunny")==0)
    cout<<"Cloudy";
   else if(strcmp(s1,"cloudy")==0)
    cout<<"Rainy";
   else if(strcmp(s1,"Rainy")==0)
    cout<<"Sunny";
 return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: 'strcmp' was not declared in this scope
    9 |   if(strcmp(s1,"Sunny")==0)
      |      ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: Java

public class Beginner141{
    public static void main(String[] args){
    String S = "Sunny";
        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:1: error: class Beginner141 is public, should be declared in a file named Beginner141.java
public class Beginner141{
       ^
1 error
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <string>
#define INF 1e18
#define int long long
#define Rep(i, a, n) for (int i = (a); i < (n); i++)
#define rep(i, n) Rep(i, 0, n)
#define all(a) (a).begin(), (a).end()
using namespace std;

typedef pair<int, int> P;
typedef pair<int, P> PP;
const int mod = 1000000007;
 
int main(){
  
  string today;
  cin >> today;
  string s,c,r;
  
  s = "Sunny";
  c = "Cloudy";
  r = "Rainy";
  string out;
  
  if (today.compare(r)) {out="Sunny";}
  if (today.compare(s)) {out="Cloudy";}
  if (today.compare(c)) {out="Rainy";}
  
  printf("%s\n",out.c_str());
  
  return 0;
}


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: Java

import java.util.Scanner;
public class A {

	public static void Main(String[] args) {
		Scanner scan=new Scanner(System.in);
		String S=scan.next();
		String s="Sunny";
		String c="Cloudy";
		String r="Rainy";
		if(S.equals(s)){
			System.out.print("Cloudy");
		}
		else if(S.equals(c)){
			System.out.print("Rainy");
			
		}
		else if(S.equals(r)){
			System.out.print("Sunny");
		}

	}

}


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

public static void Main(String[] args) {
		Scanner scan=new Scanner(System.in);
		String S=scan.next();
		String s="Sunny";
		String c="Cloudy";
		String r="Rainy";
		if(S.equals(s)){
			System.out.print("Cloudy");
		}
		else if(S.equals(c)){
			System.out.print("Rainy");
			
		}
		else if(S.equals(r)){
			System.out.print("Sunny");
		}

	}


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void Main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C

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

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<string>

using namespace std;

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> str;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<string>
  +++ |+#include <iostream>
    2 | 
a.cc:8:29: error: 'cout' was not declared in this scope
    8 |         if (str == "Sunny") cout << "Cloudy";
      |                             ^~~~
a.cc:8:29: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:35: error: 'cout' was not declared in this scope
    9 |         else if (str == "Cloudy") cout << "Rainy";
      |                                   ^~~~
a.cc:9:35: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:14: error: 'cout' was not declared in this scope
   10 |         else cout << "Sunny";
      |              ^~~~
a.cc:10:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:23: error: expected ')' before '{' token
    7 |   if(strcmp(s,"Sunny"){printf("Cloudy");}
      |     ~                 ^
      |                       )
main.c:11:1: error: expected declaration or statement at end of input
   11 | }
      | ^
Language: Java

package practice;
import java.util.Scanner;
public class A {

	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		String S=scan.next();
		String s="Sunny";
		String c="Cloudy";
		String r="Rainy";
		if(S.equals(s)){
			System.out.print("Cloudy");
		}
		else if(S.equals(c)){
			System.out.print("Rainy");
			
		}
		else if(S.equals(r)){
			System.out.print("Sunny");
		}

	}

}

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

#include<iostream>
#include<cstudio>
using namespace std;
int main(){
 char name[6]
   cin >> name;
   if(name==Sunny) cout << "Cloudy";
     else if(name==Cloudy)cout << "Rainy";
  else if(name==Rainy)cout << "Sunny";
  


return 0;
}

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

#include <iostream>
#include <string>
using namespace std;
 
String WeatherPrediction(String s) {
    switch(s){
        case "Sunny": return "Cloudy";
        case "Cloudy": return "Rainy";
        case "Rainy": return "Sunny";
    }
    return s;
}
 
int main(){
    string s;
    cin >> s;
	
  	s = WeatherPrediction(s);
    
  	cout << s << "\n";
    return 0;
}

Compiler output:
a.cc:5:1: error: 'String' does not name a type
    5 | String WeatherPrediction(String s) {
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:18:13: error: 'WeatherPrediction' was not declared in this scope
   18 |         s = WeatherPrediction(s);
      |             ^~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<stdio.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^