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

S=str(input())
s1=S[0:1]
s2=S[1:2]
s3=S[2:3]
s4=S[3:4]
if s1==s2:
    print('Bad')
elif s2==s3:
    print('Bad')
elif s3==s4:
    print('Bad')
else:
    print('Good')


Compiler output:
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
    7 |     print('Bad')
      |           ^~~~~
a.cc:9:11: warning: multi-character character constant [-Wmultichar]
    9 |     print('Bad')
      |           ^~~~~
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:1:1: error: 'S' does not name a type
    1 | S=str(input())
      | ^
Language: C

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

//最大公約数を求める//
int gcd(int a,int b){
	int z;
	if(a!=b){
		if(a>b){
			z = gcd(a-b,b);
		}else{
			z = gcd(a,b-a);
		}
	}else{
		z = a;
		return z;
	}
	return;
}

int main(void){
	long long int a, b, c, d;
	scanf("%lld %lld %lld %lld",&a,&b,&c,&d);
	long long int Nac, Nad, Nbc, Nbd, Nae, Nbe;
	long long int Na, Nb;
	long long int numa, numb;
	long long int e;
	long long int ans;
	e = (c*d)/gcd(c,d);
	if(a%c==0){
		Nac = a/c;
	}else{
		Nac = a/c+1;
	}
	if(a%d==0){
		Nad = a/d;
	}else{
		Nad = a/d+1;
	}
	if(a%e==0){
		Nae = a/e;
	}else{
		Nae = a/e+1;
	}
	numa = Nac+Nad-Nae;
	
	if(b%c==0){
		Nbc = b/c;
	}else{
		Nbc = b/c+1;
	}
	if(b%d==0){
		Nbd = b/d;
	}else{
		Nbd = b/d+1;
	}
	if(b%e==0){
		Nbe = b/e;
	}else{
		Nbe = b/e+1;
	}
	numb = Nbc+Nbd-Nbe;
	
	ans = (b-a)-(numb-numa);
	printf("%lld",ans);
}

Compiler output:
main.c: In function 'gcd':
main.c:20:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   20 |         return;
      |         ^~~~~~
