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

#include <bits/stdc++.h>
#include<algorithm>
#include<math.h>
#include<string>
#include<iostream>
#include <vector>
#include <cstdlib>
using namespace std;
 
template <class T> using V = vector<T>;

template<class T> inline bool chmin(T& a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}
template<class T> inline bool chmax(T& a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}

const long long INF = 1LL << 60;
 
using ll = long long;
using db = double;
using st = string;
using ch = char;
using bl = bool;
using vll = V<ll>;
using vpll =V<pair<ll,ll>>;
using vst = V<st>;
using vdb = V<db>;
using vch = V<ch>;
using vbl = V<bl>;
 
 
#define FOR(i,a,b) for(ll i=(a);i<(b);i++)
#define rFOR(i,a,b) for(ll i=(a);i>(b);i--)
#define oFOR(i,a,b) for(ll i=(a);i<(b);i+=2)
#define bgn begin()
#define en end()
#define SORT(a) sort((a).bgn,(a).en)
#define REV(a) reverse((a).bgn,(a).en)
#define M(a,b) max(a,b)
#define rM(a,b) min(a,b)
#define fi first
#define se second
#define sz size()
#define gcd(a,b) __gcd(a,b)
#define co(a) cout<<a<<endl;
#define ci(a) cin>>a;
 
 
ll sum(ll n) {
  ll m=0;
  FOR(i,0,20){
    m+=n%10;
    n/=10;
    if(n==0){
      break;
    }
  }
  return m;
}
 
 
ll combi(ll n,ll m) {
  ll ans=1;
  rFOR(i,n,n-m){
    ans*=i;
  }
  FOR(i,1,m+1){
    ans/=i;
  }
  return ans;
}
 
 
ll lcm(ll a,ll b){
  ll n;
  n=a/gcd(a,b)*b;
  return n;
}
 
 
/****************************************\
| Thank you for viewing my code:)        |
| Written by RedSpica a.k.a. RanseMirage |
| Twitter:@asakaakasaka                  | 
\****************************************/
 
 
signed main() {
  ll n;
  ci(n);
  vll A(4);
  FOR(i,0,4){
    A[i]=n%10;
    n/=10;
  }
  FOR(i,0,3){
    if(A[i]==A[i+1]){
      co("Bad")
        break;
    }
    
    if(i==2){
      co("Good")
    }
  }
}
}

Compiler output:
a.cc:117:1: error: expected declaration before '}' token
  117 | }
      | ^
Language: C++

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

typedef long long ll;
typedef pair<ll,ll> ii;
typedef vector<ll> vi;
typedef vector<ii> vii;
#define REP(i,n) for (ll i = 0; i < n; ++i)

const ll MAX = 1e5+10;
const ll MOD = 1e9+10;

string pass;

bool check() {
    REP (i, 3) {
        if (pass[i] == pas[i+1]) return false;
    }
    return true;
}

int main() {
    cin >> pass;
    if (check()) cout << "Good" << endl;
    else cout << "Bad" << endl;
}

Compiler output:
a.cc: In function 'bool check()':
a.cc:17:24: error: 'pas' was not declared in this scope; did you mean 'pass'?
   17 |         if (pass[i] == pas[i+1]) return false;
      |                        ^~~
      |                        pass
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
  int num;
  cin >> num; 
  string s[4] = to_string(num);
  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:8:26: error: array must be initialized with a brace-enclosed initializer
    8 |   string s[4] = to_string(num);
      |                 ~~~~~~~~~^~~~~
a.cc:9:8: error: request for member 'at' in 's', which is of non-class type 'std::string [4]' {aka 'std::__cxx11::basic_string<char> [4]'}
    9 |   if(s.at(0) == s.at(1) || s.at(1) == s.at(2) || s.at(2) == s.at(3) )
      |        ^~
a.cc:9:19: error: request for member 'at' in 's', which is of non-class type 'std::string [4]' {aka 'std::__cxx11::basic_string<char> [4]'}
    9 |   if(s.at(0) == s.at(1) || s.at(1) == s.at(2) || s.at(2) == s.at(3) )
      |                   ^~
a.cc:9:30: error: request for member 'at' in 's', which is of non-class type 'std::string [4]' {aka 'std::__cxx11::basic_string<char> [4]'}
    9 |   if(s.at(0) == s.at(1) || s.at(1) == s.at(2) || s.at(2) == s.at(3) )
      |                              ^~
a.cc:9:41: error: request for member 'at' in 's', which is of non-class type 'std::string [4]' {aka 'std::__cxx11::basic_string<char> [4]'}
    9 |   if(s.at(0) == s.at(1) || s.at(1) == s.at(2) || s.at(2) == s.at(3) )
      |                                         ^~
a.cc:9:52: error: request for member 'at' in 's', which is of non-class type 'std::string [4]' {aka 'std::__cxx11::basic_string<char> [4]'}
    9 |   if(s.at(0) == s.at(1) || s.at(1) == s.at(2) || s.at(2) == s.at(3) )
      |                                                    ^~
