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

#include<iostream>
using namespace std::

int main() {
  std::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:4:1: error: expected identifier before 'int'
    4 | int main() {
      | ^~~
a.cc:2:22: error: expected ';' before 'int'
    2 | using namespace std::
      |                      ^
      |                      ;
    3 | 
    4 | int main() {
      | ~~~                   
a.cc: In function 'int main()':
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 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:7:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if (S=="Sunny") cout << "Cloudy" << 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:7:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   if (S=="Sunny") cout << "Cloudy" << endl;
      |                                       ^~~~
      |                                       std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:27: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   else if (S == "Cloudy") cout << "Rainy" << 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:8:46: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   else if (S == "Cloudy") cout << "Rainy" << endl;
      |                                              ^~~~
      |                                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   else cout << "Sunny" << 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:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   else cout << "Sunny" << 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<stdio.h>

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

Compiler output:
a.cc:7:9: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    7 |   if(S=='Sunny'){
      |         ^~~~~~~
a.cc:9:15: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    9 |   }else if(S=='Cloudy'){
      |               ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:7: 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<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'Sunny' was not declared in this scope
    7 |   if(S==Sunny){
      |         ^~~~~
a.cc:9:15: error: 'Cloudy' was not declared in this scope
    9 |   }else if(S==Cloudy){
      |               ^~~~~~
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(S[1]==S){
      |      ~~~~^~~
a.cc:9:18: error: 'C' was not declared in this scope
    9 |   }else if(S[1]==C){
      |                  ^
Language: C++

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

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

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

import java.util.Scanner;

public class test {
	public static void main(String[] args){
		String[] weather = {"Sunny", "Cloudy","Rainy"};

		Scanner scan = new Scanner(System.in);

		String S = scan.next();

		if(S.equals(weather[0])){
			System.out.println(weather[1]);
		}else if(S.equals(weather[1])){
			System.out.println(weather[2]);
		}else if(S.equals(weather[2])){
			System.out.println(weather[0]);
		}
	}
}

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

import java.util.*;
public class Main {
	public static void main(String[] args){
		String today = Sunny;
		String S;
		if(today.equals("Sunny")){
			S = "Cloudy";
			System.out.println(S);
		}else if(today.equals("Cloudy")){
			S = "Rainy";
			System.out.println(S);
		}else if(today.equals("Rainy")){
			S = "Sunny";
			System.out.println(S);
		}
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		String today = Sunny;
		               ^
  symbol:   variable Sunny
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		String today;
		String S;
		if(today.equals("Sunny")){
			S = "Cloudy";
			System.out.println(S);
		}else if(today.equals("Cloudy")){
			S = "Rainy";
			System.out.println(S);
		}else if(today.equals("Rainy")){
			S = "Sunny";
			System.out.println(S);
		}
	}
}

Compiler output:
Main.java:6: error: variable today might not have been initialized
		if(today.equals("Sunny")){
		   ^
1 error
Language: Java

public class Main {
	public static void main(String[] args){
		String today;
		String S;
		if(today.equals("Sunny")){
			S = Cloudy;
			System.out.println(S);
		}else if(today.equals("Cloudy")){
			S = Rainy;
			System.out.println(S);
		}else if(today.equals("Rainy")){
			S = Sunny;
			System.out.println(S);
		}
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
			S = Cloudy;
			    ^
  symbol:   variable Cloudy
  location: class Main
Main.java:9: error: cannot find symbol
			S = Rainy;
			    ^
  symbol:   variable Rainy
  location: class Main
Main.java:12: error: cannot find symbol
			S = Sunny;
			    ^
  symbol:   variable Sunny
  location: class Main
3 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		String S;

		if(S.equals("Sunny")){
			System.out.println(S);
		}elseif(S.equals("Cloudy")){
			System.out.println(S);
		}elseif(S.equals("Rainy")){
			System.out.println(S);
		}
	}
}

Compiler output:
Main.java:8: error: ';' expected
		}elseif(S.equals("Cloudy")){
		                           ^
Main.java:10: error: ';' expected
		}elseif(S.equals("Rainy")){
		                          ^
2 errors
Language: C++

#include <bits/stdc++.h>
#include <algorithm>
using namespace std;
int main() {
string a;
  
 
  cin >> a ;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 's' was not declared in this scope
   10 |   if(s[0] == 'S'){
      |      ^
Language: C++

#include <iostream>
#include <ios>
#include <iomanip>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <utility>
using namespace std;

#define MOD 1000000007
#define INF 1e9+7
#define rep(i, n) for(int i=0; i<n; ++i)
#define rrep(i, m, n) for(int i=m; i<n; ++i)
typedef long long ll;

#define MAX_N 1000
#define MAX_M 100000
#define MAX_V 100
#define MAX_E 100
#define MAX_Q 100000

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

int ddx[] = {-1, 0, 1, 0, -1, 1, -1, 1};
int ddy[] = {0, -1, 0, 1, 1, 1, -1, -1};

//--------------------------



int main() {

  string s;
  cin >> s;

  string t[] = {'Sunny', 'Cloudy', 'Rainy'};

  if(s==t[0]) cout << t[1];
  else if(s==t[1]) cout << t[2];
  else cout << t[0];

  cout << endl;

  return 0;
}


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

import java.util.Scanner;

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


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

#include <stdio.h>



int main(void)
{
    char str[];

    scanf("%s", str);

    swich(str[0]){
        case 'S' printf("Cloudy\n"); break;
        case 'C' printf("Rainy\n"); break;
        case 'R' printf("Sunny"); break;
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: error: array size missing in 'str'
    7 |     char str[];
      |          ^~~
main.c:11:5: error: implicit declaration of function 'swich' [-Wimplicit-function-declaration]
   11 |     swich(str[0]){
      |     ^~~~~
main.c:11:18: error: expected ';' before '{' token
   11 |     swich(str[0]){
      |                  ^
      |                  ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cou' was not declared in this scope
    7 |         cou << "Cloudy" << endl;
      |         ^~~
a.cc:9:25: error: expected ';' before '{' token
    9 |     else (s == "Cloudy"){
      |                         ^
      |                         ;
a.cc:9:13: 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 == "Cloudy"){
      |          ~~~^~~~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else (s == "Rainy"){
      |     ^~~~
a.cc:12:24: error: expected ';' before '{' token
   12 |     else (s == "Rainy"){
      |                        ^
      |                        ;
a.cc:12:13: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   12 |     else (s == "Rainy"){
      |          ~~~^~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
string S;
cin >> S;
if(S[0]==‘S’){
cout << “Cloudy”;
}else if(S[0]==‘C’){
cout << “Rainy”;
}else{
cout << “Sunny”
}
}

Compiler output:
a.cc:8:10: error: extended character ‘ is not valid in an identifier
    8 | if(S[0]==‘S’){
      |          ^
a.cc:8:10: error: extended character ’ is not valid in an identifier
a.cc:9:9: error: extended character “ is not valid in an identifier
    9 | cout << “Cloudy”;
      |         ^
a.cc:9:9: error: extended character ” is not valid in an identifier
a.cc:10:16: error: extended character ‘ is not valid in an identifier
   10 | }else if(S[0]==‘C’){
      |                ^
a.cc:10:16: error: extended character ’ is not valid in an identifier
a.cc:11:9: error: extended character “ is not valid in an identifier
   11 | cout << “Rainy”;
      |         ^
a.cc:11:9: error: extended character ” is not valid in an identifier
a.cc:13:9: error: extended character “ is not valid in an identifier
   13 | cout << “Sunny”
      |         ^
a.cc:13:9: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:10: error: '\U00002018S\U00002019' was not declared in this scope
    8 | if(S[0]==‘S’){
      |          ^~~
a.cc:9:9: error: '\U0000201cCloudy\U0000201d' was not declared in this scope
    9 | cout << “Cloudy”;
      |         ^~~~~~~~
a.cc:10:16: error: '\U00002018C\U00002019' was not declared in this scope
   10 | }else if(S[0]==‘C’){
      |                ^~~
a.cc:11:9: error: '\U0000201cRainy\U0000201d' was not declared in this scope
   11 | cout << “Rainy”;
      |         ^~~~~~~
a.cc:13:9: error: '\U0000201cSunny\U0000201d' was not declared in this scope
   13 | cout << “Sunny”
      |         ^~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"Sunny"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    8 |   if(S = "Sunny") cout << Cloudy << endl;
      |      ~~^~~~~~~~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:8:27: error: 'Cloudy' was not declared in this scope
    8 |   if(S = "Sunny") cout << Cloudy << endl;
      |                           ^~~~~~
a.cc:9:8: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"Cloudy"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |   if(S = "Cloudy") cout << Rainy << endl;
      |      ~~^~~~~~~~~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:9:28: error: 'Rainy' was not declared in this scope
    9 |   if(S = "Cloudy") cout << Rainy << endl;
      |                            ^~~~~
a.cc:10:8: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"Rainy"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |   if(S = "Rainy") cout << Sunny << endl;
      |      ~~^~~~~~~~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:10:27: error: 'Sunny' was not declared in this scope
   10 |   if(S = "Rainy") cout << Sunny << endl;
      |                           ^~~~~
Language: C++

#include<iostream>
#include<string>

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

  

Compiler output:
a.cc:8:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    8 |       case'Sunny':
      |           ^~~~~~~
a.cc:11:11: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   11 |       case'Cloudy':
      |           ^~~~~~~~
a.cc:14:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   14 |       case'Rainy':
      |           ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:11: error: switch quantity not an integer
    7 |   switch (S){
      |           ^
a.cc:9:20: error: 'Cloudy' was not declared in this scope
    9 |       std::cout << Cloudy << endl;
      |                    ^~~~~~
a.cc:9:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |       std::cout << Cloudy << endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:20: error: 'Rainy' was not declared in this scope
   12 |       std::cout << Rainy << endl;
      |                    ^~~~~
a.cc:15:20: error: 'Sunny' was not declared in this scope
   15 |       std::cout << Sunny << endl;
      |                    ^~~~~
Language: C++

#include<iostream>
using namespace std;
 
int main(){
  string weather;
  cin >> weather;
  switch(weather){
    case 'Sunny':
      cout << 'Cloudy' << endl;
      break;
    case 'Cloudy':
      cout << 'Rainy' << endl;
      break;
    case 'Rainy':
      cout << 'Sunny' << endl;
      break;
    default:
      cout << '?' << endl;
  }
}

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: expected primary-expression before string constant
    5 |   cin >> string "weather";
      |                 ^~~~~~~~~
a.cc:6:10: error: 'weather' was not declared in this scope
    6 |   switch(weather){
      |          ^~~~~~~
a.cc:17:15: error: expected primary-expression before '?' token
   17 |       cout << ? << endl;
      |               ^
a.cc:17:17: error: expected primary-expression before '<<' token
   17 |       cout << ? << endl;
      |                 ^~
a.cc:17:24: error: expected ':' before ';' token
   17 |       cout << ? << endl;
      |                        ^
      |                        :
a.cc:17:24: error: expected primary-expression before ';' token
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"Sunny"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |                if (S = "Sunny")cout << "Cloudy" <<endl;
      |                    ~~^~~~~~~~~
      |                      |
      |                      std::__cxx11::basic_string<char>
a.cc:8:22: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"Cloudy"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    8 |                if (S = "Cloudy")cout << "Rainy" <<endl;
      |                    ~~^~~~~~~~~~
      |                      |
      |                      std::__cxx11::basic_string<char>
a.cc:9:22: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"Rainy"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |                if (S = "Rainy")cout << "Sunny" <<endl;
      |                    ~~^~~~~~~~~
      |                      |
      |                      std::__cxx11::basic_string<char>
Language: Java


import java.util.Scanner;

public class Main {
			String[] ans={"Sunny","Cloudy","Rainy"};

	public static void main(String args[]){
		Scanner sc=new Scanner(System.in);
		String s=sc.next();
		for(int i=0;i<3;i++)
			if(s.equals(ans[i]))
			{
				System.out.println(ans[(i+1)%3]);
				break;
			}
	}

}







Compiler output:
Main.java:11: error: non-static variable ans cannot be referenced from a static context
			if(s.equals(ans[i]))
			            ^
Main.java:13: error: non-static variable ans cannot be referenced from a static context
				System.out.println(ans[(i+1)%3]);
				                   ^
2 errors
Language: C++

#include <iostream>
using namespace std;
int main() {
 vector<string> s;
  s.push_back("Sunny");
  s.push_back("Cloudy");
  s.push_back("Rainy");
  string t; cin >> t;
  for (int i = 0; i < 3; i++) {
   if (t == s[i]) {
    cout << s[(i + 1) % 3] << endl; 
   }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:2: error: 'vector' was not declared in this scope
    4 |  vector<string> s;
      |  ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:4:15: error: expected primary-expression before '>' token
    4 |  vector<string> s;
      |               ^
a.cc:4:17: error: 's' was not declared in this scope
    4 |  vector<string> s;
      |                 ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    string s;
    cin>>s;
    if(s== "sunny")
     cout<< "cloudy";
    else if(s== "cloudy")
     cout<< "rainy";
    else(s== "rainy")
     cout<< "sunny";
     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: expected ';' before 'cout'
   12 |     else(s== "rainy")
      |                      ^
      |                      ;
   13 |      cout<< "sunny";
      |      ~~~~             
a.cc:12: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]
   12 |     else(s== "rainy")
      |         ~~^~~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:4: error: 'string' was not declared in this scope
    2 |    string s;
      |    ^~~~~~
a.cc:3:4: error: 'cin' was not declared in this scope
    3 |    cin >> s;
      |    ^~~
a.cc:3:11: error: 's' was not declared in this scope
    3 |    cin >> s;
      |           ^
a.cc:5:8: error: 'cout' was not declared in this scope
    5 |        cout << "Cloudy";
      |        ^~~~
a.cc:7:12: error: 'cout' was not declared in this scope
    7 |            cout << "Rainy";
      |            ^~~~
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:2:4: error: 'string' was not declared in this scope
    2 |    string s;
      |    ^~~~~~
a.cc:3:4: error: 'cin' was not declared in this scope
    3 |    cin >> s;
      |    ^~~
a.cc:3:11: error: 's' was not declared in this scope
    3 |    cin >> s;
      |           ^
a.cc:5:8: error: 'cout' was not declared in this scope
    5 |        cout << "Cloudy";
      |        ^~~~
a.cc:7:12: error: 'cout' was not declared in this scope
    7 |            cout << "Rainy";
      |            ^~~~
a.cc:8:8: error: expected statement at end of input
    8 |    else
      |        ^
a.cc:8:8: error: expected '}' at end of input
a.cc:1:12: note: to match this '{'
    1 | int main() {
      |            ^
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before 'else'
    9 |    cout<<"Cloudy"
      |                  ^
      |                  ;
   10 |    else ıf(s=="Cloudy")
      |    ~~~~           
a.cc:13:17: error: expected '}' at end of input
   13 |   cout<<"Sunny";
      |                 ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:4: error: 'string' was not declared in this scope
    2 |    string s;
      |    ^~~~~~
a.cc:3:4: error: 'cin' was not declared in this scope
    3 |    cin >> s;
      |    ^~~
a.cc:3:11: error: 's' was not declared in this scope
    3 |    cin >> s;
      |           ^
a.cc:5:8: error: 'cout' was not declared in this scope
    5 |        cout << "Cloudy";
      |        ^~~~
a.cc:7:12: error: 'cout' was not declared in this scope
    7 |            cout << "Rainy";
      |            ^~~~
a.cc:8:8: error: expected statement at end of input
    8 |    else
      |        ^
a.cc:8:8: error: expected '}' at end of input
a.cc:1:12: note: to match this '{'
    1 | int main() {
      |            ^
Language: C++

int main(){
    string 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:2:5: error: 'string' was not declared in this scope
    2 |     string s;
      |     ^~~~~~
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> s;
      |     ^~~
a.cc:3:12: error: 's' was not declared in this scope
    3 |     cin >> s;
      |            ^
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout << "Cloudy";
      |         ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "Rainy";
      |         ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "Sunny";
      |         ^~~~
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before '}' token
    9 |         cout<<"Cloudy"
      |                       ^
      |                       ;
   10 |     }
      |     ~                  
a.cc:12:22: error: expected ';' before '}' token
   12 |         cout<<"rainy"
      |                      ^
      |                      ;
   13 |     }
      |     ~                 
a.cc:15:22: error: expected ';' before '}' token
   15 |         cout<<"Sunny"
      |                      ^
      |                      ;
   16 |     }
      |     ~
Language: C++


 int main() {
string 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: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:6: error: 's' was not declared in this scope
    4 | cin>>s;
      |      ^
a.cc:6:7: error: 'cout' was not declared in this scope
    6 |       cout<< "Cloudy";
      |       ^~~~
a.cc:8:6: error: 'cout' was not declared in this scope
    8 |      cout<< "Rainy";
      |      ^~~~
a.cc:10:6: error: 'cout' was not declared in this scope
   10 |      cout<< "Sunny";
      |      ^~~~
Language: C++

 int a;
    int b;
    cin >> a >> b;
    if(b == 0)
    {
        cout << "Invalid operation";
    }
    else if(a >= 0 and b < 0)
    {
         cout << "Positive";
    }    
    else if(a < 0 and b < 0)
    {
        cout << "Positive";
    }
    else if(a < 0 and b < 0)
    {
        cout << "Negative";
    }
}

Compiler output:
a.cc:3:5: error: 'cin' does not name a type
    3 |     cin >> a >> b;
      |     ^~~
a.cc:4:5: error: expected unqualified-id before 'if'
    4 |     if(b == 0)
      |     ^~
a.cc:8:5: error: expected unqualified-id before 'else'
    8 |     else if(a >= 0 and b < 0)
      |     ^~~~
a.cc:12:5: error: expected unqualified-id before 'else'
   12 |     else if(a < 0 and b < 0)
      |     ^~~~
a.cc:16:5: error: expected unqualified-id before 'else'
   16 |     else if(a < 0 and b < 0)
      |     ^~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

int main() {
    string s;
    cin >> s;
    if( s == "sunny"){
       cout << "cloudy" 
    }
    if( s == "cloudy"){
       cout << "rainy" 
    }
    if( s == "rainy"){
       cout << "windy" 
    }
    if( s == "windy"){
       cout << "sunny" 
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ';' before '}' token
    9 |        cout << "cloudy"
      |                        ^
      |                        ;
   10 |     }
      |     ~                   
a.cc:12:23: error: expected ';' before '}' token
   12 |        cout << "rainy"
      |                       ^
      |                       ;
   13 |     }
      |     ~                  
a.cc:15:23: error: expected ';' before '}' token
   15 |        cout << "windy"
      |                       ^
      |                       ;
   16 |     }
      |     ~                  
a.cc:18:23: error: expected ';' before '}' token
   18 |        cout << "sunny"
      |                       ^
      |                       ;
   19 |     }
      |     ~
Language: C++

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

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

  if (x == "Sunny" ) {
    cout << "Cloudy" << endl;
  }
  
  else if (x == "Cloudy" ) {
    cout << "Rainy" << endl;
  }
  
  else (x == "Rainy" ) {
    cout << "Sunny" << endl; 
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: expected ';' before '{' token
   16 |   else (x == "Rainy" ) {
      |                       ^~
      |                       ;
a.cc:16: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]
   16 |   else (x == "Rainy" ) {
      |        ~~~^~~~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

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

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

  if (x == "sunny" ) {
    cout << "cloudy" << endl;
  }
  
  else if (x == "cloudy" ) {
    cout << "rainy" << endl;
  }
  
  else (x == "rainy" ) {
    cout << "sunny" << endl; 
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: expected ';' before '{' token
   16 |   else (x == "rainy" ) {
      |                       ^~
      |                       ;
a.cc:16: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]
   16 |   else (x == "rainy" ) {
      |        ~~~^~~~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

#include<iosteam>
using namespace std;
int main(){
    char s;
    cin >> s;
    switch(s){
        case "Sunny":
            cout << "Cloudy";
            break;
        case "Cloudy":
            cout << "Rainy";
            break;
        default:
            cout << "Sunny";
            break;
    }
    return 0;
}

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

#include<iosteam>
using namespace std;
int main(){
    char s;
    cin >> s;
    switch(s){
        case "Sunny":
            cout << "Cloudy";
            break;
        case "Cloudy":
            cout << "Rainy";
            break;
        default:
            cout << "Sunny";
            brak;
    }
    return 0;
}

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

import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner (System.in);
    String S = sc.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:13: error: ';' expected
      System.out.println("Sunny")
                                 ^
1 error
Language: C++


using System;

namespace _153232
{
    class Program
    {
        static void Main(string[] args)
        {
            string N = Console.ReadLine();
            double n = int.Parse(N);
            double a = -1;
            if (n == 1) { a = 1; }
            else if (n % 2 == 0) { a = 0.5; }
            else { a = (n + 1)/2 / n; }
            Console.WriteLine(a);
        }
    }
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System;
      |       ^~~~~~
a.cc:8:26: error: 'string' has not been declared
    8 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:8:35: error: expected ',' or '...' before 'args'
    8 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:18:6: error: expected ';' after class definition
   18 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void _153232::Program::Main(int*)':
a.cc:10:13: error: 'string' was not declared in this scope
   10 |             string N = Console.ReadLine();
      |             ^~~~~~
a.cc:11:24: error: expected primary-expression before 'int'
   11 |             double n = int.Parse(N);
      |                        ^~~
a.cc:14:24: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   14 |             else if (n % 2 == 0) { a = 0.5; }
      |                      ~ ^ ~
      |                      |   |
      |                      |   int
      |                      double
a.cc:16:13: error: 'Console' was not declared in this scope
   16 |             Console.WriteLine(a);
      |             ^~~~~~~
Language: Java

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

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

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

}



Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:6: error: not a statement
	cin >> s;
	    ^
Main.java:8: error: not a statement
	if(s == "Sunny") cout << "Cloudy" << endl;
	                                  ^
Main.java:9: error: not a statement
	else if(s == "Cloudy") cout << "Rainy" <<endl;
	                                       ^
Main.java:10: error: not a statement
	else cout << "Sunny" << endl;
	                     ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
7 errors
Language: Java

import java.io.*;
public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String input = br.readLine();
		String[] nums = input.split(" ");
		int N = Integer.parseInt(nums[0]);
		int K = Integer.parseInt(nums[1]);
		int Q = Integer.parseInt(nums[2]);
		int[] decremnt_scores = new int[N];
		for(int i = 0; i < N; i++){
			decremnt_scores[i] = 0;
		}
		for(int i = 0; i < Q; i++){
			decremnt_scores[Integer.parseInt(br.readLine())] += 1; 
		}

		//output Winner
		String reslut;
		for(int i = 0; i < N; i++){
			if(decrement_scores[i] >= K){
				reslut = "No";
			} else {
				reslut = "Yes";
			}
			System.out.println(reslut);
		}

	}
}

Compiler output:
Main.java:21: error: cannot find symbol
			if(decrement_scores[i] >= K){
			   ^
  symbol:   variable decrement_scores
  location: class Main
1 error
Language: Java

import java.io.*;
public class p2{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String weather = br.readLine();
		
		String tomorrow_weather;
		if(weather.equals("Sunny")) {
			tomorrow_weather = "Cloudy";
		} else if(weather.equals("Cloudy")){
			tomorrow_weather = "Rainy";
		} else {
			tomorrow_weather = "Sunny";
		}

		System.out.println(tomorrow_weather);
	}
}

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

import java.io.*;
public class p2 throws IOException {
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String weather = br.readLine();
		
		String tomorrow_weather;
		if(weather.equals("Sunny")) {
			tomorrow_weather = "Cloudy";
		} else if(weather.equals("Cloudy")){
			tomorrow_weather = "Rainy";
		} else {
			tomorrow_weather = "Sunny";
		}

		System.out.println(tomorrow_weather);
	}
}

Compiler output:
Main.java:2: error: '{' expected
public class p2 throws IOException {
               ^
1 error
Language: Java

import java.util.*;

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


Compiler output:
Main.java:8: error: cannot find symbol
    if(S.equals(Sunny)) {
                ^
  symbol:   variable Sunny
  location: class Main
Main.java:10: error: cannot find symbol
    } else if (S.equals(Cloudy)) {
                        ^
  symbol:   variable Cloudy
  location: class Main
Main.java:12: error: cannot find symbol
    } else if (S.equals(Rainy)) {
                        ^
  symbol:   variable Rainy
  location: class Main
3 errors
Language: C++

#include <iostream>
using namespace std;

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


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:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if(S == "Cloudy"){
      |           ~~^~~~~~~~~~~
a.cc:13:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   else if(S == "Rainy"){
      |           ~~^~~~~~~~~~
a.cc:14:9: error: expected ';' before string constant
   14 |     cout "Sunny";
      |         ^~~~~~~~
      |         ;
Language: C++

#include <iostream>
using namespace std;

int main(){
  char S; 
  cin >> S; 
  if(S == 'Sunny'){
    return "Cloudy";
  }
  else if(S == 'Cloudy'){
    return "Rainy";
  }
  else if(S == 'Rainy'){
    return "Sunny";
  }
  return 0;
}


Compiler output:
a.cc:7:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    7 |   if(S == 'Sunny'){
      |           ^~~~~~~
a.cc:10:16: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   10 |   else if(S == 'Cloudy'){
      |                ^~~~~~~~
a.cc:13:16: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   13 |   else if(S == 'Rainy'){
      |                ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    8 |     return "Cloudy";
      |            ^~~~~~~~
      |            |
      |            const char*
a.cc:11:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   11 |     return "Rainy";
      |            ^~~~~~~
      |            |
      |            const char*
a.cc:14:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   14 |     return "Sunny";
      |            ^~~~~~~
      |            |
      |            const char*
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:7:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    7 |   if(S == 'Sunny'){
      |           ^~~~~~~
a.cc: In function 'int main()':
a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if(S == "Cloudy"){
      |           ~~^~~~~~~~~~~
a.cc:13:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   else if(S == "Rainy"){
      |           ~~^~~~~~~~~~
Language: C

#include <stdio.h>
#include <string.h>
#include <sysexits.h>
#include <stdlib.h>
int main (void){
  int i = 0,m =0, cnt = 0;
  char s[200];
   long int k;
 
   scanf("%s", s);
   scanf("%lu", &k);
      if(scanf("%s" s);
  if(scanf("%s" &k);

   // if(scanf("%s/%ld", s, &k) > 2);

  for(m = 0; m < k; m++){
    for(i= 0; i<strlen(s)-1;i++) {
      if(s[i] == s[i + 1]){
	++cnt;

	++i;//１とばす
		
      }
    }

   
    if((s[strlen(s)-1] != s[strlen(s)-2]) && (s[0] == s[strlen(s)-1])){
      ++cnt;
    }
  } 
  
  printf("%d",cnt);
  return 0;
} 


Compiler output:
main.c: In function 'main':
main.c:12:20: error: expected ')' before 's'
   12 |       if(scanf("%s" s);
      |               ~    ^~
      |                    )
main.c:12:23: error: expected ')' before ';' token
   12 |       if(scanf("%s" s);
      |         ~             ^
      |                       )
main.c:35:1: error: expected declaration or statement at end of input
   35 | }
      | ^
Language: C++

#include<iostream>
#include<vector>
#include<cstdio>
#include<string>
#include<cmath>
#include<math.h>
#include<algorithm>
#include<string.h>
#include <iomanip>
#include <sstream>
using namespace std;

int main() {
  string s;

  cin >> s;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:22:3: error: expected '}' before 'else'
   22 |   else if(s == "Rainy"){
      |   ^~~~
a.cc:20:26: note: to match this '{'
   20 |   }else if(s == "Cloudy"){
      |                          ^