criyle/codenet-compile-errors huggingface dataset:
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<<"Bad"<<endl;
  }
  else cout<<"Good"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: request for member 'at' in 's', which is of non-class type 'int'
    6 |   if(s.at(0)==s.at(1)||s.at(1)==s.at(2)||s.at(2)==s.at(3)){
      |        ^~
a.cc:6:17: error: request for member 'at' in 's', which is of non-class type 'int'
    6 |   if(s.at(0)==s.at(1)||s.at(1)==s.at(2)||s.at(2)==s.at(3)){
      |                 ^~
a.cc:6:26: error: request for member 'at' in 's', which is of non-class type 'int'
    6 |   if(s.at(0)==s.at(1)||s.at(1)==s.at(2)||s.at(2)==s.at(3)){
      |                          ^~
a.cc:6:35: error: request for member 'at' in 's', which is of non-class type 'int'
    6 |   if(s.at(0)==s.at(1)||s.at(1)==s.at(2)||s.at(2)==s.at(3)){
      |                                   ^~
a.cc:6:44: error: request for member 'at' in 's', which is of non-class type 'int'
    6 |   if(s.at(0)==s.at(1)||s.at(1)==s.at(2)||s.at(2)==s.at(3)){
      |                                            ^~
a.cc:6:53: error: request for member 'at' in 's', which is of non-class type 'int'
    6 |   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;
#define int long long
#define pb push_back
#define mp make_pair
#define vi vector<int>
#define inf 1e18
#define mod pow(10,9)+7
#define mii map<int,int>
#define pii pair<int,int>
#define setbits(x) __builtin_popcountll(x)
#define lcm(x,y)  (x*y)/__gcd(x,y)

int32_t main()
{
	//c_p_c();
	string s;
  cin>>s;
  int i;
  bool b=false;
  int l=s.length();
  for(i=0;i<l;i++){
    if(s[i]==s[i+1]
       {
         b=true;
         break;
       }
    }
	if(b) cout<<"Bad";
       else cout<<"Good";
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:23:20: error: expected ')' before '{' token
   23 |     if(s[i]==s[i+1]
      |       ~            ^
      |                    )
   24 |        {
      |        ~            
a.cc:28:5: error: expected primary-expression before '}' token
   28 |     }
      |     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define int long long
#define pb push_back
#define mp make_pair
#define vi vector<int>
#define inf 1e18
#define mod pow(10,9)+7
#define mii map<int,int>
#define pii pair<int,int>
#define setbits(x) __builtin_popcountll(x)
#define lcm(x,y)  (x*y)/__gcd(x,y)

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

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:22:20: error: expected ')' before '{' token
   22 |     if(s[i]==s[i+1]
      |       ~            ^
      |                    )
   23 |        {
      |        ~            
a.cc:27:8: error: expected primary-expression before '}' token
   27 |        }
      |        ^
Language: C++

int main()
{
    int s;
    cin  >> s;
    int a= s%10;
    int b=s%100;
    int c =(b-a)/10;
    int d =s%1000;
    int e=(d-b)/100;
    int f= (s-d)/1000;
  if ( a!=c && c!=e && e!=f){
    cout << "Good";
  }
  else{
    cout << "Bad";
  }
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin  >> s;
      |     ^~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "Good";
      |     ^~~~
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << "Bad";
      |     ^~~~
Language: C++

# include <iostream>
using namespace std;
int main(){
  int s;
  cin >> s;
  int a = s%10;
  int b = s%100;
  int c = s%1000;
  int d = s-(a+b+c);
  if(a!=b && b!=c && c!=d){
    cout << "good";
  }
  else{
    cout << "bad";
    return 0;
  }

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

# include <iostream>
# include <ssstream>
using namespace std;
int main(){
string cd;
cin >> cd;
if(cd[0] != cd[1] && cd [1] != cd[2] && cd[2] != cd[3]){
  cout << "good";
}
  else{
    cout << "bad";
  }
  return 0;
}



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

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <map>
#define rep(i,cc,n) for(int i=cc;i<=n;++i)
#define drep(i,cc,n) for(int i=cc;i>=n;--i)
typedef long long ll;
using namespace std;

ll gcd(ll a, ll b) {
    if (b==0) return a;
    else return gcd(b, a%b);
}

ll lcm(ll a, ll b) {
    return a * b / gcd(a, b);
}

ll choose2(ll n){
    return n*(n-1)/2;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:27:13: error: 'n' was not declared in this scope
   27 |     rep(i,0,n-2){
      |             ^
a.cc:6:37: note: in definition of macro 'rep'
    6 | #define rep(i,cc,n) for(int i=cc;i<=n;++i)
      |                                     ^
Language: C++

# include < iostream >
using namespace std ;
int main (){
  int arr[4];
  for (int i;i<4;i++){
    cin >> arr[i];
  }
  if (arr[0] != arr[1] && arr[1] != arr[2] && arr[2] != arr[3] ){
    cout << "good";
  }
  else{
    cout << "bad";
  }
  return 0;
}
  

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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<string,int>;
using T = tuple<string,int,int>;

int main(){
  string s; cin >> s;
  bool flg = true;
  char temp = s[0];
  for(int i = 1; i < n; i++){
    if(s[i] == temp) flg = false;
    temp = s[i];
  }
  if(flg) cout << "Good" << endl;
  else cout << "Bad" << endl;
  return 0;
}

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

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

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

  if (s[0] = s[1]) cout << "Bad" << endl;
  else if (s[1] = s[2]) cout << "Bad" << endl;
  else if (s[2] = s[3]) cout << "Bad" << endl;
  else cout << "Good" << endl;
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]) cout << "Bad" << endl;
      |        ^
a.cc:8:15: error: invalid types 'int[int]' for array subscript
    8 |   if (s[0] = s[1]) cout << "Bad" << endl;
      |               ^
a.cc:9:13: error: invalid types 'int[int]' for array subscript
    9 |   else if (s[1] = s[2]) cout << "Bad" << endl;
      |             ^
a.cc:9:20: error: invalid types 'int[int]' for array subscript
    9 |   else if (s[1] = s[2]) cout << "Bad" << endl;
      |                    ^
a.cc:10:13: error: invalid types 'int[int]' for array subscript
   10 |   else if (s[2] = s[3]) cout << "Bad" << endl;
      |             ^
a.cc:10:20: error: invalid types 'int[int]' for array subscript
   10 |   else if (s[2] = s[3]) cout << "Bad" << endl;
      |                    ^
Language: C++

S = int(input())

Sstr = str(S)

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

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

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

}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'n' was not declared in this scope
    7 | for(int i=0;i<n-1;i++)
      |               ^
a.cc:8:20: error: expected ';' before 'true'
    8 | if(s[i]==s[i+1]) ok true;
      |                    ^~~~~
      |                    ;
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
string s;
cin>>s;
s.push_back('#');
bool ok=false;
for(int i=1;i<n;i++) if(s[i]==s[i-1])ok=true;}
if(ok) cout<<"Bad";
else cout<<"Good";

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'n' was not declared in this scope
    9 | for(int i=1;i<n;i++) if(s[i]==s[i-1])ok=true;}
      |               ^
a.cc: At global scope:
a.cc:10:1: error: expected unqualified-id before 'if'
   10 | if(ok) cout<<"Bad";
      | ^~
a.cc:11:1: error: expected unqualified-id before 'else'
   11 | else cout<<"Good";
      | ^~~~
Language: C++

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

int main() {
  string s;
  cin >> s;
  string l = "a";
  for (int i = 0; i< 4;i++) {
     if(l.c_str()== s[i]) {
           cout << "Bad" << endl;
           return 0;
     }
     l= s[i];
  }
  cout << "Good" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |      if(l.c_str()== s[i]) {
Language: C++

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

int main() {
  string s;
  cin >> s;
  char l = ‘a’;
  for (int i = 0; i< 4;i++) {
     if(l == s[i]) {
           cout << “Bad” << endl;
           return 0;
     }
     l= s[i];
  }
  cout << “Good” << endl;
  return 0;
}

Compiler output:
a.cc:7:12: error: extended character ‘ is not valid in an identifier
    7 |   char l = ‘a’;
      |            ^
a.cc:7:12: error: extended character ’ is not valid in an identifier
a.cc:10:20: error: extended character “ is not valid in an identifier
   10 |            cout << “Bad” << endl;
      |                    ^
a.cc:10:20: error: extended character ” is not valid in an identifier
a.cc:15:11: error: extended character “ is not valid in an identifier
   15 |   cout << “Good” << endl;
      |           ^
a.cc:15:11: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:12: error: '\U00002018a\U00002019' was not declared in this scope
    7 |   char l = ‘a’;
      |            ^~~
a.cc:10:20: error: '\U0000201cBad\U0000201d' was not declared in this scope
   10 |            cout << “Bad” << endl;
      |                    ^~~~~
a.cc:15:11: error: '\U0000201cGood\U0000201d' was not declared in this scope
   15 |   cout << “Good” << endl;
      |           ^~~~~~
Language: C++

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

int main() {
  string s;
  cin >> s;
  char l = ‘-‘;
  for (int i = 0; i< 4;i++) {
     if(l == s[i]) {
           cout << “Bad” << endl;
           return 0;
     }
     l= s[i];
  }
  cout << “Good” << endl;
  return 0;
}

Compiler output:
a.cc:7:12: error: extended character ‘ is not valid in an identifier
    7 |   char l = ‘-‘;
      |            ^
a.cc:7:14: error: extended character ‘ is not valid in an identifier
    7 |   char l = ‘-‘;
      |              ^
a.cc:10:20: error: extended character “ is not valid in an identifier
   10 |            cout << “Bad” << endl;
      |                    ^
a.cc:10:20: error: extended character ” is not valid in an identifier
a.cc:15:11: error: extended character “ is not valid in an identifier
   15 |   cout << “Good” << endl;
      |           ^
a.cc:15:11: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:12: error: '\U00002018' was not declared in this scope
    7 |   char l = ‘-‘;
      |            ^
a.cc:10:20: error: '\U0000201cBad\U0000201d' was not declared in this scope
   10 |            cout << “Bad” << endl;
      |                    ^~~~~
a.cc:15:11: error: '\U0000201cGood\U0000201d' was not declared in this scope
   15 |   cout << “Good” << endl;
      |           ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if(S(0)==S(1) || S(1)==S(2) || S(2)==S(3)){
      |      ~^~~
a.cc:7:13: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if(S(0)==S(1) || S(1)==S(2) || S(2)==S(3)){
      |            ~^~~
a.cc:7:21: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if(S(0)==S(1) || S(1)==S(2) || S(2)==S(3)){
      |                    ~^~~
a.cc:7:27: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if(S(0)==S(1) || S(1)==S(2) || S(2)==S(3)){
      |                          ~^~~
a.cc:7:35: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if(S(0)==S(1) || S(1)==S(2) || S(2)==S(3)){
      |                                  ~^~~
a.cc:7:41: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if(S(0)==S(1) || S(1)==S(2) || S(2)==S(3)){
      |                                        ~^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected ';' before ')' token
    7 |   for(int i=0;i<S.size()-1){
      |                           ^
      |                           ;
Language: C++

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

using namespace std;

int main() {
  int S,S[0],S[1],S[2],S[3];
  cin>>S;
  S[0]=S/1000;
  S[1]=S/100%10;
  S[2]=S/10%10;
  S[3]=S%10;
  if(S[0]==S[1] || S[1]==S[2] || S[2]==S[3]) cout<<"Bad";
  else cout<<"Good";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: conflicting declaration 'int S [0]'
    8 |   int S,S[0],S[1],S[2],S[3];
      |         ^
a.cc:8:7: note: previous declaration as 'int S'
    8 |   int S,S[0],S[1],S[2],S[3];
      |       ^
a.cc:8:14: error: conflicting declaration 'int S [1]'
    8 |   int S,S[0],S[1],S[2],S[3];
      |              ^
a.cc:8:7: note: previous declaration as 'int S'
    8 |   int S,S[0],S[1],S[2],S[3];
      |       ^
a.cc:8:19: error: conflicting declaration 'int S [2]'
    8 |   int S,S[0],S[1],S[2],S[3];
      |                   ^
a.cc:8:7: note: previous declaration as 'int S'
    8 |   int S,S[0],S[1],S[2],S[3];
      |       ^
a.cc:8:24: error: conflicting declaration 'int S [3]'
    8 |   int S,S[0],S[1],S[2],S[3];
      |                        ^
a.cc:8:7: note: previous declaration as 'int S'
    8 |   int S,S[0],S[1],S[2],S[3];
      |       ^
a.cc:10:4: error: invalid types 'int[int]' for array subscript
   10 |   S[0]=S/1000;
      |    ^
a.cc:11:4: error: invalid types 'int[int]' for array subscript
   11 |   S[1]=S/100%10;
      |    ^
a.cc:12:4: error: invalid types 'int[int]' for array subscript
   12 |   S[2]=S/10%10;
      |    ^
a.cc:13:4: error: invalid types 'int[int]' for array subscript
   13 |   S[3]=S%10;
      |    ^
a.cc:14:7: error: invalid types 'int[int]' for array subscript
   14 |   if(S[0]==S[1] || S[1]==S[2] || S[2]==S[3]) cout<<"Bad";
      |       ^
a.cc:14:13: error: invalid types 'int[int]' for array subscript
   14 |   if(S[0]==S[1] || S[1]==S[2] || S[2]==S[3]) cout<<"Bad";
      |             ^
a.cc:14:21: error: invalid types 'int[int]' for array subscript
   14 |   if(S[0]==S[1] || S[1]==S[2] || S[2]==S[3]) cout<<"Bad";
      |                     ^
a.cc:14:27: error: invalid types 'int[int]' for array subscript
   14 |   if(S[0]==S[1] || S[1]==S[2] || S[2]==S[3]) cout<<"Bad";
      |                           ^
a.cc:14:35: error: invalid types 'int[int]' for array subscript
   14 |   if(S[0]==S[1] || S[1]==S[2] || S[2]==S[3]) cout<<"Bad";
      |                                   ^
a.cc:14:41: error: invalid types 'int[int]' for array subscript
   14 |   if(S[0]==S[1] || S[1]==S[2] || S[2]==S[3]) cout<<"Bad";
      |                                         ^
Language: C++

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

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: invalid types 'int[int]' for array subscript
   10 |   if(S[0]==S[1] || S[1]==S[2] || S[2]==S[3]) cout<<"Bad";
      |       ^
a.cc:10:13: error: invalid types 'int[int]' for array subscript
   10 |   if(S[0]==S[1] || S[1]==S[2] || S[2]==S[3]) cout<<"Bad";
      |             ^
a.cc:10:21: error: invalid types 'int[int]' for array subscript
   10 |   if(S[0]==S[1] || S[1]==S[2] || S[2]==S[3]) cout<<"Bad";
      |                     ^
a.cc:10:27: error: invalid types 'int[int]' for array subscript
   10 |   if(S[0]==S[1] || S[1]==S[2] || S[2]==S[3]) cout<<"Bad";
      |                           ^
a.cc:10:35: error: invalid types 'int[int]' for array subscript
   10 |   if(S[0]==S[1] || S[1]==S[2] || S[2]==S[3]) cout<<"Bad";
      |                                   ^
a.cc:10:41: error: invalid types 'int[int]' for array subscript
   10 |   if(S[0]==S[1] || S[1]==S[2] || S[2]==S[3]) cout<<"Bad";
      |                                         ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
    
    // スペース区切りの整数の入力
    int b,c;
    cin >> b >> c;
    int eated = min(1,c+1);
  	int r = N(2b+(N-1))/2 - c+eated-1;
    // 出力
    cout << r << endl;
  	
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: unable to find numeric literal operator 'operator""b'
   10 |         int r = N(2b+(N-1))/2 - c+eated-1;
      |                   ^~
a.cc:10:23: error: 'N' was not declared in this scope
   10 |         int r = N(2b+(N-1))/2 - c+eated-1;
      |                       ^
a.cc:10:17: error: 'N' was not declared in this scope
   10 |         int r = N(2b+(N-1))/2 - c+eated-1;
      |                 ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
    
    // スペース区切りの整数の入力
    int b,c;
    cin >> b >> c;
    int r = min(1,c+1)
    // 出力
    cout << r << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before 'cout'
   11 |     cout << r << endl;
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    
    // スペース区切りの整数の入力
    int b,c;
    cin >> b >> c;
    int r = min(0,c+1)
    // 出力
    cout << r << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before 'cout'
   11 |     cout << r << endl;
      |     ^~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main()
{
  string S,ans;
  cin>>S;
  ans=Good;
  for(int i=0;i<S.size()-1;i++){
    if(S.at(i)==S.at(i+1)){
      ans=Bad;
    }
  }
  cout<<ans<<endl;
}
      

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

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int S =sc.nextInt();
    String s =Integer.toString(S);
    String t[] =s.split("",0);
    for(int i=1;i<4;i++){
      if(t[i]-t[i-1]==0){System.out.println("Bad");System.exit(0);}}
    System.out.println("Good");
  }
}

Compiler output:
Main.java:9: error: bad operand types for binary operator '-'
      if(t[i]-t[i-1]==0){System.out.println("Bad");System.exit(0);}}
             ^
  first type:  String
  second type: String
1 error
Language: C++

using namespace std;
typedef long long ll;
int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    string s;
    cin>>s;
    bool flag=true;
    for(int i=1;i<s.length();i++)
    if(s[i]==s[i-1])flag=false;
    if(flag)cout<<"Good";
    else
    cout<<"Bad";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'ios' has not been declared
    5 |     ios::sync_with_stdio(0);
      |     ^~~
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin.tie(0);
      |     ^~~
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:7:5: error: 'string' was not declared in this scope
    7 |     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:8:10: error: 's' was not declared in this scope
    8 |     cin>>s;
      |          ^
a.cc:12:13: error: 'cout' was not declared in this scope
   12 |     if(flag)cout<<"Good";
      |             ^~~~
a.cc:12:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout<<"Bad";
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String ss[] = new String[4];
    for(int i = 0;i<4;i++){
      ss[i] = s.substring(i,i+1);
    }
    for(int i = 0;i<=3;i++){
      if(ss[i].eqals(ss[i+1])){
        System.out.println("Bad");
        return ;
      }
    }
    System.out.println("Good");
  }
}


Compiler output:
Main.java:11: error: cannot find symbol
      if(ss[i].eqals(ss[i+1])){
              ^
  symbol:   method eqals(String)
  location: class String
1 error
Language: C++

#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <fstream>
#include <cassert>
#include <cstring>
#include <unordered_set>
#include <unordered_map>
#include <numeric>
#include <ctime>
#include <bitset>
#include <complex>
#include <chrono>
#include <random>
#include <functional>

using namespace std;

signed main() {
	ios_base::sync_with_stdio(false);
	cin.tie(0);

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


Compiler output:
a.cc: In function 'int main()':
a.cc:32:13: error: 'a' was not declared in this scope
   32 |         if (a[0] == a[1] || a[1] == a[2] || a[2] == a[3]) cout << "Bad\n";
      |             ^
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 << "Bad" <<endl;
  }
  else {
    cout << "Good" <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: 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:20: 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:31: 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:42: 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:64: 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(){
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:20: error: expected ';' before ':' token
    7 |   cout<<"Bad"<<endl:
      |                    ^
      |                    ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: expected ')' before '{' token
   11 |     if(name[i]==name[i+1]
      |       ~                  ^
      |                          )
   12 |        {
      |        ~                  
a.cc:15:8: error: expected primary-expression before '}' token
   15 |        }
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  lli check=0;
  rep(i,s.length()-1){
    if(s[i]==s[i+1]){
      check=1;
      break;
    }
  }
  if(check==1)
    cout<<"Bad";
  else
    cout<<"Good";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'lli' was not declared in this scope
    6 |   lli check=0;
      |   ^~~
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   rep(i,s.length()-1){
      |       ^
a.cc:7:3: error: 'rep' was not declared in this scope
    7 |   rep(i,s.length()-1){
      |   ^~~
a.cc:13:6: error: 'check' was not declared in this scope
   13 |   if(check==1)
      |      ^~~~~
Language: C++

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

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

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

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

int a;

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


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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:3: 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 | #incldue<bits/stdc++.h>
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | #incldue<bits/stdc++.h>
a.cc:5:10: error: 's' was not declared in this scope
    5 |   cin >> s;
      |          ^
a.cc:6:46: error: 'cout' was not declared in this scope
    6 |   if(s[0]==s[1] || s[1]==s[2] || s[2]==s[3]) cout << "Bad" << endl;
      |                                              ^~~~
a.cc:6:46: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:63: error: 'endl' was not declared in this scope
    6 |   if(s[0]==s[1] || s[1]==s[2] || s[2]==s[3]) 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 | #incldue<bits/stdc++.h>
a.cc:7:8: error: 'cout' was not declared in this scope
    7 |   else cout << "Yes" << endl;
      |        ^~~~
a.cc:7:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:25: error: 'endl' was not declared in this scope
    7 |   else cout << "Yes" << endl;
      |                         ^~~~
a.cc:7:25: 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;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main(){
  int s;
  std::cin >> s;
  for (int i = 0; i < s.size() - 1; i++) {
    if (s.at(i) == s.at(i+1)) {
      std::cout << "Bad" << '\n';
    }
    else{
      std::cout << "Good" << '\n';
    }
  }
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
string S;
  cin >>S;
for (int i = 0; i < 3; i++) {
 if(S.at(i)==S.at(i+1){
   cout<<"Bad"<<endl;
 }
    else{
      cout<<"Yes"<<endl;
    }
}
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ')' before '{' token
    8 |  if(S.at(i)==S.at(i+1){
      |    ~                  ^
      |                       )
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
string S.
  cin >>S;
for (int i = 0; i < 3; i++) {
 if(S.at(i)==S.at(i+1){
   cout<<"Bad"<<endl;
 }
    else{
      cout<<"Yes"<<endl;
    }
}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before '.' token
    5 | string S.
      |         ^
a.cc:8:5: error: 'S' was not declared in this scope
    8 |  if(S.at(i)==S.at(i+1){
      |     ^
a.cc:8:23: error: expected ')' before '{' token
    8 |  if(S.at(i)==S.at(i+1){
      |    ~                  ^
      |                       )
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <algorithm>
#include <functional>
#include <utility>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstdio>

using namespace std;
#define REP(i,n) for((i)=0;(i)<(int)(n);(i)++)
using ll = long long;
using P = pair<int,int>;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:29:12: error: expected primary-expression before '=' token
   29 |   if(S[0]!==S[1] && S[1]!==S[2] && S[2]!==S[3]){
      |            ^
a.cc:29:27: error: expected primary-expression before '=' token
   29 |   if(S[0]!==S[1] && S[1]!==S[2] && S[2]!==S[3]){
      |                           ^
a.cc:29:42: error: expected primary-expression before '=' token
   29 |   if(S[0]!==S[1] && S[1]!==S[2] && S[2]!==S[3]){
      |                                          ^
Language: C++

#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <algorithm>
#include <functional>
#include <utility>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstdio>

using namespace std;
#define REP(i,n) for((i)=0;(i)<(int)(n);(i)++)
using ll = long long;
using P = pair<int,int>;

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

  if(S[0]!==S[1] && S[1]!==S[2] && S[2]!==S[3]){
    cout << "Good" << endl;
  } else if{
    cout << "Bad" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:12: error: expected primary-expression before '=' token
   29 |   if(S[0]!==S[1] && S[1]!==S[2] && S[2]!==S[3]){
      |            ^
a.cc:29:27: error: expected primary-expression before '=' token
   29 |   if(S[0]!==S[1] && S[1]!==S[2] && S[2]!==S[3]){
      |                           ^
a.cc:29:42: error: expected primary-expression before '=' token
   29 |   if(S[0]!==S[1] && S[1]!==S[2] && S[2]!==S[3]){
      |                                          ^
a.cc:31:12: error: expected '(' before '{' token
   31 |   } else if{
      |            ^
      |            (
Language: C++

#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <algorithm>
#include <functional>
#include <utility>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstdio>

using namespace std;
#define REP(i,n) for((i)=0;(i)<(int)(n);(i)++)
using ll = long long;
using P = pair<int,int>;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:29:39: error: expected ']' before ')' token
   29 |   if(S[0]==S[1]||S[1==S[2]||S[2]==S[3]){
      |                                       ^
      |                                       ]
a.cc:31:12: error: expected '(' before '{' token
   31 |   } else if{
      |            ^
      |            (
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <iomanip>
#include <queue>
#define rep(i,n) for(int i=0;i<n;i++)
#define repn(i,n) for(int i=1;i<=n;i++)
using namespace std;
typedef long long ll;

string S;

int main(){
    cin>>S;

    rep(i,3){
        if(S[i]==S[i+1]){
            cout<<"Bad"<<endl;
            return;
        }
    }

    cout<<"Good"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   21 |             return;
      |             ^~~~~~
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:7:40: error: 's' was not declared in this scope
    7 |   if (S.at(0) == S.at(1) || S.at(1) == s.at(2) || S.at(2) == S.at(3)) {
      |                                        ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <ctime>
#include <functional>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <cassert>
#include <bitset>
#include <list>
#include <cstdio>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <cmath>
#define rep(i,m,n) for(int i=m; i<(n); i++)
#define rrep(i,n,m) for(ll i=n;i>=m;i--)
typedef long long ll;
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:32:23: error: expected ';' before '}' token
   32 |     else cout << "Bad"
      |                       ^
      |                       ;
   33 | }
      | ~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <ctime>
#include <functional>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <cassert>
#include <bitset>
#include <list>
#include <cstdio>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <cmath>
#define rep(i,m,n) for(int i=m; i<(n); i++)
#define rrep(i,n,m) for(ll i=n;i>=m;i--)
typedef long long ll;
using namespace std;

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



Compiler output:
a.cc: In function 'int main()':
a.cc:32:23: error: expected ';' before '}' token
   32 |     else cout << "Bad"
      |                       ^
      |                       ;
   33 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'staring' was not declared in this scope; did you mean 'stdin'?
    5 |  staring s;
      |  ^~~~~~~
      |  stdin
a.cc:6:7: error: 's' was not declared in this scope
    6 |  cin>>s;
      |       ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
	int s,i,k=13,j=0;
	for (i=0;i<4;i++)
	{
		cin >> s;
		if (k==s)
			j++;
		k=s;	
	}
	if (j==1)
	cout "Bad";
	else
	cout "Good";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: expected ';' before string constant
   15 |         cout "Bad";
      |             ^~~~~~
      |             ;
a.cc:17:13: error: expected ';' before string constant
   17 |         cout "Good";
      |             ^~~~~~~
      |             ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: 'j' was not declared in this scope
   10 |     if(a.at(i)==a.at(i+j)){
      |                        ^
Language: C++

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


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

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

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

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

int main(){
    int N;
    cin >> N;
    vector<pair<int,int>> AB(N);
    for(int i=0; i<N; i++){
        int a,b;
        cin >> a >> b;
        A.emplace_back(b, a); //締め切り、所要時間
    }
    sort(AB.begin(),AB.end());
    bool judge=true;
    ll time=0;
    for(int i=0; i<N; i++){
        time += AB.at(i).first;
        if(b < time){
            judge = false;
            break;
        }
    }
    if(judge){
        cout << "Yes";
    }else{
        cout << "No";
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'A' was not declared in this scope
   13 |         A.emplace_back(b, a); //締め切り、所要時間
      |         ^
a.cc:20:12: error: 'b' was not declared in this scope
   20 |         if(b < time){
      |            ^
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
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 << "Bad" << endl;
    }
    else cout << "Good" << 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:21: 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:43: 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:54: 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:65: 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<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<list>
#include<map>
#include<deque>
#include<math.h>
using namespace std;
#define ll long long
int main(){
    string S;
    cin >> S;
    ll i;
    if(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:18:24: error: expected ')' before ';' token
   18 |     if(i=0;i<S.size()-1;i++){
      |       ~                ^
      |                        )
a.cc:18:28: error: expected ';' before ')' token
   18 |     if(i=0;i<S.size()-1;i++){
      |                            ^
      |                            ;
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<list>
#include<map>
#include<deque>
#include<math.h>
using namespace std;
#define ll long long
int main(){
    string S;
    cin >> S;
    if(ll 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:17:27: error: expected ')' before ';' token
   17 |     if(ll i=0;i<S.size()-1;i++){
      |       ~                   ^
      |                           )
a.cc:17:28: error: 'i' was not declared in this scope
   17 |     if(ll i=0;i<S.size()-1;i++){
      |                            ^
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<list>
#include<map>
#include<deque>
#include<math.h>
using namespace std;
#define ll long long
int main(){
    ll S;
    cin >> S;
    if(ll 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:17:19: error: request for member 'size' in 'S', which is of non-class type 'long long int'
   17 |     if(ll i=0;i<S.size()-1;i++){
      |                   ^~~~
a.cc:17:27: error: expected ')' before ';' token
   17 |     if(ll i=0;i<S.size()-1;i++){
      |       ~                   ^
      |                           )
a.cc:17:28: error: 'i' was not declared in this scope
   17 |     if(ll i=0;i<S.size()-1;i++){
      |                            ^
Language: C++

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

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

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

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

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | string main(){
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: lvalue required as left operand of assignment
    7 |   if(s[0]==s[1] ||s[1]==s[2] || s[2]=s[3]){
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  stirng a;cin >> a;
  cout << ((a[0] != a[1] && a[1] != a[2] && a[2] != a[3]) ? "Good":"Bad") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
    5 |   stirng a;cin >> a;
      |   ^~~~~~
a.cc:5:19: error: 'a' was not declared in this scope
    5 |   stirng a;cin >> a;
      |                   ^