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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int s;
  cin >>s;
  if(s.at(0)==s.at(1)||s.at(1)==s.at(2)||s.at(2)==s.at(3))
    cout << "Bad" <<endl;
  else cout<<"Good" <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: request for member 'at' in 's', which is of non-class type 'int'
    7 |   if(s.at(0)==s.at(1)||s.at(1)==s.at(2)||s.at(2)==s.at(3))
      |        ^~
a.cc:7:17: error: request for member 'at' in 's', which is of non-class type 'int'
    7 |   if(s.at(0)==s.at(1)||s.at(1)==s.at(2)||s.at(2)==s.at(3))
      |                 ^~
a.cc:7:26: error: request for member 'at' in 's', which is of non-class type 'int'
    7 |   if(s.at(0)==s.at(1)||s.at(1)==s.at(2)||s.at(2)==s.at(3))
      |                          ^~
a.cc:7:35: error: request for member 'at' in 's', which is of non-class type 'int'
    7 |   if(s.at(0)==s.at(1)||s.at(1)==s.at(2)||s.at(2)==s.at(3))
      |                                   ^~
a.cc:7:44: error: request for member 'at' in 's', which is of non-class type 'int'
    7 |   if(s.at(0)==s.at(1)||s.at(1)==s.at(2)||s.at(2)==s.at(3))
      |                                            ^~
a.cc:7:53: error: request for member 'at' in 's', which is of non-class type 'int'
    7 |   if(s.at(0)==s.at(1)||s.at(1)==s.at(2)||s.at(2)==s.at(3))
      |                                                     ^~
Language: C++

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

