criyle/codenet-compile-errors huggingface dataset:
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:32: error: lvalue required as left operand of assignment
    8 |   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;
  if(s.at(0)==s.at(1)||s.at(1)==s.at(2)||s.at(2)==s.at(3)){
    cout<<"Bad"<<endl;
  }
  else{
    cout<<"Good"<<endl;
  }
]


Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: expected primary-expression before ']' token
   12 | ]
      | ^
a.cc:12:2: error: expected '}' at end of input
   12 | ]
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
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<<"Yes"<<endl;
  }
]

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: expected primary-expression before ']' token
   12 | ]
      | ^
a.cc:12:2: error: expected '}' at end of input
   12 | ]
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#include<stdio.h>

int main(void) {
   char s[4];
   scanf("%s", s);
  
   int ans == 0;
   for(int i = 0; i < 3; i++) {
      if(s[i] == s[i+1]) {
         ans++;
      }
   }

   if(ans == 0) {
      printf("Good");
   } else {
      printf("Bad");
   }
}


Compiler output:
main.c: In function 'main':
main.c:7:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
    7 |    int ans == 0;
      |            ^~
main.c:7:12: error: expected expression before '==' token
main.c:10:10: error: 'ans' undeclared (first use in this function)
   10 |          ans++;
      |          ^~~
main.c:10:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
void main()
{ 
  int n,r,i,sum,s=0;
  scanf("%d",&n);
  for(i=0;i<4;i++)
    { 
      r=n%10;
      n=n/10;
      sum=n%10; 
      if(sum==r)
        s++
    }
 if(s>0)
   printf("bad");
  else
    printf("good");
}
  


Compiler output:
main.c: In function 'main':
main.c:12:12: error: expected ';' before '}' token
   12 |         s++
      |            ^
      |            ;
   13 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std ;
 
int main(){
    int N;cin>>N;
    vector<pair<int,int>> A;
    for(int i=0;i<N;i++){
        int a,b;
        cin>>a>>b;
        A.emplace_back(b,a);
    }
    sort(A.begin(),A.end());
    }
 
    int judge=0,sum=0;
    for(int i=0;i<N;i++){
        sum+=A[i].first;
        if(A[i].second>=sum) judge+=1;
    }
    if(judge==N) cout << "Yes" <<endl;
    else cout << "No" << endl;
}


