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

//inlclude前用define 
#define _USE_MATH_DEFINES

//include
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
#include<type_traits>
#include<numeric>
//#include<deque>
#include<iomanip>
#include<set>
#include<tuple>
#include<map>

using namespace std;

//typedef
typedef vector<int> VI;
typedef vector<string> VS;
typedef vector<char> VC;
typedef long long int ll;

//define
#define INF 1e9 
#define NUM 1000000007
#define all(x) begin(x), end(x)
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int dp[110][10010]={}; //[v][w]

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



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

#include<stdio.h>
   char a[5];
   int main()
   {
   gets_s(a,4);
   int t=0;
   for(int i=1 ;i<4;i++)	
      {
      if(a[i]==a[i-1])
	  t++; 	
      }
   if(t==0)
   printf("Good\n");
   else
   printf("Bad\n");
   }

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

#include<stdio.h>
#include<string.h>
   char a[5];
   int main()
   {
   gets(a);
   int t=0;
   for(int i=1 ;i<4;i++)	
      {
      if(a[i]==a[i-1])
	  t++; 	
      }
   if(t==0)
   printf("Good\n");
   else
   printf("Bad\n");
   }

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

#include<stdio.h>
int main()
{
	char aa[6];
	gets(aa);
	int i,j=0;
	for(i=0;i<=3;i++)
	{
		if(aa[i]!=aa[i+1])
		{
			j=0;
			continue;
		}
		else
		{
			j=1;
			break;
		}
	}
	if(j!=1)
	printf("Good\n");
	else
	printf("Bad\n");
	return 0;
}

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

#include<stdio.h>
main()
{
	char aa[6];
	gets(aa);
	int i,j=0;
	for(i=0;i<=3;i++)
	{
		if(aa[i]!=aa[i+1])
		{
			j=0;
			continue;
		}
		else
		{
			j=1;
			break;
		}
	}
	if(j!=1)
	printf("Good\n");
	else
	printf("Bad\n");
}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    5 |         gets(aa);
      |         ^~~~
      |         getw
Language: C++

