criyle/codenet-compile-errors huggingface dataset:
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++

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

int main(){
  int loop,isBad=0;
  char a,b;
  a = getchar();
  for(loop=0;loop<3;loop++){
    b = getchar();
    if(a!=b){
      a=b;
    }else{
      isBad = 1;
      break;
    }
  }
  if(isBad){
    cout << "Bad" << endl;
  }else{
    cout << "Good" << endl:
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:27: error: expected ';' before ':' token
   20 |     cout << "Good" << endl:
      |                           ^
      |                           ;
Language: C++

#include <iostream>

using namespace std;

string S;
cin >> S;

if (S[0] == S[1] ||
   	S[1] == S[2] ||
	S[2] == S[3])
{
  out << "Good";
}
else
{
  out << "Bad";
}

Compiler output:
a.cc:6:1: error: 'cin' does not name a type
    6 | cin >> S;
      | ^~~
a.cc:8:1: error: expected unqualified-id before 'if'
    8 | if (S[0] == S[1] ||
      | ^~
a.cc:14:1: error: expected unqualified-id before 'else'
   14 | else
      | ^~~~
Language: C

#include<stdio.h>
int main(){
  char s[5];
  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:
main.c: In function 'main':
main.c:5:36: error: lvalue required as left operand of assignment
    5 |   if(s[0]=s[1] || s[1]=s[2] || s[2]=s[3]){
      |                                    ^
Language: C++

import java.util.*;
public class Main {
    public static void main(String[] args){
      Scanner str = new Scanner(System.in);
 
String[] strArray = str.split("");
boolean code = false;
for(int i=0;i++;i<strArray.length-1){
  int num1 = Integer.parseInt(strArray[i]);
  int num2 = Integer.parseInt(strArray[i+1]);
  if(num1==num2){
    code = true;
  }
}
 
if(code){
  System.out.println("Good");
}
else{
  System.out.println("Bad");
}
Scanner str = new Scanner(System.in);

String[] strArray = str.split("");
boolean code = false;
for(int i=0;i++;i<strArray.length-1){
  int num1 = Integer.parseInt(strArray[i]);
  int num2 = Integer.parseInt(strArray[i+1]);
  if(num1==num2){
    code = true;
  }
}

if(code){
  System.out.println("Good");
}
else{
  System.out.println("Bad");
}
    }}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

Scanner str = new Scanner(System.in);

String[] strArray = str.split("");
boolean code = false;
for(int i=0;i++;i<strArray.length-1){
  int num1 = Integer.parseInt(strArray[i]);
  int num2 = Integer.parseInt(strArray[i+1]);
  if(num1==num2){
    code = true;
  }
}

if(code){
  System.out.println("Good");
}
else{
  System.out.println("Bad");
}

Compiler output:
a.cc:1:1: error: 'Scanner' does not name a type
    1 | Scanner str = new Scanner(System.in);
      | ^~~~~~~
a.cc:3:1: error: 'String' does not name a type
    3 | String[] strArray = str.split("");
      | ^~~~~~
a.cc:4:1: error: 'boolean' does not name a type; did you mean 'bool'?
    4 | boolean code = false;
      | ^~~~~~~
      | bool
a.cc:5:1: error: expected unqualified-id before 'for'
    5 | for(int i=0;i++;i<strArray.length-1){
      | ^~~
a.cc:5:13: error: 'i' does not name a type
    5 | for(int i=0;i++;i<strArray.length-1){
      |             ^
a.cc:5:17: error: 'i' does not name a type
    5 | for(int i=0;i++;i<strArray.length-1){
      |                 ^
a.cc:13:1: error: expected unqualified-id before 'if'
   13 | if(code){
      | ^~
a.cc:16:1: error: expected unqualified-id before 'else'
   16 | else{
      | ^~~~
Language: C++

#include"bits/stdc++.h"
using namespace std;
int main(){
  string s;
  int a,b,c,d,y;
  a=s.at(0)
    b=s.at(1)
    c=s.at(2)
    d=s.at(3)
    if(a==b||b==c||c==d){
      cout<<"Bad"<<endl;}
  else{cout<<"Good"<<endl;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected ';' before 'b'
    6 |   a=s.at(0)
      |            ^
      |            ;
    7 |     b=s.at(1)
      |     ~       
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else{cout<<"Good"<<endl;}
      |   ^~~~
Language: C

#include <stdio.h>
int main (){
  int a,b;
  scanf ("%d%d",&a,&b);
  for (int i=0;i<a;i++){
  sum=sum+b+i;
  }
  if (b>-1){
  sum=sum-b;
  }
  else if (b<0 && b+a>0){
  sum=sum;
  }
  else{
  sum=sum-(b+a-1);
  }
 printf ("%d",sum);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: 'sum' undeclared (first use in this function)
    6 |   sum=sum+b+i;
      |   ^~~
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <cstdio>

int main()
{
	char s;

	scanf("%s", s);
	bool bad = false;

	for(int i = 0; i < 3; i++) {
		if(s[i] == s[i + 1]) {
			bad = true;
		}
	}

	printf("%s\n", bad ? "Bad" : "Good");

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: invalid types 'char[int]' for array subscript
   11 |                 if(s[i] == s[i + 1]) {
      |                     ^
a.cc:11:29: error: invalid types 'char[int]' for array subscript
   11 |                 if(s[i] == s[i + 1]) {
      |                             ^
Language: C++

#[allow(unused_imports)]
use std::cmp::*;
#[allow(unused_imports)]
use std::collections::*;
#[allow(unused_imports)]
use std::io::{Write, BufWriter};

// https://qiita.com/tanakh/items/0ba42c7ca36cd29d0ac8
macro_rules! input {
    (source = $s:expr, $($r:tt)*) => {
        let mut iter = $s.split_whitespace();
        let mut next = || { iter.next().unwrap() };
        input_inner!{next, $($r)*}
    };
    ($($r:tt)*) => {
        let stdin = std::io::stdin();
        let mut bytes = std::io::Read::bytes(std::io::BufReader::new(stdin.lock()));
        let mut next = move || -> String{
            bytes
                .by_ref()
                .map(|r|r.unwrap() as char)
                .skip_while(|c|c.is_whitespace())
                .take_while(|c|!c.is_whitespace())
                .collect()
        };
        input_inner!{next, $($r)*}
    };
}

macro_rules! input_inner {
    ($next:expr) => {};
    ($next:expr, ) => {};

    ($next:expr, $var:ident : $t:tt $($r:tt)*) => {
        let $var = read_value!($next, $t);
        input_inner!{$next $($r)*}
    };
}

macro_rules! read_value {
    ($next:expr, ( $($t:tt),* )) => {
        ( $(read_value!($next, $t)),* )
    };

    ($next:expr, [ $t:tt ; $len:expr ]) => {
        (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()
    };

    ($next:expr, chars) => {
        read_value!($next, String).chars().collect::<Vec<char>>()
    };

    ($next:expr, usize1) => {
        read_value!($next, usize) - 1
    };

    ($next:expr, $t:ty) => {
        $next().parse::<$t>().expect("Parse error")
    };
}

fn main() {
    input! {
        s: chars,
    }
    let mut c = s[0];
    for i in 1..s.len() {
        if c == s[i] {
            println!("Bad");
            return;
        }
        c = s[i];
    }
    println!("Good");
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #[
    1 | #[allow(unused_imports)]
      |  ^
a.cc:3:2: error: invalid preprocessing directive #[
    3 | #[allow(unused_imports)]
      |  ^
a.cc:5:2: error: invalid preprocessing directive #[
    5 | #[allow(unused_imports)]
      |  ^
a.cc:46:10: error: too many decimal points in number
   46 |         (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()
      |          ^~~~~~~
a.cc:67:14: error: too many decimal points in number
   67 |     for i in 1..s.len() {
      |              ^~~~~~~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::cmp::*;
      | ^~~
a.cc:4:1: error: 'use' does not name a type
    4 | use std::collections::*;
      | ^~~
a.cc:6:1: error: 'use' does not name a type
    6 | use std::io::{Write, BufWriter};
      | ^~~
a.cc:9:1: error: 'macro_rules' does not name a type
    9 | macro_rules! input {
      | ^~~~~~~~~~~
a.cc:30:1: error: 'macro_rules' does not name a type
   30 | macro_rules! input_inner {
      | ^~~~~~~~~~~
a.cc:40:1: error: 'macro_rules' does not name a type
   40 | macro_rules! read_value {
      | ^~~~~~~~~~~
a.cc:62:1: error: 'fn' does not name a type
   62 | fn main() {
      | ^~
Language: Java

Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		char[] c = str.toCharArray();

		if(c[0] == c[1] || c[1] == c[2] || c[2] == c[3]) {
			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(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
		if(c[0] == c[1] || c[1] == c[2] || c[2] == c[3]) {
		^
Main.java:7: error: class, interface, enum, or record expected
		}else {
		^
Main.java:9: error: class, interface, enum, or record expected
		}
		^
4 errors
Language: Java

import java.util.Scanner;


public class test {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		char[] c = str.toCharArray();

		if(c[0] == c[1] || c[1] == c[2] || c[2] == c[3]) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}

	}

}


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

a,b,c,d = input()
pass = [int(a),int(b),int(c),int(d)]
 
if pass[0]==pass[1] or pass[1]==pass[2] or pass[2]==pass[3]:
    print("bad")
 
else:
    print("good")

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,c,d = input()
      | ^
Language: C++

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

int main(){
  int S;
  a=S/1000;
  x=S%1000;
  b=x/100;
  y=x%100;
  c=y/10;
  d=y%10;
  cin>>S>>a>>x>>b>>y>>c>>d;
  if(a==b){
    cout<<"Bad";
  }else if(b==c){
    cout<<"Bad";
  }else if(c==d){
    cout<<"Bad";
  }else{
    cout<<"Good";
  }
  cout<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'a' was not declared in this scope
    7 |   a=S/1000;
      |   ^
a.cc:8:3: error: 'x' was not declared in this scope
    8 |   x=S%1000;
      |   ^
a.cc:9:3: error: 'b' was not declared in this scope
    9 |   b=x/100;
      |   ^
a.cc:10:3: error: 'y' was not declared in this scope
   10 |   y=x%100;
      |   ^
a.cc:11:3: error: 'c' was not declared in this scope
   11 |   c=y/10;
      |   ^
a.cc:12:3: error: 'd' was not declared in this scope
   12 |   d=y%10;
      |   ^
Language: C++

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

int main(){
  int S;
  a=S/1000;
  x=S%1000;
  b=x/100;
  y=x%100;
  c=y/10;
  d=y%10;
  cin>>S>>a>>x>>b>>y>>c>>dn
  if(a==b){
    cout<<"Bad";
  }else if(b==c){
    cout<<"Bad";
  }else if(c==d){
    cout<<"Bad";
  }else{
    cout<<"Good";
  }
  cout<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'a' was not declared in this scope
    7 |   a=S/1000;
      |   ^
a.cc:8:3: error: 'x' was not declared in this scope
    8 |   x=S%1000;
      |   ^
a.cc:9:3: error: 'b' was not declared in this scope
    9 |   b=x/100;
      |   ^
a.cc:10:3: error: 'y' was not declared in this scope
   10 |   y=x%100;
      |   ^
a.cc:11:3: error: 'c' was not declared in this scope
   11 |   c=y/10;
      |   ^
a.cc:12:3: error: 'd' was not declared in this scope
   12 |   d=y%10;
      |   ^
a.cc:13:26: error: 'dn' was not declared in this scope
   13 |   cin>>S>>a>>x>>b>>y>>c>>dn
      |                          ^~
a.cc:16:4: error: 'else' without a previous 'if'
   16 |   }else if(b==c){
      |    ^~~~
Language: C++

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

int main(){
  int S;
  a=S/1000;
  x=S%1000;
  b=x/100;
  y=x%100;
  c=y/10;
  d=y%10;
  cin>>S>>a>>x>>b>>y>>c>>dn
  if(a==b){
    cout<<"Bad";
  }else if(b==c){
    cout<<"Bad";
  }else if(c==d){
    cout<<"Bad";
  }else{
    cout<<"Good";
  }
  cout endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'a' was not declared in this scope
    7 |   a=S/1000;
      |   ^
a.cc:8:3: error: 'x' was not declared in this scope
    8 |   x=S%1000;
      |   ^
a.cc:9:3: error: 'b' was not declared in this scope
    9 |   b=x/100;
      |   ^
a.cc:10:3: error: 'y' was not declared in this scope
   10 |   y=x%100;
      |   ^
a.cc:11:3: error: 'c' was not declared in this scope
   11 |   c=y/10;
      |   ^
a.cc:12:3: error: 'd' was not declared in this scope
   12 |   d=y%10;
      |   ^
a.cc:13:26: error: 'dn' was not declared in this scope
   13 |   cin>>S>>a>>x>>b>>y>>c>>dn
      |                          ^~
a.cc:16:4: error: 'else' without a previous 'if'
   16 |   }else if(b==c){
      |    ^~~~
a.cc:23:7: error: expected ';' before 'endl'
   23 |   cout endl;
      |       ^~~~~
      |       ;
Language: C++

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

int main(){
  int S;
  a=S/1000;
  x=S%1000;
  b=x/100;
  y=x%100;
  c=y/10;
  d=y%10;
  cin>>S>>a>>x>>b>>y>>c>>dn
  if(a==b){
    cout<<"Bad";
  }else if(b==c){
    cout<<"Bad";
  }else if(c==d){
    cout<<"Bad";
  }else{
    cout<<"Good";
  }
  cout endl;
return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'a' was not declared in this scope
    7 |   a=S/1000;
      |   ^
a.cc:8:3: error: 'x' was not declared in this scope
    8 |   x=S%1000;
      |   ^
a.cc:9:3: error: 'b' was not declared in this scope
    9 |   b=x/100;
      |   ^
a.cc:10:3: error: 'y' was not declared in this scope
   10 |   y=x%100;
      |   ^
a.cc:11:3: error: 'c' was not declared in this scope
   11 |   c=y/10;
      |   ^
a.cc:12:3: error: 'd' was not declared in this scope
   12 |   d=y%10;
      |   ^
a.cc:13:3: error: 'cin' was not declared in this scope
   13 |   cin>>S>>a>>x>>b>>y>>c>>dn
      |   ^~~
a.cc:13:26: error: 'dn' was not declared in this scope
   13 |   cin>>S>>a>>x>>b>>y>>c>>dn
      |                          ^~
a.cc:16:4: error: 'else' without a previous 'if'
   16 |   }else if(b==c){
      |    ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout<<"Bad";
      |     ^~~~
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout<<"Bad";
      |     ^~~~
a.cc:21:5: error: 'cout' was not declared in this scope
   21 |     cout<<"Good";
      |     ^~~~
a.cc:23:3: error: 'cout' was not declared in this scope
   23 |   cout endl;
      |   ^~~~
Language: C++

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

int main(){
  int S;
  cin>>S;
  a=S/1000;
  x=S%1000;
  b=x/100;
  y=x%100;
  c=y/10;
  d=y%10;
  if(a==b){
    cout<<"Bad";
  }else if(b==c){
    cout<<"Bad";
  }else if(c==d){
    cout<<"Bad";
  }else{
    cout<<"Good";
  }
  cout endl;
return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>S;
      |   ^~~
a.cc:8:3: error: 'a' was not declared in this scope
    8 |   a=S/1000;
      |   ^
a.cc:9:3: error: 'x' was not declared in this scope
    9 |   x=S%1000;
      |   ^
a.cc:10:3: error: 'b' was not declared in this scope
   10 |   b=x/100;
      |   ^
a.cc:11:3: error: 'y' was not declared in this scope
   11 |   y=x%100;
      |   ^
a.cc:12:3: error: 'c' was not declared in this scope
   12 |   c=y/10;
      |   ^
a.cc:13:3: error: 'd' was not declared in this scope
   13 |   d=y%10;
      |   ^
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout<<"Bad";
      |     ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout<<"Bad";
      |     ^~~~
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout<<"Bad";
      |     ^~~~
a.cc:21:5: error: 'cout' was not declared in this scope
   21 |     cout<<"Good";
      |     ^~~~
a.cc:23:3: error: 'cout' was not declared in this scope
   23 |   cout endl;
      |   ^~~~
Language: C++

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

int main(){
  int S;
  cin>>S;
  a=S/1000;
  x=S%1000;
  b=x/100;
  y=x%100;
  c=y/10;
  d=y%10
  if(a==b){
    cout<<"Bad";
  }else if(b==c){
    cout<<"Bad";
  }else if(c==d){
    cout<<"Bad";
  }else{
    cout<<"Good";
  }
  cout endl;
return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>S;
      |   ^~~
a.cc:8:3: error: 'a' was not declared in this scope
    8 |   a=S/1000;
      |   ^
a.cc:9:3: error: 'x' was not declared in this scope
    9 |   x=S%1000;
      |   ^
a.cc:10:3: error: 'b' was not declared in this scope
   10 |   b=x/100;
      |   ^
a.cc:11:3: error: 'y' was not declared in this scope
   11 |   y=x%100;
      |   ^
a.cc:12:3: error: 'c' was not declared in this scope
   12 |   c=y/10;
      |   ^
a.cc:13:3: error: 'd' was not declared in this scope
   13 |   d=y%10
      |   ^
a.cc:16:4: error: 'else' without a previous 'if'
   16 |   }else if(b==c){
      |    ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout<<"Bad";
      |     ^~~~
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout<<"Bad";
      |     ^~~~
a.cc:21:5: error: 'cout' was not declared in this scope
   21 |     cout<<"Good";
      |     ^~~~
a.cc:23:3: error: 'cout' was not declared in this scope
   23 |   cout endl;
      |   ^~~~
Language: C++

#include<iosteram>
using namespace std;
int main(void)
{
  int a;
  cin >> a;
  while(a>0){
    if(a%10 == a%100){
      cout << "Bad";
      return 0;
    }
    
    a/10;
  }
  
  return 0;
}

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

#include<iosteram>
using namespace std;
int main(void)
{
  int a;
  cin >> a;
  while(a>0){
    if(a%10 == a%100){
      cout << "Bad";
    }
    
    a/=10;
  }
  
  return 0;
}

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

#include<iosteram>
using namespace std;
int main(void)
{
  int a;
  cin >> a;
  while(a>0){
    if(a%10 == a%100){
      cout << "Bad";
    }
    
    a/10;
  }
  
  return 0;
}

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

#include<bits/stdc++.h>

#define rep(i, a, n)  for(ll i=a; i<n; i++)
#define per(i, a, n)  for(ll i=n-1; i>=a; i--)
#define fill0(n)  setfill('0') << right << setw(n)
#define all(x)  (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define LONGMAX 1e18
#define intMAX 1000000000
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;

string s

int main(){
  cin >> s;
  char pre = s[0];
  string ans = "Good";
  for(int i = 1; i < 4; i++){
    if(pre == s[i])ans = "bad";
    pre = s[i];

  }
  cout << ans << endl;

}

Compiler output:
a.cc:16:1: error: expected initializer before 'int'
   16 | int main(){
      | ^~~
Language: C++

#include<bits/stdc++.h>

#define rep(i, a, n)  for(ll i=a; i<n; i++)
#define per(i, a, n)  for(ll i=n-1; i>=a; i--)
#define fill0(n)  setfill('0') << right << setw(n)
#define all(x)  (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define LONGMAX 1e18
#define intMAX 1000000000
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;

String s

int main(){
  cin >> s;
  char pre = s[0];
  string ans = "Good";
  for(int i = 1; i < 4; i++){
    if(pre == s[i])ans = "bad";
    pre = s[i];

  }
  cout << ans << endl;
  
}

Compiler output:
a.cc:14:1: error: 'String' does not name a type
   14 | String s
      | ^~~~~~
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;

namespace AtCoder_1
{
    class Program
    {
        static void Main(string[] args)
        {
            if(Regex.Match(args[0], "\\d\\d+").Success)
            {
                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:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:6:7: error: expected nested-name-specifier before 'System'
    6 | using System.Text.RegularExpressions;
      |       ^~~~~~
a.cc:12:26: error: 'string' has not been declared
   12 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:12:35: error: expected ',' or '...' before 'args'
   12 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:24:6: error: expected ';' after class definition
   24 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void AtCoder_1::Program::Main(int*)':
a.cc:14:16: error: 'Regex' was not declared in this scope
   14 |             if(Regex.Match(args[0], "\\d\\d+").Success)
      |                ^~~~~
a.cc:14:28: error: 'args' was not declared in this scope
   14 |             if(Regex.Match(args[0], "\\d\\d+").Success)
      |                            ^~~~
a.cc:16:17: error: 'Console' was not declared in this scope
   16 |                 Console.WriteLine("Bad");
      |                 ^~~~~~~
a.cc:20:17: error: 'Console' was not declared in this scope
   20 |                 Console.WriteLine("Good");
      |                 ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ALL(x) x.begin(),x.end()
#define ll long long
//map<key,value>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   11 |   for(int i=0;i<s.length();-1i++){
      |                             ~~^~
Language: C++

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

string n;
int main(){
  cin >> n;
  if(n[3] == n[2] || n[2] == n[1] || n[1] == n[0]){
    cout << "BAD\n";
  }else cout << "GOOD\n";
}

Compiler output:
a.cc:7:10: error: extended character   is not valid in an identifier
    7 |   if(n[3] == n[2] || n[2] == n[1] || n[1] == n[0]){
      |          ^
a.cc: In function 'int main()':
a.cc:7:10: error: expected ')' before '\U000000a0'
    7 |   if(n[3] == n[2] || n[2] == n[1] || n[1] == n[0]){
      |     ~    ^
      |          )
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]) puts("Bad");
  else puts("Good");
  return 0;
}

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:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> s;
      |   ^~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
a.cc:7:53: error: 'puts' was not declared in this scope
    7 |   if (s[0] == s[1] || s[1] == s[2] || s[2] == s[3]) puts("Bad");
      |                                                     ^~~~
a.cc:8:8: error: 'puts' was not declared in this scope
    8 |   else puts("Good");
      |        ^~~~
Language: C

#include <iostream>

using namespace std;
#define number 4
int main(){
	char s[number];
	int flag = 0,i;

	scanf("%s",s);

	for(i=0;i<number-1;i++){
		if(s[i] == s[i+1]){
			flag = 1;
			break;
		}
	}

	if(flag == 0)
		cout << "good" << endl;
	else
		cout << "but" << endl;

	return 0;
}

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

#include <iostream>
#include <iomanip>
#include <vector>
#include <map>
#include <set>
#include <unordered_set>
#include <unordered_map>
#include <string>
#include <algorithm>
#include <limits>
#include <iterator>
#include <cmath>
#include <numeric>
#include <stack>
#include <cassert>
#include <Windows.h>
#include <forward_list>
#include <chrono>
#include <deque>
#include <list>
#include <random>
#include <cstdio>
#include <sstream>
#include <variant>

int main()
{
	std::string a;
	std::cin >> a;
	for (auto iter = a.begin(); iter != a.end() - 1; ++iter)
	{
		if (*iter == *(iter + 1)) {
			std::cout << "Bad" << std::endl;
			break;
		}

		if (iter == a.end() - 2)
		{
			std::cout << "Good" << std::endl;
		}
	}

	return 0;
}

Compiler output:
a.cc:16:10: fatal error: Windows.h: No such file or directory
   16 | #include <Windows.h>
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

int n;
vector<pair<int, int> > tasks;

int main(void){
  	cin >> n;
	for (int i = 0; i < n; i++) { int a, b;
		cin >> a >> b;
		tasks.emplace_back(b, a); // 〆切 (, 所要時間)
	}
	sort(tasks.begin(), tasks.end());
	int sum = 0;
	bool isyes = true;
	for (auto v : tasks) {
		sum += v.second;
		if (sum > v.first) {
			isyes = false;
			break;
        }
    }
	cout << (isyes ? "Yes" : "No") << endl; 27
	return 0;
}

Compiler output:
a.cc:2:1: error: 'vector' does not name a type
    2 | vector<pair<int, int> > tasks;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> n;
      |         ^~~
a.cc:8:17: error: 'tasks' was not declared in this scope
    8 |                 tasks.emplace_back(b, a); // 〆切 (, 所要時間)
      |                 ^~~~~
a.cc:10:14: error: 'tasks' was not declared in this scope
   10 |         sort(tasks.begin(), tasks.end());
      |              ^~~~~
a.cc:10:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 |         sort(tasks.begin(), tasks.end());
      |         ^~~~
      |         short
a.cc:20:9: error: 'cout' was not declared in this scope
   20 |         cout << (isyes ? "Yes" : "No") << endl; 27
      |         ^~~~
a.cc:20:43: error: 'endl' was not declared in this scope
   20 |         cout << (isyes ? "Yes" : "No") << endl; 27
      |                                           ^~~~
a.cc:20:51: error: expected ';' before 'return'
   20 |         cout << (isyes ? "Yes" : "No") << endl; 27
      |                                                   ^
      |                                                   ;
   21 |         return 0;
      |         ~~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
string str;
bool bad = false;
int main(){
  cin >> str;
  for(int i = 0; i < 3; ++i){
    if(str[i]==str[i+1]){
      bad = true;
    }
  }
  switch(bad){
    case true:
      cout << "Bad" << endl;
      break;
    default:
      cout << "Good" << endl;
      break;
}


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

#include <iostream>
#include <string>
using namespace std;
string str;
bool bad = false;
int main(){
  cin >> str;
  for(int i = 0; i < 3; ++i){
    if(str[i]==str[i+1]){
      bad = true;
    }
  }
  switch(bad){
    case true:
      cout << "Bad" << endl;
      break;
    default:
      cout << "Good" << endl;
      break;
}

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

void main(){
	char S[4];
	scanf("%s",&S[]);
  if(S[0]==S[1]||S[1]==S[2]||S[2]==S[3]){
    puts("Bad");
  }
  else{
    puts("Good");
  }
  


}

Compiler output:
a.cc:1:1: error: '::main' must return 'int'
    1 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:23: error: expected primary-expression before ']' token
    3 |         scanf("%s",&S[]);
      |                       ^
a.cc:3:9: error: 'scanf' was not declared in this scope
    3 |         scanf("%s",&S[]);
      |         ^~~~~
a.cc:5:5: error: 'puts' was not declared in this scope
    5 |     puts("Bad");
      |     ^~~~
a.cc:8:5: error: 'puts' was not declared in this scope
    8 |     puts("Good");
      |     ^~~~
Language: C++

#include <iostream>

using namespace std;

int main() {

	char arr[5] = {0};

	cin >> arr;

	for(int i = 0; i < n-1; i++)
		if(arr[i] == arr[i+1]){
			cout << "Bad" << endl;
			return 0;
		}
	
	cout << "Good" << endl;

	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  string a;
  cin>>a;
  for(int i=0;i<n-1;i++){
    if(a[i]==a[i+1]){
      cout<<"Bad"<<endl;
      return 0;
    }
  }
  cout<<"Good"<<endl;
  return 0;
}

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

#include<iostream>
using namespace std;

int main(){
  string s;
  cin >> s;
  count = 0;
  for(int i = 1; i < 4; i++){
    if(s.at(i-1) == s.at(i)){
      count++;
    }
  }
  if(count > 0){
    cout << "Bad" << endl;
  }else{
    cout << "Good" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'count' was not declared in this scope
    7 |   count = 0;
      |   ^~~~~
Language: C

#include <stdio.h>

int main(){
    int a, b, c, d
    
    scanf("%d%d%d%d", &a, &b, &c, &d);

    if(a == b || b ==c || c == d){
        printf("Bad\n");
    }else{
        printf("Good\n");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |     scanf("%d%d%d%d", &a, &b, &c, &d);
      |     ^~~~~
main.c:8:32: error: 'd' undeclared (first use in this function)
    8 |     if(a == b || b ==c || c == d){
      |                                ^
main.c:8:32: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>
using namespace std;
int key=0;
int main(){
  String S;
    cin>>S;
    for(int i=0;i<4;i++){
        if(i>0&&S[i]==S[i-1])
            key=1;
    }
    if(key==0)
    cout<<"Good"<<endl;
    else
    cout<<"Bad"<<endl;
}


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:10: error: 'S' was not declared in this scope
    6 |     cin>>S;
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
String p;
int key=0;
int main(){
    cin>>p;
    for(int i=0;i<4;i++){
        if(i>0&&p[i]==p[i-1])
            key=1;
    }
    if(key==0)
    cout<<"Good"<<endl;
    else
    cout<<"Bad"<<endl;
}


Compiler output:
a.cc:3:1: error: 'String' does not name a type
    3 | String p;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:6:10: error: 'p' was not declared in this scope
    6 |     cin>>p;
      |          ^
Language: C++

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

String p;
int key=0;
int main(){
    cin>>p
    for(int i=0;i<4;i++){
        if(i>0&&p[i]==p[i-1])
            key=1;
    }
    if(key==0)
    cout<<"Good"<<endl;
    else
    cout<<"Bad"<<endl;
}


Compiler output:
a.cc:4:1: error: 'String' does not name a type
    4 | String p;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:7:10: error: 'p' was not declared in this scope
    7 |     cin>>p
      |          ^
a.cc:8:17: error: 'i' was not declared in this scope
    8 |     for(int i=0;i<4;i++){
      |                 ^
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<queue>
#include<stack>
#include<utility>
#include<algorithm>
#include<map>
#include<set>
#include<functional>
#include"bits/stdc++.h"

using namespace std;

typedef pair<int, int> P;
typedef long long int ll;



int main() {
	union_find a(5);
	string S;
	cin >> S;
	int ans = 0;
	for (int i = 1; i < 4; i++) {
		if (S[i] == S[i - 1]) { ans = 1; }
	}
	if (ans == 0) {
		cout << "Good" << endl;
	}
	else {
		cout << "Bad" << endl;
	}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: 'union_find' was not declared in this scope
   21 |         union_find a(5);
      |         ^~~~~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<queue>
#include<stack>
#include<utility>
#include<algorithm>
#include<map>
#include<set>
#include<functional>
#include"unionfind.h"

using namespace std;

typedef pair<int, int> P;
typedef long long int ll;



int main() {
	union_find a(5);
	string S;
	cin >> S;
	int ans = 0;
	for (int i = 1; i < 4; i++) {
		if (S[i] == S[i - 1]) { ans = 1; }
	}
	if (ans == 0) {
		cout << "Good" << endl;
	}
	else {
		cout << "Bad" << endl;
	}

}

Compiler output:
a.cc:11:9: fatal error: unionfind.h: No such file or directory
   11 | #include"unionfind.h"
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
 
int main()
{
  int i, k=0;
  char s[4];
  gets_s(s);
  for (i=0;i<4;i++)
  {
    if(s[i]==s[i+1])
    k++;
  }
  if (k==0)
    printf("good");
  else
    printf("bad");
  return 0;
}


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

#include <iostream>
using namespace std;

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	char buf[16];
	cin >> buf;

	const char *p[] = { "00", "11", "22", "33", "44", "55", "66", "77", "88", "99", };
	for (int i = 0; i <= 9; i++) {
		if (strstr(buf, p[i]) != NULL) {
			cout << "Bad";
			return;
		}
	}
	cout << "Good";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: 'strstr' was not declared in this scope
   12 |                 if (strstr(buf, p[i]) != NULL) {
      |                     ^~~~~~
a.cc:2:1: note: 'strstr' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
a.cc:14:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |                         return;
      |                         ^~~~~~
Language: C++

// ConsoleApplication6.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include <iostream>
using namespace std;

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	char buf[16];
	cin >> buf;

	char p[][] = { "00", "11", "22", "33", "44", "55", "66", "77", "88", "99", };
	for (int i = 0; i <= 9; i++) {
		if (strstr(buf, p[i]) != NULL) {
			cout << "Bad";
			return;
		}
	}
	cout << "Good";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: declaration of 'p' as multidimensional array must have bounds for all dimensions except the first
   13 |         char p[][] = { "00", "11", "22", "33", "44", "55", "66", "77", "88", "99", };
      |              ^
a.cc:15:33: error: 'p' was not declared in this scope
   15 |                 if (strstr(buf, p[i]) != NULL) {
      |                                 ^
a.cc:15:21: error: 'strstr' was not declared in this scope
   15 |                 if (strstr(buf, p[i]) != NULL) {
      |                     ^~~~~~
a.cc:5:1: note: 'strstr' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    4 | #include <iostream>
  +++ |+#include <cstring>
    5 | using namespace std;
a.cc:17:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   17 |                         return;
      |                         ^~~~~~
Language: C++

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


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

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

int main() {
  int n, l;
  cin >> n >> l;
  vector<int> a(n);
  rep(i,n) a[i] = l+i;
  int s = 0;
  rep(i,n) s = a[i];
  int ans = 10e9;
  rep(i,n) {
    if (abs(t-s) < abs(ans-s)) ans = t;
  }
  cout << ans << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+10' to '2147483647' [-Woverflow]
   12 |   int ans = 10e9;
      |             ^~~~
a.cc:14:13: error: 't' was not declared in this scope
   14 |     if (abs(t-s) < abs(ans-s)) ans = t;
      |             ^
Language: C++

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

int main(){
  string 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:2:17: error: 'stdc' is not a namespace-name
    2 | using namespace stdc;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string S;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> S;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     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:8:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << "Good" << 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:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout << "Good" << 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>
#define rep(i,n) for (int i = 0; i < n; i++)
using namespace std;

int main() {
  int s;
  cin >> s;
  rep(i, 3) {
    if (s.at(i) == s.at(i+1)) {
      cout << "Bad" << endl;
      return 0;
    }
  }
  cout << "Good" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: request for member 'at' in 's', which is of non-class type 'int'
    9 |     if (s.at(i) == s.at(i+1)) {
      |           ^~
a.cc:9:22: error: request for member 'at' in 's', which is of non-class type 'int'
    9 |     if (s.at(i) == s.at(i+1)) {
      |                      ^~
Language: C++

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

int main() {
  int s;
  cin >> s;
  rep(i, 3) {
    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:9:10: error: invalid types 'int[int]' for array subscript
    9 |     if (s[i] == s[i+1]) {
      |          ^
a.cc:9:18: error: invalid types 'int[int]' for array subscript
    9 |     if (s[i] == s[i+1]) {
      |                  ^
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 << "Bad" << endl;
    return 0
  }
  cout << "Good" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected ';' before '}' token
    8 |     return 0
      |             ^
      |             ;
    9 |   }
      |   ~
Language: C++

#include <iostream>

std::string mojiretu(std::string input)
{
  std::size_z length = input.length();
  std::string result;
  for (int i = 0; i < length; i++)
  {
    if (input[i] = input[i-1])
    {
      result = "Bad";
      break;
    }
    else
    {
      result = "Good";
    }
    return result;
  }
}

std::in >> input >> std::endl;
std::string result;
result = mojitretu(input);
std::out << result << std::endl;


Compiler output:
a.cc: In function 'std::string mojiretu(std::string)':
a.cc:5:8: error: 'size_z' is not a member of 'std'; did you mean 'size_t'?
    5 |   std::size_z length = input.length();
      |        ^~~~~~
      |        size_t
a.cc:7:23: error: 'length' was not declared in this scope
    7 |   for (int i = 0; i < length; i++)
      |                       ^~~~~~
a.cc: At global scope:
a.cc:22:6: error: 'in' in namespace 'std' does not name a type; did you mean 'min'?
   22 | std::in >> input >> std::endl;
      |      ^~
      |      min
a.cc:24:1: error: 'result' does not name a type
   24 | result = mojitretu(input);
      | ^~~~~~
a.cc:25:6: error: 'out' in namespace 'std' does not name a type; did you mean 'oct'?
   25 | std::out << result << std::endl;
      |      ^~~
      |      oct
a.cc: In function 'std::string mojiretu(std::string)':
a.cc:20:1: warning: control reaches end of non-void function [-Wreturn-type]
   20 | }
      | ^
Language: C++

#include <iostream>

std::string mojiretu(std::string input)
{
  size_z length = input.length();
  std::string result;
  for (int i = 0; i < lengthl i++)
  {
    if (input[i] = input[i-1])
    {
      result = "Bad";
      break;
    }
    else
    {
      result = "Good";
    }
    return result;
  }
}

std::in >> input >> std::endl;
std::string result;
result = mojitretu(input);
std::out << result << std::endl;

Compiler output:
a.cc: In function 'std::string mojiretu(std::string)':
a.cc:5:3: error: 'size_z' was not declared in this scope; did you mean 'size_t'?
    5 |   size_z length = input.length();
      |   ^~~~~~
      |   size_t
a.cc:7:23: error: 'lengthl' was not declared in this scope
    7 |   for (int i = 0; i < lengthl i++)
      |                       ^~~~~~~
a.cc:7:30: error: expected ';' before 'i'
    7 |   for (int i = 0; i < lengthl i++)
      |                              ^~
      |                              ;
a.cc: At global scope:
a.cc:22:6: error: 'in' in namespace 'std' does not name a type; did you mean 'min'?
   22 | std::in >> input >> std::endl;
      |      ^~
      |      min
a.cc:24:1: error: 'result' does not name a type
   24 | result = mojitretu(input);
      | ^~~~~~
a.cc:25:6: error: 'out' in namespace 'std' does not name a type; did you mean 'oct'?
   25 | std::out << result << std::endl;
      |      ^~~
      |      oct
a.cc: In function 'std::string mojiretu(std::string)':
a.cc:20:1: warning: control reaches end of non-void function [-Wreturn-type]
   20 | }
      | ^
Language: C++

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

int main(){
  int S=1000*a+100*b+10*c+d;
  cin>>a>>b>>c>>d;
  if(a==b){
    cout<<"Bad";
  }else if(b==c){
    cout<<"Bad";
  }else if(c==d){
    cout<<"Bad";
  }else{
    cout<<"Good";
  }
  cout endl;
return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:14: error: 'a' was not declared in this scope
    6 |   int S=1000*a+100*b+10*c+d;
      |              ^
a.cc:6:20: error: 'b' was not declared in this scope
    6 |   int S=1000*a+100*b+10*c+d;
      |                    ^
a.cc:6:25: error: 'c' was not declared in this scope
    6 |   int S=1000*a+100*b+10*c+d;
      |                         ^
a.cc:6:27: error: 'd' was not declared in this scope
    6 |   int S=1000*a+100*b+10*c+d;
      |                           ^
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>a>>b>>c>>d;
      |   ^~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<"Bad";
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"Bad";
      |     ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout<<"Bad";
      |     ^~~~
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout<<"Good";
      |     ^~~~
a.cc:17:3: error: 'cout' was not declared in this scope
   17 |   cout endl;
      |   ^~~~