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

#include<bits/stdc++.h>
int s,a,b,c,d;
int main(){
  cin>>s;
  a=s/1000;
  b=(s/100)%10;
  c=(s/10)%10;
  d=s%10;
  if(a==b||b==c||c==d)cout<<"Bad"<<endl;
  else cout<<"Good"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>s;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   if(a==b||b==c||c==d)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:9:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   if(a==b||b==c||c==d)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:10:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   else 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:10:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   else 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>
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(vec.at(i)==vec.at(i+1)){
        answer=false;
      }
    }
  if(answer){
    cout<<Good<<endl;
  }
  else{
    cout<<Bad<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'vec' was not declared in this scope
   11 |       if(vec.at(i)==vec.at(i+1)){
      |          ^~~
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<stdio.h>

int main() {
	char S[4];
	int ifBad=0;
	gets_s(S, 4);
	for (int i = 0;i < 4;i++) {
		if (i != 3 && S[i] == S[i + 1])
			ifBad = 1;
	}
	if (ifBad)
		printf("Bad");
	else
		printf("Good");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
    6 |         gets_s(S, 4);
      |         ^~~~~~
Language: C++

s = input()
n_1= ''
judge = True

for n in s:
    if n == n_1:
        judge = False
    else:
        pass
    n_1 = n

if judge:
    print('Good')
else:
    print('Bad')

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

#include<iostream>
#include<stdio.h>
using namespace std;
int a[10];
int main(){
	int res=0;
	while(scanf("%d",&a)!=EOF){
		res++;
		a[res]=a;
		if(res!=1&&a[res]==a[res-1]){
			puts("Bad");
			return 0;
		}
	}
	puts("Good");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    9 |                 a[res]=a;
      |                        ^
      |                        |
      |                        int*
Language: C++

#include<cstdio>
#include<cstring>
using namespace std;

int main()
{
	char S[4];
	int i;
	gets(S);
	for(i=0;i<=2;i++)
	{
		if(S[i]==S[i+1])
		{
			printf("Bad");
			return 0;
		}
		else
		{
			continue;
		}
	}
	printf("Good");
	return 0;
}

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

#include<stdio.h>
int main()
{
  int a,b,c,d,e;
  scanf("%d%d%d%d",&a ,&b,&c,&d);
  if(a=b||b=c||c=d){
    printf("Bad");
  }else{
    printf("Good");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: lvalue required as left operand of assignment
    6 |   if(a=b||b=c||c=d){
      |                 ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'char'
    8 |     char d = s.at(1)
      |     ^~~~
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else if(d == e)
      |   ^~~~
a.cc:13:11: error: 'd' was not declared in this scope
   13 |   else if(d == e)
      |           ^
a.cc:13:16: error: 'e' was not declared in this scope
   13 |   else if(d == e)
      |                ^
a.cc:15:16: error: 'f' was not declared in this scope
   15 |   else if(e == f)
      |                ^
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(vec.at(i)==vec.at(i+1)){
        answer=false;
      }
    }
  if(answer){
    cout<<Good<<endl;
  }
  else{
    cout<<Bad<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected ',' or ';' before 'for'
   10 |     for(int i=0;i<2;i++){
      |     ^~~
a.cc:10:17: error: 'i' was not declared in this scope
   10 |     for(int i=0;i<2;i++){
      |                 ^
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;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'i' was not declared in this scope
    6 |      for(i=0;i<4;i++){
      |          ^
a.cc:10:5: error: expected ',' or ';' before 'for'
   10 |     for(i=0;i<2;i++){
      |     ^~~
a.cc:10:13: error: 'i' was not declared in this scope
   10 |     for(i=0;i<2;i++){
      |             ^
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

#inclide<stdio.h>
int main(){
  char s[4];
  scanf("%s",&s);
  if(s[0]==s[1]||s[1]==s[2]||s[2]==s[3]) printf("Bad");
  else printf("Good");
  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%s",&s);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inclide<stdio.h>
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%s",&s);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:42: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   if(s[0]==s[1]||s[1]==s[2]||s[2]==s[3]) printf("Bad");
      |                                          ^~~~~~
main.c:5:42: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:42: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:42: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:8: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 |   else printf("Good");
      |        ^~~~~~
main.c:6:8: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

main :: IO ()
main = do
  key <- getLine
  putStrLn $ ans key

ans :: String -> String
ans key =
  if or (zipWith (==) (init key) (tail key)) then "Bad" else "Good"

Compiler output:
main.c:1:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '::' token
    1 | main :: IO ()
      |      ^~
Language: C++

#include<iostream>
using namespace std;

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


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

# -*- coding:utf-8 -*-

inp = input()
num = list(inp)

str_b = ""
f = False
for i in num:
  if i == str_b:
    f = True
    break
  str_b = i

if f == True:
    print("Bad")
else:
    print("Good")

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding:utf-8 -*-
      |   ^
a.cc:3:1: error: 'inp' does not name a type; did you mean 'int'?
    3 | inp = input()
      | ^~~
      | int
Language: C++

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

int main(){
    string st;
    cin >> st;
    boolean f = true;
    for(int i=0;i<3;i++){
        if(st[i] == st[i+1]){
            f = false;
            break;
        } 
    }
    if(f) cout << "Good" << endl;
    else cout << "Bad" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'boolean' was not declared in this scope; did you mean 'bool'?
    9 |     boolean f = true;
      |     ^~~~~~~
      |     bool
a.cc:12:13: error: 'f' was not declared in this scope
   12 |             f = false;
      |             ^
a.cc:16:8: error: 'f' was not declared in this scope
   16 |     if(f) cout << "Good" << endl;
      |        ^
Language: C

#pragma warning(disable:4996)
#include <stdio.h>

int main(void) {
	char s[5];
	int a;
	scanf("%s", &s);
	int i;
	bool ans = false;
	for (i = 2; i <= 4; ++i) {
		if (s[i - 1] == s[i]) {
			ans = true;
		}
	}
	if (ans == true) {
		puts("Bad");
	}
	else {
		puts("Good");
	}
	return 0;

}



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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>S;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         cout<<"Bad";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout<<"Good";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'string' was not declared in this scope
    2 |         string a;
      |         ^~~~~~
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin>>a;
      |         ^~~
a.cc:3:14: error: 'a' was not declared in this scope
    3 |         cin>>a;
      |              ^
a.cc:4:47: error: 'cout' was not declared in this scope
    4 |         if(a[0]==a[1]||a[1]==a[2]||a[2]==a[3])cout<<"Bad\n";
      |                                               ^~~~
a.cc:5:14: error: 'cout' was not declared in this scope
    5 |         else cout<<"Good\n";
      |              ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:5: error: 'string' was not declared in this scope
    2 |     string num;
      |     ^~~~~~
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin>>num;
      |     ^~~
a.cc:3:10: error: 'num' was not declared in this scope; did you mean 'enum'?
    3 |     cin>>num;
      |          ^~~
      |          enum
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout<<"Bad\n";
      |         ^~~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout<<"Good\n";
      |         ^~~~
Language: C

#include<stdio.h>
int main()
{
  int a,b,c,d,e;
  scanf("%s%s%s%s",&a ,&b,&c,&d);
  if(a=b||b=c||c=d){
    printf("Bad");
  }else{
    printf("Good");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: lvalue required as left operand of assignment
    6 |   if(a=b||b=c||c=d){
      |                 ^
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int a[10];
int main(){
	int res=0;
	while(scanf("%d",&a)!=EOF){
		res++;
		a[res]=a;
		if(res!=1&&a[res]=a[res-1]){
			puts("Bad");
			return 0;
		}
	}
	puts("Good");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    9 |                 a[res]=a;
      |                        ^
      |                        |
      |                        int*
a.cc:10:26: error: lvalue required as left operand of assignment
   10 |                 if(res!=1&&a[res]=a[res-1]){
      |                    ~~~~~~^~~~~~~~
Language: C


#include <stdio.h>

int main(void) {
	char s[5];
	int a;
	scanf("%s", &s);
	int i;
	bool ans = false;
	for (i = 2; i <= 4; i++) {
		if (s[i - 1] == s[i]) {
			ans = true;
		}
	}
	if (ans == true) {
		puts("Bad");
	}
	else {
		puts("Good");
	}
	return 0;

}


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

#include<bits/stdc++.h>

using namespace std;
int main(){
  string s;
  int j=0;
  cin >> s;
  
  for(size_t i=0;i<s.size()-1;i++){
    if(s.at(i)==s.at(i+1)) j=1;
  }
  
  if(j==1) cout << Bad << endl;
  else cout << Good << endl;
  return 0;
  
}

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

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

int main(){
    string st;
    cin >> st;
    boolean f = true;
    for(int i=0;i<3;i++){
        if(st[i] == st[i+1]){
            f = false;
            break;
        } 
    }
    cout << (f ? "Good" : "Bad") << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'boolean' was not declared in this scope; did you mean 'bool'?
    9 |     boolean f = true;
      |     ^~~~~~~
      |     bool
a.cc:12:13: error: 'f' was not declared in this scope
   12 |             f = false;
      |             ^
a.cc:16:14: error: 'f' was not declared in this scope
   16 |     cout << (f ? "Good" : "Bad") << endl;
      |              ^
Language: C++

#!/usr/bin/env python3


def solv(s):
    if s[0] == s[1]:
        return 'Bad'
    if s[1] == s[2]:
        return 'Bad'
    if s[2] == s[3]:
        return 'Bad'
    return 'Good'


if __name__ == '__main__':

    s = input()

    ans = solv(s)

    print(ans)


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python3
      |  ^
a.cc:6:16: warning: multi-character character constant [-Wmultichar]
    6 |         return 'Bad'
      |                ^~~~~
a.cc:8:16: warning: multi-character character constant [-Wmultichar]
    8 |         return 'Bad'
      |                ^~~~~
a.cc:10:16: warning: multi-character character constant [-Wmultichar]
   10 |         return 'Bad'
      |                ^~~~~
a.cc:11:12: warning: multi-character character constant [-Wmultichar]
   11 |     return 'Good'
      |            ^~~~~~
a.cc:14:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   14 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:4:1: error: 'def' does not name a type
    4 | def solv(s):
      | ^~~
Language: C++

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

int main(){
    string st;
    cin >> st;
    boolean f = true;
    for(int i=0;i<3;i++){
        if(st[i] == st[i+1]){
            flag = false;
            break;
        } 
    }
    cout << (f ? "Good" : "Bad") << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'boolean' was not declared in this scope; did you mean 'bool'?
    9 |     boolean f = true;
      |     ^~~~~~~
      |     bool
a.cc:12:13: error: 'flag' was not declared in this scope
   12 |             flag = false;
      |             ^~~~
a.cc:16:14: error: 'f' was not declared in this scope
   16 |     cout << (f ? "Good" : "Bad") << endl;
      |              ^
Language: Java

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

Compiler output:
Main.java:6: error: illegal start of expression
if(str.charAt(0) == str.charAt(1) ||str.charAt(1) == str.charAt(2) ||str.charAt(2) == str.charAt(3) ||){
                                                                                                      ^
1 error
Language: C++

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String n = sc.next();
		char pn = n.charAt(0);
		boolean flag = false;
		for (int i = 1; i < 4; i++) {
			if (pn == n.charAt(i)) {
				flag = true;
				break;
			}
			pn = n.charAt(i);
		}
		if (flag) {
			System.out.println("Bad");
		} else {
			System.out.println("Good");
		}
	}
}


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

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

int main() {
  char *a;

  cin >> a;

  for(i = 0;i < 4;i++)
    	if(a[i] == a[i+1])
          cout << Bad << endl;
  		else 
          cout << Good << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   for(i = 0;i < 4;i++)
      |       ^
a.cc:11:19: error: 'Bad' was not declared in this scope
   11 |           cout << Bad << endl;
      |                   ^~~
a.cc:13:19: error: 'Good' was not declared in this scope
   13 |           cout << Good << endl;
      |                   ^~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: invalid types 'int[int]' for array subscript
    8 |         if (a[0] != a[1] && a[1] != a[2] && a[2] != a[3]) {
      |              ^
a.cc:8:22: error: invalid types 'int[int]' for array subscript
    8 |         if (a[0] != a[1] && a[1] != a[2] && a[2] != a[3]) {
      |                      ^
a.cc:8:30: error: invalid types 'int[int]' for array subscript
    8 |         if (a[0] != a[1] && a[1] != a[2] && a[2] != a[3]) {
      |                              ^
a.cc:8:38: error: invalid types 'int[int]' for array subscript
    8 |         if (a[0] != a[1] && a[1] != a[2] && a[2] != a[3]) {
      |                                      ^
a.cc:8:46: error: invalid types 'int[int]' for array subscript
    8 |         if (a[0] != a[1] && a[1] != a[2] && a[2] != a[3]) {
      |                                              ^
a.cc:8:54: error: invalid types 'int[int]' for array subscript
    8 |         if (a[0] != a[1] && a[1] != a[2] && a[2] != a[3]) {
      |                                                      ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'a' was not declared in this scope
   10 |     if(a[i]==a[i-1])
      |        ^
Language: C++

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);

typedef tree<int,null_type,less<int>,rb_tree_tag, tree_order_statistics_node_update> indexed_set;
typedef long long int lli;
typedef long double ld;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<long long, long long> pll;
typedef vector<int> vi;
typedef vector<long long> vll;
typedef vector<pair<int,int>> vp;
typedef pair<int,pair<int,int>> ddp;
typedef pair<long long,pll> ldp;

#define mp make_pair
#define eb emplace_back
#define pb push_back
#define all(v) v.begin(), v.end()
#define fi(n) for(int i=0;i<(n);i++)
#define fj(n) for(int j=0;j<(n);j++)
#define fk(n) for(int k=0;k<(n);k++)
#define mod 1000000007
#define MAX 100000+5;

int main()
    {
        fastio
        int n,j=0,i,a[4];
        cin >> n;
        for(i=4;i>=1;i--)
        {
            a[j] = n%10;
            n/=10;
            j++;
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:40:10: error: expected '}' at end of input
   40 |         }
      |          ^
a.cc:31:5: note: to match this '{'
   31 |     {
      |     ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){
  string S;
  bool f = true;
  cin >> S;
  for (int i=1; i<S.size(); i++){
	if (S[i] == S[i - 1]){
      f = false;
      break;
    }
  }
  cout << (t ? "Good" : "Bad") << endl;
  return 0;
}


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

import sys
input=sys.stdin.readline
from collections import deque
from heapq import heappush,heappop
import re

def int_raw():
    return int(input())
 
def ss_raw():
    return input().split()
 
def ints_raw():
    return tuple(map(int, ss_raw()))


def mod_inv(a, b):
    r = a
    w = b
    u = 1
    v = 0
    while w != 0:
        t = r//w
        r -= t*w
        r, w = w, r
        u -= t*v
        u, v = v, u
    return (u % b+b) % b


DIV = 10**9+7

def ncr(n, r, mod=DIV):
	r = min(r, n-r)
	ret = 1
	for i in range(1, r+1):
		ret = ret * (n-i+1) % mod
		ret = ret * mod_inv(i, mod) % mod
	return ret
    
def mod_modify(a,mod):
    return (a+mod)%mod
    
def main():
    ans =0
    S= input()
    return "Bad" if sum([S[idx] == S[idx-1] for idx in range(1, 4)]) >= 1 else "Good"


print(main())


Compiler output:
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 <iostream>
#include <string>
#include <vector>
using namespace std;

int main(){
    string st;
    cin >> st;
    boolean f = true;
    for(int i=0;i<3;i++){
        if(st[i] == st[i+1]){
            flag = false;
            break;
        } 
    }
    cout << (flag ? "Good" : "Bad") << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'boolean' was not declared in this scope; did you mean 'bool'?
    9 |     boolean f = true;
      |     ^~~~~~~
      |     bool
a.cc:12:13: error: 'flag' was not declared in this scope
   12 |             flag = false;
      |             ^~~~
a.cc:16:14: error: 'flag' was not declared in this scope
   16 |     cout << (flag ? "Good" : "Bad") << endl;
      |              ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'good' was not declared in this scope
    7 |   if(n==1){cout<<good;return 0;}
      |                  ^~~~
a.cc:10:8: error: 'a' was not declared in this scope
   10 |     if(a[i]==a[i-1])
      |        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'for'
    8 |   for(int i=0;i<j-1;i++){
      |   ^~~
a.cc:8:15: error: 'i' was not declared in this scope
    8 |   for(int i=0;i<j-1;i++){
      |               ^
Language: C++

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

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

#include <iostream>
#include <string>

using namespace std;

int main(){
  string S;
  char t = '';
  bool f = true;
  cin >> S;
  for (int i=0; i<S.size(); i++){
	if (S[i] == t){
      f = false;
      break;
    }
    t = S[i];
  }
  cout << (t ? "Good" : "Bad") << endl;
  return 0;
}

Compiler output:
a.cc:8:12: error: empty character constant
    8 |   char t = '';
      |            ^~
Language: C++

#include<queue>
#include<stack>
#include<utility>
#include<algorithm>
#include<map>
#include<set>
#include<functional>

using namespace std;

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



int main() {
	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:17:9: error: 'string' was not declared in this scope
   17 |         string S;
      |         ^~~~~~
a.cc:8:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    7 | #include<functional>
  +++ |+#include <string>
    8 | 
a.cc:18:9: error: 'cin' was not declared in this scope
   18 |         cin >> S;
      |         ^~~
a.cc:8:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    7 | #include<functional>
  +++ |+#include <iostream>
    8 | 
a.cc:18:16: error: 'S' was not declared in this scope
   18 |         cin >> S;
      |                ^
a.cc:24:17: error: 'cout' was not declared in this scope
   24 |                 cout << "Good" << endl;
      |                 ^~~~
a.cc:24:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:35: error: 'endl' was not declared in this scope
   24 |                 cout << "Good" << endl;
      |                                   ^~~~
a.cc:8:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    7 | #include<functional>
  +++ |+#include <ostream>
    8 | 
a.cc:27:17: error: 'cout' was not declared in this scope
   27 |                 cout << "Bad" << endl;
      |                 ^~~~
a.cc:27:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:27:34: error: 'endl' was not declared in this scope
   27 |                 cout << "Bad" << endl;
      |                                  ^~~~
a.cc:27:34: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

//typedef
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;

//container util
//------------------------------------------
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())

//repetition
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)

 
int main() {
  string S,ans;
  cin >> S;
  if(S.at(0) == S.at(1) || S.at(1) == S.at(2) || S.at(2) == S.at(3)) {
    ans = Bad;
  }
  else {
    ans = Good;
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:11: error: 'Bad' was not declared in this scope
   33 |     ans = Bad;
      |           ^~~
a.cc:36:11: error: 'Good' was not declared in this scope
   36 |     ans = Good;
      |           ^~~~
Language: Java

import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int jud = true;
        for(int i = 0;i < 3;i++){
            if(s.charAt(i) == s.charAt(i+1)){
                jud = false;
            }
        }

        if(jud == true){
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        }
    }
}

Compiler output:
Main.java:7: error: incompatible types: boolean cannot be converted to int
        int jud = true;
                  ^
Main.java:10: error: incompatible types: boolean cannot be converted to int
                jud = false;
                      ^
Main.java:14: error: incomparable types: int and boolean
        if(jud == true){
               ^
3 errors
Language: C++

#include <bits/stdc++.h>
#include <string>
#include<iostream>

#define watch(x) cout << #x << " is " << (x) << "\n";
#define watch_vi(x) cout << #x << " is "; for(int i = 0; i < x.size(); i++) cout << x[i] << " "; cout << "\n";
typedef long long ll;
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: expected ';' before 's'
   13 |    cin s;
      |       ^~
      |       ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
char a[5];
int main() {
	scanf("%s",a);
	puts(a[0]==a[2]&&a[1]==a[3]"Good":"Bad");
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:36: error: expected ')' before string constant
    6 |         puts(a[0]==a[2]&&a[1]==a[3]"Good":"Bad");
      |             ~                      ^~~~~~
      |                                    )
a.cc:6:24: error: cannot convert 'bool' to 'const char*'
    6 |         puts(a[0]==a[2]&&a[1]==a[3]"Good":"Bad");
      |              ~~~~~~~~~~^~~~~~~~~~~~
      |                        |
      |                        bool
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C++

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

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

Compiler output:
a.cc:13:11: error: extended character 　 is not valid in an identifier
   13 |           　　break;
      |           ^
a.cc:13:11: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:11: error: '\U00003000\U00003000break' was not declared in this scope
   13 |           　　break;
      |           ^~~~~~~~~
Language: C++

#include <bits/stdc++.h> 

using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    string s;
    cin >> s;
    if(s[0] == s[1] || s[1] == s[2] || s[2] == s[3])
     cout << "Bad" << endl;
    else
     cout <<  "Good" << endl;
    }
    return 0;
}


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

#include<bits/stdc++.h>

using namespace std ;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:20:21: error: expected ';' before 'return'
   20 |     cout << "Good\n"
      |                     ^
      |                     ;
   21 | 
   22 |     return 0 ;
      |     ~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
    6 |   cin>>s;int n;s.length();
      |                ~~~~~~~~^~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1083:7: note: declared here
 1083 |       length() const _GLIBCXX_NOEXCEPT
      |       ^~~~~~
a.cc:7:18: error: 'good' was not declared in this scope
    7 |   if(n==1){cout<<good;return 0;}
      |                  ^~~~
a.cc:10:8: error: 'a' was not declared in this scope
   10 |     if(a[i]==a[i-1])
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
int a;
cin>>a;
int b[5],i=1;
while(a>0){
	b[i]=a%10;
	a/=10;
}
sort(b+1,b+5);
for(itn i=1;i<=3;i++){
	if(fabs(a[i]-a[i+1])==1){
		cout<<"Bad";
		return 0;
	}
}
cout<<"Good";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'itn' was not declared in this scope; did you mean 'int'?
   12 | for(itn i=1;i<=3;i++){
      |     ^~~
      |     int
a.cc:13:18: error: invalid types 'int[int]' for array subscript
   13 |         if(fabs(a[i]-a[i+1])==1){
      |                  ^
a.cc:13:23: error: invalid types 'int[int]' for array subscript
   13 |         if(fabs(a[i]-a[i+1])==1){
      |                       ^
Language: C++

def main():
  s = input().strip()
  prevs = s[0]
  is_aa = False
  for _s in s[1:]:
    if prevs == _s:
      is_aa = True
      break
    prevs = _s
  if is_aa:
    print('Bad')
  else:
    print('Good')

if __name__ == '__main__':
  main()


Compiler output:
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     print('Bad')
      |           ^~~~~
a.cc:13:11: warning: multi-character character constant [-Wmultichar]
   13 |     print('Good')
      |           ^~~~~~
a.cc:15:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   15 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def main():
      | ^~~
Language: C++

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    7 |     for (int i = 0; i < s.length -1; i++)
      |                         ~~^~~~~~
      |                                 ()
Language: C++

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

int main()
{
    string s;
    cin >> s;
    for (int = 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:9:14: error: expected unqualified-id before '=' token
    9 |     for (int = 1; i <= 4; i++) {
      |              ^
a.cc:9:13: error: expected ';' before '=' token
    9 |     for (int = 1; i <= 4; i++) {
      |             ^~
      |             ;
a.cc:9:14: error: expected primary-expression before '=' token
    9 |     for (int = 1; i <= 4; i++) {
      |              ^
a.cc:9:19: error: 'i' was not declared in this scope
    9 |     for (int = 1; i <= 4; i++) {
      |                   ^
a.cc:9:25: error: expected ')' before ';' token
    9 |     for (int = 1; i <= 4; i++) {
      |         ~               ^
      |                         )
a.cc:9:27: error: 'i' was not declared in this scope
    9 |     for (int = 1; i <= 4; i++) {
      |                           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,x,y) for(int i=x;i<y;i++)
#define range(a) a.begin(),a.end()

int main(){
	int S;cin>>S;
	bool flag=false;
	rep(i,0,3){
		if(S.at(i)==S.at(i+1)){
			flag=true;
		}
	}if(flag){
		cout<<"Bad"<<endl;
	}else{
		cout<<"Good"<<endl;
	}
}


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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:8: error: 's' undeclared (first use in this function)
    8 |     if(s[i-1]==s[i]){
      |        ^
main.c:8:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main(){
    string n;
    cin >> n
    bool flag = 0;
    for(int i = 0; i < 3; i++){
        if(n[i] == n[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:6:13: error: expected ';' before 'bool'
    6 |     cin >> n
      |             ^
      |             ;
    7 |     bool flag = 0;
      |     ~~~~     
a.cc:9:28: error: 'flag' was not declared in this scope
    9 |         if(n[i] == n[i+1]) flag = 1;
      |                            ^~~~
a.cc:11:8: error: 'flag' was not declared in this scope
   11 |     if(flag) cout << "Bad" << endl;
      |        ^~~~
Language: C++

# coding: utf-8
# Your code here!

import sys

#N, M = map(int, input().rstrip().split(' '))
S = [x for x in input()]

for i in range(1, len(S)):
    if S[i] == S[i-1]:
        print('Bad')
        sys.exit()
        
print('Good')

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:2:3: error: invalid preprocessing directive #Your
    2 | # Your code here!
      |   ^~~~
a.cc:6:2: error: invalid preprocessing directive #N
    6 | #N, M = map(int, input().rstrip().split(' '))
      |  ^
a.cc:11:15: warning: multi-character character constant [-Wmultichar]
   11 |         print('Bad')
      |               ^~~~~
a.cc:14:7: warning: multi-character character constant [-Wmultichar]
   14 | print('Good')
      |       ^~~~~~
a.cc:4:1: error: 'import' does not name a type
    4 | import sys
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'for'
    8 |   for(int i=0;i<j-1;i++){
      |   ^~~
a.cc:8:15: error: 'i' was not declared in this scope
    8 |   for(int i=0;i<j-1;i++){
      |               ^
Language: C++

# include<iostream>
 using namespace std;
 
int main
{
	int x;
	cin >> x;
	if(x%100/10==x%1000/100){
		cout<<"Bad";
		}
	else{
		cout<<"Good";
	}
 } 

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main
      |     ^~~~
a.cc:6:9: error: expected primary-expression before 'int'
    6 |         int x;
      |         ^~~
a.cc:6:9: error: expected '}' before 'int'
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
a.cc:7:9: error: 'cin' does not name a type
    7 |         cin >> x;
      |         ^~~
a.cc:8:9: error: expected unqualified-id before 'if'
    8 |         if(x%100/10==x%1000/100){
      |         ^~
a.cc:11:9: error: expected unqualified-id before 'else'
   11 |         else{
      |         ^~~~
a.cc:14:2: error: expected declaration before '}' token
   14 |  }
      |  ^
Language: C++

#include<bits/stdc++.h>

using namespace std ;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 'i' was not declared in this scope
   13 |     for (i=0;i<3;i++){
      |          ^
a.cc:20:21: error: expected ';' before 'return'
   20 |     cout << "Good\n"
      |                     ^
      |                     ;
   21 | 
   22 |     return 0 ;
      |     ~~~~~~
Language: Java

#!/usr/bin/env python

import sys

s = sys.stdin.readline().strip()

ans = "Good"
for i in range(3):
    if s[i]==s[i+1]:
        ans = "Bad"
        break
#
print( ans )


Compiler output:
Main.java:1: error: illegal character: '#'
#!/usr/bin/env python
^
Main.java:1: error: class, interface, enum, or record expected
#!/usr/bin/env python
  ^
Main.java:12: error: illegal character: '#'
#
^
3 errors