#include<stdio.h>
   char a[5];
   int main()
   {
   gets(a);
   int t=0;
   for(int i=1 ;i<4;i++)	
      {
      if(a[i]==a[i-1])
	  t++; 	
      }
   if(t==0)
   printf("Good\n");
   else
   printf("Bad\n");
   }

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

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main() {
	string a, b;
	cin >> a ;
	if (a[0] == a[1] || a[1] == a[2] || a[2] == a[3]) { b = "Bad" }
	else { b = "Good"; }
	cout << b << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:70: error: expected ';' before '}' token
    8 |         if (a[0] == a[1] || a[1] == a[2] || a[2] == a[3]) { b = "Bad" }
      |                                                                      ^~
      |                                                                      ;
Language: C++

#include<iostream>
#define ll long long 
using namespace std;
int main()
{
  ll s;
  cin>>s;
  first = s%1000;
  sec = s%100;
  third = s%10;
  fourth = s/10;
  if(first==sec||sec==third||third==fourth)
    cout<<"Bad";
  else
    cout<<"Good";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'first' was not declared in this scope
    8 |   first = s%1000;
      |   ^~~~~
a.cc:9:3: error: 'sec' was not declared in this scope
    9 |   sec = s%100;
      |   ^~~
a.cc:10:3: error: 'third' was not declared in this scope
   10 |   third = s%10;
      |   ^~~~~
a.cc:11:3: error: 'fourth' was not declared in this scope
   11 |   fourth = s/10;
      |   ^~~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
	string s;

	cin >> s;

	bool isgood = true;
	if (s[0] == s[1])
		isgood = false;
	if (s[1] == s[2])
		isgood = false;
	if (s[2] == s[3])
		isgood = false;

	if (isgood) {
		cout << "Good" << endl;
	}
	else {
		cout << "Bad" << endl;
	}


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

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i <(n) ; ++i)
using namespace std;
using ll = long long;
void self_max(int &a,int b){
  a = max(a,b);
}

int main(){
  int n = 4;
  car arr[n]; cin >> arr;
  rep(i,3){
    if(arr[i] == arr[i+1]){
      cout << "Bad" << endl;
    }
  }

  cout << "Good" << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'car' was not declared in this scope; did you mean 'char'?
   11 |   car arr[n]; cin >> arr;
      |   ^~~
      |   char
a.cc:11:22: error: 'arr' was not declared in this scope
   11 |   car arr[n]; cin >> arr;
      |                      ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before ')' token
    8 | for(int i=1;i<=3){
      |                 ^
      |                 ;
Language: C++

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

int main() {
  int n, ans = 0;
  string s;
  cin >> s;
  vector<int> a(n);
  //for(int i = 0; i < n; i++) cin >> a.at(i);
  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:12:22: error: expected ';' before 'endl'
   12 |   else cout << "Good" endl;
      |                      ^~~~~
      |                      ;
Language: C++

using namespace std;

int main()
{
    int x;
    int y;
    int z;
    int n;
    cin >>x>>y>>z>>n;
    if(x==y&&z==n&&y!=z&&y!=n)
    cout <<"Good"<<' ';
    else if(x==z&&y==n)
    cout <<"Good"<<' ';
    else if(x==n&&y==z)
    cout <<"Good"<<' ';
    else
    cout <<"Bad"<<' ';
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >>x>>y>>z>>n;
      |     ^~~
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:11:5: error: 'cout' was not declared in this scope
   11 |     cout <<"Good"<<' ';
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout <<"Good"<<' ';
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout <<"Good"<<' ';
      |     ^~~~
a.cc:15:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout <<"Bad"<<' ';
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
char a[4]={0};
for(int v=0;v<4;v++){
    cin>>a[v];
}

    if(a[0]==a[1]||a[1]==a[2]||a[2]==a[3]{
        cout<<"Bad";
    }
    else{
        cout<<"Good";
    }



    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:42: error: expected ';' before '{' token
   15 |     if(a[0]==a[1]||a[1]==a[2]||a[2]==a[3]{
      |                                          ^
      |                                          ;
a.cc:18:5: error: expected primary-expression before 'else'
   18 |     else{
      |     ^~~~
a.cc:17:6: error: expected ')' before 'else'
   17 |     }
      |      ^
      |      )
   18 |     else{
      |     ~~~~
a.cc:15:7: note: to match this '('
   15 |     if(a[0]==a[1]||a[1]==a[2]||a[2]==a[3]{
      |       ^
Language: C++

#include <stdc++.h>

using namespace std;


int main() {
    
    // cinを高速にするためのおまじない
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    //Write code below
    
    string str;
    
    cin >> str;
    
    for (int i = 0; i < 3; i++) {
        if(str.at(i) == str.at(i + 1)) {
            cout << "Bad" << endl;
            exit(0);
        }
    }
    
    cout << "Good" << endl;

}


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

#include <bits/stdc++.h>
using namespace std;
typedef long long int lint;

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";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected ';' before 'return'
   10 |             cout << "Bad"
      |                          ^
      |                          ;
   11 |             return 0;
      |             ~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
 	string s;cin>>s;
  	bool check = false;
    for(int i=0;i<s.size()-1;++i)
    {
     	if(s[i]==s[i+1]
           check = true;
    }
    
           if(check)cout<<"Bad";
           else cout<<"Good";
  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before 'check'
    8 |         if(s[i]==s[i+1]
      |                        ^
      |                        ;
    9 |            check = true;
      |            ~~~~~        
a.cc:10:5: error: expected primary-expression before '}' token
   10 |     }
      |     ^
a.cc:9:25: error: expected ')' before '}' token
    9 |            check = true;
      |                         ^
      |                         )
   10 |     }
      |     ~                    
a.cc:8:11: note: to match this '('
    8 |         if(s[i]==s[i+1]
      |           ^
a.cc:10:5: error: expected primary-expression before '}' token
   10 |     }
      |     ^
Language: C++

#include <iostream>

usign namespace std;

int main(void){
  int s, a = -1;

  for(i = 0; i < 4; i++){
    cin >> s;
    if(s == a){
      cout << 'Bad'
      break;
    }
    a = s;
  }
  if(i == 4){
    cout << 'Good'
  }
  return 0;
}


Compiler output:
a.cc:11:15: warning: multi-character character constant [-Wmultichar]
   11 |       cout << 'Bad'
      |               ^~~~~
a.cc:17:13: warning: multi-character character constant [-Wmultichar]
   17 |     cout << 'Good'
      |             ^~~~~~
a.cc:3:1: error: 'usign' does not name a type
    3 | usign namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i = 0; i < 4; i++){
      |       ^
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin >> s;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |       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:16:6: error: 'i' was not declared in this scope
   16 |   if(i == 4){
      |      ^
a.cc:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     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++

#include <cmath>
#include <iostream>
#include <functional>
#include <string>
#include <sstream>
#include <vector>
#include <algorithm>
#include <stdio.h>
using namespace std;

int main(){    
  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;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: 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 '()' ?)
   15 |   for(int i=0;i<S.length-1;i++){
      |                 ~~^~~~~~
      |                         ()
Language: C

#include <stdio.h>
int main()
{
	int n,c=0,p=0;
	scanf("%d",&n);
	int a[1000000]={0};
	while(n>0)
	{
		a[i]=n%10;
		i++;
		n=n/10;
		c++;
	}
	for(int i=1;i<c;i++)
	{
		if(a[i]==a[i-1])
		{
			p=1;
			printf("Bad\n");
			break;
		}
	}
	if(p==0)
	{
		printf("Good\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:19: error: 'i' undeclared (first use in this function)
    9 |                 a[i]=n%10;
      |                   ^
main.c:9:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void)

{
int i;
  int str[10];

  for(i=0;i<4;i++)
    scanf("%d",str);
  
  if(str[0]==str[1]||str[1]==str[2]||str[2]=str[3])
    puts("Bad");
  else 
    puts("Good");
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:44: error: lvalue required as left operand of assignment
   11 |   if(str[0]==str[1]||str[1]==str[2]||str[2]=str[3])
      |                                            ^
Language: C

#include<stdio.h>
int main(void)

{
int i;

  for(i=0;i<4;i++)
    scanf("%d",str);
  
  if(str[0]==str[1]||str[1]==str[2]||str[2]=str[3])
    puts("Bad");
  else 
    puts("Good");
  
  return 0;
}


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

/*6.22.a.c*/
#include <sutdio.h>
#define N (4)
int main()
{
  int s[N];
  int i;
  int f=0;
  for(i=N-1;i>=0;--i)
  {
    scanf ("%d", &s[i];
  }
  for(i=N-1;i>=1;--i)
    {
      if(s[n]==s[n-1])
        {
          f=1;
        }
    }
  if(f==1)
  {
    printf("Bad");
  }
  else
  {
    printf("Good");
  }

return 0;
}

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

/*6.22.a.c*/
#include <sutdio.h>

int main()
{
  int s[5];
  int f=0
  scanf ("%4d", s);

  for(n=0;n>=2;i++)
    {
      if(s[n]==s[n+1])
        {
          f=1;
        }
    }
  if(f==1)
  {
    printf("Bad");
  }
  else
  {
    printf("Good");
  }

return 0;
}


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

    #include<stdio.h>
    void main()
    {
    char s[4],p=0;
      scanf("%s",s);
      for(int i=0;i<4;i++)
      {
      if(a[i+1]-a[i] == 0) {p=2; break;}
      
      }
      (p==2)?(printf("Bad")):(printf("Good"));
    }

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

#include<stdio.h>
void main()
{
char s[4],p=0;
  scanf("%s",s);
  for(int i=1;i<4;i++)
  {
  if(a[i+1]-a[i] == 0) {p=2; break;}
  
  }
  (p==2)?(printf("Bad")):(printf("Good"));
}

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

#include<stdio.h>
int main()
{
  int n;
  int flag=1;
  scanf("%d",&n);
  for(int i=0;i<3;i++)
  {
    if(a[i]==a[i+1])
    {
      flag=0;
      break;
    }
  }
    if(flag==1)
      printf("Good\n");
    else
      printf("Bad\n");
    return 0;
  }

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'a' was not declared in this scope
    9 |     if(a[i]==a[i+1])
      |        ^
a.cc:19:4: error: expected '}' at end of input
   19 |   }
      |    ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:10:28: error: expected ')' before ';' token
   10 |    if (pass[i] == pass[i+1];
      |       ~                    ^
      |                            )
main.c:15:3: error: expected expression before '}' token
   15 |   }
      |   ^
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>
#include <ios>     
#include <iomanip> 

using namespace std;
#define inputInt(a) int a; cin >> a; 
#define inputInt2(a,b) int a; int b; cin >> a >> b; 
#define inputInt3(a,b,c) int a; int b; int c; cin >> a >> b >> c;
#define inputLong(a) long a;cin >> a; 
#define inputIntArray(a,N) int a[N];for(int i=0;i<N;i++){cin >> a[i];}
#define inputLongArray(a,N) long a[N];for(int i=0;i<N;i++){cin >> a[i];}
#define inputIntArray2(a,b,N) int a[N]; int b[N]; for(int i=0;i<N;i++){cin >> a[i] >> b[i];}
#define output(answer) cout << answer << endl;
#define fN(i,N)    for(int i=0; i<N; i++)
#define fSE(i,s,e) for(int i=s; i<=e; i++)
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:30:18: error: expected ';' before '}' token
   30 |       ans = "Bad"
      |                  ^
      |                  ;
   31 |     }
      |     ~
Language: C++

>+++>>,<+++[->>,[-<->>+<]<[[-]<<->>]>>[-<<+>>]<<<]+<[[-]>++++++++++[-<++++++>]<.[--<+++>]<--.+++>]>[++++++++[-<++++++++>]<-.+++[-->+++<]>..[-<<+>>]<<----------->>]]<<.

Compiler output:
a.cc:1:1: error: expected unqualified-id before '>' token
    1 | >+++>>,<+++[->>,[-<->>+<]<[[-]<<->>]>>[-<<+>>]<<<]+<[[-]>++++++++++[-<++++++>]<.[--<+++>]<--.+++>]>[++++++++[-<++++++++>]<-.+++[-->+++<]>..[-<<+>>]<<----------->>]]<<.
      | ^
Language: C

#include <stdio.h>

int main (void){
  
  char a[4];
  scanf("%s",a);
  
  int n=0,flag=0;
  for(n=0;n<3:n++){
    if( strcmp(a[n],a[n+1])==0 ){
      flag=1;
      break;
    }
  }
  
  if(flag==1) printf("Bad\n");
  if(flag==0) printf("Good\n");
  
  return 0;
  
}


Compiler output:
main.c: In function 'main':
main.c:9:14: error: expected ';' before ':' token
    9 |   for(n=0;n<3:n++){
      |              ^
      |              ;
main.c:10:9: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   10 |     if( strcmp(a[n],a[n+1])==0 ){
      |         ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:10:17: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   10 |     if( strcmp(a[n],a[n+1])==0 ){
      |                ~^~~
      |                 |
      |                 char
main.c:10:17: note: expected 'const char *' but argument is of type 'char'
main.c:10:22: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   10 |     if( strcmp(a[n],a[n+1])==0 ){
      |                     ~^~~~~
      |                      |
      |                      char
main.c:10:22: note: expected 'const char *' but argument is of type 'char'
Language: C

#include <stdio.h>

int main (void){
  
  char a[4];
  scanf("%s",&a);
  
  int n=0,flag=0;
  for(n=0;n<3:n++){
    if( strcmp(a[n],a[n+1])==0 ){
      flag=1;
      break;
    }
  }
  
  if(flag==1) printf("Bad\n");
  if(flag==0) printf("Good\n");
  
  return 0;
  
}


Compiler output:
main.c: In function 'main':
main.c:9:14: error: expected ';' before ':' token
    9 |   for(n=0;n<3:n++){
      |              ^
      |              ;
main.c:10:9: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   10 |     if( strcmp(a[n],a[n+1])==0 ){
      |         ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:10:17: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   10 |     if( strcmp(a[n],a[n+1])==0 ){
      |                ~^~~
      |                 |
      |                 char
main.c:10:17: note: expected 'const char *' but argument is of type 'char'
main.c:10:22: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   10 |     if( strcmp(a[n],a[n+1])==0 ){
      |                     ~^~~~~
      |                      |
      |                      char
main.c:10:22: note: expected 'const char *' but argument is of type 'char'
Language: C

#includce <stdoio.h>

int main (void){
  
  char a[4];
  scanf("%s",&a);
  
  int n=0,flag=0;
  for(n=0;n<3:n++){
    if( strcmp(a[n],a[n+1])==0 ){
      flag=1;
      break;
    }
  }
  
  if(flag==1) printf("Bad\n");
  if(flag==0) printf("Good\n");
  
  return 0;
  
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #includce; did you mean #include?
    1 | #includce <stdoio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   scanf("%s",&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #includce <stdoio.h>
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%s",&a);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:14: error: expected ';' before ':' token
    9 |   for(n=0;n<3:n++){
      |              ^
      |              ;
main.c:10:9: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   10 |     if( strcmp(a[n],a[n+1])==0 ){
      |         ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strcmp'
  +++ |+#include <string.h>
    1 | #includce <stdoio.h>
main.c:10:17: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   10 |     if( strcmp(a[n],a[n+1])==0 ){
      |                ~^~~
      |                 |
      |                 char
main.c:10:17: note: expected 'const char *' but argument is of type 'char'
main.c:10:22: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   10 |     if( strcmp(a[n],a[n+1])==0 ){
      |                     ~^~~~~
      |                      |
      |                      char
main.c:10:22: note: expected 'const char *' but argument is of type 'char'
main.c:16:15: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   16 |   if(flag==1) printf("Bad\n");
      |               ^~~~~~
main.c:16:15: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:15: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:16:15: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:15: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |   if(flag==0) printf("Good\n");
      |               ^~~~~~
main.c:17:15: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

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


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

#include <iostream>
using namespace std;

int main() {
  int s, bad; // s = security
  cin >> s;

  for(int i = 0; i < 4; i++){
      if(s[i] == s[i++]){
          bad++;
          break;
        }
    }
if (bad > 0){ 
cout << "Bad";
}
else{
    cout << "Good";
}
}


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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
typedef pair<ll,ll> P;
#define M 1000000007
int main(){
  string s;
  cin>>s;
  cout<<(s[0]==s[1]||s[1]==s[2]||s[2]==s[3]?"Bad":Good");}

Compiler output:
a.cc:9:55: warning: missing terminating " character
    9 |   cout<<(s[0]==s[1]||s[1]==s[2]||s[2]==s[3]?"Bad":Good");}
      |                                                       ^
a.cc:9:55: error: missing terminating " character
    9 |   cout<<(s[0]==s[1]||s[1]==s[2]||s[2]==s[3]?"Bad":Good");}
      |                                                       ^~~~
a.cc: In function 'int main()':
a.cc:9:51: error: 'Good' was not declared in this scope
    9 |   cout<<(s[0]==s[1]||s[1]==s[2]||s[2]==s[3]?"Bad":Good");}
      |                                                   ^~~~
a.cc:9:55: error: expected ')' at end of input
    9 |   cout<<(s[0]==s[1]||s[1]==s[2]||s[2]==s[3]?"Bad":Good");}
      |         ~                                             ^
      |                                                       )
a.cc:9:55: error: expected '}' at end of input
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

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

#define rep(i,a,b) for(int (i) = (a) ; (i) < (b) ; (i) ++)
#define scin(a) scanf("%d",&a);
#define scdo(a) scanf("%lf",&a);
#define scch(a) scanf("%s",a);
#define anin(a) printf("%d\n",a);
#define ando(a) printf("%lf\n",a);
#define anch(a) printf("%s\n",a);

int main(void){
	char mozi[4],ans[5];
	strcpy(ans,"Good\0");
	scch(mozi)
	rep(i,0,3){
		if(strcmp(mozi[i],mozi[i + 1]) == 0){
			strcpy(ans,"Bad\0");
			break;
		}
	}
	anch(ans)
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:33: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   19 |                 if(strcmp(mozi[i],mozi[i + 1]) == 0){
      |                           ~~~~~~^
      |                                 |
      |                                 char
In file included from a.cc:4:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:19:45: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   19 |                 if(strcmp(mozi[i],mozi[i + 1]) == 0){
      |                                   ~~~~~~~~~~^
      |                                             |
      |                                             char
/usr/include/string.h:156:50: note:   initializing argument 2 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
Language: C

int main(void) {

	char S[4];

	scanf("%s", S);

	for (int i = 0; i < 3; ++i) {
		for (int j = i + 1; j < 3; ++j) {
			if (S[i] == S[j]) {
				puts("Good");
				goto loop_end;
			}
		}
	}

  	for (int i = 0; i < 3; ++i) {
		for (int j = i + 1; j < 3; ++j) {
			if (!(S[i] == S[j])) {
				puts("Bad");
				goto loop2_end;
			}
		}
	}
	loop_end:
    loop2_end;
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf("%s", S);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void) {
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%s", S);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:33: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
   10 |                                 puts("Good");
      |                                 ^~~~
main.c:10:33: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:25:5: error: 'loop2_end' undeclared (first use in this function)
   25 |     loop2_end;
      |     ^~~~~~~~~
main.c:25:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:33: error: label 'loop2_end' used but not defined
   20 |                                 goto loop2_end;
      |                                 ^~~~
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);
  }
  
  for(int i=0;i<4;i++){
    if(S.at(i) == S.at(i+1){
      cout << "Bad" << endl;
    }else{
      cout << "Good" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: expected ')' before '{' token
   11 |     if(S.at(i) == S.at(i+1){
      |       ~                    ^
      |                            )
a.cc:16:1: error: expected primary-expression before '}' token
   16 | }
      | ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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




Compiler output:
a.cc:1:30: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h>using namespace std;int main(){string s;cin>>s;bool a=s[0]==s[1]||s[1]==s[2]||s[2]==s[3];a?cout<<"Bad":cout<<"Good";}
      |                              ^~~~~~~~~
a.cc:1:9: fatal error: bits/stdc++.h>usin: No such file or directory
    1 | #include<bits/stdc++.h>using namespace std;int main(){string s;cin>>s;bool a=s[0]==s[1]||s[1]==s[2]||s[2]==s[3];a?cout<<"Bad":cout<<"Good";}
      |         ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
int main()
{
    int n,x=0,a=0;
    scanf("%d",&n);
    while(n/10!=0)
    {
x=n%10;
n=n/10;
        if(x==n%10)
        {
            a=1;
            break;
        }
    }
    if(x==n%10)
    {
        a=1;
    }
    if(a==0)
        printf("Good");
    else
        printf("Bad");


Compiler output:
main.c: In function 'main':
main.c:23:9: error: expected declaration or statement at end of input
   23 |         printf("Bad");
      |         ^~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int N,A;cin>>N>>A;
  int L=A;int R=A+N-1;
  int eat;
  if (R<0)eat=R;
  else if (L>0)eat=L;
  else eat=0;
  int ans =(L+R)*(R-L+1)/2-eat;
  }
  cout<<ans<<endl;
}
  
  


Compiler output:
a.cc:12:3: error: 'cout' does not name a type
   12 |   cout<<ans<<endl;
      |   ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
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";
     return 0;
    }
  cout<<"Good";
  return 0;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: request for member 'at' in 'S', which is of non-class type 'int'
    7 |   if(!(S.at(0)==S.at(1)) &&!(S.at(1)==S.at(2))&&!(S.at(2)==S.at(3))){
      |          ^~
a.cc:7:19: error: request for member 'at' in 'S', which is of non-class type 'int'
    7 |   if(!(S.at(0)==S.at(1)) &&!(S.at(1)==S.at(2))&&!(S.at(2)==S.at(3))){
      |                   ^~
a.cc:7:32: error: request for member 'at' in 'S', which is of non-class type 'int'
    7 |   if(!(S.at(0)==S.at(1)) &&!(S.at(1)==S.at(2))&&!(S.at(2)==S.at(3))){
      |                                ^~
a.cc:7:41: error: request for member 'at' in 'S', which is of non-class type 'int'
    7 |   if(!(S.at(0)==S.at(1)) &&!(S.at(1)==S.at(2))&&!(S.at(2)==S.at(3))){
      |                                         ^~
a.cc:7:53: error: request for member 'at' in 'S', which is of non-class type 'int'
    7 |   if(!(S.at(0)==S.at(1)) &&!(S.at(1)==S.at(2))&&!(S.at(2)==S.at(3))){
      |                                                     ^~
a.cc:7:62: error: request for member 'at' in 'S', which is of non-class type 'int'
    7 |   if(!(S.at(0)==S.at(1)) &&!(S.at(1)==S.at(2))&&!(S.at(2)==S.at(3))){
      |                                                              ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >>N;
  int a,b,c,d;
  a = N/1000;
  N -= a*1000;
  b = N/100;
  N -= b*100;
  c = N/10;
  N -= c*10;
  d = N;
  bool ans = 0;//0=GOOD 1= BAD
  if(a == b){
    ans = 1;
  }
  if(b == c){
    ans = 1;
  }
  if(c == d){
    ans = 1;
  }
  cout <<ans ? "Good" :"Bad"<<endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:25:29: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   25 |   cout <<ans ? "Good" :"Bad"<<endl;
      |                        ~~~~~^~~~~~
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));{
    cout<<"Bad"<<endl;
  }else {
    cout<<"Good"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:4: error: 'else' without a previous 'if'
   10 |   }else {
      |    ^~~~
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));{
    cout<<"Bad"<<endl;
  }
  else {
    cout<<"Good"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else {
      |   ^~~~
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: In function 'int main()':
a.cc:6:10: error: expected ';' before 'if'
    6 |  cin >> S
      |          ^
      |          ;
    7 |  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) ) {
      |  ~~       
a.cc:10:2: error: 'else' without a previous 'if'
   10 |  else{
      |  ^~~~
Language: C++

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

int main() {
 string S;
 cin >> S;
 if ( S.at(1) != S.at(2) && S.at(1) != S.at(3) && S.at(1) != S.at(4) S.at(2) != S.at(3) && S.at(2) != S.at(4) && S.at(3) != S.at(4) ) {
  cout << "Good" << endl;
 }
 else{
  cout << "Bad" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:69: error: expected ')' before 'S'
    7 |  if ( S.at(1) != S.at(2) && S.at(1) != S.at(3) && S.at(1) != S.at(4) S.at(2) != S.at(3) && S.at(2) != S.at(4) && S.at(3) != S.at(4) ) {
      |     ~                                                               ^~
      |                                                                     )
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next().toUpperCase();
        char a[] = s.toCharArray();
         int count = 0 ;
        for(int j = 0 ; j<a.length ; j++)
        {
        for(int  i= 1+j; i<a.length ; i++)
        {
              if(a[j]==a[i]){
                 count++;
                   break ;
              }  

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

#include<stdio.h>
int main(void){
  char s[4];
  scanf("%s",&s);
  int count=0;
  
  for(int i=0;i<4;i++){
    for(int j=i;j<4;j++){
      if(s[i]==s[j]){
        count++;
      }
    }
  }
  if(count==0){
    printf("Good");
  }else{
    pritnf("Bad");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   17 |     pritnf("Bad");
      |     ^~~~~~
      |     printf
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
using std::cin;
using std::cout;
using std::endl;
using std::string;

int main(void){
    string s;
    cin >> s;
    bool isgood = true;
    if (s[0] == s[1]) isgood = fales;
    if (s[1] == s[2]) isgood = fales;
    if (s[2] == s[3]) isgood = fales;
    
    if (isgood) {
        cout << "Good" << endl;
    } else {
        cout << "Bat" << endl;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:32: error: 'fales' was not declared in this scope
   14 |     if (s[0] == s[1]) isgood = fales;
      |                                ^~~~~
a.cc:15:32: error: 'fales' was not declared in this scope
   15 |     if (s[1] == s[2]) isgood = fales;
      |                                ^~~~~
a.cc:16:32: error: 'fales' was not declared in this scope
   16 |     if (s[2] == s[3]) isgood = fales;
      |                                ^~~~~
Language: C++

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

int main(){
    string s;
    cin >> s;
    bool isgood = true;
    if (s[0] == s[1]) isgood = fales;
    if (s[1] == s[2]) isgood = fales;
    if (s[2] == s[3]) isgood = fales;
    
    if (isgood) {
        cout << "Good" << endl;
    } else {
        cout << "Bat" << endl;
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:32: error: 'fales' was not declared in this scope
    9 |     if (s[0] == s[1]) isgood = fales;
      |                                ^~~~~
a.cc:10:32: error: 'fales' was not declared in this scope
   10 |     if (s[1] == s[2]) isgood = fales;
      |                                ^~~~~
a.cc:11:32: error: 'fales' was not declared in this scope
   11 |     if (s[2] == s[3]) isgood = fales;
      |                                ^~~~~
Language: C++

#include "pch.h"
#include <iostream>
#include <string.h>
#include <string>
using namespace std;
int main()
{
	string in;
	cin >> in;
	if (in[0] == in[1]) { cout << "Bad"; }
	else {
		if(in[1] == in[2]){ cout << "Bad"; }
		else {
			if (in[2] == in[3]) { cout << "Bad"; }
			else {
				cout << "Good";
			}
		}
	}
	
}


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

#include <bits/stdc++.h>

using namespace std;

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

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

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

int main() {
	
  vector<int> vec(4) ;
  
  bool flag = true ; 
  for (int i = 0 ; i<3 ; i++ ) {
    if ( vec.at(i) == vec.at(i+1) ) flag = false; 

  if ( flag ) cout << "Good" ;
  else cout << "Bad" ;

}

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

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

int main() {
  int S;
  cin >> S;
  if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3] || S[3] == S[4]) puts("Bad");
  else puts("Good");

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: invalid types 'int[int]' for array subscript
    8 |   if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3] || S[3] == S[4]) puts("Bad");
      |        ^
a.cc:8:16: error: invalid types 'int[int]' for array subscript
    8 |   if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3] || S[3] == S[4]) puts("Bad");
      |                ^
a.cc:8:24: error: invalid types 'int[int]' for array subscript
    8 |   if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3] || S[3] == S[4]) puts("Bad");
      |                        ^
a.cc:8:32: error: invalid types 'int[int]' for array subscript
    8 |   if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3] || S[3] == S[4]) puts("Bad");
      |                                ^
a.cc:8:40: error: invalid types 'int[int]' for array subscript
    8 |   if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3] || S[3] == S[4]) puts("Bad");
      |                                        ^
a.cc:8:48: error: invalid types 'int[int]' for array subscript
    8 |   if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3] || S[3] == S[4]) puts("Bad");
      |                                                ^
a.cc:8:56: error: invalid types 'int[int]' for array subscript
    8 |   if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3] || S[3] == S[4]) puts("Bad");
      |                                                        ^
a.cc:8:64: error: invalid types 'int[int]' for array subscript
    8 |   if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3] || S[3] == S[4]) puts("Bad");
      |                                                                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[4];
  for(int i=0;i<4;i++){
    cin>>a[i];
  }
  sort(a.begin(),a.end());
  if(a[0]!=a[1] && a[1]!=a[2] && a[2]!=a[3]) cout<<"Good"<<endl;
  else cout<<"Bad"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: request for member 'begin' in 'a', which is of non-class type 'int [4]'
    8 |   sort(a.begin(),a.end());
      |          ^~~~~
a.cc:8:20: error: request for member 'end' in 'a', which is of non-class type 'int [4]'
    8 |   sort(a.begin(),a.end());
      |                    ^~~
Language: C

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected ';' before 'return'
   10 |             cout << "Bad"
      |                          ^
      |                          ;
   11 |             return 0;
      |             ~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected ';' before 'return'
   10 |             cout << "Bad"
      |                          ^
      |                          ;
   11 |             return 0;
      |             ~~~~~~
Language: C++

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

int main() {
 char a,b,c,d;
  cin>>a>>b>>c>>d;
  if(a == b || b==c  ¥¥ c==d)  cout<<"Bad"<<endl;
 
  else cout<<"Good"<<endl;
}

Compiler output:
a.cc:7:22: error: extended character ¥ is not valid in an identifier
    7 |   if(a == b || b==c  ¥¥ c==d)  cout<<"Bad"<<endl;
      |                      ^
a.cc:7:22: error: extended character ¥ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:20: error: expected ')' before '\U000000a5\U000000a5'
    7 |   if(a == b || b==c  ¥¥ c==d)  cout<<"Bad"<<endl;
      |     ~              ^ ~~
      |                    )