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

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:12:9: error: expected '(' before 'else'
   12 |         else(w = "Cloudy")
      |         ^~~~
      |         (
Language: C++

#include <string>
#include <iostream>

int main() {
    std::string input;
    std::cin >> input;

    if (input == "Sunny") {
        std::cout << "Cloudy";
    } else if (input == "Cloudy") {
        std::cout << "Rainy";
    } else if (input == "Rainy") {
        std::cout << "Sunny";
    }
    return "";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   15 |     return "";
      |            ^~
      |            |
      |            const char*
Language: C++

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

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

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

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

int main()
{
   long long int i,j,k,l,m,n;
   string s;
  cin>>s;
  if(s=="Sunny")
    cout<<"Cloudy\n";
  if(s=="Cloudy")
    cout<<"Rainy\n";
  if(s=="Rainy")
    cout<<"Sunny\n";
}

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

public class Test {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		String wether [] = {"Sunny","Cloudy", "Rainy","Sunny"};
				
		String w = sc.next();
		
		int i=0;
		
		while(!(w.equals(wether[i]))){
			i++;
		}
		i++;
		
		System.out.println(wether[i]);

	}
}

Compiler output:
Main.java:1: error: class Test is public, should be declared in a file named Test.java
public class Test {
       ^
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Test
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Test
3 errors
Language: Java

import java.util.Scanner;


public class Test {

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		String wether [] = {"Sunny","Cloudy", "Rainy","Sunny"};
				
		String w = sc.next();
		
		int i=0;
		
		while(!(w.equals(wether[i]))){
			i++;
		}
		i++;
		
		System.out.println(wether[i]);

	}
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'elseif' was not declared in this scope
    8 |   elseif(s=="Cloudy") cout<<"Rainy"<<endl;
      |   ^~~~~~
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else cout <<"Sunny"<<endl;
      |   ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  string input;
  string weather[3]={
    "Sunny",
    "Cloudy",
    "Rainy"
  }
  cin >> input;
  if(input == "Sunny"){
    cout << "Cloudy";
    cout << "\n";
  }
  else if{input == "Cloudy"){
    cout << "Rainy";
    cout << "\n";
  }
  else{
    cout << "Sunny";
    cout << "\n";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'cin'
   11 |   cin >> input;
      |   ^~~
a.cc:16:10: error: expected '(' before '{' token
   16 |   else if{input == "Cloudy"){
      |          ^
      |          (
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  char input[10];
  char weather[10][3]={
    "Sunny",
    "Cloudy",
    "Rainy"
  }
  for(int i = 0; input[i]!="\0" ; i++){
    cin >> input[i];
  }
  if(input == "Sunny"){
    cout << "Cloudy" << endl;
  }
  else if{input == "Cloudy"){
    cout << "Rainy" << endl;
  }
  else{
    cout << "Sunny" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: initializer-string for 'char [3]' is too long [-fpermissive]
    6 |     "Sunny",
      |     ^~~~~~~
a.cc:7:5: error: initializer-string for 'char [3]' is too long [-fpermissive]
    7 |     "Cloudy",
      |     ^~~~~~~~
a.cc:8:5: error: initializer-string for 'char [3]' is too long [-fpermissive]
    8 |     "Rainy"
      |     ^~~~~~~
a.cc:10:3: error: expected ',' or ';' before 'for'
   10 |   for(int i = 0; input[i]!="\0" ; i++){
      |   ^~~
a.cc:10:24: error: 'i' was not declared in this scope
   10 |   for(int i = 0; input[i]!="\0" ; i++){
      |                        ^
a.cc:16:10: error: expected '(' before '{' token
   16 |   else if{input == "Cloudy"){
      |          ^
      |          (
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#define rep(i, j) for (long long i = 0; i < j; i++)

using namespace std;

signed main()
{
    vector<string> arr = [ "Sunny", "Cloudy", "Rainy", "Sunny" ] string str;
    cin >> str;
    rep(i, arr.size() - 1)
    {
        if (str == arr[i])
            cout << arr[i + 1]
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:28: error: expected identifier before string constant
   10 |     vector<string> arr = [ "Sunny", "Cloudy", "Rainy", "Sunny" ] string str;
      |                            ^~~~~~~
a.cc:10:35: error: expected ']' before ',' token
   10 |     vector<string> arr = [ "Sunny", "Cloudy", "Rainy", "Sunny" ] string str;
      |                                   ^
      |                                   ]
a.cc: In lambda function:
a.cc:10:35: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:10:26: error: conversion from 'main()::<lambda()>' to non-scalar type 'std::vector<std::__cxx11::basic_string<char> >' requested
   10 |     vector<string> arr = [ "Sunny", "Cloudy", "Rainy", "Sunny" ] string str;
      |                          ^~~~~~~~~
a.cc:10:37: error: expected unqualified-id before string constant
   10 |     vector<string> arr = [ "Sunny", "Cloudy", "Rainy", "Sunny" ] string str;
      |                                     ^~~~~~~~
a.cc:11:12: error: 'str' was not declared in this scope; did you mean 'std'?
   11 |     cin >> str;
      |            ^~~
      |            std
a.cc:15:31: error: expected ';' before '}' token
   15 |             cout << arr[i + 1]
      |                               ^
      |                               ;
   16 |     }
      |     ~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#define rep(i, j) for (long long i = 0; i < j; i++)

using namespace std;

sined main()
{
    vector<string> arr = ["Sunny","Cloudy","Rainy","Sunny"]
    string str;
    cin >> str;
    rep(i,arr.size() -1 ){
        if (str == arr[i]) 
            cout << arr[i+1]
    }

}


Compiler output:
a.cc:8:1: error: 'sined' does not name a type; did you mean 'signed'?
    8 | sined main()
      | ^~~~~
      | signed
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
char taps[100];
char *word1 = "U";
char *word2 = "D";
char *word3 = "L";
char *word4 = "R";
int i = 0,a,sum = 0;
scanf("%s",taps);
//何文字目までループを回せばいいかaに代入させる
a = strlen(*taps);
//偶数番目にlが出た回数と奇数番目にrが出た時にカウントして合計が０なら踏みやすいタップ
//taps[0]が1番目に来る
for(i=0;i<=a;i++){
if(strcmp(&taps[i],word3) == 0){
sum = sum + 1;
i++;
}
}
//taps[１]が2番目に来る
for(i=1;i<=a;i++){
if(strcmp(&taps[i],word4) == 0){
sum = sum + 1;
i++;
}
}  
　
if (sum == 0){
     printf("Yes");
 } 
else {
      printf("No"); 
 }
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:12: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
   12 | a = strlen(*taps);
      |            ^~~~~
      |            |
      |            char
In file included from main.c:2:
/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'char'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
main.c:28:1: error: stray '\343' in program
   28 | <U+3000>
      | ^~~~~~~~
Language: C

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

int main(void){
char taps[100];
char *word1 = "U";
char *word2 = "D";
char *word3 = "L";
char *word4 = "R";
int i = 0,a,sum = 0;
scanf("%s",taps);
//何文字目までループを回せばいいかaに代入させる
a = strlen(*taps);

//偶数番目にlが出た回数と奇数番目にrが出た時にカウントして合計が０なら踏みやすいタップ
//taps[0]が1番目に来る
for(i=0;i<=a;i++){
 if(strcmp(&taps[i],word3) == 0){
  sum = sum + 1;
  i++;
    }
  }
//taps[１]が2番目に来る
  for(i=1;i<=a;i++){
 if(strcmp(&taps[i],word4) == 0){
  sum = sum + 1;
  i++;
    }
  }  
　
if (sum == 0){
     printf("Yes");
 } 
else {
      printf("No"); 
 }
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:12: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
   13 | a = strlen(*taps);
      |            ^~~~~
      |            |
      |            char
In file included from main.c:2:
/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'char'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
main.c:30:1: error: stray '\343' in program
   30 | <U+3000>
      | ^~~~~~~~
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:8:25: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    8 |   if (strcmp(s, "Sunny" == 0){
      |                 ~~~~~~~~^~~~
      |                         |
      |                         int
In file included from main.c:2:
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'int'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
main.c:8:30: error: expected ')' before '{' token
    8 |   if (strcmp(s, "Sunny" == 0){
      |      ~                       ^
      |                              )
main.c:18:7: error: expected expression before '}' token
   18 |       }
      |       ^
Language: C++

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

int main()
{
    int n,k,q; cin >> n >> k >> q;
    int contestant[(int)pow(10,5)];
    for(int i = 0;i < q; i++)
    {
        int a; scanf("%d",&a);a--;
        contestant[a]++;
    }
    for(int i;i<q,i++)
    {
        if(q-contestant[i] < k){
            puts("Yes");
        }
        else
        {
            puts("No")
        }
        
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: expected ';' before ')' token
   14 |     for(int i;i<q,i++)
      |                      ^
      |                      ;
a.cc:21:23: error: expected ';' before '}' token
   21 |             puts("No")
      |                       ^
      |                       ;
   22 |         }
      |         ~
Language: C++

#include<iostream>
#include<vector>
using namespace std;
using ll = long long;

int main(){
    string 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:10:19: error: expected ';' before '}' token
   10 |     cout<<"Cloudy"
      |                   ^
      |                   ;
   11 |     }
      |     ~              
a.cc:13:18: error: expected ';' before '}' token
   13 |     cout<<"Rainy"
      |                  ^
      |                  ;
   14 |     }
      |     ~             
a.cc:16:18: error: expected ';' before '}' token
   16 |     cout<<"Sunny"
      |                  ^
      |                  ;
   17 |     }
      |     ~
Language: C++

#include<iostream>
2#include<string>
3usingnamespacestd;
4intmain(){
  5string s;
  6cin>>s;
  7if(s=="Sunny"s)cout<<"Cloudy"<<endl;
  8if(s=="Cloudy"s)cout<<"Rainy"<<endl;
  9if(s=="Rainy"s)cout<<"Sunny"<<endl;
  10return0;11}

Compiler output:
a.cc:2:2: error: stray '#' in program
    2 | 2#include<string>
      |  ^
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2#include<string>
      | ^
a.cc:4:1: error: expected unqualified-id before numeric constant
    4 | 4intmain(){
      | ^~~~~~~~
Language: C++

#include<iostream>2#include<string>3usingnamespacestd;4intmain(){5string s;6cin>>s;7if(s=="Sunny"s)cout<<"Cloudy"<<endl;8if(s=="Cloudy"s)cout<<"Rainy"<<endl;9if(s=="Rainy"s)cout<<"Sunny"<<endl;10return0;11}

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>2#include<string>3usingnamespacestd;4intmain(){5string s;6cin>>s;7if(s=="Sunny"s)cout<<"Cloudy"<<endl;8if(s=="Cloudy"s)cout<<"Rainy"<<endl;9if(s=="Rainy"s)cout<<"Sunny"<<endl;10return0;11}
      |                   ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

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

Compiler output:
a.cc:4:9: error: 'Long' does not name a type; did you mean 'long'?
    4 | typedef Long Long ll;
      |         ^~~~
      |         long
Language: C++

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

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

Compiler output:
a.cc:4:9: error: 'Long' does not name a type; did you mean 'long'?
    4 | typedef Long long ll;
      |         ^~~~
      |         long
Language: C++

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

#define rep(i, n) for (int i = 0; i < n; i++)

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: expected identifier before string constant
   11 |     string x[3] = [ "Sunny", "Cloudy", "Rainny" ];
      |                     ^~~~~~~
a.cc:11:28: error: expected ']' before ',' token
   11 |     string x[3] = [ "Sunny", "Cloudy", "Rainny" ];
      |                            ^
      |                            ]
a.cc: In lambda function:
a.cc:11:28: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:11:19: error: array must be initialized with a brace-enclosed initializer
   11 |     string x[3] = [ "Sunny", "Cloudy", "Rainny" ];
      |                   ^~~~~~~~~
a.cc:11:30: error: expected unqualified-id before string constant
   11 |     string x[3] = [ "Sunny", "Cloudy", "Rainny" ];
      |                              ^~~~~~~~
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'S' was not declared in this scope
    6 |     string s;S
      |              ^
Language: C++

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

int main()
{
  	char v[3][20] = {"Sunny","Cloudy","Rainy"};
  	string str;
  	cin>>str;
  	for(int i : v )
  	if(str.compare(v[i]) == 0)
    {
      	cout<<v[(i+1)%3];
    }
  	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: invalid conversion from 'char*' to 'int' [-fpermissive]
    9 |         for(int i : v )
      |                     ^
      |                     |
      |                     char*
Language: C++

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

int main()
{
  	char v[3][20] = {"Sunny" , "Cloudy" , "Rainy" };
  	v[0].push_back("Sunny");
  	v[1].push_back("Cloudy");
  	v[2].push_back("Rainy");
  	string str;
  	cin>>str;
  	for(int i = 0 ; i < 3 ; i++)
  	if(str.compare(v[i]) == 0)
    {
      	cout<<v[(i+1)%3];
    }
  	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: request for member 'push_back' in 'v[0]', which is of non-class type 'char [20]'
    7 |         v[0].push_back("Sunny");
      |              ^~~~~~~~~
a.cc:8:14: error: request for member 'push_back' in 'v[1]', which is of non-class type 'char [20]'
    8 |         v[1].push_back("Cloudy");
      |              ^~~~~~~~~
a.cc:9:14: error: request for member 'push_back' in 'v[2]', which is of non-class type 'char [20]'
    9 |         v[2].push_back("Rainy");
      |              ^~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
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:7:7: 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:7: 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:7: 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: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i, n) for (ll i = 0; i < n; ++i)
#define ALL(a) a.begin(), a.end()
ll dx[4] = { 0, 1, 0, -1 };
ll dy[4] = { 1, 0, -1, 0 };
const ll INF = 1e14;
const ll MOD = 1e9 + 7;


int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    string s;
  	cin >> s;
  	if (s[0] == "Rainy") {
      puts("Sunny");
    } else if ( s[0] == "Sunny") {
      puts("Cloudy");
    } else {
      puts("Rainy");
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |         if (s[0] == "Rainy") {
a.cc:20:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |     } else if ( s[0] == "Sunny") {
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i, n) for (ll i = 0; i < n; ++i)
#define ALL(a) a.begin(), a.end()
ll dx[4] = { 0, 1, 0, -1 };
ll dy[4] = { 1, 0, -1, 0 };
const ll INF = 1e14;
const ll MOD = 1e9 + 7;


int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    string s;
  	cin >> s;
  	if (s[0] == "R") {
      puts("Sunny");
    } else if ( s[0] == "S") {
      puts("Cloudy");
    } else {
      puts("Rainy");
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |         if (s[0] == "R") {
a.cc:20:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |     } else if ( s[0] == "S") {
Language: C++

#include <iostream>
using namespace std;

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

#include<iostream>
#include<iomanip>
#include<string>
#include<queue>
#include<vector>
#include<algorithm>
#include<tuple>
#include<numeric>
#include<map>
#include<cmath>
#define ll long long
#define mod 1000000000+7
#define rep(i,n) for(int i=0;i<(int) (n);i++)
ll gcd(ll a,ll b){return b ? gcd(b,a%b) : a;}
ll lcm(ll a,ll b){return a/gcd(a,b)*b;}
using namespace std;
int main(){
  string s,S=Sunny,C=Cloudy,R=Rainy;
  cin>>s;
  if(s==S)cout<<C;
  if(s==C)cout<<R;
  if(s==R)cout<<S;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:14: error: 'Sunny' was not declared in this scope
   18 |   string s,S=Sunny,C=Cloudy,R=Rainy;
      |              ^~~~~
a.cc:20:17: error: 'C' was not declared in this scope
   20 |   if(s==S)cout<<C;
      |                 ^
a.cc:21:9: error: 'C' was not declared in this scope
   21 |   if(s==C)cout<<R;
      |         ^
a.cc:21:17: error: 'R' was not declared in this scope
   21 |   if(s==C)cout<<R;
      |                 ^
a.cc:22:9: error: 'R' was not declared in this scope
   22 |   if(s==R)cout<<S;
      |         ^
Language: Java

import java.util.Scanner;

public class ABC141A {

    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        String today = scan.nextLine();

        String tomorrow = "";
        switch (today){
            case "Sunny":
                tomorrow = "Cloudy";
                break;
            case "Cloudy":
                tomorrow = "Rainy";
                break;
            case "Rainy":
                tomorrow = "Sunny";
                break;
        }

        System.out.println(tomorrow);
    }
}


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

#include<stdio.h>
int main(void)
{
  char a[10];
  if(S=='Sunny'){
    a[10]='Cloudy';
  }
  else if(S=='Cloudy'){
    a[10]='Rainy';
  }
  else{
    a[10]='Sunny';
  }
  printf("%c",a[10]);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:6: error: 'S' undeclared (first use in this function)
    5 |   if(S=='Sunny'){
      |      ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:9: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    5 |   if(S=='Sunny'){
      |         ^~~~~~~
main.c:6:11: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    6 |     a[10]='Cloudy';
      |           ^~~~~~~~
main.c:6:11: warning: overflow in conversion from 'int' to 'char' changes value from '1869964409' to '121' [-Woverflow]
main.c:8:14: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    8 |   else if(S=='Cloudy'){
      |              ^~~~~~~~
main.c:9:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    9 |     a[10]='Rainy';
      |           ^~~~~~~
main.c:9:11: warning: overflow in conversion from 'int' to 'char' changes value from '1634299513' to '121' [-Woverflow]
main.c:12:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   12 |     a[10]='Sunny';
      |           ^~~~~~~
main.c:12:11: warning: overflow in conversion from 'int' to 'char' changes value from '1970171513' to '121' [-Woverflow]
Language: C

#include<stdio.h>
int main(void)
{
  string a,S;
  scanf("%s",&S);
  if(S=="Sunny"){
    a="Cludy";
  }
  else if(S=="Cludy"){
    a="Rainy";
  }
  else{
    a="Sunny";
  }
  printf("%s",a);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: unknown type name 'string'; did you mean 'stdin'?
    4 |   string a,S;
      |   ^~~~~~
      |   stdin
main.c:6:7: warning: comparison between pointer and integer
    6 |   if(S=="Sunny"){
      |       ^~
main.c:7:6: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    7 |     a="Cludy";
      |      ^
main.c:9:12: warning: comparison between pointer and integer
    9 |   else if(S=="Cludy"){
      |            ^~
main.c:10:6: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   10 |     a="Rainy";
      |      ^
main.c:13:6: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   13 |     a="Sunny";
      |      ^
Language: C

#include<stdio.h.
int main(void)
{
  string a,S;
  if(S=="Sunny"){
    a="Cludy";
  }
  else if(S=="Cludy"){
    a="Rainy";
  }
  else{
    a="Sunny";
  }
  printf("%s",a);
  return 0;
}

Compiler output:
main.c:1:18: error: missing terminating > character
    1 | #include<stdio.h.
      |                  ^
main.c:1:9: fatal error: stdio.h.: No such file or directory
    1 | #include<stdio.h.
      |         ^
compilation terminated.
Language: C

#include<stdio.h>
int main(void)
{
  string a;
  if(S=="Sunny"){
    a="Cludy";
  }
  else if(S=="Cludy"){
    a="Rainy";
  }
  else{
    a="Sunny";
  }
  printf("%s",a);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: unknown type name 'string'; did you mean 'stdin'?
    4 |   string a;
      |   ^~~~~~
      |   stdin
main.c:5:6: error: 'S' undeclared (first use in this function)
    5 |   if(S=="Sunny"){
      |      ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:6: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    6 |     a="Cludy";
      |      ^
main.c:9:6: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    9 |     a="Rainy";
      |      ^
main.c:12:6: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   12 |     a="Sunny";
      |      ^
Language: C

#include<stdio.h.
int main(void)
{
  string a;
  if(S=="Sunny"){
    a="Cludy";
  }
  else if(S=="Cludy"){
    a="Rainy";
  }
  else{
    a="Sunny";
  }
  printf("%s",a);
  return 0;
}

Compiler output:
main.c:1:18: error: missing terminating > character
    1 | #include<stdio.h.
      |                  ^
main.c:1:9: fatal error: stdio.h.: No such file or directory
    1 | #include<stdio.h.
      |         ^
compilation terminated.
Language: C

#include<stdio.h>
int main(void)
{
  string a;
  if(S=="Sunny"){
    a="Cludy";
  }
  else if(S=="Cludy"){
    a="Rainy";
  }
  else{
    a="Rainy";
  }
  printf("%s",a);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: unknown type name 'string'; did you mean 'stdin'?
    4 |   string a;
      |   ^~~~~~
      |   stdin
main.c:5:6: error: 'S' undeclared (first use in this function)
    5 |   if(S=="Sunny"){
      |      ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:6: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    6 |     a="Cludy";
      |      ^
main.c:9:6: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    9 |     a="Rainy";
      |      ^
main.c:12:6: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   12 |     a="Rainy";
      |      ^
Language: C

#include<stdio.h.
int main(void)
{
  string a;
  if(S=="Sunny"){
    a="Cludy";
  }
  else if(S=="Cludy"){
    a="Rainy";
  }
  else{
    a="Rainy";
  }
  printf("%s",a);
  return 0;
}
  
  

Compiler output:
main.c:1:18: error: missing terminating > character
    1 | #include<stdio.h.
      |                  ^
main.c:1:9: fatal error: stdio.h.: No such file or directory
    1 | #include<stdio.h.
      |         ^
compilation terminated.
Language: C

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

#define   WEATHER_SIZE	3
#define	  WEATHER_STR_LEN  8
void main(void)
{
  int i = 0;
  char weather[WEATHER_SIZE][WEATHER_STR_LEN] = {"Sunny", "Cloudy", "Rainy"};
  char input[16] = {'\0'};
  
  scanf("%s", input);
  
  for(i=0; i<WEATHER_SIZE; i++)
  {
    if (strcmp(input, weather[i]) == 0)
    {
      printf("%s", weather[(i+1)%WEATHER_SIZE]);
      break;
    }
  }
  if (i==WEATHER_SIZE)
  {
    print("unknown");
  }
  
  return;

Compiler output:
main.c: In function 'main':
main.c:24:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   24 |     print("unknown");
      |     ^~~~~
      |     printf
main.c:27:3: error: expected declaration or statement at end of input
   27 |   return;
      |   ^~~~~~
Language: C

#include<stdio.h>

#define   WEATHER_SIZE	3

void main(void)
{
  int i = 0;
  char weather[WEATHER_SIZE] = {"Sunny", "Cloudy", "Rainy"};
  char input[16] = {'\0'};
  
  scanf("%s", input);
  
  for(i=0; i<WEATHER_SIZE; i++)
  {
    if (strcmp(input, weather[i]) == 0)
    {
      printf("%s", weather[(i+1)%WEATHER_SIZE]);
      break;
    }
  }
  if (i==WEATHER_SIZE)
  {
    print("unknown");
  }
  
  return;

Compiler output:
main.c: In function 'main':
main.c:8:42: error: excess elements in 'char[3]' initializer
    8 |   char weather[WEATHER_SIZE] = {"Sunny", "Cloudy", "Rainy"};
      |                                          ^~~~~~~~
main.c:8:42: note: (near initialization for 'weather')
main.c:8:52: error: excess elements in 'char[3]' initializer
    8 |   char weather[WEATHER_SIZE] = {"Sunny", "Cloudy", "Rainy"};
      |                                                    ^~~~~~~
main.c:8:52: note: (near initialization for 'weather')
main.c:8:32: warning: initializer-string for array of 'char' is too long
    8 |   char weather[WEATHER_SIZE] = {"Sunny", "Cloudy", "Rainy"};
      |                                ^
main.c:15:9: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   15 |     if (strcmp(input, weather[i]) == 0)
      |         ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:15:30: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   15 |     if (strcmp(input, weather[i]) == 0)
      |                       ~~~~~~~^~~
      |                              |
      |                              char
main.c:15:30: note: expected 'const char *' but argument is of type 'char'
main.c:23:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   23 |     print("unknown");
      |     ^~~~~
      |     printf
main.c:26:3: error: expected declaration or statement at end of input
   26 |   return;
      |   ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:18: error: expected expression before ']' token
    4 |     scanf("%s",S[]);
      |                  ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'Cloudy' was not declared in this scope
    8 |     cout << Cloudy << endl;
      |             ^~~~~~
Language: C++

#include <algorithm>
#include <iostream>
#include <math.h>
#define ll long long int
#define FOR(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)
#define REP(i, n) FOR(i, 0, n)
#define REP1(i, n) FOR(i, 1, n)

using namespace std;

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


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


if(str=="Sunny"){
  printf("Cloudy");
}
  if(str=="Cloudy"){
  printf("Rainy");
}
  if(str=="Rainy"){
  printf("Sunny");
}


Compiler output:
a.cc:2:1: error: expected unqualified-id before 'if'
    2 | if(str=="Sunny"){
      | ^~
a.cc:5:3: error: expected unqualified-id before 'if'
    5 |   if(str=="Cloudy"){
      |   ^~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(str=="Rainy"){
      |   ^~
Language: C++

#include <iostream>
int main(){
if(str=="Sunny"){
  printf("Cloudy");
}
  if(str=="Cloudy"){
  printf("Rainy");
}
  if(str=="Rainy"){
  printf("Sunny");
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:4: error: 'str' was not declared in this scope; did you mean 'std'?
    3 | if(str=="Sunny"){
      |    ^~~
      |    std
a.cc:6:6: error: 'str' was not declared in this scope; did you mean 'std'?
    6 |   if(str=="Cloudy"){
      |      ^~~
      |      std
a.cc:9:6: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |   if(str=="Rainy"){
      |      ^~~
      |      std
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'Sunny' was not declared in this scope
    6 |   string a[]={Sunny,Cloudy,Rainy};
      |               ^~~~~
a.cc:6:21: error: 'Cloudy' was not declared in this scope
    6 |   string a[]={Sunny,Cloudy,Rainy};
      |                     ^~~~~~
a.cc:6:28: error: 'Rainy' was not declared in this scope
    6 |   string a[]={Sunny,Cloudy,Rainy};
      |                            ^~~~~
Language: C

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

int main(void){
char weather1[10] = "Sunny";
char weather2[10] = "Cloudy";
char weather3[10] = "Rainy";
char weather4[10];

  scanf("%s",weather4);

if (strcmp(weather1,whether4) == 0){
printf("%s",weather2);
  }
else if (strcmp(weather2,whether4) == 0){
printf("%s",weather3);
  }
else if (strcmp(weather3,whether4) == 0){
printf("%s",weather1);
  }
 
return 0;
 } 

Compiler output:
main.c: In function 'main':
main.c:12:21: error: 'whether4' undeclared (first use in this function); did you mean 'weather4'?
   12 | if (strcmp(weather1,whether4) == 0){
      |                     ^~~~~~~~
      |                     weather4
main.c:12:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <map>
#include <cmath>
#include <queue>
#include <stack>
#include <vector>
#include <cstdio>
#include <string>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
#define fi first
#define se second
#define PI acos(-1.0)
#define pb push_back
#define mp make_pair
#define ll long long
#define pii pair<int, int>
#define lowbit(x) x & (-x)
using namespace std;
const int maxx = 1e6 + 5;
const int mod = 998244353;
const int inf = 0x3f3f3f3f;
const ll INF = 0x3f3f3f3f3f3f3f3f;

int n, m, T;

char s[100];

int main(){
	int i, j, k;
	string ans;
	scanf(" %s", s);
	if(s[0] == 'S') ans = "Cloudy";
	else if(s[0] == 'C') ans = "Rainy";
	else ans = "Sunny";
	cout << ans << endl;
}
return 0;
}

Compiler output:
a.cc:39:1: error: expected unqualified-id before 'return'
   39 | return 0;
      | ^~~~~~
a.cc:40:1: error: expected declaration before '}' token
   40 | }
      | ^
Language: C++

#include <map>
#include <cmath>
#include <queue>
#include <stack>
#include <vector>
#include <cstdio>
#include <string>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
#define fi first
#define se second
#define PI acos(-1.0)
#define pb push_back
#define mp make_pair
#define ll long long
#define pii pair<int, int>
#define lowbit(x) x & (-x)
using namespace std;
const int maxx = 1e6 + 5;
const int mod = 998244353;
const int inf = 0x3f3f3f3f;
const ll INF = 0x3f3f3f3f3f3f3f3f;

int n, m, T;

int main(){
	int i, j, k;
	string s, ans;
	while(cin >> s){
	

Compiler output:
a.cc: In function 'int main()':
a.cc:31:25: error: expected '}' at end of input
   31 |         while(cin >> s){
      |                        ~^
a.cc:31:25: error: expected '}' at end of input
a.cc:28:11: note: to match this '{'
   28 | int main(){
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(s[0]=="S"){
a.cc:10:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   } else if(s[0]=="C"){
Language: C++

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

int main(){
  string s;
  cin>>s;
  
  switch(s[0]){
    case "S":
         cout<<"Cloudy"<<endl;
          break;
    case "C":
         cout<<"Rainy"<<endl;
          break;
    case "R":
         cout<<"Sunny"<<endl;
          break;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: conversion from 'const char*' to 'int' in a converted constant expression
    9 |     case "S":
      |          ^~~
a.cc:9:10: error: could not convert '"S"' from 'const char [2]' to 'int'
    9 |     case "S":
      |          ^~~
      |          |
      |          const char [2]
a.cc:12:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   12 |     case "C":
      |          ^~~
a.cc:12:10: error: could not convert '"C"' from 'const char [2]' to 'int'
   12 |     case "C":
      |          ^~~
      |          |
      |          const char [2]
a.cc:15:10: error: conversion from 'const char*' to 'int' in a converted constant expression
   15 |     case "R":
      |          ^~~
a.cc:15:10: error: could not convert '"R"' from 'const char [2]' to 'int'
   15 |     case "R":
      |          ^~~
      |          |
      |          const char [2]
Language: C++

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

int main(){
  string s;
  cin>>s;
  
  switch(s[0])
    case "S":
         cout<<"Cloudy"<<endl;
          break;
    case "C":
         cout<<"Rainy"<<endl;
          break;
    case "R":
         cout<<"Sunny"<<endl;
          break;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: conversion from 'const char*' to 'int' in a converted constant expression
    9 |     case "S":
      |          ^~~
a.cc:9:10: error: could not convert '"S"' from 'const char [2]' to 'int'
    9 |     case "S":
      |          ^~~
      |          |
      |          const char [2]
a.cc:11:11: error: break statement not within loop or switch
   11 |           break;
      |           ^~~~~
a.cc:12:5: error: case label '"C"' not within a switch statement
   12 |     case "C":
      |     ^~~~
a.cc:14:11: error: break statement not within loop or switch
   14 |           break;
      |           ^~~~~
a.cc:15:5: error: case label '"R"' not within a switch statement
   15 |     case "R":
      |     ^~~~
a.cc:17:11: error: break statement not within loop or switch
   17 |           break;
      |           ^~~~~
Language: C++

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

int main(){
  string s;
  cin>>s;
  
  switch(s[0])
    case "S":
         cout<<"Cloudy"<<endl;
          break;
    case "C":
         cout<<"Rainy"<<endl;
          break;
    case "R":
         cout<<"Sunny"<<endl;
          break;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: conversion from 'const char*' to 'int' in a converted constant expression
    9 |     case "S":
      |          ^~~
a.cc:9:10: error: could not convert '"S"' from 'const char [2]' to 'int'
    9 |     case "S":
      |          ^~~
      |          |
      |          const char [2]
a.cc:11:11: error: break statement not within loop or switch
   11 |           break;
      |           ^~~~~
a.cc:12:5: error: case label '"C"' not within a switch statement
   12 |     case "C":
      |     ^~~~
a.cc:14:11: error: break statement not within loop or switch
   14 |           break;
      |           ^~~~~
a.cc:15:5: error: case label '"R"' not within a switch statement
   15 |     case "R":
      |     ^~~~
a.cc:17:11: error: break statement not within loop or switch
   17 |           break;
      |           ^~~~~
Language: C++

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

int main(){
  string s;
  cin>>s;
  
  switch(s[0])
    case"S":
         cout<<"Cloudy"<<endl;
          break;
    case"C":
         cout<<"Rainy"<<endl;
          break;
    case"R":
         cout<<"Sunny"<<endl;
          break;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: conversion from 'const char*' to 'int' in a converted constant expression
    9 |     case"S":
      |         ^~~
a.cc:9:9: error: could not convert '"S"' from 'const char [2]' to 'int'
    9 |     case"S":
      |         ^~~
      |         |
      |         const char [2]
a.cc:11:11: error: break statement not within loop or switch
   11 |           break;
      |           ^~~~~
a.cc:12:5: error: case label '"C"' not within a switch statement
   12 |     case"C":
      |     ^~~~
a.cc:14:11: error: break statement not within loop or switch
   14 |           break;
      |           ^~~~~
a.cc:15:5: error: case label '"R"' not within a switch statement
   15 |     case"R":
      |     ^~~~
a.cc:17:11: error: break statement not within loop or switch
   17 |           break;
      |           ^~~~~
Language: C++

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

int main(){
  String s;
  cin>>s;
  
  switch(s[0])
    case"S":
         cout<<"Cloudy"<<endl;
          break;
    case"C":
         cout<<"Rainy"<<endl;
          break;
    case"R":
         cout<<"Sunny"<<endl;
          break;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'String' was not declared in this scope
    5 |   String s;
      |   ^~~~~~
a.cc:6:8: error: 's' was not declared in this scope
    6 |   cin>>s;
      |        ^
a.cc:11:11: error: break statement not within loop or switch
   11 |           break;
      |           ^~~~~
a.cc:12:5: error: case label '"C"' not within a switch statement
   12 |     case"C":
      |     ^~~~
a.cc:14:11: error: break statement not within loop or switch
   14 |           break;
      |           ^~~~~
a.cc:15:5: error: case label '"R"' not within a switch statement
   15 |     case"R":
      |     ^~~~
a.cc:17:11: error: break statement not within loop or switch
   17 |           break;
      |           ^~~~~
Language: C++

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

int main(){
  String s;
  cin>>s;
  
  switch(s[0])
    case:"S"
         cout<<"Cloudy"<<endl;
          break;
    case:"C"
         cout<<"Rainy"<<endl;
          break;
    case:"R"
         cout<<"Sunny"<<endl;
          break;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'String' was not declared in this scope
    5 |   String s;
      |   ^~~~~~
a.cc:6:8: error: 's' was not declared in this scope
    6 |   cin>>s;
      |        ^
a.cc:9:9: error: expected primary-expression before ':' token
    9 |     case:"S"
      |         ^
a.cc:9:13: error: expected ';' before 'cout'
    9 |     case:"S"
      |             ^
      |             ;
   10 |          cout<<"Cloudy"<<endl;
      |          ~~~~
a.cc:11:11: error: break statement not within loop or switch
   11 |           break;
      |           ^~~~~
a.cc:12:9: error: expected primary-expression before ':' token
   12 |     case:"C"
      |         ^
a.cc:12:5: error: case label '<expression error>' not within a switch statement
   12 |     case:"C"
      |     ^~~~
a.cc:12:13: error: expected ';' before 'cout'
   12 |     case:"C"
      |             ^
      |             ;
   13 |          cout<<"Rainy"<<endl;
      |          ~~~~
a.cc:14:11: error: break statement not within loop or switch
   14 |           break;
      |           ^~~~~
a.cc:15:9: error: expected primary-expression before ':' token
   15 |     case:"R"
      |         ^
a.cc:15:5: error: case label '<expression error>' not within a switch statement
   15 |     case:"R"
      |     ^~~~
a.cc:15:13: error: expected ';' before 'cout'
   15 |     case:"R"
      |             ^
      |             ;
   16 |          cout<<"Sunny"<<endl;
      |          ~~~~
a.cc:17:11: error: break statement not within loop or switch
   17 |           break;
      |           ^~~~~
Language: C++

#include <iostream>
#include <algorithm>
namespace std

int main() {
	int a,b,c;
  	char* s = new char[100];
  	cin >> a >> b >> c >> s ;
  	cout << (a + b + c) << s << "\n";
	return 0;
}

Compiler output:
a.cc:5:1: error: expected '{' before 'int'
    5 | int main() {
      | ^~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         cin >> a >> b >> c >> 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:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout << (a + b + c) << s << "\n";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
#include <algorithm>
namespace std;

int main() {
	int a,b,c;
  	char* s = new char[100];
  	cin >> a >> b >> c >> s ;
  	cout << (a + b + c) << s << "\n";
	return 0;
}

Compiler output:
a.cc:3:14: error: expected '{' before ';' token
    3 | namespace std;
      |              ^
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         cin >> a >> b >> c >> 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:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout << (a + b + c) << s << "\n";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~