a.cc:9:63: error: request for member 'at' in 's', which is of non-class type 'std::string [4]' {aka 'std::__cxx11::basic_string<char> [4]'}
    9 |   if(s.at(0) == s.at(1) || s.at(1) == s.at(2) || s.at(2) == s.at(3) )
      |                                                               ^~
Language: C++

#include <cstring>
#include <map>
#include <unordered_map>
#include <string>
#include <list>
#include <vector>
#include <algorithm>
#include <queue>
#include <stack>
#include <cstdio>
#include <iostream>
#include <set>
#include <unordered_set>
using namespace std;

#define MAX(a,b) (a>b?a:b)
#define MIN(a,b) (a<b?a:b)
typedef long long ll;
typedef unsigned long long ull;
typedef unsigned int ui;
typedef pair<int, int> pii;

int gi() {
    int a;
    scanf("%d", &a);
    return a;
}

ll gli() {
    ll a;
    scanf("%lld", &a);
    return a;
}

int main() {
    scanf("%s", a);
    for (int i = 0; i < 3; i++)
        if (a[i] == a[i+1]) {
            printf("Bad\n");
            return 0;
        }
    printf("Good\n");

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:17: error: 'a' was not declared in this scope
   36 |     scanf("%s", a);
      |                 ^
Language: C++

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

int main(){
  string S;
  cin >> S;
  for(int i = 0;i < 3;i++){
    if(S[i] == S[i + 1]){
      cout >> Bad >> endl;
      break;
    }
    else if(i = 2){
      cout >> Good >> endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'Bad' was not declared in this scope
    9 |       cout >> Bad >> endl;
      |               ^~~
a.cc:13:15: error: 'Good' was not declared in this scope
   13 |       cout >> Good >> endl;
      |               ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
    char S[4],int a=0;
    for(int j=0; j<4;j++)
    cin>>S[j];
    for(int i=0;i<3;i++){
        if(S[i]==S[i+1]){
        a++;
        }
    }
    if(a==0)
    cout<<"Good"<<endl;
    if(a!=0)
    cout<<"Bad"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected unqualified-id before 'int'
    5 |     char S[4],int a=0;
      |               ^~~
a.cc:10:9: error: 'a' was not declared in this scope
   10 |         a++;
      |         ^
a.cc:13:8: error: 'a' was not declared in this scope
   13 |     if(a==0)
      |        ^
a.cc:15:8: error: 'a' was not declared in this scope
   15 |     if(a!=0)
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
char s[4];
  cin>>s;
  int a=0;
  for(int i=0;i<3;i++)
  {
    if(a[i]==a[i+1])
      a++;
  }
  if(a>0)
    cout<<"Bad";
  else
    cout<<"Good";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: invalid types 'int[int]' for array subscript
   10 |     if(a[i]==a[i+1])
      |         ^
a.cc:10:15: error: invalid types 'int[int]' for array subscript
   10 |     if(a[i]==a[i+1])
      |               ^
Language: C++

str = list(input())
s = []
for i in str:
    s.append(int(i))

for i in range(len(s)):
    if i == 0:
        if s[i] == s[i+1]:
            print("Bad")
            exit(0)
    elif i == 3:
        if s[i] == s[i-1]:
            print("Bad")
            exit(0)
    else:
        if s[i] == s[i+1]: 
            print("Bad")
            exit(0)
        elif s[i] == s[i-1]:
            print("Bad")
            exit(0)
print("Good")

    


Compiler output:
a.cc:1:1: error: 'str' does not name a type
    1 | str = list(input())
      | ^~~
Language: C++

for i in range(len(s)):
    if i == 0:
        if s[i] == s[i+1]:
            print("Bad")
            exit(0)
    elif i == 3:
        if s[i] == s[i-1]:
            print("Bad")
            exit(0)
    else:
        if s[i] == s[i+1]: 
            print("Bad")
            exit(0)
        elif s[i] == s[i-1]:
            print("Bad")
            exit(0)
print("Good")

    


Compiler output:
a.cc:1:1: error: expected unqualified-id before 'for'
    1 | for i in range(len(s)):
      | ^~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: invalid types 'int[int]' for array subscript
    8 |         if(S[i]==S[i+1]){
      |             ^
a.cc:8:19: error: invalid types 'int[int]' for array subscript
    8 |         if(S[i]==S[i+1]){
      |                   ^
Language: C++

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

int main(){
    int x , a ,b ,c , d ;
    cin >> x ;
  　 a = x / 1000 ;
     b = x / 100 - a * 10 ;
     c = x / 10 - a * 100 - b * 10 ;
     d = x - a * 1000 - b * 100 - c * 10;
  
   if(a == b) {
     cout << "Bad" << endl ;
   }
   else if(b == c) {
     cout << "Bad" << endl ;
   }
   else if(c == d) {
      cout << "Bad" << endl ;
   }
  else{
    cout << "Good" << endl ;
  }
}


Compiler output:
a.cc:7:3: error: extended character 　 is not valid in an identifier
    7 |   　 a = x / 1000 ;
      |   ^
a.cc: In function 'int main()':
a.cc:7:3: error: '\U00003000' was not declared in this scope
    7 |   　 a = x / 1000 ;
      |   ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{	
  char a[4];
  cin>>a;
  int temp = 0 ;
  for(int i = 0 ;i<4;i++)
  {
  		if(a[i]==a[i+1])
        {temp = 1 ;break;}
    }
  if(temp)
    cout<<"Bad"<<"\n";
  else 
    cout<<"Good"<<"\n";
}


}

Compiler output:
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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

int main(){
    int x;
    cin >> x ;
  　int a = x / 1000 ;
    int b = x / 100 - a * 10 ;
    int c = x / 10 - a * 100 - b * 10 ;
    int d = x - a * 1000 - b * 100 - c * 10;
  
   if(a == b) {
     cout << "Bad" << endl ;
   }
   else if(b == c) {
     cout << "Bad" << endl ;
   }
   else if(c == d) {
      cout << "Bad" << endl ;
   }
  else{
    cout << "Good" << endl ;
  }
}


Compiler output:
a.cc:7:3: error: extended character 　 is not valid in an identifier
    7 |   　int a = x / 1000 ;
      |   ^
a.cc: In function 'int main()':
a.cc:7:3: error: '\U00003000int' was not declared in this scope
    7 |   　int a = x / 1000 ;
      |   ^~~~~
a.cc:8:23: error: 'a' was not declared in this scope
    8 |     int b = x / 100 - a * 10 ;
      |                       ^
Language: Java

import java.util.Scanner;
public class Security {
public static void main(String[] args) {
Scanner teclado=new Scanner(System.in);
int S, a,b,c,d;
System.out.println();
a=teclado.nextInt();
System.out.println();
b=teclado.nextInt();
System.out.println();
c=teclado.nextInt();
System.out.println();
d=teclado.nextInt();
S=a+b+c+d;
if(a==b || b==c || c==d) {
System.out.println("bad");
}else {
System.out.println("good");
}
teclado.close();

	}

}

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

#include<bits/stdc++.h>
using namespace std;
int arr[4]={0};
int main()
{
	int a,b,c,d,i,j,k;
  	scanf("%d",&a);
  	for(i=0;i<4;i++)
    {
		array[i]=a%10;
      	a/=10;
    }
  	if(arr[0]==arr[1] || arr[1]==arr[2] || arr[2]==arr[3])
    {
		printf("Bad");
    }
  	else
    {
		printf("Good");
    }
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: conversion from 'int' to non-scalar type 'std::array<int, 1>' requested
   10 |                 array[i]=a%10;
      |                          ~^~~
Language: C++

include<stdio.h>

int main(){
	int S;
	for(S = 0; S < 9999; S++){
	scanf("%d",&S);
	if(S > 1000){
		continue;}
		
	
	if((S / 1000) % 10 == (S / 100) % 10 ||  (S / 100) % 10 == (S / 10) % 10 || (S / 10) % 10 == S % 10){
		printf("Bad");}
		printf("Good");}
		
		return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

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

int main(){
    int x;
    cin >> x ;
  　int a = x / 1000 ;
    int b = x / 100 - a * 1000 ;
    int c = x / 10 - a * 1000 - b * 100 ;
    int d = x - a * 1000 - b * 100 - c * 10;
  
   if(a == b) {
     cout << "Bad" << endl ;
   }
   else if(b == c) {
     cout << "Bad" << endl ;
   }
   else if(c == d) {
      cout << "Bad" << endl ;
   }
  else{
    cout << "Good" << endl ;
  }
}


Compiler output:
a.cc:7:3: error: extended character 　 is not valid in an identifier
    7 |   　int a = x / 1000 ;
      |   ^
a.cc: In function 'int main()':
a.cc:7:3: error: '\U00003000int' was not declared in this scope
    7 |   　int a = x / 1000 ;
      |   ^~~~~
a.cc:8:23: error: 'a' was not declared in this scope
    8 |     int b = x / 100 - a * 1000 ;
      |                       ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int S[4],a=0;
    for(int j=0;j<4;j++)
    cin>>S[j];
    for(int i=0;i<3;i++){
        if(S[i]==S[i+1]){
        a++
        }
    }
    if(a==0)
    cout<<"Good"<<endl;
    else
    cout<<"Bad"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before '}' token
   10 |         a++
      |            ^
      |            ;
   11 |         }
      |         ~
Language: C++

#include <bits/stdc++.h>
#include <string>
using namespace std;
int main (){
  string s;
  cin >> s;
  int c,a,b = 0;
  for(a = 0; a < 3; a++){
    b = a + 1;
    if(s[a] == s[b]) ++c;
  }
  if (c == 3) {
   std::cout << Good << endl};
  else {
    std::cout << Bad << endl};
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'Good' was not declared in this scope
   13 |    std::cout << Good << endl};
      |                 ^~~~
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else {
      |   ^~~~
a.cc:15:18: error: 'Bad' was not declared in this scope
   15 |     std::cout << Bad << endl};
      |                  ^~~
Language: C

#include <stdio.h>

int main(void){
  int n,i,before = -1;
  scanf("%d",&n);
  for(i=0;i<4;i++){
    now = n % 10;
    n = n % 10;
    if(before == now){
      printf("Bad");
      return 0;
    }
    before = now;
  }
  printf("Good");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'now' undeclared (first use in this function)
    7 |     now = n % 10;
      |     ^~~
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void) {
	int k, h, t, o, s;
	scanf_s("%d", &s);

	k = s / 1000;
	h = abs((k * 10) - (s / 100));
	t = abs(((k * 100) + (h * 10)) - (s / 10));
	o = s % 10;

	if (k == h) {
		printf("Bad");
	}
	else if(h == t)
		printf("Bad");
	else if(t==o)
		printf("Bad");
	else
		printf("Good");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scanf_s("%d", &s);
      |         ^~~~~~~
      |         scanf
main.c:8:13: error: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
    8 |         h = abs((k * 10) - (s / 100));
      |             ^~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
    1 | #include<stdio.h>
  +++ |+#include <stdlib.h>
    2 |
Language: C++

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<stdint.h>
#include<malloc.h>
#include<x86intrin.h>
#include<math.h>

int my_gets(char *buf,int nBuf,FILE *fp){
    int ch;

    while(--nBuf >0){
        ch=getc(fp);
        if(ch==EOF || ch=='\n')
            break;
        *(buf++)=(char)ch;
    }
    *(buf)='\0';

    return nBuf;
}

void InputIntAry(int *a,int nBuf,int N){
    char *buf,*ptr;

    buf=(char*)malloc(nBuf*sizeof(char));
    my_gets(buf,nBuf,stdin);

    ptr=strtok(buf," ");
    while(ptr!=NULL && N-->0){
        *(a++)=atoi(ptr);
        ptr=strtok(NULL," ");
    }
    free(buf);
}
#define MAX(a,b) ( ((a)>(b)) ? (a):(b) )

int main(){
    char str[100];
    int i;

    gets(str);
    for(i=0; str[i]!='\0'; i++){
        if(str[i]==str[i+1]){
            puts("Bad");
            return 0;
        }
    }
    puts("Good");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   42 |     gets(str);
      |     ^~~~
      |     getw
Language: Java


import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Stack;
import java.util.StringTokenizer;

//import dp.Main.PrimsPair;

public class mai {

	public static int lowerBound(long[] array, int length, long value) {
		int low = 0;
		int high = length;
		while (low < high) {
			final int mid = (low + high) / 2;
			if (value <= array[mid]) {
				high = mid;
			} else {
				low = mid + 1;
			}
		}
		return low;
	}

	static class FastReader {
		BufferedReader br;
		StringTokenizer st;

		public FastReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
		}

		String next() {
			while (st == null || !st.hasMoreElements()) {
				try {
					st = new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}

		int nextInt() {
			return Integer.parseInt(next());
		}

		long nextLong() {
			return Long.parseLong(next());
		}

		double nextDouble() {
			return Double.parseDouble(next());
		}

		String nextLine() {
			String str = "";
			try {
				str = br.readLine();
			} catch (IOException e) {
				e.printStackTrace();
			}
			return str;
		}
	}

	static long gcd(long a, long b) {
		if (a == 0)
			return b;
		return gcd(b % a, a);
	}

	// method to return LCM of two numbers
	static long lcm(long a, long b) {
		return (a * b) / gcd(a, b);
	}

	public static void sortbyColumn(int arr[][], int col) {
		// Using built-in sort function Arrays.sort
		Arrays.sort(arr, new Comparator<int[]>() {

			@Override
			// Compare values according to columns
			public int compare(final int[] entry1, final int[] entry2) {

				// To sort in descending order revert
				// the '>' Operator
				// if (entry1[col] > entry2[col])
				// return 1;
				// else //(entry1[col] >= entry2[col])
				// return -1;
				return new Integer(entry1[col]).compareTo(entry2[col]);
				// return entry1[col].
			}
		}); // End of function call sort().
	}
	
	public static void main(String[] args) throws NumberFormatException, IOException {
		FastReader sc = new FastReader();
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Scanner scn = new Scanner(System.in);
		// PrintWriter pr = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
		String s=sc.next();
		for(int i=0;i<s.length()-1;i++)
			
			
		{
			if(s.charAt(i)==s.charAt(i+1))
			{
				System.out.println("Bad");return;
			}
		}
		System.out.println("Good");
		
		
	}
}


Compiler output:
Main.java:19: error: class mai is public, should be declared in a file named mai.java
public class mai {
       ^
Main.java:102: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
				return new Integer(entry1[col]).compareTo(entry2[col]);
				       ^
1 error
1 warning
Language: C++

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

int main (){
  string s;
  cin >> s;
  int c,a,b = 0;
  for(a = 0; a < 3; a++){
    b = a + 1;
    if(s[a] == s[b]) ++c;
  }
  if (c == 3) {
   cout << Good << endl};
  else {
    cout << Bad << endl};
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 'Good' was not declared in this scope
   14 |    cout << Good << endl};
      |            ^~~~
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else {
      |   ^~~~
a.cc:16:13: error: 'Bad' was not declared in this scope
   16 |     cout << Bad << endl};
      |             ^~~
Language: C++

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

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


Compiler output:
a.cc:7:3: error: extended character 　 is not valid in an identifier
    7 |   　cin a = x / 1000 ;
      |   ^
a.cc: In function 'int main()':
a.cc:7:3: error: '\U00003000cin' was not declared in this scope
    7 |   　cin a = x / 1000 ;
      |   ^~~~~
a.cc:8:8: error: expected ';' before 'b'
    8 |     cin b = x / 100 - a ;
      |        ^~
      |        ;
a.cc:9:8: error: expected ';' before 'c'
    9 |     cin c = x / 10 - a - b ;
      |        ^~
      |        ;
a.cc:10:8: error: expected ';' before 'd'
   10 |     cin d = x - a - b - c ;
      |        ^~
      |        ;
a.cc:12:7: error: 'a' was not declared in this scope
   12 |    if(a == b) {
      |       ^
a.cc:12:12: error: 'b' was not declared in this scope
   12 |    if(a == b) {
      |            ^
a.cc:15:17: error: 'c' was not declared in this scope
   15 |    else if(b == c) {
      |                 ^
a.cc:18:17: error: 'd' was not declared in this scope
   18 |    else if(c == d) {
      |                 ^
Language: C++

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

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


Compiler output:
a.cc:7:3: error: extended character 　 is not valid in an identifier
    7 |   　int a = x / 1000 ;
      |   ^
a.cc: In function 'int main()':
a.cc:7:3: error: '\U00003000int' was not declared in this scope
    7 |   　int a = x / 1000 ;
      |   ^~~~~
a.cc:8:23: error: 'a' was not declared in this scope
    8 |     int b = x / 100 - a ;
      |                       ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int S[4],a=0;
    for(int j=0;j<4;j++)
    cin>>S[j];
    for(int i=0;i<3;i++){
        if(S[i]==S[i+1]){
            cout<<"Bad"<<endl;
        brake;
        }
    }
    cout<<"Good"<<endl;
}

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

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

int main(){
    int x;
  　int a = x / 1000 ;
    int b = x / 100 - a ;
    int c = x / 10 - a - b ;
    int d = x - a - b - c ;
  
   if(a == b) {
     cout << "Bad" << endl ;
   }
   else if(b == c) {
     cout << "Bad" << endl ;
   }
   else if(c == d) {
      cout << "Bad" << endl ;
   }
  else{
    cout << "Good" << endl ;
  }
  
}


Compiler output:
a.cc:6:3: error: extended character 　 is not valid in an identifier
    6 |   　int a = x / 1000 ;
      |   ^
a.cc: In function 'int main()':
a.cc:6:3: error: '\U00003000int' was not declared in this scope
    6 |   　int a = x / 1000 ;
      |   ^~~~~
a.cc:7:23: error: 'a' was not declared in this scope
    7 |     int b = x / 100 - a ;
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string a; cin >> a;  int x=0;
  for (int i=0;i<2;i++) {
    if(a.at(i)==a.ai(i+1)){
      cout << "Bad" << endl;
      x++;
      break;
    }
  }
    if(x==1) {
    cout << "Good" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'ai'; did you mean 'at'?
    6 |     if(a.at(i)==a.ai(i+1)){
      |                   ^~
      |                   at
Language: C++

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

int main(){
    int x;
  　int a == x / 1000 ;
    int b == x / 100 - a ;
    int c == x / 10 - a - b ;
    int d == x - a - b - c ;
  
   if(a == b) {
     cout << "Bad" << endl ;
   }
   else if(b == c) {
     cout << "Bad" << endl ;
   }
   else if(c == d) {
      cout << "Bad" << endl ;
   }
  else{
    cout << "Good" << endl ;
  }
  
}


Compiler output:
a.cc:6:3: error: extended character 　 is not valid in an identifier
    6 |   　int a == x / 1000 ;
      |   ^
a.cc: In function 'int main()':
a.cc:6:3: error: '\U00003000int' was not declared in this scope
    6 |   　int a == x / 1000 ;
      |   ^~~~~
a.cc:7:11: error: expected initializer before '==' token
    7 |     int b == x / 100 - a ;
      |           ^~
a.cc:8:11: error: expected initializer before '==' token
    8 |     int c == x / 10 - a - b ;
      |           ^~
a.cc:9:11: error: expected initializer before '==' token
    9 |     int d == x - a - b - c ;
      |           ^~
a.cc:11:7: error: 'a' was not declared in this scope
   11 |    if(a == b) {
      |       ^
a.cc:11:12: error: 'b' was not declared in this scope
   11 |    if(a == b) {
      |            ^
a.cc:14:17: error: 'c' was not declared in this scope
   14 |    else if(b == c) {
      |                 ^
a.cc:17:17: error: 'd' was not declared in this scope
   17 |    else if(c == d) {
      |                 ^
Language: C++

#include <Iostream>

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

   for(int i=0; i<3; ++i){
      if(S[i]==S[i+1]) {
	 std::cout << "Bad" << std::endl;
	 return 0;
      }
   }
   std::cout << "Good" << std::endl;

   return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
int main() {
  string a; cin >> a;  int x=0;
  for (int i=0;i<2;i++) {
    if(a.at(i)==a.ai(i+1){
      cout << "Bad" << endl;
      x++;
      break;
    }
       }
       if(x==1) {
         cout << "Good" << endl;
       }
       }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'ai'; did you mean 'at'?
    6 |     if(a.at(i)==a.ai(i+1){
      |                   ^~
      |                   at
a.cc:6:26: error: expected ')' before '{' token
    6 |     if(a.at(i)==a.ai(i+1){
      |       ~                  ^
      |                          )
a.cc:11:8: error: expected primary-expression before '}' token
   11 |        }
      |        ^
Language: C

#include <stdio.h>

int main()
{
  int a[4],i,s;
  scanf("%d",&s);
  a[0]=s/1000;
  a[1]=s/100-a[0]*10;
  a[2]=s/10-a[0]*100-a[1]*10;
  a[3]=s-a[0]*1000-a[]*100-a[2]*10;
  for(i=0;i<4;i++){
    if(a[i]==a[i+1]){
      printf("Bad");
    }else{
      printf("Good");
    }
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:22: error: expected expression before ']' token
   10 |   a[3]=s-a[0]*1000-a[]*100-a[2]*10;
      |                      ^
Language: C++

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

int main (){
  string s;
  cin >> s;
  int c,a,b = 0;
  for(a = 0; a < 3; a++){
    b = a + 1;
    if(s[a] == s[b]) ++c;
  }
  if (c == 3) {
   cout << Good << endl};
  else {
    cout << Bad << endl};
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 'Good' was not declared in this scope
   14 |    cout << Good << endl};
      |            ^~~~
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else {
      |   ^~~~
a.cc:16:13: error: 'Bad' was not declared in this scope
   16 |     cout << Bad << endl};
      |             ^~~
Language: C++

using System;

namespace ABC
{
    class Program
    {
        static void Main(string[] args)
        {
            bool result = true;
            string inputNum = Console.ReadLine();

            for(int i = 0; i < inputNum.Length - 1; i++)
            {
                if(inputNum[i] == inputNum[i + 1])
                {
                    result = false;
                }
            }

            if (result)
            {
                Console.WriteLine("Good");
            }
            else
            {
                Console.WriteLine("Bad");
            }
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:7:26: error: 'string' has not been declared
    7 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:7:35: error: expected ',' or '...' before 'args'
    7 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:29:6: error: expected ';' after class definition
   29 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC::Program::Main(int*)':
a.cc:10:13: error: 'string' was not declared in this scope
   10 |             string inputNum = Console.ReadLine();
      |             ^~~~~~
a.cc:12:32: error: 'inputNum' was not declared in this scope
   12 |             for(int i = 0; i < inputNum.Length - 1; i++)
      |                                ^~~~~~~~
a.cc:22:17: error: 'Console' was not declared in this scope
   22 |                 Console.WriteLine("Good");
      |                 ^~~~~~~
a.cc:26:17: error: 'Console' was not declared in this scope
   26 |                 Console.WriteLine("Bad");
      |                 ^~~~~~~
Language: C++

using namespace std
int main()
{
  char a[4];
  for (int i=1;i<5;i++){
  cin << a[i];
  }
  if(a[1]==a[2]||a[2]==a[3]||a[3]==a[4]){
  cout >> "Bad" >> endl;
  }
  else{
    cout >> "Good" >> endl;
  }
}

Compiler output:
a.cc:1:20: error: expected ';' before 'int'
    1 | using namespace std
      |                    ^
      |                    ;
    2 | int main()
      | ~~~                 
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin << a[i];
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout >> "Bad" >> endl;
      |   ^~~~
a.cc:9:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:20: error: 'endl' was not declared in this scope
    9 |   cout >> "Bad" >> endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout >> "Good" >> endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:23: error: 'endl' was not declared in this scope
   12 |     cout >> "Good" >> endl;
      |                       ^~~~
a.cc:12:23: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
using namespace std;

int main() {
    int S;
    cin >> S;
    if(S % 10 == (S / 10) % 10 || (S / 100) % 10 == S / 1000 || (a / 10) % 10 == (a / 100) % 10) {
        cout << "Bad";
    } else {
        cout << "Good";
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:66: error: 'a' was not declared in this scope
    7 |     if(S % 10 == (S / 10) % 10 || (S / 100) % 10 == S / 1000 || (a / 10) % 10 == (a / 100) % 10) {
      |                                                                  ^
Language: C++

using namespace std;
int main()
{
  char a[4];
  for (int i=1;i<5;i++){
  cin >> a[i];
  }
  if(a[1]==a[2]||a[2]==a[3]||a[3]==a[4]){
  cout << "Bad" << endl;
  }
  else{
    cout << "Good" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a[i];
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout << "Bad" << endl;
      |   ^~~~
a.cc:9:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:20: error: 'endl' was not declared in this scope
    9 |   cout << "Bad" << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "Good" << endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:23: error: 'endl' was not declared in this scope
   12 |     cout << "Good" << endl;
      |                       ^~~~
a.cc:12:23: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java

import java.util.*;

public class Code {

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

		String res = "Good";
		for(int i = 1; i < S.length(); i++) {
			if(S.charAt(i) == S.charAt(i - 1)) {
				res = "Bad";
				break;
			}
		}
		
		System.out.println(res);
		scan.close();
	}

}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: 'Good' was not declared in this scope
   12 |   if(c == 3) cout << Good << endl;
      |                      ^~~~
a.cc:13:16: error: 'Bad' was not declared in this scope
   13 |   else cout << Bad << endl;
      |                ^~~
Language: C++

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

int main() {
  vector<int> S(4);
  
  for (int i = 0; i < 4; i++) {
    cin >> S.at(i);
  
  if(S.at(0) == S.at(1))
    cout << "Good" <<endl;
    
    else if(S.at(1) == S.at(2))
    cout << "Good" <<endl;
    
    else if(S.at(2) == S.at(3))
    cout << "Good" <<endl;
  
  else
    cout << "Bad" << endl;
}


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

s=gets
r = s =~ /(.)\1/ ? "Bad" : "Good";
puts r

Compiler output:
a.cc:2:14: error: stray '\' in program
    2 | r = s =~ /(.)\1/ ? "Bad" : "Good";
      |              ^
a.cc:1:1: error: 's' does not name a type
    1 | s=gets
      | ^
a.cc:3:1: error: 'puts' does not name a type
    3 | puts r
      | ^~~~
Language: C

#include <stdio.h>


int main()
{
	char str[4];
	int i;
	for (i = 0; i < 4; i++) {
		scanf_s("%c", &str[i]);
	}
	if (str[0] == str[1] || str[1] == str[2] || str[2] == str[3] || str[3] == str[4]) {
		printf("Good\n");
	}
	else  printf("Bad\n");
	

    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |                 scanf_s("%c", &str[i]);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
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) || s.at(3) == s.at(4))
  	cout << "Good" << endl;
  else
	cout << "Bad" << endl;
}

Compiler output:
a.cc:7:9: error: extended character 　 is not valid in an identifier
    7 |   cin >>　s;
      |         ^
a.cc: In function 'int main()':
a.cc:7:9: error: '\U00003000s' was not declared in this scope
    7 |   cin >>　s;
      |         ^~~
Language: C

#include<stdio.h>
int main()
{
  char s[4]
    int a,b,c,i
    for(i=1;i<=4;i++){
  scanf("%d",s[i]);
    }
  
  if(s[1]==s[2]||s[2]==s[3]||s[3]==s[4]){
    printf("Bad");
  }else{
    printf("Good");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:12: error: expected ';' before 'int'
    4 |   char s[4]
      |            ^
      |            ;
    5 |     int a,b,c,i
      |     ~~~     
main.c:6:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    6 |     for(i=1;i<=4;i++){
      |     ^~~
main.c:6:13: error: 'i' undeclared (first use in this function)
    6 |     for(i=1;i<=4;i++){
      |             ^
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:21: error: expected ';' before ')' token
    6 |     for(i=1;i<=4;i++){
      |                     ^
      |                     ;
main.c:6:21: error: expected statement before ')' token
main.c:7:14: error: 's' undeclared (first use in this function)
    7 |   scanf("%d",s[i]);
      |              ^
Language: Java

import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class A {
    static final int MAX = 100100;
    InputStream in = System.in;
    PrintStream out = System.out;

    public void _main(String[] args) {
        Scanner sc = new Scanner(in);
        String s = sc.next();
        for(int i=0;i<s.length()-1;i++) {
            if (s.charAt(i)==s.charAt(i+1)) {
                out.println("Bad");
                return;
            }
        }
        out.println("Good");
    }

    public static void main(String[] args) {
        new A()._main(args);
    }
}


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

#include <iostream>
#include <algorithm>

using namespace std;

int main()
{
	int n;
	cin >> n;

	int tmp = n;
	for (int i = 1; i < 4; ++i)
	{
		int tmp2 = n / static_cast<int>(pow(10, i)) % 10;
		if (tmp2 == tmp)
		{
			cout << "Bad" << endl;
			return 0;
		}
		tmp = tmp2;
	}

	cout << "Good" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:49: error: 'pow' was not declared in this scope
   14 |                 int tmp2 = n / static_cast<int>(pow(10, i)) % 10;
      |                                                 ^~~
Language: Java

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        boolean result = true;
        for (int i = 0; i < 3; i++) {
            if (S.substring(i,i+1).equals(S.substring(i+1,i+2))) {
                result = false;
                break;
            }
        }
        if (result) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        }

    }

Compiler output:
Main.java:20: error: reached end of file while parsing
    }
     ^
1 error
Language: C

#include<iostream>
#include<cstring>
#include<cstdio>
using namespace std;
bool check(char a[4]){
	for(int i =0; i < strlen(a); i++){
		if(a[i] == a[i + 1])
		   return 0;
	}
	return 1;
}
int main(){
	char a[4];
	gets(a);
	if(!check(a))
	   cout << "Bad" << endl;
	else
	   cout << "Good" << endl;
}

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

#include<iostream>
#include<cstring>
#include<cstdio>
using namespace std;
bool check(char a[4]){
	for(int i =0; i < strlen(a); i++){
		if(a[i] == a[i + 1])
		   return 0;
	}
	return 1;
}
int main(){
	char a[4];
	gets(a);
	if(!check(a))
	   cout << "Bad" << endl;
	else
	   cout << "Good" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   14 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

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

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

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

#include <stdio.h>
using namespace std;

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

  return 0;
}

Compiler output:
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
Language: C

#include<stdio.h>
int main()
{
  char str[4];
  int flag=0;
  for(int i=0;i<4;i++)
  {
    scanf("%d",&str[i]);
  }
  for(int j=0;j<4;j++)
  {
    if(str[j]==str[j+1])
    {
      flag+=1;
    }
  }
  if(flag!=0)
  {
    printf("Bad");
  }else 
  {
    printf("Good")
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:19: error: expected ';' before '}' token
   22 |     printf("Good")
      |                   ^
      |                   ;
   23 |   }
      |   ~
Language: C

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

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

  return 0;
}

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

#inlude<stdio.h>

int main(){
	int cord[4];
	int in;

	scanf("%d",&in);
  	cord[0]=in/1000;
	cord[1]=in/100;
	cord[2]=in/10;
	cord[3]=in/1;
	if((cord[0]==cord[1])||(cord[1]==cord[2])||(cord[2]==cord[3])){
	printf("Bad\n");
    }
	else
    {
	printf("Good\n");
    }
	return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |         scanf("%d",&in);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlude<stdio.h>
main.c:7:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |         scanf("%d",&in);
      |         ^~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |         printf("Bad\n");
      |         ^~~~~~
main.c:13:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |         printf("Good\n");
      |         ^~~~~~
main.c:17:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

int main() {
   vector<int>S(4);
     for(int i=0;i<4;i++){
       cin>>S.at(i);
     }
  bool answer=true;
    for(int i=0;i<2;i++){
      if(S.at(i)==S.at(i+1)){
        answer=false;
      }
    }
  if(answer){
    cout<<Good<<endl;
  }
  else{
    cout<<Bad<<endl;
  }
}
#include <bits/stdc++.h>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: 'Good' was not declared in this scope
   16 |     cout<<Good<<endl;
      |           ^~~~
a.cc:19:11: error: 'Bad' was not declared in this scope
   19 |     cout<<Bad<<endl;
      |           ^~~
a.cc: At global scope:
a.cc:25:5: error: redefinition of 'int main()'
   25 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
Language: C++

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

int main() {
   vector<int>S(4);
     for(int i=0;i<4;i++){
       cin>>S.at(i);
     }
  bool answer=true;
    for(int i=0;i<2;i++){
      if(S.at(i)==S.at(i+1)){
        answer=false;
      }
    }
  if(answer){
    cout<<Good<<endl;
  }
  else{
    cout<<Bad<<endl;
  }
}


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

#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
//#define int long long

template <class T>
bool INRANGE(T x, T a, T b) { return a <= x && x <= b; }
template <class T>
bool chmax(T &a, const T &b) {if (a < b){ a = b; return 1;} return 0;}
template <class T>
bool chmin(T &a, const T &b) {if (a > b){ a = b; return 1;}return 0;}
template <class T>
void printv(vector<T> v) {for (T t : v) {cout << t << " ";}cout << '\n'}

#define REP(i, n) for (int i = 0; i < (n); ++i)
#define RREP(i, n) for (int i = (n); i >= 0; --i)
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define RFOR(i, a, b) for (int i = (a); i >= (b); --i)
#define ALL(v) (v).begin(), (v).end()
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" \
                      << " " << __FILE__ << endl;

typedef vector<int> vi;
typedef vector<string> vs;
typedef vector<vi> vvi;
typedef pair<int, int> pii;

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);


    string s;
    cin >> s;

    map<char,int> m;

    REP(i,4){
        m[s[i]]++;
    }

    if (m.size() == 4) cout << "Good" << endl;
    else cout << "Bad" << endl;

    return 0;
}


Compiler output:
a.cc: In function 'void printv(std::vector<_Tp>)':
a.cc:13:72: error: expected ';' before '}' token
   13 | void printv(vector<T> v) {for (T t : v) {cout << t << " ";}cout << '\n'}
      |                                                                        ^
      |                                                                        ;
Language: C++

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

int main()
{
  	string s;
  	cin >> s;
  	for(int i=1;i<4;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:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^