main.c:8:5: note: declared here
    8 | int gcd(int a,int b){
      |     ^~~
Language: C

//最大公約数を求める//
int gcd(int a,int b){
	int z;
	if(a!=b){
		if(a>b){
			z = gcd(a-b,b);
		}else{
			z = gcd(a,b-a);
		}
	}else{
		z = a;
		return z;
	}
	return;
}

int main(void){
	long long int a, b, c, d;
	scanf("%lld %lld %lld %lld",&a,&b,&c,&d);
	long long int Nac, Nad, Nbc, Nbd, Nae, Nbe;
	long long int Na, Nb;
	long long int numa, numb;
	long long int e;
	long long int ans;
	e = (c*d)/gcd(c,d);
	if(a%c==0){
		Nac = a/c;
	}else{
		Nac = a/c+1;
	}
	if(a%d==0){
		Nad = a/d;
	}else{
		Nad = a/d+1;
	}
	if(a%e==0){
		Nae = a/e;
	}else{
		Nae = a/e+1;
	}
	numa = Nac+Nad-Nae;
	
	if(b%c==0){
		Nbc = b/c;
	}else{
		Nbc = b/c+1;
	}
	if(b%d==0){
		Nbd = b/d;
	}else{
		Nbd = b/d+1;
	}
	if(b%e==0){
		Nbe = b/e;
	}else{
		Nbe = b/e+1;
	}
	numb = Nbc+Nbd-Nbe;
	
	ans = (b-a)-(numb-numa);
	printf("%lld",ans);
}

Compiler output:
main.c: In function 'gcd':
main.c:14:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   14 |         return;
      |         ^~~~~~
main.c:2:5: note: declared here
    2 | int gcd(int a,int b){
      |     ^~~
main.c: In function 'main':
main.c:19:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   19 |         scanf("%lld %lld %lld %lld",&a,&b,&c,&d);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | //最大公約数を求める//
main.c:19:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   19 |         scanf("%lld %lld %lld %lld",&a,&b,&c,&d);
      |         ^~~~~
main.c:19:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:61:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   61 |         printf("%lld",ans);
      |         ^~~~~~
main.c:61:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:61:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:61:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<iostream>
#include<string>
using namespace std;
string s;
int main(){
	getline(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:7:16: error: expected ')' before '$$'
    7 |   if(s[0]!=s[1] $$ s[1]!=s[2] && s[2]!=s[3])cout<<"Good"<<endl;
      |     ~          ^~~
      |                )
Language: C++

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

int main(){
  string S, ans;
  cin >> S;
  
  repeat(i,3){
    if(S[i]==S[i+1]){
      ans = "Bad";
    }else{
      ans = "Good";
    }
  cout << ans << endl;
}


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

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

int main(){
  string S, ans;
  cin >> S;
  
  repeat(i,3){
    if(s[i]==s[i+1]){
      ans = "Bad";
    }else{
      ans = "Good";
    }
  cout << ans << endl;
}


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

#include <iostream>
#include <string>
using namespace std;
int main()
{
	int flag=0;
	string s;
	cin >> s;
	for (int j = 0; j<3; j++)
	{
		if (s.at(j) == s.at(J+1)) flag++;
	}
	if (flag == 0) cout << "Good";
	else cout << "Bad";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:37: error: 'J' was not declared in this scope
   11 |                 if (s.at(j) == s.at(J+1)) flag++;
      |                                     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:3: error: expected declaration or statement at end of input
   14 |   }
      |   ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:9: error: subscripted value is neither array nor pointer nor vector
    9 |     if(a[i]==a[i+1]){
      |         ^
main.c:9:15: error: subscripted value is neither array nor pointer nor vector
    9 |     if(a[i]==a[i+1]){
      |               ^
main.c:14:3: error: expected declaration or statement at end of input
   14 |   }
      |   ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected expression before ']' token
    7 |   scanf("%s",&a[]);
      |                 ^
main.c:14:3: error: expected declaration or statement at end of input
   14 |   }
      |   ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:3: error: expected declaration or statement at end of input
   14 |   }
      |   ^
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]) out << "Good" << endl;
	else cout << "No" << endl;
}

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

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

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

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

#include <iostream>
#include <string.h>
#include <algorithm>
typedef long long ll;
using namespace std;

int gcd( int m, int n )
{
	// 引数に０がある場合は０を返す
	if ( ( 0 == m ) || ( 0 == n ) )
		return 0;
	
    int p=0;
	// ユークリッドの方法
	while( m > n )
	{
        m = m/2;
        p+=1;
	}
	return p;
}//gcd

int main()
{
    char s[10];
  	cin >> s;
  	for(int i=0;i<3;i++)
    {
		if(s[i] == s[i+1])
        {
          cout << "Bad";
          break;
        }else if(i == 2)
        {
          cout << "Good";
        }
}

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

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

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




Compiler output:
a.cc: In function 'int main()':
a.cc:14:80: error: expected ')' before '{' token
   14 |   else if ((A.at(0) != A.at(1)) && (A.at(1) != A.at(2)) && (A.at(2) != A.at(3)){
      |           ~                                                                    ^
      |                                                                                )
a.cc:20:1: error: expected primary-expression before '}' token
   20 | }
      | ^
Language: C++

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string s;
      |         ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:6:17: error: 'cin' was not declared in this scope
    6 |                 cin >> s;
      |                 ^~~
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:6:24: error: 's' was not declared in this scope
    6 |                 cin >> s;
      |                        ^
a.cc:8:13: error: 's' was not declared in this scope
    8 |         if (s[1] == s[2]) {
      |             ^
a.cc:9:17: error: 'cout' was not declared in this scope
    9 |                 cout << "Bad";
      |                 ^~~~
a.cc:9:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout << "Bad";
      |                 ^~~~
a.cc:12:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:17: error: 'cout' was not declared in this scope
   15 |                 cout << "Bad";
      |                 ^~~~
a.cc:15:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:17: error: 'cout' was not declared in this scope
   18 |                 cout << "Good";
      |                 ^~~~
a.cc:18:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main() {
	string s;
	for (int i = 0; i < 4; i++) {
		cin >> s;
	}
	if (s[1] == s[2]) {
		cout << "Bad";
	}
	else if (s[1] == s[3]) {
		cout << "Bad";
	}
	else if (s[1] == s[4]) {
		cout << "Bad";
	}
	else if (s[2] == s[3]) {
		cout << "Bad";
	}
	else if (s[2] == s[4]) {
		cout << "Bad";
	}
	else if (s[3] == s[4]) {
		cout << "Bad";
	}
	else {
		cout << "Yes";
	}
}

Compiler output:
a.cc:3:9: error: empty filename in #include
    3 | #include<>
      |         ^~
Language: C++

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


Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    5 |   if(s.at[0]==s.at[1]){
      |          ^
a.cc:5:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    5 |   if(s.at[0]==s.at[1]){
      |                   ^
a.cc:9:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    9 |   if(s.at[1]==s.at[2]){
      |          ^
a.cc:9:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    9 |   if(s.at[1]==s.at[2]){
      |                   ^
a.cc:13:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   13 |   if(s.at[2]==s.at[3]){
      |          ^
a.cc:13:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   13 |   if(s.at[2]==s.at[3]){
      |                   ^
Language: C++

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


Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    5 |   if(s.at[0]==s.at[1])cout<<"Bad"return 0;
      |          ^
a.cc:5:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    5 |   if(s.at[0]==s.at[1])cout<<"Bad"return 0;
      |                   ^
a.cc:5:29: error: unable to find string literal operator 'operator""return' with 'const char [4]', 'long unsigned int' arguments
    5 |   if(s.at[0]==s.at[1])cout<<"Bad"return 0;
      |                             ^~~~~~~~~~~
a.cc:6:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    6 |   if(s.at[1]==s.at[2])cout<<"Bad"return 0;
      |          ^
a.cc:6:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    6 |   if(s.at[1]==s.at[2])cout<<"Bad"return 0;
      |                   ^
a.cc:6:29: error: unable to find string literal operator 'operator""return' with 'const char [4]', 'long unsigned int' arguments
    6 |   if(s.at[1]==s.at[2])cout<<"Bad"return 0;
      |                             ^~~~~~~~~~~
a.cc:7:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    7 |   if(s.at[2]==s.at[3])cout<<"Bad"return 0;
      |          ^
a.cc:7:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    7 |   if(s.at[2]==s.at[3])cout<<"Bad"return 0;
      |                   ^
a.cc:7:29: error: unable to find string literal operator 'operator""return' with 'const char [4]', 'long unsigned int' arguments
    7 |   if(s.at[2]==s.at[3])cout<<"Bad"return 0;
      |                             ^~~~~~~~~~~
Language: C++

#include <iostream>
#include <string>
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 = false;
    if (s[1] == s[2]) isgood = false;
    if (s[2] == s[3]) isgood = false;
    if (isgood) { 22 cout << "Good" << endl;
    } else {
            cout << "Bad" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: expected ';' before 'cout'
   16 |     if (isgood) { 22 cout << "Good" << endl;
      |                     ^~~~~
      |                     ;
Language: C++

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

void check(char *S){
  for (int i = 1; i < strlen(S); i++){
    if(S[i] == S[i - 1]){
      return -1;
    }
  }
  return 0;
}

int main(){
  char S[5];
  cin >> S;
  if(check(&S) == 0){
    cout << 'Good' << endl;
  } else {
    cout << 'Bad' << endl;
  }
  
  return 0;
}

Compiler output:
a.cc:17:13: warning: multi-character character constant [-Wmultichar]
   17 |     cout << 'Good' << endl;
      |             ^~~~~~
a.cc:19:13: warning: multi-character character constant [-Wmultichar]
   19 |     cout << 'Bad' << endl;
      |             ^~~~~
a.cc: In function 'void check(char*)':
a.cc:7:14: error: return-statement with a value, in function returning 'void' [-fpermissive]
    7 |       return -1;
      |              ^~
a.cc:10:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
   10 |   return 0;
      |          ^
a.cc: In function 'int main()':
a.cc:16:12: error: cannot convert 'char (*)[5]' to 'char*'
   16 |   if(check(&S) == 0){
      |            ^~
      |            |
      |            char (*)[5]
a.cc:4:18: note:   initializing argument 1 of 'void check(char*)'
    4 | void check(char *S){
      |            ~~~~~~^
Language: C++

#include<bits/stdc+.h>

void check(char *S){
  for (int i = 1; i < strlen(S); i++){
    if(S[i] == S[i - 1]){
      return -1;
    }
  }
  return 0;
}

int main(){
  char S[5];
  cin >> S;
  if(check(&S) == 0){
    cout << 'Good' << endl;
  } else {
    cout << 'Bad' << endl;
  }
  
  return 0;
}

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

using namespace std;
int main(){
	
	vector<int> vec(4);
  for(int i=0; i<4; i++){
    cin>>vec.at(i);
  }
  sort(vec.begin(), s.end());
  if(vec[1]==vec[2] || vec[2]==vec[3] || vec[3]==vec[4]){
    cout<<"Bad"<<endl;
  }
  else{
    cout<<"Good"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'vector' was not declared in this scope
    4 |         vector<int> vec(4);
      |         ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:4:16: error: expected primary-expression before 'int'
    4 |         vector<int> vec(4);
      |                ^~~
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>vec.at(i);
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:6:10: error: 'vec' was not declared in this scope
    6 |     cin>>vec.at(i);
      |          ^~~
a.cc:8:8: error: 'vec' was not declared in this scope
    8 |   sort(vec.begin(), s.end());
      |        ^~~
a.cc:8:21: error: 's' was not declared in this scope
    8 |   sort(vec.begin(), s.end());
      |                     ^
a.cc:8:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |   sort(vec.begin(), s.end());
      |   ^~~~
      |   short
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"Bad"<<endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |     cout<<"Bad"<<endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout<<"Good"<<endl;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:19: error: 'endl' was not declared in this scope
   13 |     cout<<"Good"<<endl;
      |                   ^~~~
a.cc:13:19: 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;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    8 |   char ans = "Good";
      |              ^~~~~~
      |              |
      |              const char*
a.cc:11:31: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   11 |     if (s[i] == s[i+1]) ans = "Bad";
      |                               ^~~~~
      |                               |
      |                               const char*
Language: C

#include <stdio.h>
#include <string.h>
int main(){
  char S[5];
  scanf("%s",S);
  for(int i=0;i<3;i++){
  if(S[i]==S[i+1]){
  S="Bad";
    break;
  }else {
  S="Good";
  }
  }
  printf("%s",S);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:4: error: assignment to expression with array type
    8 |   S="Bad";
      |    ^
main.c:11:4: error: assignment to expression with array type
   11 |   S="Good";
      |    ^
Language: C

#include <stdio.h>
int main(){
  char S[5];
  scanf("%s",S);
  for(int i=0;i<3;i++){
  if(S[i]==S[i+1]){
  S="Bad";
    break;
  }else {
  S="Good";
  }
  }
  printf("%s",S);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:4: error: assignment to expression with array type
    7 |   S="Bad";
      |    ^
main.c:10:4: error: assignment to expression with array type
   10 |   S="Good";
      |    ^
Language: C

#include <stdio.h>
int main(){
  char S[5];
  scanf("%s",S);
  for(int i=0;i<3;i++){
  if(S[i]==S[i+1]){
  S='Bad';
    break;
  }else {
  S='Good';
  }
  }
  printf("%s",S);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: warning: multi-character character constant [-Wmultichar]
    7 |   S='Bad';
      |     ^~~~~
main.c:7:4: error: assignment to expression with array type
    7 |   S='Bad';
      |    ^
main.c:10:5: warning: multi-character character constant [-Wmultichar]
   10 |   S='Good';
      |     ^~~~~~
main.c:10:4: error: assignment to expression with array type
   10 |   S='Good';
      |    ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:5: warning: multi-character character constant [-Wmultichar]
    7 |   S='Bad';
      |     ^~~~~
main.c:7:4: error: assignment to expression with array type
    7 |   S='Bad';
      |    ^
main.c:10:5: warning: multi-character character constant [-Wmultichar]
   10 |   S='Good';
      |     ^~~~~~
main.c:10:4: error: assignment to expression with array type
   10 |   S='Good';
      |    ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:4: error: assignment to expression with array type
    7 |   S="Bad";
      |    ^
main.c:10:4: error: assignment to expression with array type
   10 |   S="Good";
      |    ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:16: error: expected expression before ']' token
    4 |   scanf("%s",S[]);
      |                ^
main.c:7:5: error: expected expression before ']' token
    7 |   S[]='Bad';
      |     ^
main.c:7:7: warning: multi-character character constant [-Wmultichar]
    7 |   S[]='Bad';
      |       ^~~~~
main.c:10:5: error: expected expression before ']' token
   10 |   S[]='Good';
      |     ^
main.c:10:7: warning: multi-character character constant [-Wmultichar]
   10 |   S[]='Good';
      |       ^~~~~~
main.c:13:17: error: expected expression before ']' token
   13 |   printf("%s",S[]);
      |                 ^
Language: C

#include <stdio.h>
int main(){
  char S[4];
  scanf("%s",&S);
  for(int i=0;i<3;i++){
  if(S[i]==S[i+1]){
  S='Bad';
    break;
  }else {
  S='Good';
  }
  }
  printf("%s",&S);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: warning: multi-character character constant [-Wmultichar]
    7 |   S='Bad';
      |     ^~~~~
main.c:7:4: error: assignment to expression with array type
    7 |   S='Bad';
      |    ^
main.c:10:5: warning: multi-character character constant [-Wmultichar]
   10 |   S='Good';
      |     ^~~~~~
main.c:10:4: error: assignment to expression with array type
   10 |   S='Good';
      |    ^
Language: C++

#include<stdio.h>
#include<iostream>
#include<algorithm>
#include<string>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<vector>
#include<queue>
#include<map>
#include<iomanip>
#define rep(index,num) for(int index=0;index<num;index++)
#define rep1(index,num) for(int index=1;index<=num;index++)
#define leer(argument) cin>>argument
#define esc(argument) cout<<argument<<endl
#define kaigyo cout<<endl
#define eps 1e-7
#define mp(a1,a2) make_pair(a1,a2)
typedef long long ll;
using namespace std;
typedef pair<ll,ll> pll;
typedef pair<int,int> pint;
typedef vector<int> vint;
typedef vector<ll> vll;
typedef vector<pint> vpint;
typedef vector<pll> vpll;
ll INFl=1e+18+1;
int INF=1e+9+1;

#include <iostream>
using namespace std;

int main(void){
  
  char a, b, c, d; leer(a,b,c,d);

	if( a == b || b == c || c == d){

      cout << "Bad" << endl;
      
    }else{
      
      cout << "Good" << endl;
      
    }

return 0;

}


Compiler output:
a.cc:35:32: error: macro "leer" passed 4 arguments, but takes just 1
   35 |   char a, b, c, d; leer(a,b,c,d);
      |                                ^
a.cc:14:9: note: macro "leer" defined here
   14 | #define leer(argument) cin>>argument
      |         ^~~~
a.cc: In function 'int main()':
a.cc:35:20: error: 'leer' was not declared in this scope
   35 |   char a, b, c, d; leer(a,b,c,d);
      |                    ^~~~
Language: C++

#include <iostream>
#include <string>
void tuginodankai(int,char,char);

int main()
{
	std::string mojiretu;
	std::cin >> mojiretu;
	if ((mojiretu[0] == mojiretu[1]) && mojiretu[0] != mojiretu[2])
	{
		tuginodankai(mojiretu[2], mojiretu[3]);
	}
	else if ((mojiretu[0] == mojiretu[2]) && mojiretu[0] != mojiretu[1])
	{
		tuginodankai(mojiretu[1], mojiretu[3]);
	}
	else if ((mojiretu[0] == mojiretu[3]) && mojiretu[0] != mojiretu[1])
	{
		tuginodankai(mojiretu[1], mojiretu[2]);
	}
	else std::cout << "No" << std::endl;

}


void tuginodankai(char mojiiti,char mojini)
{
	if (mojiiti == mojini)
	{
		std::cout << "Yes" << std::endl;
	}
	else std::cout << "No" << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: too few arguments to function 'void tuginodankai(int, char, char)'
   11 |                 tuginodankai(mojiretu[2], mojiretu[3]);
      |                 ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:3:6: note: declared here
    3 | void tuginodankai(int,char,char);
      |      ^~~~~~~~~~~~
a.cc:15:29: error: too few arguments to function 'void tuginodankai(int, char, char)'
   15 |                 tuginodankai(mojiretu[1], mojiretu[3]);
      |                 ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:3:6: note: declared here
    3 | void tuginodankai(int,char,char);
      |      ^~~~~~~~~~~~
a.cc:19:29: error: too few arguments to function 'void tuginodankai(int, char, char)'
   19 |                 tuginodankai(mojiretu[1], mojiretu[2]);
      |                 ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:3:6: note: declared here
    3 | void tuginodankai(int,char,char);
      |      ^~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main()
{
  char answer[4];for(int i=0;i<4;i++)scanf("%c",&answer[i]);
  if (answer[0]==answer[1]) || (answer[1] == answer[2]) || (answer[2] == answer[3])
  {cout<<"Bad"<<endl;}
  else
  {cout<<"Good"<<endl;}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: expected primary-expression before '||' token
    7 |   if (answer[0]==answer[1]) || (answer[1] == answer[2]) || (answer[2] == answer[3])
      |                             ^~
Language: C++

#include<iostream>
using namespace std;

int main()
{
  char answer[4];for(int i=0;i<4;i++)scanf("%c",&answer[i]);
  if answer[0]==answer[1] || answer[1] == answer[2] || answer[2] == answer[3]
  	cout<<"Bad"<<endl;
  else
    cout<<"Good"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected '(' before 'answer'
    7 |   if answer[0]==answer[1] || answer[1] == answer[2] || answer[2] == answer[3]
      |      ^~~~~~
      |      (
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else
      |   ^~~~
Language: Java

import java.util.Scanner;

/**
 * AtCoder Beginner Contest 131<br>
 * A - Security<br>
 * <br>
 * https://atcoder.jp/contests/abc131/tasks/abc131_a<br>
 */
public class C02 {

    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            String[] input = sc.nextLine().split("");

            Result r = renzokuNum(input);
            switch (r) {
                case Good:
                    System.out.println("Good");
                    break;
           
                default:
                    System.out.println("Bad");
                    break;
            }
        }
    }

    private static Result renzokuNum(String[] input) {

        for (int i = 0; i < input.length - 1; i++) {
            if (input[i].equals(input[i + 1])) {
                return Result.Bad;
            }
        }
        return Result.Good;
    }

    enum Result {
        Good,
        Bad,
    }
}

Compiler output:
Main.java:9: error: class C02 is public, should be declared in a file named C02.java
public class C02 {
       ^
1 error
Language: Java

import java.util.*;
class Main {
  Scanner sc = new Scanner(System.in);
  static String pw = sc.next();

  public static String check(String pw) {
    for(int i=0; i < pw.length()-1; i++) {
      if (pw.substring(i, i+1).equals(pw.substring(i+1, i+2))){
        return "Bad";
      }
    }
    return "Good";
  }
  
  public static void main(String args[]){
	String result = check(pw);
    System.out.println(result);
  }
}

Compiler output:
Main.java:4: error: non-static variable sc cannot be referenced from a static context
  static String pw = sc.next();
                     ^
1 error
Language: Java

import java.util.*;
class Main {
  Scanner sc = new Scanner(System.in);
  static int pw = sc.next();

  public static String check(String pw) {
    for(int i=0; i < pw.length()-1; i++) {
      if (pw.substring(i, i+1).equals(pw.substring(i+1, i+2))){
        return "Bad";
      }
    }
    return "Good";
  }
  
  public static void main(String args[]){
	String result = check(pw);
    System.out.println(result);
  }
}

Compiler output:
Main.java:4: error: non-static variable sc cannot be referenced from a static context
  static int pw = sc.next();
                  ^
Main.java:4: error: incompatible types: String cannot be converted to int
  static int pw = sc.next();
                         ^
Main.java:16: error: incompatible types: int cannot be converted to String
	String result = check(pw);
	                      ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
3 errors
Language: Java

import java.util.*;
class Main {
  Scanner sc = new Scanner(System.in);
  static int pw = sc.next();

  public static String check(String pw) {
    for(int i=0; i < pw.length()-1; i++) {
      if (pw.substring(i, i+1).equals(pw.substring(i+1, i+2))){
        return 'Bad';
      }
    }
    return 'Good';
  }
  
  public static void main(String args[]){
	String result = check(pw);
    System.out.println(result);
  }
}

Compiler output:
Main.java:9: error: unclosed character literal
        return 'Bad';
               ^
Main.java:9: error: unclosed character literal
        return 'Bad';
                   ^
Main.java:9: error: not a statement
        return 'Bad';
                 ^
Main.java:12: error: unclosed character literal
    return 'Good';
           ^
Main.java:12: error: unclosed character literal
    return 'Good';
                ^
Main.java:12: error: not a statement
    return 'Good';
             ^
6 errors
Language: Java

import java.util.*;
class Main {
  Scanner sc = new Scanner(System.in);
  static int pw = sc.next();

  public static void main(String args[]){
    for(int i=0; i < pw.length()-1; i++) {
      if (pw.substring(i, i+1).equals(pw.substring(i+1, i+2))){
        System.out.println('Bad');
      }
    }
    System.out.println('Good');
  }
}

Compiler output:
Main.java:9: error: unclosed character literal
        System.out.println('Bad');
                           ^
Main.java:9: error: unclosed character literal
        System.out.println('Bad');
                               ^
Main.java:9: error: not a statement
        System.out.println('Bad');
                             ^
Main.java:12: error: unclosed character literal
    System.out.println('Good');
                       ^
Main.java:12: error: unclosed character literal
    System.out.println('Good');
                            ^
Main.java:12: error: not a statement
    System.out.println('Good');
                         ^
6 errors
Language: Java

import java.util.*;
class Main {
  Scanner sc = new Scanner(System.in);
  int pw = sc.next();

  public static void main(String args[]){
    for(int i=0; i < pw.length()-1; i++) {
      if (pw.substring(i, i+1).equals(pw.substring(i+1, i+2))){
        return 'Bad';
      }
    }
    return 'Good';
  }
}

Compiler output:
Main.java:9: error: unclosed character literal
        return 'Bad';
               ^
Main.java:9: error: unclosed character literal
        return 'Bad';
                   ^
Main.java:9: error: not a statement
        return 'Bad';
                 ^
Main.java:12: error: unclosed character literal
    return 'Good';
           ^
Main.java:12: error: unclosed character literal
    return 'Good';
                ^
Main.java:12: error: not a statement
    return 'Good';
             ^
6 errors
Language: C++

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

int main() {
    string s;cin >> s;
    bool flag = false;
    int l = s.size();
    for(int=0;i<l-1;i++){
        if(s[i]==s[i+1]){
            flag = true;
        }else{
            continue;
        }
    }

    if(flag = true){
        cout << "Bad" << endl;
    }else{
        cout << "Good" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected unqualified-id before '=' token
    8 |     for(int=0;i<l-1;i++){
      |            ^
a.cc:8:12: error: expected ';' before '=' token
    8 |     for(int=0;i<l-1;i++){
      |            ^
      |            ;
a.cc:8:12: error: expected primary-expression before '=' token
a.cc:8:15: error: 'i' was not declared in this scope
    8 |     for(int=0;i<l-1;i++){
      |               ^
a.cc:8:20: error: expected ')' before ';' token
    8 |     for(int=0;i<l-1;i++){
      |        ~           ^
      |                    )
a.cc:8:21: error: 'i' was not declared in this scope
    8 |     for(int=0;i<l-1;i++){
      |                     ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: lvalue required as left operand of assignment
    7 |   if(s[1]=s[2] || s[2]=s[3] ){
a.cc:8:13: error: 'Bad' was not declared in this scope
    8 |     cout << Bad <<endl;
      |             ^~~
a.cc:10:5: error: expected '(' before 'else'
   10 |  if else(s[3]=s[4]){
      |     ^~~~
      |     (
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else {
      |   ^~~~
a.cc:14:12: error: 'Good' was not declared in this scope
   14 |    cout << Good <<endl;
      |            ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: lvalue required as left operand of assignment
    7 |   if(s[1]=s[2] || s[2]=s[3] || s[3]=s[4] ) cout << Bad <<endl;
a.cc:7:52: error: 'Bad' was not declared in this scope
    7 |   if(s[1]=s[2] || s[2]=s[3] || s[3]=s[4] ) cout << Bad <<endl;
      |                                                    ^~~
a.cc:8:16: error: 'Good' was not declared in this scope
    8 |   else cout << Good << endl;
      |                ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  string s[i];
  cin >> s[1];
  if(s[i]=s[i+1]) cout << Bad <<endl;
  else cout << Good << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'i' was not declared in this scope
    5 |   string s[i];
      |            ^
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s[1];
      |          ^
a.cc:7:27: error: 'Bad' was not declared in this scope
    7 |   if(s[i]=s[i+1]) cout << Bad <<endl;
      |                           ^~~
a.cc:8:16: error: 'Good' was not declared in this scope
    8 |   else cout << Good << endl;
      |                ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: 's' was not declared in this scope
    9 |   if(s[i]=s[i+1]) cout << Bad <<endl;
      |      ^
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   if(s[i]=s[i+1]) cout << Bad <<endl;
      |        ^
a.cc:9:27: error: 'Bad' was not declared in this scope
    9 |   if(s[i]=s[i+1]) cout << Bad <<endl;
      |                           ^~~
a.cc:10:16: error: 'Good' was not declared in this scope
   10 |   else cout << Good << endl;
      |                ^~~~
Language: C++

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

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'for'
    4 |   for(int i=1;i<5;i++){
      |   ^~~
a.cc:4:3: error: expected '}' before 'for'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:4:15: error: 'i' does not name a type
    4 |   for(int i=1;i<5;i++){
      |               ^
a.cc:4:19: error: 'i' does not name a type
    4 |   for(int i=1;i<5;i++){
      |                   ^
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(s[i]=s[i+1]) cout << Bad <<endl;
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 |   else cout << Good << endl;
      |   ^~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: Java

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

Compiler output:
Main.java:3: error: class abc is public, should be declared in a file named abc.java
public class abc
       ^
1 error
Language: Java

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

Compiler output:
Main.java:13: error: cannot find symbol
        flag=1;
        ^
  symbol:   variable flag
  location: class security
Main.java:17: error: cannot find symbol
    if(flag==1)
       ^
  symbol:   variable flag
  location: class security
2 errors
Language: C++

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



int main(void){
  int 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:7:14: error: expected initializer before 'S'
    7 |   int string S;
      |              ^
a.cc:8:10: error: 'S' was not declared in this scope
    8 |   cin >> S;
      |          ^
Language: C++

￥#include <iostream>
using namespace std;

int main() {
	string S;
	cin >>S;
	string ans;

	for (int i = 0; i < 4;i++) {
		if (S[i] == S[i + 1]) {
			ans = "Bad";
		}
		else {
			ans = "Good";
		}
	}
	cout << ans << endl;
}


Compiler output:
a.cc:1:3: error: stray '#' in program
    1 | ￥#include <iostream>
      |   ^
a.cc:1:1: error: '\U0000ffe5' does not name a type
    1 | ￥#include <iostream>
      | ^~
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string S;
      |         ^~~~~~
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >>S;
      |         ^~~
a.cc:6:15: error: 'S' was not declared in this scope
    6 |         cin >>S;
      |               ^
a.cc:7:15: error: expected ';' before 'ans'
    7 |         string ans;
      |               ^~~~
      |               ;
a.cc:11:25: error: 'ans' was not declared in this scope
   11 |                         ans = "Bad";
      |                         ^~~
a.cc:14:25: error: 'ans' was not declared in this scope
   14 |                         ans = "Good";
      |                         ^~~
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << ans << endl;
      |         ^~~~
a.cc:17:17: error: 'ans' was not declared in this scope
   17 |         cout << ans << endl;
      |                 ^~~
a.cc:17:24: error: 'endl' was not declared in this scope
   17 |         cout << ans << endl;
      |                        ^~~~
Language: C

#include<stdio.h>
int main () {
	char S[5];
	scanf("%s", S);
	for(int i = o; i < 3; ++i){
		if(S[i] == S[i + 1]) {
			puts("Bad");
			return 0;
		}
	}
	puts("Good");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:21: error: 'o' undeclared (first use in this function)
    5 |         for(int i = o; i < 3; ++i){
      |                     ^
main.c:5:21: 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 str, ans = "Good";
  cin >> str;
  if(str.at(0) == str.at(1) || str.at(1) == str.at(2) || str.at(2) == str.at(3))
    ans = "Bad";
  cout << ans << endl; 
}

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    7 |   if(s.at[0]==s.at[1]){
      |          ^
a.cc:7:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    7 |   if(s.at[0]==s.at[1]){
      |                   ^
a.cc:10:15: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   10 |   else if(s.at[1]==s.at[2]){
      |               ^
a.cc:10:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   10 |   else if(s.at[1]==s.at[2]){
      |                        ^
a.cc:13:15: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   13 |   else if(s.at[2]==s.at[3]){
      |               ^
a.cc:13:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   13 |   else if(s.at[2]==s.at[3]){
      |                        ^
Language: C++

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        StringBuilder str =  new StringBuilder(s);
        for(int i = 1; i < str.length(); ++i){
            if(str.charAt(i) == str.charAt(i-1)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");

    }

}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: invalid types 'int[int]' for array subscript
    7 |   if(s[0]==s[1]||s[1]==s[2]||s[2]==s[3])
      |       ^
a.cc:7:13: error: invalid types 'int[int]' for array subscript
    7 |   if(s[0]==s[1]||s[1]==s[2]||s[2]==s[3])
      |             ^
a.cc:7:19: error: invalid types 'int[int]' for array subscript
    7 |   if(s[0]==s[1]||s[1]==s[2]||s[2]==s[3])
      |                   ^
a.cc:7:25: error: invalid types 'int[int]' for array subscript
    7 |   if(s[0]==s[1]||s[1]==s[2]||s[2]==s[3])
      |                         ^
a.cc:7:31: error: invalid types 'int[int]' for array subscript
    7 |   if(s[0]==s[1]||s[1]==s[2]||s[2]==s[3])
      |                               ^
a.cc:7:37: error: invalid types 'int[int]' for array subscript
    7 |   if(s[0]==s[1]||s[1]==s[2]||s[2]==s[3])
      |                                     ^