int main(){
  int s[4];
  cin >> s[0] >> s[1] >> s[2] >> s[3];
  if(a[0] != s[1] && s[1] != s[2] && s[2] != s[3])cout << "Good" << endl;
  else cout << "Bad" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'a' was not declared in this scope
    7 |   if(a[0] != s[1] && s[1] != s[2] && s[2] != s[3])cout << "Good" << endl;
      |      ^
Language: C++

#include <iostream>
 
int main()
{
  int x, y, z, w;
  
  std::cin >> x >> y >> z >> w;
  
  if(x==y || x==z || x==w || y==z || y==w || z==w){
    std::cout << "Bad";
  } else {
    std::cout << "Good";
  }
    
  return 0;
}
#include <iostream>

int main()
{
  int x, y, z, w;
  
  std::cin >> x >> y >> z >> w;
  
  if(x==y || y==z || z==w){
    std::cout << "Bad";
  } else {
    std::cout << "Good";
  }
    
  return 0;
}


Compiler output:
a.cc:19:5: error: redefinition of 'int main()'
   19 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
Language: C++

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

int main() {
string S
  cin >> S >> endl;
  for(int i=0,i<N,i++){
cin S.at(i);
    if(S.at(i)==S.at(i+1){
cont << "Bad" <<endl;
    }
       }
   else{
     cout<< "Good" << endl;
   }
}




Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> S >> endl;
      |   ^~~
a.cc:7:16: error: expected ';' before '<' token
    7 |   for(int i=0,i<N,i++){
      |                ^
      |                ;
a.cc:7:16: error: expected primary-expression before '<' token
a.cc:7:17: error: 'N' was not declared in this scope
    7 |   for(int i=0,i<N,i++){
      |                 ^
a.cc:7:22: error: expected ';' before ')' token
    7 |   for(int i=0,i<N,i++){
      |                      ^
      |                      ;
a.cc:8:4: error: expected ';' before 'S'
    8 | cin S.at(i);
      |    ^~
      |    ;
a.cc:9:8: error: 'S' was not declared in this scope
    9 |     if(S.at(i)==S.at(i+1){
      |        ^
a.cc:9:26: error: expected ')' before '{' token
    9 |     if(S.at(i)==S.at(i+1){
      |       ~                  ^
      |                          )
a.cc:12:8: error: expected primary-expression before '}' token
   12 |        }
      |        ^
a.cc:13:4: error: 'else' without a previous 'if'
   13 |    else{
      |    ^~~~
Language: Java

import java.uril.Scannee;
class main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    if(s.charAt(0).equals(s.charAt(1) || s.charAt(1).equals(s.charAt(2) || s.charAt(2).equals(s.charAt(3)){
      System.out.println("Bad");
    }else{
      System.out.println("Good");
    }
}

Compiler output:
Main.java:6: error: ')' or ',' expected
    if(s.charAt(0).equals(s.charAt(1) || s.charAt(1).equals(s.charAt(2) || s.charAt(2).equals(s.charAt(3)){
                                                                                                          ^
Main.java:11: error: reached end of file while parsing
}
 ^
2 errors
Language: C++

#pragma GCC optimize "-O3"
#pragma GCC target ("avx")
#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i!=n;++i)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())
signed gcd(int a, int b){return b?gcd(b,a%b):a;}
signed lcm(int a, int b){return a*b/gcd(a,b);}

using namespace std;

const int mod=1e9+7;

void run();

void init() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout<<fixed<<setprecision(12);
}

signed main(){
    init();
    run();
    return 0;
}

void run(){
    int A,B,C,D;
    cin >> A >> B >> C >> D;

    int ans_B = B - B/C -B/D +B/lcm(C,D);
    int ans_A = A-1 - (A-1)/C -(A-1)/D +(A-1)/lcm(C,D);
    cout << ans_B -ans_A << endl;
}
#pragma GCC optimize "-O3"
#pragma GCC target ("avx")
#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i!=n;++i)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())
signed gcd(int a, int b){return b?gcd(b,a%b):a;}
signed lcm(int a, int b){return a*b/gcd(a,b);}

using namespace std;

const int mod=1e9+7;

void run();

void init() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout<<fixed<<setprecision(12);
}

signed main(){
    init();
    run();
    return 0;
}

void run(){
    int A,B,C,D;
    cin >> A >> B >> C >> D;

    int ans_B = B - B/C -B/D +B/lcm(C,D);
    int ans_A = A-1 - (A-1)/C -(A-1)/D +(A-1)/lcm(C,D);
    cout << ans_B -ans_A << endl;
}


Compiler output:
a.cc:73:11: error: redefinition of 'const long long int mod'
   73 | const int mod=1e9+7;
      |           ^~~
a.cc:25:11: note: 'const long long int mod' previously defined here
   25 | const int mod=1e9+7;
      |           ^~~
a.cc:83:8: error: redefinition of 'int main()'
   83 | signed main(){
      |        ^~~~
a.cc:35:8: note: 'int main()' previously defined here
   35 | signed main(){
      |        ^~~~
Language: C++

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

int main() {
 Int a;
 char q,w,e,r;
 q = a.at(0);
 w = a.at(1);
 e = a.at(2);
 r = a.at(3);
 if(q == w || q == e || q == r || w == e || w == r || e == r){
   cout << "Bad" <<endl;
 }
 else{
   cout << "Good" <<endl;
 }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'Int' was not declared in this scope; did you mean 'int'?
    5 |  Int a;
      |  ^~~
      |  int
a.cc:7:6: error: 'a' was not declared in this scope
    7 |  q = a.at(0);
      |      ^
Language: C++

s = input()
if s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:
    print('Bad')
else:
    print('Good')

Compiler output:
a.cc:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('Bad')
      |           ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('Good')
      |           ^~~~~~
a.cc:1:1: error: 's' does not name a type
    1 | s = input()
      | ^
Language: C++

S = input()
if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:
    print('Bad')
else:
    print('Good')

Compiler output:
a.cc:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('Bad')
      |           ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('Good')
      |           ^~~~~~
a.cc:1:1: error: 'S' does not name a type
    1 | S = input()
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

using int64 = long long;

int main() {
  string s;
  cin >> s;
  for (int i = 0; i < 3; i++) {
    if (s[i] == s[i + 1]) {
      cout << "Bad" << endl;
      return;
    }
  }
  cout << "Good" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |       return;
      |       ^~~~~~
Language: C++

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

int main(){
  string s;cin>>s;
  for(int i = 0 i < s.size() -1; i++){
    if(s[i] == s[i+1]){
      cout<<"Bad"<<endl;
      return 0;
      }
    }
  cout<<"Good"<<endl;
  
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before 'i'
    7 |   for(int i = 0 i < s.size() -1; i++){
      |                ^~
      |                ;
Language: Java

import java.util.Scanner;
 
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System. in);
    String passWord = sc.next();
    String ans = StringUtil.STRING_BLANK;

    for (int i=0; i < passWord.length(); i++) {
      if (passWord.substring(i, i + 1).equals(passWord.substring(i+1, i+2))) {
        ans = "Bad";
        return;
      } else {
        ans = "Good";
      }
    }

    System.out.println(ans);
  }
}


Compiler output:
Main.java:7: error: cannot find symbol
    String ans = StringUtil.STRING_BLANK;
                 ^
  symbol:   variable StringUtil
  location: class Main
1 error
Language: Java

import java.util.Scanner;
public class Main{
   public static void main(String[] args){
     Scanner sc = new Scanner(System.in);
     String c		= sc.next();
        int i		= 0;
        String flg	= ' ';
        
        while (i <= 3) {

        if (c(i) = c(i+1)) 
            flg = "on";
        i++;
        }
        
        if flg = "on"
           System.out.println("bad");
        }
}


Compiler output:
Main.java:16: error: '(' expected
        if flg = "on"
          ^
Main.java:16: error: ')' expected
        if flg = "on"
                     ^
2 errors
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
        String s 	   = sc.next();
        for(int i = 0 ; i < s.length()-1 ; i++){
        	if(s.charAt(i).eqals(s.charAt(i+1))){
            	System.out.println("Bad");
                break;
            }
            if(i == s.length()-2){
            	System.out.println("Good");
            }
        }
    }
}



Compiler output:
Main.java:7: error: char cannot be dereferenced
        	if(s.charAt(i).eqals(s.charAt(i+1))){
        	              ^
1 error
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
        String s 	   = sc.next();
      	String[] sArray = s.split("");
        for(int i = 0 ; i < sArray.length()-1 ; i++){
        	if(sArray[i] == sArray(i+1)){
            	System.out.println("Bad");
                break;
            }
            if(i == sArray.length()-2){
            	System.out.println("Good");
            }
        }
    }
}



Compiler output:
Main.java:7: error: cannot find symbol
        for(int i = 0 ; i < sArray.length()-1 ; i++){
                                  ^
  symbol:   method length()
  location: variable sArray of type String[]
Main.java:8: error: cannot find symbol
        	if(sArray[i] == sArray(i+1)){
        	                ^
  symbol:   method sArray(int)
  location: class Main
Main.java:12: error: cannot find symbol
            if(i == sArray.length()-2){
                          ^
  symbol:   method length()
  location: variable sArray of type String[]
3 errors
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();
	String result = "Good";
	
	for (int i = 0; i < s.length - 1; i++) {
		char c0 = s.charAt(i);
		char c1 = s.charAt(i + 1);
		
		if (c0 == c1) {
			result = "Bad";
		}
	}

    System.out.println(result);
  }
}



Compiler output:
Main.java:9: error: cannot find symbol
	for (int i = 0; i < s.length - 1; i++) {
	                     ^
  symbol:   variable length
  location: variable s of type String
1 error
Language: Java

import java.util.Scanner;

public class Main{

  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);
    
    string q = sc.next();
    string b = sc.next();
    string c = sc.next();
    string d = sc.next();

    if a = b or b = c or c = d then
       System.out.println( 'bad' );
    else
     System.out.println( 'good' );
    end
  }

}


Compiler output:
Main.java:14: error: '(' expected
    if a = b or b = c or c = d then
      ^
Main.java:14: error: ')' expected
    if a = b or b = c or c = d then
            ^
Main.java:14: error: ';' expected
    if a = b or b = c or c = d then
                     ^
Main.java:14: error: variable declaration not allowed here
    if a = b or b = c or c = d then
                ^
Main.java:14: error: ';' expected
    if a = b or b = c or c = d then
                              ^
Main.java:15: error: ';' expected
       System.out.println( 'bad' );
             ^
Main.java:15: error: unclosed character literal
       System.out.println( 'bad' );
                           ^
Main.java:15: error: unclosed character literal
       System.out.println( 'bad' );
                               ^
Main.java:15: error: not a statement
       System.out.println( 'bad' );
                             ^
Main.java:17: error: unclosed character literal
     System.out.println( 'good' );
                         ^
Main.java:16: error: 'else' without 'if'
    else
    ^
Main.java:17: error: unclosed character literal
     System.out.println( 'good' );
                              ^
Main.java:17: error: not a statement
     System.out.println( 'good' );
                           ^
Main.java:18: error: not a statement
    end
    ^
Main.java:18: error: ';' expected
    end
       ^
15 errors
Language: Java

import java.util.Scanner;

public class Main{
public static void main(String[] args){

Scanner sc = new Scanner(System.in);

int S = sc.nextInt();

intArray[5] = S;

if(intArray[intArray.1]=intArray[intArray.2]){
System.out.println("Bad");
else
System.out.println("Good");
}



}


Compiler output:
Main.java:12: error: ']' expected
if(intArray[intArray.1]=intArray[intArray.2]){
                    ^
Main.java:12: error: ';' expected
if(intArray[intArray.1]=intArray[intArray.2]){
                      ^
Main.java:12: error: ']' expected
if(intArray[intArray.1]=intArray[intArray.2]){
                                         ^
Main.java:12: error: not a statement
if(intArray[intArray.1]=intArray[intArray.2]){
                                ^
Main.java:14: error: 'else' without 'if'
else
^
Main.java:20: error: reached end of file while parsing
}
 ^
6 errors
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
        String s 	   = sc.next();
        for(int i = 0 ; i < s.length() ; i++){
        	if(s.charAt(i) == s.charAt(i+1)){
            	System.out.println("Bad");
                break
            }
            else{
            	System.out.println("Good");
            }
        }
    }
}



Compiler output:
Main.java:9: error: ';' expected
                break
                     ^
1 error
Language: Java

import java.util.*
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
        String s 	   = sc.next();
        for(int i = 0 ; i < s.length() ; i++){
        	if(s.charAt(i) == s.charAt(i+1)){
            	System.out.println("Bad");
                break
            }
            else{
            	System.out.println("Good");
            }
        }
    }
}



Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
Main.java:9: error: ';' expected
                break
                     ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

	String s = sc.nextString();
	
	char c0 = s.charAt(0);
	char c1 = s.charAt(1);
	char c2 = s.charAt(2);
	char c3 = s.charAt(3);
	
	String result = "Good";
	
	if (c0 == c1) {
		result = "Bad";
	}
	if (c1 == c2) {
		result = "Bad";
	}
	if (c2 == c3) {
		result = "Bad";
	}

    System.out.println(result);
  }
}



Compiler output:
Main.java:6: error: cannot find symbol
	String s = sc.nextString();
	             ^
  symbol:   method nextString()
  location: variable sc of type Scanner
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
main(){
  string s;
  cin >>s;
  if( s[0] == s[1] ||  s[1] == s[2] || ||  s[1] == s[3]) cout<<"Bad";
  else cout<<"Good";
}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:40: error: expected primary-expression before '||' token
    6 |   if( s[0] == s[1] ||  s[1] == s[2] || ||  s[1] == s[3]) cout<<"Bad";
      |                                        ^~
Language: C

#include <stdio.h>
int main()
{
  chsr S[5];
   scanf("%c", &S);
  if(S[0]==S[1])
    puts("Bad");
  else if(S[1]==S[2])
    puts("Bad");
  else if(S[2]==S[3])
    puts("Bad");
  else if(S[3]==S[4])
    puts("Bad");
  else
    puts("Good");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: unknown type name 'chsr'; did you mean 'char'?
    4 |   chsr S[5];
      |   ^~~~
      |   char
Language: C

#include <stdio.h>

int main(void){
  int s;
  scanf("%d",&s);
  int mod = 1000;
  int renflag = 0; //0 = false, 1 = true
  int typecount = 0;
  int nowtype;
  int s_search;
  for(int i=0; i<4; i++){
    s_search = s % mod;
    if(nowtype != s_search){
      nowtype = s_search;
      typecount++;
    }else{
      if(renflag == 1){
        renflag = 0;
      }else{
        renflag = 1;
      }
    }
    mod = mod / 10;
  }
  if(typecount == 2 && renflag = 1){
    printf("Good");
  }else{
    printf("Bad");
  }
  
}

Compiler output:
main.c: In function 'main':
main.c:25:32: error: lvalue required as left operand of assignment
   25 |   if(typecount == 2 && renflag = 1){
      |                                ^
Language: C

#include <stdio.h>

int main(void){
  int s;
  scanf("%d",&s);
  int mod = 1000;
  int renflag = 0; //0 = false, 1 = true
  int typecount = 0;
  int nowtype;
  int s_search;
  for(int i=0; i<4; i++){
    s_search = s % mod;
    if(nowtype != s_search){
      nowtype = s_search;
      typecount++;
    }else{
      if(renflag == 1){
        renflag = 0;
      }else{
        renflag = 1;
      }
    }
    mod = mod / 10;
  }
  if(typecount = 2 && renflag = 1){
    printf("Good");
  }else{
    printf("Bad");
  }
  
}

Compiler output:
main.c: In function 'main':
main.c:25:31: error: lvalue required as left operand of assignment
   25 |   if(typecount = 2 && renflag = 1){
      |                               ^
Language: C

#include <stdio.h>

int main(void){
  int s;
  scanf("%d",&s);
  int mod = 1000;
  bool renflag;
  int typecount = 0;
  int nowtype;
  int s_search;
  for(int i=0; i<4; i++){
    s_search = s % mod;
    if(nowtype != s_search){
      nowtype = s_search;
      typecount++;
    }else{
      if(renflag){
        renflag = false;
      }else{
        renflag = true;
      }
    }
    mod = mod / 10;
  }
  if(typecount = 2 && renflag = true){
    printf("Good");
  }else{
    printf("Bad");
  }
  
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: unknown type name 'bool'
    7 |   bool renflag;
      |   ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:18:19: error: 'false' undeclared (first use in this function)
   18 |         renflag = false;
      |                   ^~~~~
main.c:18:19: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:18:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:19: error: 'true' undeclared (first use in this function)
   20 |         renflag = true;
      |                   ^~~~
main.c:20:19: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C++

// ABC132A
// https://atcoder.jp/contests/abc131/tasks/abc131_a
void ABC132A() {
	string S;
	cin >> S;

	for (int i = 0; i < S.size() - 1; i++)
	{
		if (S[i] == S[i + 1]) {
			cout << "Bad" << endl;
			return;
		}
	}

	cout << "Good" << endl;
}

int main() {
	ABC132A();

	return 0;
}

Compiler output:
a.cc: In function 'void ABC132A()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string S;
      |         ^~~~~~
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> S;
      |         ^~~
a.cc:5:16: error: 'S' was not declared in this scope
    5 |         cin >> S;
      |                ^
a.cc:10:25: error: 'cout' was not declared in this scope
   10 |                         cout << "Bad" << endl;
      |                         ^~~~
a.cc:10:42: error: 'endl' was not declared in this scope
   10 |                         cout << "Bad" << endl;
      |                                          ^~~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << "Good" << endl;
      |         ^~~~
a.cc:15:27: error: 'endl' was not declared in this scope
   15 |         cout << "Good" << endl;
      |                           ^~~~
Language: C++

void ABC132A() {
	string S;
	cin >> S;

	for (int i = 0; i < S.size()-1; i++)
	{
		if (S[i] == S[i+1]) {
			cout << "Bad" << endl;
			return;
		}
	}

	cout << "Good" << endl;
}

int main() {
	ABC132A();

	return 0;
}


Compiler output:
a.cc: In function 'void ABC132A()':
a.cc:2:9: error: 'string' was not declared in this scope
    2 |         string S;
      |         ^~~~~~
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> S;
      |         ^~~
a.cc:3:16: error: 'S' was not declared in this scope
    3 |         cin >> S;
      |                ^
a.cc:8:25: error: 'cout' was not declared in this scope
    8 |                         cout << "Bad" << endl;
      |                         ^~~~
a.cc:8:42: error: 'endl' was not declared in this scope
    8 |                         cout << "Bad" << endl;
      |                                          ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "Good" << endl;
      |         ^~~~
a.cc:13:27: error: 'endl' was not declared in this scope
   13 |         cout << "Good" << endl;
      |                           ^~~~
Language: C

s=input()
if s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:
    print("Bad")
else:
    print("Good")

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | s=input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
main.c:1:3: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | s=input()
      |   ^~~~~
main.c:1:3: error: initializer element is not constant
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:
      | ^~
Language: C

#include<stdio.h>

s=input()

if(s[0]==s[1] || s[1]==s[2] || s[2]==s[3]){
    print("Bad");
}else{
    print("Good")
}

Compiler output:
main.c:3:1: warning: data definition has no type or storage class
    3 | s=input()
      | ^
main.c:3:1: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
main.c:3:3: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    3 | s=input()
      |   ^~~~~
main.c:3:3: error: initializer element is not constant
main.c:5:1: error: expected ',' or ';' before 'if'
    5 | if(s[0]==s[1] || s[1]==s[2] || s[2]==s[3]){
      | ^~
main.c:7:2: error: expected identifier or '(' before 'else'
    7 | }else{
      |  ^~~~
Language: C

    i=input()
    if i[0]==i[1] or i[1]==i[2] or i[2]==i[3]:
        print("Bad")
    else:
        print("Good")

Compiler output:
main.c:1:5: warning: data definition has no type or storage class
    1 |     i=input()
      |     ^
main.c:1:5: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:1:7: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 |     i=input()
      |       ^~~~~
main.c:1:7: error: initializer element is not constant
main.c:2:5: error: expected ',' or ';' before 'if'
    2 |     if i[0]==i[1] or i[1]==i[2] or i[2]==i[3]:
      |     ^~
Language: C

#include<stdio.h>

    int main(){

      int i,A,B,C,D;

      i=input();

      A = i/1000;
      B = i%1000;
      B = i/100;
      C = i%100;
      C = i/10;
      D = i%10;

      if(A==B||B==C||C==D){printf("Bad");}
      else(printf("Good"));
                   
      return 0;

      }

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    7 |       i=input();
      |         ^~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
void main(){
  string s;cin>>s;
  for(int i=1;i<3;++i){
    if(s[i-1]==s[i] || s[i]+s[i+1]){
     cout << "Bad" << endl;
     break;
    }
  }
  cout << "Good" << endl;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(){
      | ^~~~
Language: C++

#include<stdio.h>
int main(){
    char str[5];
    scanf("%s", str);
    bool isGood=true;
    for(i=1; i<4; i++){
        if(str[i]==str[i-1]){
            isGood=false;
        }
    }
    printf("%s\n", (isGood ? "Good" : "Bad"))
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'i' was not declared in this scope
    6 |     for(i=1; i<4; i++){
      |         ^
a.cc:11:46: error: expected ';' before 'return'
   11 |     printf("%s\n", (isGood ? "Good" : "Bad"))
      |                                              ^
      |                                              ;
   12 |     return 0;
      |     ~~~~~~
Language: Java

import java.util.Scanner;
 
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String s = sc.nextLine();
    String result = "Good";
    String[] split = s.split("",0);
    for(int i = 0;i < 3;i++){
        if(split[i].equals(split[j+1])){
          result = "Bad";
        }
    }
      System.out.println(result);
  }
}

Compiler output:
Main.java:11: error: cannot find symbol
        if(split[i].equals(split[j+1])){
                                 ^
  symbol:   variable j
  location: class Main
1 error
Language: Java

import java.util.Scanner;
 
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String s = sc.nextLine();
    String result = "Good";
    String[] split = s.split("",0);
    for(int i = 0;i < 3;i++){
        if(split[i].equals(split[j+1])){
          result = "Bad";
    }
      System.out.println(result);
  }
}

Compiler output:
Main.java:16: error: reached end of file while parsing
}
 ^
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();
    String result = "Good";
    for(int i = 0;i < s.length - 1; i++){
    	if(s.substring(i,i+1).equals(s.substring(i+1,i+2))){
        	result = "Bad";
          	break;
        }
    }
    System.out.println(result);
  }
}


Compiler output:
Main.java:8: error: cannot find symbol
    for(int i = 0;i < s.length - 1; i++){
                       ^
  symbol:   variable length
  location: variable s of type String
1 error
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String s = sc.nextLine();
    String result = Good;
    String[] split = s.split("",0);
    for(int i = 0;i < 4;i++){
      for(int j = 0;j < 4;j++){
        if(split[i].equals(split[j])){
          result = "Bad";
        }
      }
    }
      System.out.println(result);
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
    String result = Good;
                    ^
  symbol:   variable Good
  location: class Main
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  	string S;
	cin >> S;
  	if(S[0]!=S[1]&&S[1]!=S[2]&&S[2]!=S[3]){
      cout << "Good" << endl;
    }else{
      cout << "Bad" << endl;
    }
  return0;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'return0' was not declared in this scope
   11 |   return0;
      |   ^~~~~~~
Language: C++

include<bits/stdc++.h>
using namespace std;
int main(){
  	string S;
	cin >> S;
  	if(S[0]!=S[1]&&S[1]!=S[2]&&S[2]!=S[3]){
      cout << "Good" << endl;
    }else{
      cout << "Bad" << endl;
    }
  return0;
}
      

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string S;
      |         ^~~~~~
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> S;
      |         ^~~
a.cc:5:16: error: 'S' was not declared in this scope
    5 |         cin >> S;
      |                ^
a.cc:7:7: error: 'cout' was not declared in this scope
    7 |       cout << "Good" << endl;
      |       ^~~~
a.cc:7:25: error: 'endl' was not declared in this scope
    7 |       cout << "Good" << endl;
      |                         ^~~~
a.cc:9:7: error: 'cout' was not declared in this scope
    9 |       cout << "Bad" << endl;
      |       ^~~~
a.cc:9:24: error: 'endl' was not declared in this scope
    9 |       cout << "Bad" << endl;
      |                        ^~~~
a.cc:11:3: error: 'return0' was not declared in this scope
   11 |   return0;
      |   ^~~~~~~
Language: C++

include<bits/stdc++>
using namespace std;
int main(){
  	string S;
	cin >> S;
  	if(S[0]!=S[1]&&S[1]!=S[2]&&S[2]!=S[3]){
      cout >> "Good" >> endl;
    }else{
      cout >> "Bad" >> endl;
    }
  return0;
}
      

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string S;
      |         ^~~~~~
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> S;
      |         ^~~
a.cc:5:16: error: 'S' was not declared in this scope
    5 |         cin >> S;
      |                ^
a.cc:7:7: error: 'cout' was not declared in this scope
    7 |       cout >> "Good" >> endl;
      |       ^~~~
a.cc:7:25: error: 'endl' was not declared in this scope
    7 |       cout >> "Good" >> endl;
      |                         ^~~~
a.cc:9:7: error: 'cout' was not declared in this scope
    9 |       cout >> "Bad" >> endl;
      |       ^~~~
a.cc:9:24: error: 'endl' was not declared in this scope
    9 |       cout >> "Bad" >> endl;
      |                        ^~~~
a.cc:11:3: error: 'return0' was not declared in this scope
   11 |   return0;
      |   ^~~~~~~
Language: C++

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

int main(){
    char S[3]; cin >> S;

    if(S[0]==S[1]){
        cout<< "Bad" <<endl;
    }

    if(S[1]==S[2]){<
        cout<< "Bad" <<endl;
    }
    
    if(S[2]==S[3]){
        cout<< "Bad" <<endl;
    }
    if(S[3]==S[4]){
        cout<< "Bad" <<endl;
    }

    cout << "Good" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected primary-expression before '<' token
   11 |     if(S[1]==S[2]){<
      |                    ^
Language: C++

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

int main(){

int s;
  cin>>s
  bool x =true;
  
 
  if (s[0] == s[1]) 
    x = false;
   if (s[1] == s[2]) 
      x = false;
     if (s[2] == s[3]) 
   x = false;
  
  if(x){
  cout<<"Good"<<endl;
  }else{
    cout<<"Bad"<<endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected ';' before 'bool'
    7 |   cin>>s
      |         ^
      |         ;
    8 |   bool x =true;
      |   ~~~~   
a.cc:11:8: error: invalid types 'int[int]' for array subscript
   11 |   if (s[0] == s[1])
      |        ^
a.cc:11:16: error: invalid types 'int[int]' for array subscript
   11 |   if (s[0] == s[1])
      |                ^
a.cc:12:5: error: 'x' was not declared in this scope
   12 |     x = false;
      |     ^
a.cc:13:9: error: invalid types 'int[int]' for array subscript
   13 |    if (s[1] == s[2])
      |         ^
a.cc:13:17: error: invalid types 'int[int]' for array subscript
   13 |    if (s[1] == s[2])
      |                 ^
a.cc:14:7: error: 'x' was not declared in this scope
   14 |       x = false;
      |       ^
a.cc:15:11: error: invalid types 'int[int]' for array subscript
   15 |      if (s[2] == s[3])
      |           ^
a.cc:15:19: error: invalid types 'int[int]' for array subscript
   15 |      if (s[2] == s[3])
      |                   ^
a.cc:16:4: error: 'x' was not declared in this scope
   16 |    x = false;
      |    ^
a.cc:18:6: error: 'x' was not declared in this scope
   18 |   if(x){
      |      ^
Language: C

#include<stdio.h>

int main(){
  int i, j, count = 0;
  char str[];
  
  scanf("%s", str);
  
  for(i = 0; i <= 2; i++){
    for(j = i + 1; j <= 3; j++){
      if(str[i] == str[j]){
        count++;
      }
    }
  }
  
  if(count == 2){
    printf("Good");
  }else{
    printf("Bad");
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 'str'
    5 |   char str[];
      |        ^~~
Language: C++

#include<stdio.h>



int main() {
	
	int a=0, b=0, c=0, d=0;
	int i;
	int count = 0;
	scanf_s("%d", &a);
	scanf_s("%d", &b);
	scanf_s("%d", &c);
	scanf_s("%d", &d);

	for (i = a; i <= b; i++) {
		if (i%c != 0 && i%d != 0) {
			count++;
		}
	}
	printf("%d", count);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   10 |         scanf_s("%d", &a);
      |         ^~~~~~~
      |         scanf
Language: C++

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

int main() {
  vector<int> vec(4);
  bool ans=false;
  
  for(int i=0;i<n;i++){
    cin >> vec.at(i);
  }
  
  for(int i=0;i<n-1;i++){
    if(vec.at(i)==vec.at(i+1)){
      ans =true;
    }
  }
  
  if(ans){
    cout << "Bad" << endl;
  }
  else{
    cout << "Good" << endl;
  }
}
  
    
      


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'n' was not declared in this scope
    8 |   for(int i=0;i<n;i++){
      |                 ^
a.cc:12:17: error: 'n' was not declared in this scope
   12 |   for(int i=0;i<n-1;i++){
      |                 ^
Language: C

#include<stdio.h>
int main(void){
int A[10];
scanf("%d",str);
if
(A[0]!=A[1]&&A[1]!=A[2]&&A[2]!=A[3])
printf("Good");
else
printf("bad");

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:12: error: 'str' undeclared (first use in this function)
    4 | scanf("%d",str);
      |            ^~~
main.c:4:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int n,m;
    cin >> m;
for(int i=0;i<3;i++)
    {
        cin >> n;
        if(n==m)
        {
            cout << "Bad" << endl;
            return;
        }
        n=m;
    }
    cout << "Good" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |             return;
      |             ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int n,m;
    cin >> m;
for(int i=0;i<3;i++)
    {
        cin >> n;
        if(n==m)
        {
            cout << "Bad" << endl;
            return;
        }
        n=m;
    }
    cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |             return;
      |             ^~~~~~
Language: C++

#include<bits/stdc++.h>

int main(){
    int n,m;
    cin >> m;
for(int i=0;i<3;i++)
    {
        cin >> n;
        if(n==m)
        {
            cout << "Bad" << endl;
            return;
        }
        n=m;
    }
    cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> m;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:11:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |             cout << "Bad" << 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:11:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |             cout << "Bad" << endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |             return;
      |             ^~~~~~
a.cc:16:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |     cout << "Yes" << 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:16:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |     cout << "Yes" << 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<bits/stdc++.h>

int main(){
    int n,m;
    cin >> m;
    rep(i,3)
    {
        cin >> n;
        if(n==m)
        {
            cout << "Bad" << endl;
            return;
        }
        n=m;
    }
    cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> m;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:6:9: error: 'i' was not declared in this scope
    6 |     rep(i,3)
      |         ^
a.cc:6:5: error: 'rep' was not declared in this scope
    6 |     rep(i,3)
      |     ^~~
a.cc:16:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |     cout << "Yes" << 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:16:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |     cout << "Yes" << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
    	
      Scanner scan = new Scanner(System.in);
      String a = scan.next();
      for (i = 0 ; i < 4 ; i++){
        if (a.charAt(i-1) == a.charAt(i)){
        	System.out.println("bad");
        } else {
        	System.out.println("good");
        }
      }  
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
      for (i = 0 ; i < 4 ; i++){
           ^
  symbol:   variable i
  location: class Main
Main.java:8: error: cannot find symbol
      for (i = 0 ; i < 4 ; i++){
                   ^
  symbol:   variable i
  location: class Main
Main.java:8: error: cannot find symbol
      for (i = 0 ; i < 4 ; i++){
                           ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
        if (a.charAt(i-1) == a.charAt(i)){
                     ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
        if (a.charAt(i-1) == a.charAt(i)){
                                      ^
  symbol:   variable i
  location: class Main
5 errors
Language: Java

Scanner scan = new Scanner;
int a = scan.next();
int b = scan.next();
int c = scan.next();
int d = scan.next();

if (a == b) {
 System.out.println("Bad");
}
else if (b == c) {
 System.out.println("Bad");
}
else if (c == d) {
 System.out.println("Bad");
}
else{
 System.out.println("good");
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner scan = new Scanner;
^
  (use --enable-preview to enable unnamed classes)
Main.java:1: error: '(' or '[' expected
Scanner scan = new Scanner;
                          ^
Main.java:7: error: class, interface, enum, or record expected
if (a == b) {
^
Main.java:9: error: class, interface, enum, or record expected
}
^
Main.java:12: error: class, interface, enum, or record expected
}
^
Main.java:15: error: class, interface, enum, or record expected
}
^
Main.java:18: error: class, interface, enum, or record expected
}
^
7 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {

    string s; cin >> s;
    for (int i = 1; i < int(s.size()); i++) {
        if (s[i] == s[i-1]) {
            cout << "Bad\n";
            return ;
        }
            
    }
    cout << "Good\n";
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   11 |             return ;
      |             ^~~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
    vector<int> s;
    cin >> s;

    (s.at(0) == s.at(1) || s.at(1) == s.at(2) || s.at(3)) ? "Bad\n" : "Good\n";

    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'vector' was not declared in this scope
    5 |     vector<int> 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:5:12: error: expected primary-expression before 'int'
    5 |     vector<int> s;
      |            ^~~
a.cc:6:12: error: 's' was not declared in this scope
    6 |     cin >> s;
      |            ^
Language: C++

#include<csudio>
using namespace std ;

int main(){
	char s[4] ;
  	scanf ("%s",s);
  	if(s[0]==s[1]||s[1]==s[2]||s[2]==s[3]){
    	printf("Bad");
    } else {
    	printf("Good");
    }
  	return 0;
}

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

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>

using namespace std;

typedef long long ll;

int main(){
	string S;
	cin >> S;
	string ans = "Good";

	for (int i = 0; i < 3; i++)
	{
		/* code */
		if (S[i] == S[i+1])
		{
			ans = "Bad";
			break;
		}
	}
	cout << ans << endl;

	return 0;
}#include <iostream>
#include <vector>
#include <algorithm>
#include <string>

using namespace std;

typedef long long ll;

int main(){
	string S;
	cin >> S;
	string ans = "Good";

	for (int i = 0; i < 3; i++)
	{
		/* code */
		if (S[i] == S[i+1])
		{
			ans = "Bad";
			break;
		}
	}
	cout << ans << endl;

	return 0;
}

Compiler output:
a.cc:27:2: error: stray '#' in program
   27 | }#include <iostream>
      |  ^
a.cc:27:3: error: 'include' does not name a type
   27 | }#include <iostream>
      |   ^~~~~~~
a.cc:36:5: error: redefinition of 'int main()'
   36 | int main(){
      |     ^~~~
a.cc:10:5: note: 'int main()' previously defined here
   10 | int main(){
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    string s;
  cin>>s;
    if(s[0]!=s[1] && s[1]!=s[2] && s[2]!=s[3])
      cout<<Good;
  else
    cout<<Bad;
  return 0;
      
}

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

#include <iostream>

using namespace std;
int main() {

	string s;
	cin >> s;

	cout << (s[0] == s[1] || s[1] == s[2] || s[2] == s[3] ? "")

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:67: error: expected ':' before ')' token
    9 |         cout << (s[0] == s[1] || s[1] == s[2] || s[2] == s[3] ? "")
      |                                                                   ^
      |                                                                   :
a.cc:9:67: error: expected primary-expression before ')' token
Language: C++

import sys
s = input()
pre = ''
for i in s:
  if pre == i:
    print('Bad')
    sys.exit()
  pre = i
print('Good')
      

Compiler output:
a.cc:3:7: error: empty character constant
    3 | pre = ''
      |       ^~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('Bad')
      |           ^~~~~
a.cc:9:7: warning: multi-character character constant [-Wmultichar]
    9 | print('Good')
      |       ^~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace AtCoder
{
	public class Program
	{
		// ABC131-A
		static void Main(string[] args)
		{
			string str = Console.ReadLine();
 
			if (str[0] == str[1] || str[1] == str[2] || str[2] == str[3]) {
				Console.WriteLine("Bad");
			} else {
				Console.WriteLine("Good");
			}
		}
	}
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:8:9: error: expected unqualified-id before 'public'
    8 |         public class Program
      |         ^~~~~~