Compiler output:
a.cc:16:5: error: expected unqualified-id before 'for'
   16 |     for(int i=0;i<N;i++){
      |     ^~~
a.cc:16:17: error: 'i' does not name a type
   16 |     for(int i=0;i<N;i++){
      |                 ^
a.cc:16:21: error: 'i' does not name a type
   16 |     for(int i=0;i<N;i++){
      |                     ^
a.cc:20:5: error: expected unqualified-id before 'if'
   20 |     if(judge==N) cout << "Yes" <<endl;
      |     ^~
a.cc:21:5: error: expected unqualified-id before 'else'
   21 |     else cout << "No" << endl;
      |     ^~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C

#include<stdio.h>
int main(){
  int a;
  int b[4];
  scanf("%d",&a);
  for(int i=3;i>=0;i--){
    b[i]=a%10;
    a=a/10;
  }
  for(int i=0;i<3;i++){
    if(a[i]==a[i+1]){
      printf("Bad");
      return 0;
    }
  }
  printf("Good");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:9: error: subscripted value is neither array nor pointer nor vector
   11 |     if(a[i]==a[i+1]){
      |         ^
main.c:11:15: error: subscripted value is neither array nor pointer nor vector
   11 |     if(a[i]==a[i+1]){
      |               ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:11:9: error: subscripted value is neither array nor pointer nor vector
   11 |     if(a[i]==a[i+1]){
      |         ^
main.c:11:15: error: subscripted value is neither array nor pointer nor vector
   11 |     if(a[i]==a[i+1]){
      |               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:6: error: subscripted value is neither array nor pointer nor vector
    6 |     b[i]=a%10;
      |      ^
main.c:10:9: error: subscripted value is neither array nor pointer nor vector
   10 |     if(a[i]==a[i+1]){
      |         ^
main.c:10:15: error: subscripted value is neither array nor pointer nor vector
   10 |     if(a[i]==a[i+1]){
      |               ^
Language: C++

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

int main(){
  string s;
  cin >> s;
  set<char> st;
  for(auto e : s) st.insert(e);
  if(st.size() == 4) cout << "Good" << endl;
  else cout << "Bad" << endl;
  return 0;
}

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

#include <algorithm>
#include <bitset>
#include <tuple>
#include <cstdint>
#include <cstdio>
#include <cctype>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <limits>
#include <map>
#include <memory>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace std;
//using ll=long long;
//#define int long long
#define _CRT_SECURE_NO_WARNINGS
#define rep(i, n) for (int i = 0; i < n; i++)
#define _GLIBCXX_DEBUG
const int MOD = 1e9 + 7;
const int INF = 1e18 + 9;
constexpr long double pi = 3.141592653589793238462643383279; //円周率
/*---------------------便利な関数--------------------------------------*/
int fact(int i) {       //階乗
    if (i == 0) return 1;
    return (fact(i - 1)) * i;
}

int gcd(int a, int b) {        //最大公約数
    if (b == 0) return a;
    return gcd(b, a % b);
}

int lcm(int a, int b) {      //最小公倍数
    return a * b / gcd(a, b);
}

int keta(int n) {        //桁数を求める
    if (n == 0) return 1;
    int count = 0;
    while (n != 0) {
        n /= 10;
        count++;
    }
    return count;
}

int ketasum(int n) {    //各桁の和
    int sum = 0;
    while (n != 0) {
        sum += n % 10;
        n /= 10;
    }
    return sum;
}
//最小化問題(DP)
template<class T> inline bool chmin(T& a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}
//最大化問題(DP)
template<class T> inline bool chmax(T& a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}

//dp注意点
//問題の種類	 初期化する値	 備考
//最小化問題 	INF	
//最大化問題	    -INF	 テーブル全体で 00 以上の値しかとらないことがわかっていれば −1−1 でもいいですし、00 でもいい場合もあります
//数え上げ問題	00	
//確率問題	      00	
//Yes/No 判定問題	False
/*-------------ここまで---------------------------------------------*/

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

Compiler output:
a.cc:42:22: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
   42 | const int INF = 1e18 + 9;
      |                 ~~~~~^~~
a.cc: In function 'int main()':
a.cc:113:2: error: expected '}' at end of input
  113 | }
      |  ^
a.cc:103:22: note: to match this '{'
  103 | /*signed*/int main() {
      |                      ^
Language: C++


#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int,int>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
const ll INF = 1LL << 60;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:45: error: expected ']' before ')' token
   13 |     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;
  
  for (int i = 0; i < 3; i++){
    
    if (string.at(i) == string.at(i + 1)){
      cout << "Bad" << endl;
      return 0;
    }
  }
  
  cout << "Good" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected unqualified-id before '.' token
   10 |     if (string.at(i) == string.at(i + 1)){
      |               ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'check' was not declared in this scope; did you mean 'chack'?
    8 |     if(s[i]==s[i+1])check=true;
      |                     ^~~~~
      |                     chack
a.cc:10:6: error: 'check' was not declared in this scope; did you mean 'chack'?
   10 |   if(check)cout<<"Bad"<<endl;
      |      ^~~~~
      |      chack
Language: C++

#include <bits\stdc++.h>
using namespace std;
signed main(){
  string s;
  cin>>s;
  bool chack=false;
  for(int i = 0; i<3;i++){
    if(s[i]==s[i+1])check=true;
  }
  if(check)cout<<"Bad"<<endl;
  else cout<<"Good"<<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 <iostream>
using namespace std;

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


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

int main() 
{
    string S;
    cin>>S;
    for (int i = 1; i < 5; i++)
    {
        auto s= S[i-1];
        if(s==S[i])
        {
            cout<<"Bad"<<endl;
            return 0;
        }        

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'string' was not declared in this scope
    3 |     string S;
      |     ^~~~~~
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>S;
      |     ^~~
a.cc:4:10: error: 'S' was not declared in this scope
    4 |     cin>>S;
      |          ^
a.cc:10:13: error: 'cout' was not declared in this scope
   10 |             cout<<"Bad"<<endl;
      |             ^~~~
a.cc:10:26: error: 'endl' was not declared in this scope
   10 |             cout<<"Bad"<<endl;
      |                          ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout<<"Good"<<endl;
      |     ^~~~
a.cc:16:19: error: 'endl' was not declared in this scope
   16 |     cout<<"Good"<<endl;
      |                   ^~~~
Language: Java

var str=readLine()!

for num in 0...3{
  let a=str.index(str.startIndex,offsetBy:num)
  let b=str.index(str.startIndex,offsetBy:num+1)

  if str[a]==str[b] {
    print("Bad")
    break;
  }
  else if num==3 {
    print("Good")
  }
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
var str=readLine()!
^
  (use --enable-preview to enable unnamed classes)
Main.java:1: error: ';' expected
var str=readLine()!
                  ^
Main.java:3: error: illegal '.'
for num in 0...3{
              ^
Main.java:10: error: class, interface, enum, or record expected
  }
  ^
4 errors
Language: C

#include <iostream>
#include <string>

int main()
{
    std::string S;
    std::cin >> S;
    bool flag = 0;
    for (size_t i = 0; i < S.size() - 1; i++)
    {
        if (S[i] == S[i + 1]) {
            flag = 1;
            break;
        } else {
            continue;
        }  
    }

    if (flag) {
        std::cout << "BAD" << std::endl;
    } else {
        std::cout << "GOOD" << std::endl;
    }

    return 0;
}

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

mport java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int x = Integer.parseInt(chr[0]);
			int y = 0;
			String ans = "Good";
			for(int i =1; i<chr.length; i++) {
				y=Integer.parseInt(chr[i]);
				if(x==y) {
					ans = "Bad";
					break;
				}else {
					x=y;
				}
			}

			 System.out.println(ans);
		}
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.io.BufferedReader;
^
Main.java:2: error: class, interface, enum, or record expected
import java.io.IOException;
^
Main.java:3: error: class, interface, enum, or record expected
import java.io.InputStreamReader;
^
3 errors
Language: C++

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

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:9:43: error: lvalue required as left operand of assignment
    9 |   if(s.at(0)==s.at(1) || s.at(1)==s.at(2) || s.at(2)=-s.at(3)) cout<<"Bad"<<endl;
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Language: C++

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

int main() {
	string s;
	cin >> s;
	int z;
	for (int i = 0; i < 3; i++) {
		if (s.at(i) == s.at(i + 1)) {
			cout << "Bad" << endl;
			break;
		}
		z++
	}
	if (z == 3) {
		cout << "Good" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: expected ';' before '}' token
   13 |                 z++
      |                    ^
      |                    ;
   14 |         }
      |         ~
Language: C++

using namespace std;

int main(void){
   
   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:5:4: error: 'string' was not declared in this scope
    5 |    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:4: 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:11: error: 's' was not declared in this scope
    6 |    cin >> s;
      |           ^
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |        cout << "Bad" <<endl;
      |        ^~~~
a.cc:9:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:24: error: 'endl' was not declared in this scope
    9 |        cout << "Bad" <<endl;
      |                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:12:8: error: 'cout' was not declared in this scope
   12 |        cout << "Good" <<endl;
      |        ^~~~
a.cc:12:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:25: error: 'endl' was not declared in this scope
   12 |        cout << "Good" <<endl;
      |                         ^~~~
a.cc:12:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long ll;
typedef vector<int> vint;
#define rep(i,n) for (ll i = 0; i < (ll)(n); ++i)
#define rrep(i,j,n) for(ll i = (ll)(j); i < (ll)(n); i++)
#define mrep(i,n) for (ll i = (ll)(n-1); i > 0; i--)
#define be(v) (v).begin(), (v).end()
#define scout cout << fixed << setprecision(20) 
ll INF = 1LL << 60;
ll mod = 1e9 + 7;

int main() {
	string s; cin >> s;
	bool ok = false;
	rrep(i,1,n) {
		if(s[i]==s[i-1]) ok = true;
	}
	if(ok) cout << "Bad" << endl;
	else cout << "Good" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: 'n' was not declared in this scope
   17 |         rrep(i,1,n) {
      |                  ^
a.cc:7:50: note: in definition of macro 'rrep'
    7 | #define rrep(i,j,n) for(ll i = (ll)(j); i < (ll)(n); i++)
      |                                                  ^
Language: C++

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

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

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

import java.util.Scanner;

public class A131 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		char[] list = s.toCharArray();

		if (list[0] == list[1] || list[1] == list[2] || list[2] == list[3]) {
			System.out.println("Bad");
		} else {
			System.out.println("Good");
		}

		sc.close();
	}
}

Compiler output:
Main.java:3: error: class A131 is public, should be declared in a file named A131.java
public class A131 {
       ^
1 error
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 s1[] = s.split("");
    Arrays.sort(s1);
    String ans[] = {"Bad", "Good"};
    int a = 1;
    for (int i = 1; i < s1.length(); i++){
      if (s[i].equals(s[i-1])) a *= 0;
    }
    System.out.println(ans[a]);
  }
}

Compiler output:
Main.java:11: error: cannot find symbol
    for (int i = 1; i < s1.length(); i++){
                          ^
  symbol:   method length()
  location: variable s1 of type String[]
Main.java:12: error: array required, but String found
      if (s[i].equals(s[i-1])) a *= 0;
                       ^
Main.java:12: error: array required, but String found
      if (s[i].equals(s[i-1])) a *= 0;
           ^
3 errors
Language: C++

#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<bits/stdc++.h>
using namespace std;
int main() 
{
 
int i,arr[4];
for(int i=0;i<4;i++)
{
	cin>>arr[i];
}
for(int i=0;i<4;i++)
{
	if(arr[i]==arr[i+1])
	
	
}
cout<<"Bad";
else
cout<<"Good";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:1: error: expected primary-expression before '}' token
   20 | }
      | ^
a.cc:22:1: error: 'else' without a previous 'if'
   22 | else
      | ^~~~
Language: C++

#include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>

typedef long long ll;

#define rep(i, n) for (ll i = 0; i < (ll)n; ++i)
#define repd(i, n) for (ll i = (n)-1; i >= 0; --i)
#define INF 10e12
#define MOD 1000000000 + 7
#define MAX 51000
#define all(x) (x).begin(), (x).end()
#define MX(x) *max_element(all(x))
#define MN(x) *min_element(all(x))

using namespace std;

int main(void)
{
    cin.tie(0);
    cout.tie(0);
    ios::sync_with_stdio(false);
    string s;
    cin>>s;
    string ans="Good";
    rep(i,1,4)if(s[i-1]==s[i]) ans="Bad";
    cout<<ans<<endl;
}


Compiler output:
a.cc:42:14: error: macro "rep" passed 3 arguments, but takes just 2
   42 |     rep(i,1,4)if(s[i-1]==s[i]) ans="Bad";
      |              ^
a.cc:23:9: note: macro "rep" defined here
   23 | #define rep(i, n) for (ll i = 0; i < (ll)n; ++i)
      |         ^~~
a.cc: In function 'int main()':
a.cc:42:5: error: 'rep' was not declared in this scope
   42 |     rep(i,1,4)if(s[i-1]==s[i]) ans="Bad";
      |     ^~~
Language: Java

import java.util.Scanner;

public class Security {

	public static void main(String[] args) {
		Scanner scan= new Scanner(System.in);
		String s=scan.next();
		int c=0;
		for(int i=0;i<s.length()-1;i++)
		{
			if(s.charAt(i)==s.charAt(i+1))
			{
				c=1;
			}
		}
		if(c==1)System.out.println("Bad");
		else System.out.println("Good");

	}

}


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

#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i, from, to) for (int i = from; i < (to); ++i)
#define mp(x,y) make_pair(x,y)
#define all(x) (x).begin(),(x).end()
#define sz(x) (int)(x).size()
using ll = long long;
using vin=vector<int>;
using vll=vector<ll>;
using P = pair<int, int>;
const int inf=1e9+7;
const ll INF=1e18;
template <typename T> void chmin(T &a, T b) { a = min(a, b); }
template <typename T> void chmax(T &a, T b) { a = max(a, b); }

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









Compiler output:
a.cc:21:10: error: macro "rep" requires 3 arguments, but only 2 given
   21 |   rep(i,3){
      |          ^
a.cc:4:9: note: macro "rep" defined here
    4 | #define rep(i, from, to) for (int i = from; i < (to); ++i)
      |         ^~~
a.cc: In function 'int main()':
a.cc:21:3: error: 'rep' was not declared in this scope
   21 |   rep(i,3){
      |   ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ALL(x) (x).begin(),(x).end()
#define COUT(x) cout<<(x)<<"\n"
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define REP(i, n) for(int i=0;i<n;i++)
#define YES(x) cout<<(x?"YES":"NO")<<"\n"
#define Yes(x) cout<<(x?"Yes":"No")<<"\n"
#define dump(x) cout<<#x<<" = "<<(x)<<"\n"
#define endl "\n"
using G = vector<vector<int>>;
using M = map<int,int>;
using P = pair<int,int>;
using PQ = priority_queue<int>;
using PQG = priority_queue<int,vector<int>,greater<int>>;
using V = vector<int>;
using ll = long long;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
const int INF = 1e9;
const int MOD = 1e9+7;
const ll LINF = 1e18;

int main() {
  IOS;
  string s; cin >> s;
  for (int i = 1; i < 4; i++) {
  REP(i,4) {
    if (s[i]-1 == s[i]) { COUT("Bad"); return 0; }
  }
  COUT("Good");
  return 0;
}

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

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


int main(){

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)'
   12 |     if(S.size(i) ==  S.size(i + 1)){
      |        ~~~~~~^~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 1076 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
/usr/include/c++/14/bits/basic_string.h:1076:7: note:   candidate expects 0 arguments, 1 provided
a.cc:12:28: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int)'
   12 |     if(S.size(i) ==  S.size(i + 1)){
      |                      ~~~~~~^~~~~~~
/usr/include/c++/14/bits/basic_string.h:1076:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 1076 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
/usr/include/c++/14/bits/basic_string.h:1076:7: note:   candidate expects 0 arguments, 1 provided
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'ture' was not declared in this scope
    8 |     bool a=ture;
      |            ^~~~
Language: C++

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

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

	bool res = false;
	rep(i, s.size()-1){
		if(s.at(i) == s.at(i+1)) res true;
	}
	
	if(res) cout << "Bad" << endl;
	else cout << "Good" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:45: error: expected ';' before 'true'
   11 |                 if(s.at(i) == s.at(i+1)) res true;
      |                                             ^~~~~
      |                                             ;
Language: C++

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

Compiler output:
a.cc:16:1: error: expected unqualified-id before 'if'
   16 | if(ans==1)
      | ^~
a.cc:18:1: error: expected unqualified-id before 'else'
   18 | else
      | ^~~~
Language: C++

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

int main(){
  int s;
  cin >> s;
  if(s[0]==s[1]){
    cout << "Good" << endl;
  }
  else if(s[1]==s[2]){
    cout << "Good" << endl;
  }
  else if(s[2]==s[3]){
    cout << "Good" << endl;
  }
  else if(s[0]==s[1] && s[0]==s[2] && s[0]==s[3]){
    cout << "Good" << endl;
  }
  else{
    cout << "Bad" << endl;
  }
    
//aaab
//aaba
//abaa
//baaa


}

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]){
      |       ^
a.cc:7:13: error: invalid types 'int[int]' for array subscript
    7 |   if(s[0]==s[1]){
      |             ^
a.cc:10:12: error: invalid types 'int[int]' for array subscript
   10 |   else if(s[1]==s[2]){
      |            ^
a.cc:10:18: error: invalid types 'int[int]' for array subscript
   10 |   else if(s[1]==s[2]){
      |                  ^
a.cc:13:12: error: invalid types 'int[int]' for array subscript
   13 |   else if(s[2]==s[3]){
      |            ^
a.cc:13:18: error: invalid types 'int[int]' for array subscript
   13 |   else if(s[2]==s[3]){
      |                  ^
a.cc:16:12: error: invalid types 'int[int]' for array subscript
   16 |   else if(s[0]==s[1] && s[0]==s[2] && s[0]==s[3]){
      |            ^
a.cc:16:18: error: invalid types 'int[int]' for array subscript
   16 |   else if(s[0]==s[1] && s[0]==s[2] && s[0]==s[3]){
      |                  ^
a.cc:16:26: error: invalid types 'int[int]' for array subscript
   16 |   else if(s[0]==s[1] && s[0]==s[2] && s[0]==s[3]){
      |                          ^
a.cc:16:32: error: invalid types 'int[int]' for array subscript
   16 |   else if(s[0]==s[1] && s[0]==s[2] && s[0]==s[3]){
      |                                ^
a.cc:16:40: error: invalid types 'int[int]' for array subscript
   16 |   else if(s[0]==s[1] && s[0]==s[2] && s[0]==s[3]){
      |                                        ^
a.cc:16:46: error: invalid types 'int[int]' for array subscript
   16 |   else if(s[0]==s[1] && s[0]==s[2] && s[0]==s[3]){
      |                                              ^
Language: C++

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


Compiler output:
a.cc:15:2: error: expected unqualified-id before 'else'
   15 |  else if(S.at(2)==S.at(3)){
      |  ^~~~
a.cc:18:2: error: expected unqualified-id before 'if'
   18 |  if(a==true){
      |  ^~
a.cc:21:2: error: expected unqualified-id before 'else'
   21 |  else
      |  ^~~~
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
typedef vector<ll> vl;
typedef vector<string> vs;
typedef vector<char> vc;
typedef queue<ll> ql;
typedef deque<ll> dql;
typedef priority_queue<ll, vl/*, greater<ll>*/> pql; //降順(/*昇順*/)
typedef set<ll> sl;
typedef pair<ll, ll> pl;
typedef vector<vl> vvl;
typedef vector<pl> vpl;
#define rep(i, n) for(ll i = 0; i < ll(n); i++)
#define rep2(i, n) for(ll i = 1; i <= ll(n); i++)
//#define rep(i, k, n) for(ll i = k-1; i < ll(n); i++)
//#define rep2(i, k, n) for(ll i = k; i <= ll(n); i++)
#define all(v) (v).begin(), (v).end()
bool chmin(ll &a, ll b) {if(b < a) {a = b; return 1;} return 0;}
bool chmax(ll &a, ll b) {if(b > a) {a = b; return 1;} return 0;}
const ll INF = 1LL << 60;
const ll MOD = 1e9 + 7;
//const ll MOD = 998244353;
const ll MAX = 1e9;
const char newl = '\n';

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

  string S;
  cin >> S;
  rep(i, 3) if(s[i]==s[i+1]) {cout << "Bad" << newl; return 0;}
  cout << "Good" << newl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:16: error: 's' was not declared in this scope
   34 |   rep(i, 3) if(s[i]==s[i+1]) {cout << "Bad" << newl; return 0;}
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define INF 1LL<<62
#define inf 1000000007

int main() {
	string s;
	cin>>s;
	bool ans=false;
	for(ll i=1;i<s.size();i++){
		if(s[i-1]==s[i]){
			ans=true;
		}
	}
	cout << (ans?:"Bad":"Good");
	// your code goes here
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: operands to '?:' have different types 'bool' and 'const char*'
   16 |         cout << (ans?:"Bad":"Good");
      |                  ~~~^~~~~~~
a.cc:16:28: error: expected ')' before ':' token
   16 |         cout << (ans?:"Bad":"Good");
      |                 ~          ^
      |                            )
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef pair<int,int> P;

//マクロ
#define REP(i,n) for(ll i=0;i<(ll)(n);i++)
#define REPD(i,n) for(ll i=(ll)(n)-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=(a);i<=(b);i++)
#define FORD(i,a,b) for(ll i=(a);i>=(b);i--)
#define ALL(x) (x).begin(),(x).end() //sortなどの引数を省略したい
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x))
#define INF 1000000000000 //10^12
#define MOD 10000007 //10^9+7
#define PB push_back
#define MP make_pair
#define F first
#define S second

int main(int argc, char const *argv[]) {
    string s;
    cin >> s;
    FOR(i,1,SIZE(s)-1)
    {
        if (s[i] == s[i-1])
        {
            cout << "Bad" << endl;
            return 0;
        }
    }
    cout << "Good" << endl;/
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:33:28: error: expected primary-expression before '/' token
   33 |     cout << "Good" << endl;/
      |                            ^
a.cc:34:5: error: expected primary-expression before 'return'
   34 |     return 0;
      |     ^~~~~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: expected unqualified-id before ')' token
   14 |   if(bool){
      |          ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: 'i' was not declared in this scope
   13 |   if(i > 4){
      |      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i = 0;i < 4;i++){
      |       ^
a.cc:13:6: error: 'i' was not declared in this scope
   13 |   if(i > 4){
      |      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i = 0;i < 4;i++){
      |       ^
a.cc:13:6: error: 'i' was not declared in this scope
   13 |   if(i > 4){
      |      ^
a.cc:14:11: error: expected primary-expression before ',' token
   14 |     cout <, "Good" << endl;
      |           ^
a.cc:14:20: error: invalid operands of types 'const char [5]' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |     cout <, "Good" << endl;
      |             ~~~~~~~^~~~~~~
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,b = 0;
  cin >> a;
  for(1;a < 0;a =/ 10){
    if(a % 10 == b){
      cout << "Bad" << endl;
      break;
    }
    b = a % 10;
  }
  if(a < 0){
    cout << "Good" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected primary-expression before '/' token
    7 |   for(1;a < 0;a =/ 10){
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,b = 0;
  cin >> a;
  for(1;a < 0;a =/ 10){
    if(a % 10 == b){
      cout << "Bad" << endl;
      break;
    }
    b = a % 10;
  }
  if(a < 0){
    cout <, "Good" << endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected primary-expression before '/' token
    7 |   for(1;a < 0;a =/ 10){
      |                  ^
a.cc:15:11: error: expected primary-expression before ',' token
   15 |     cout <, "Good" << endl;
      |           ^
a.cc:15:20: error: invalid operands of types 'const char [5]' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 |     cout <, "Good" << endl;
      |             ~~~~~~~^~~~~~~
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{   int a;
    char code[30];
  printf("enter the code");
  scanf("%c",&code);
  for(a=0;code[a]!=code[a+1];a++)
    {
        
    }
    
    if(strlen(code)==a)
      {printf("\ngood");
      }
    else
    {printf("\nbad");
    }
  }
  

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

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{   int a;
    char code[30];
  printf("enter the code");
  scanf("%s",&code);
  for(a=0;code[a]!=code[a+1];a++)
    {
        
    }
    
    if(strlen(code)==a)
      {printf("\ngood");
      }
    else
    {printf("\nbad");
    }
  }
  

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: 'strings' was not declared in this scope; did you mean 'stdin'?
    8 |    strings;
      |    ^~~~~~~
      |    stdin
a.cc:9:9: error: 's' was not declared in this scope
    9 |    cin>>s;
      |         ^
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
	char s[5];
	int i,k;
//	scanf("%s",s);
    gets(s);k=1;
//	k=strlen(s);
	for(i=0;i<4;i++)
	{	
		if(s[i+1]==s[i])   {  
		k++;}}
		if(k>=2)        {  printf("bad");	}
		else    {  printf("good");	}
	return 0;
}

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

#include<stdio.h>
#include<string.h>
int main()
{
	char s[5];
	int i,k;
//	scanf("%s",s);
    gets(s);
	k=strlen(s);
//	for(i=0;i<k;i++)
//	{	}
		if(s[i+1]==s[i])   {  printf("bad");	}
		else    {  printf("good");	}
	return 0;
}

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

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

 }
  
 if(c>0) printf("Good");
  else printf("Bad");
  
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected ';' before 'for'
    7 |   scanf("%4s",a)
      |                 ^
      |                 ;
    8 |  for(i=0;i<3;++i)
      |  ~~~             
main.c:17:3: error: 'else' without a previous 'if'
   17 |   else printf("Bad");
      |   ^~~~
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;
  
  boolisgood=true;
  if(s[0]==s[1]) isgood=false;
  if(s[1]==s[2]) isgood=false;
  if(s[2]==s[3]) isgood=false;
  
  if(isgood){
    cout<<"Good";
  }
  else{
    cout<<"Bad";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: 'boolisgood' was not declared in this scope
   14 |   boolisgood=true;
      |   ^~~~~~~~~~
a.cc:15:18: error: 'isgood' was not declared in this scope
   15 |   if(s[0]==s[1]) isgood=false;
      |                  ^~~~~~
a.cc:16:18: error: 'isgood' was not declared in this scope
   16 |   if(s[1]==s[2]) isgood=false;
      |                  ^~~~~~
a.cc:17:18: error: 'isgood' was not declared in this scope
   17 |   if(s[2]==s[3]) isgood=false;
      |                  ^~~~~~
a.cc:19:6: error: 'isgood' was not declared in this scope
   19 |   if(isgood){
      |      ^~~~~~
Language: Java

import java.util.*;

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

Compiler output:
Main.java:8: error: array required, but String found
            if(str2[0].equals(str[1]) || str2[1].equals(str2[2]) || str2[2].equals(str2[3])){
                                 ^
1 error
Language: Java

import java.util.*;

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

Compiler output:
Main.java:8: error: array required, but String found
            if(str2[0].equals(str[1]) || str2[1].equals(str2[2]) || str2[2].equals(str2[3] || str2[3].equals(str2[4]))){
                                 ^
Main.java:8: error: bad operand types for binary operator '||'
            if(str2[0].equals(str[1]) || str2[1].equals(str2[2]) || str2[2].equals(str2[3] || str2[3].equals(str2[4]))){
                                                                                           ^
  first type:  String
  second type: boolean
2 errors
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:8: 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:16: 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:24: 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:32: 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:40: 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:48: error: invalid types 'int[int]' for array subscript
    7 |   if (s[0] == s[1] || s[1] == s[2] || s[2] == s[3]){
      |                                                ^
Language: C++

#include <math.h>
include<iostream>
using namespace std;
int main(){
  int n;
int r,sum;
  cin >> n;
  while (n>0){
    r=n%10;

    n=floor(n/10);
    sum=n%10;
    if(sum==r){
      cout << "Bad";
      break;
    }
  }
  if (sum!=r){
    cout << "Good";
  }
  return 0;
}


Compiler output:
a.cc:2:1: error: 'include' does not name a type
    2 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'sin'?
    7 |   cin >> n;
      |   ^~~
      |   sin
a.cc:14:7: error: 'cout' was not declared in this scope
   14 |       cout << "Bad";
      |       ^~~~
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout << "Good";
      |     ^~~~
Language: C++

#include <math.h>
using namespace std;
int main(){
  int n;
int r,sum;
  cin >> n;
  while (n>0){
    r=n%10;

    n=floor(n/10);
    sum=n%10;
    if(sum==r){
      cout << "Bad";
      break;
    }
  }
  if (sum!=r){
    cout << "Good";
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> n;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <math.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:13:7: error: 'cout' was not declared in this scope
   13 |       cout << "Bad";
      |       ^~~~
a.cc:13:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout << "Good";
      |     ^~~~
a.cc:18:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
#include <math.h>
using namespace std;
int main(){
  float n;
int r,sum;
  cin >> n;
  while (n>0){
    r=n%10;
    n=floor(n/10);
    sum=n%10;
    if(sum==r){
      cout << "Bad";
      break;
    }
  }
  if (sum!=r){
    cout << "Good";
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: invalid operands of types 'float' and 'int' to binary 'operator%'
    9 |     r=n%10;
      |       ~^~~
      |       | |
      |       | int
      |       float
a.cc:11:10: error: invalid operands of types 'float' and 'int' to binary 'operator%'
   11 |     sum=n%10;
      |         ~^~~
      |         | |
      |         | int
      |         float
Language: C++

#include<iostream>
using namespace std;
int main(){
int n,r,s;
  cin >> n;
  while (n>0){
    r=n%10;
    n=n/10;
    sum=n%10;
    if(sum==r){
      cout << "Bad";
      break;
    }
  }
  if (sum!=r){
    cout << "Good";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'sum' was not declared in this scope
    9 |     sum=n%10;
      |     ^~~
a.cc:15:7: error: 'sum' was not declared in this scope
   15 |   if (sum!=r){
      |       ^~~
Language: C++

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

int main(){
  string s;
  cin>>s;
  int t=0;
  for(int i=0;i<s.size()-1;i++){
    if(s.at(i)==s.at(i+1)){
      t=1;
      breal;
    }
  }
  if(t==0){
    cout<<"Good"<<endl;
  }
  else{
    cout<<"Bad"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'breal' was not declared in this scope
   11 |       breal;
      |       ^~~~~