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

#include <iostream>
#include <cmath>
#include <algorithm>
#include <string> //文字列
#include <iomanip> //doubleの桁数指定
#include <list> //前後に数値を入れれる配列
#include <map> //map
#include <vector> //vecror



#define REP(i,m,n) for(ll i = (ll) (m);i < (ll) (n);i++) //forの短縮
#define rep(i,n) REP(i,0,n) //REPが0の時
#define ll long long int

using namespace std;

double PI = 3.141592653589793; //円周率

//常設関数↓

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

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

//degree → radian
ll chg_DegRad(int deg) {
	return deg * PI / 180.0;
}

//radian → degree
ll chg_RadDeg(int rad) {
	return rad * 180.0 / PI;
}

//距離
double dis(double xa, double ya, double xb, double yb) {
	return pow(pow(xa - xb, 2.0) + pow(ya - yb, 2.0), 0.5);
}



//提出コード↓
string s;
bool J = true;




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

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:62:38: error: expected ';' before 'else'
   62 |         if (J) cout << "Good" << endl
      |                                      ^
      |                                      ;
   63 |         else cout << "Bad" << endl;
      |         ~~~~
Language: C++

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

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

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

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    boolean bl = true;
    for(int i = 0; i<3 ; i++){
      bl += (str.charAt(i) == str.charAt(i+1);
    }
    if(bl){
      System.out.println("Good");
    }else{
      System.out.println("Bad");
    }
  }
}

Compiler output:
Main.java:8: error: ')' expected
      bl += (str.charAt(i) == str.charAt(i+1);
                                             ^
1 error
Language: C++

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

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

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<stdio.h>
int main(void)
{
  int a[4],i,j;
  for(i=0;i<4;i++)
  scanf("%d",&a[i]);
  
  
 if(a[0]==a[1]||a[1]==a[2]||a[2]==a[3])
   printf("Bad");
 if(a[0]=!a[1]&&a[1]=!a[2]&&a[2]=!a[3])
    printf("Good");
  
  return 0;
}


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

#include<stdio.h>
int main(void)
{
  int a[4],i,j;
  for(i=0;i<4;i++)
  scanf("%d",&a[i]);
  
  
 if(a[0]==a[1]||a[1]==a[2]||a[2]==a[3])
   printf("bad");
  else
    printf("good");
  
  retuern 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:3: error: 'retuern' undeclared (first use in this function)
   14 |   retuern 0;
      |   ^~~~~~~
main.c:14:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:10: error: expected ';' before numeric constant
   14 |   retuern 0;
      |          ^~
      |          ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:14:3: error: 'retuern' undeclared (first use in this function)
   14 |   retuern 0;
      |   ^~~~~~~
main.c:14:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:10: error: expected ';' before numeric constant
   14 |   retuern 0;
      |          ^~
      |          ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:10:17: error: expected ';' before ':' token
   10 |    printf("Bad"):
      |                 ^
      |                 ;
main.c:14:3: error: 'retuern' undeclared (first use in this function)
   14 |   retuern 0;
      |   ^~~~~~~
main.c:14:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:10: error: expected ';' before numeric constant
   14 |   retuern 0;
      |          ^~
      |          ;
Language: C

include<stdio.h>
int main(void)
{
  int a[4],i,j;
  for(i=0;i<4;i++)
  scanf("%d",&a[i]);
  
  
 if(a[0]==a[1]||a[1]==a[2]||a[2]==a[3])
   printf("Bad"):
  else
    printf("Good");
  
  retuern 0;
}


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

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

int main(){
  string s ; cin >> s ;
  bool ok = true ;
  for(int i=1;i<4;i++){
    if(s.at(i)==s.at(i-1)) ok = false ;
  } 
  if(ok) cout << "Good" << endl ;
  else cout << "Bad" << endl ;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #Include; did you mean #include?
    2 | #Include<string>
      |  ^~~~~~~
      |  include
Language: C++

#include <iostream>
#include <vector>
#include <map>
#include <cmath>
#include <algorithm>
#define endl "\n"
using namespace std;

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

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

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

#include "mylibrary.h"

int main(void){
  cin >> s;

  if (s[0] == s[1] || s[1] == s[2] || s[2] == s[3])
    cout << "Bad" << endl;
  else
    cout << "Good" << endl;

  return 0;
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected unqualified-id before '[' token
    9 |   if(s.[0]==s.[1] || s.[1]==s.[2] || s.[2]==s.[3]) cout<<"Bad"<<endl;
      |        ^
a.cc:9:15: error: expected unqualified-id before '[' token
    9 |   if(s.[0]==s.[1] || s.[1]==s.[2] || s.[2]==s.[3]) cout<<"Bad"<<endl;
      |               ^
a.cc:9:24: error: expected unqualified-id before '[' token
    9 |   if(s.[0]==s.[1] || s.[1]==s.[2] || s.[2]==s.[3]) cout<<"Bad"<<endl;
      |                        ^
a.cc:9:31: error: expected unqualified-id before '[' token
    9 |   if(s.[0]==s.[1] || s.[1]==s.[2] || s.[2]==s.[3]) cout<<"Bad"<<endl;
      |                               ^
a.cc:9:40: error: expected unqualified-id before '[' token
    9 |   if(s.[0]==s.[1] || s.[1]==s.[2] || s.[2]==s.[3]) cout<<"Bad"<<endl;
      |                                        ^
a.cc:9:47: error: expected unqualified-id before '[' token
    9 |   if(s.[0]==s.[1] || s.[1]==s.[2] || s.[2]==s.[3]) cout<<"Bad"<<endl;
      |                                               ^
Language: C++

#include <iostream>
#include <iomanip>
#include <utility>
#include <cmath>
#include <random>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <string>
#include <algorithm>
using namespace std;

#define rep(i,n) for(int i = 0; i<n; ++i)
const int INF = 100100100;
const int MOD = (int)1e9 + 7;
typedef long long ll;

int main(){
    string s; cin >> s;
    rep(i,n-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()':
a.cc:22:11: error: 'n' was not declared in this scope
   22 |     rep(i,n-1){
      |           ^
a.cc:15:35: note: in definition of macro 'rep'
   15 | #define rep(i,n) for(int i = 0; i<n; ++i)
      |                                   ^
Language: C++

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

 int main() {
   int S[3];
   string res = "Good";
   for (int i = 0; i < 4; i++) {
     cin >> S[i];
   }

   for (int i = 1; i < 4 i++) {
     if (S[i] == S[i-1]) {
       res ="Bad";
     }
   }

   cout << res << '\n';
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: expected ';' before 'i'
   11 |    for (int i = 1; i < 4 i++) {
      |                         ^~
      |                         ;
Language: C++

s = input()

ans = 'Good'
c1 = ''
for c2 in s:
  if c1 == c2:
    ans = 'Bad'
    break
  c1 = c2
  
print(ans)

Compiler output:
a.cc:3:7: warning: multi-character character constant [-Wmultichar]
    3 | ans = 'Good'
      |       ^~~~~~
a.cc:4:6: error: empty character constant
    4 | c1 = ''
      |      ^~
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
    7 |     ans = 'Bad'
      |           ^~~~~
a.cc:1:1: error: 's' does not name a type
    1 | s = input()
      | ^
Language: Java

import java.util.*; 

class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
      
        String s=sc.next();
		int ans=0;
  		int[] a=s.split("");
		for(int c=0;c<4;c++){
    		if(a[c].equals(a[c+1])){
            ans++;
            }
    	}
    
 	if(ans==0){
    		System.out.println("Good");
    	}else{
     		System.out.println("Bad");
   	 }

    	
    }
}

Compiler output:
Main.java:9: error: incompatible types: String[] cannot be converted to int[]
  		int[] a=s.split("");
  		               ^
Main.java:11: error: int cannot be dereferenced
    		if(a[c].equals(a[c+1])){
    		       ^
2 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    char[] s = next().toCharArray();
    boolean ans = true;
    for(int i = 0;i < 3;i++){
      if(s[i] == s[i+1])  ans = false;
    }
    if(ans){
      System.out.println("Good");
    }else{
      System.out.println("Bad");
    }
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    char[] s = next().toCharArray();
               ^
  symbol:   method next()
  location: class Main
1 error
Language: C++

#include<iostream>
#include<string>
using namespace std;
main() {
  string S;
  cin >> S;
  cout << (s[0]==s[1]||s[1]==s[2]||s[2]==s[3]?""Bad":"Good");
}


Compiler output:
a.cc:7:59: warning: missing terminating " character
    7 |   cout << (s[0]==s[1]||s[1]==s[2]||s[2]==s[3]?""Bad":"Good");
      |                                                           ^
a.cc:7:59: error: missing terminating " character
    7 |   cout << (s[0]==s[1]||s[1]==s[2]||s[2]==s[3]?""Bad":"Good");
      |                                                           ^~~
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:12: error: 's' was not declared in this scope
    7 |   cout << (s[0]==s[1]||s[1]==s[2]||s[2]==s[3]?""Bad":"Good");
      |            ^
a.cc:7:52: error: inconsistent user-defined literal suffixes 'Bad' and 'Good' in string literal
    7 |   cout << (s[0]==s[1]||s[1]==s[2]||s[2]==s[3]?""Bad":"Good");
      |                                                    ^~~~~~~
a.cc:7:52: error: unable to find string literal operator 'operator""Bad' with 'const char [2]', 'long unsigned int' arguments
a.cc:7:59: error: expected ':' before '}' token
    7 |   cout << (s[0]==s[1]||s[1]==s[2]||s[2]==s[3]?""Bad":"Good");
      |                                                           ^
      |                                                           :
    8 | }
      | ~                                                          
a.cc:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
a.cc:7:59: error: expected ')' before '}' token
    7 |   cout << (s[0]==s[1]||s[1]==s[2]||s[2]==s[3]?""Bad":"Good");
      |           ~                                               ^
      |                                                           )
    8 | }
      | ~
Language: C++

#include<iostream>
#include<string>
using namespace std;
main() {
  string S;
  cin >> S;
  cout << (s[0]==s[1]||s[2]||s[2]||==s[3]?""Bad":"Good");
}


Compiler output:
a.cc:7:55: warning: missing terminating " character
    7 |   cout << (s[0]==s[1]||s[2]||s[2]||==s[3]?""Bad":"Good");
      |                                                       ^
a.cc:7:55: error: missing terminating " character
    7 |   cout << (s[0]==s[1]||s[2]||s[2]||==s[3]?""Bad":"Good");
      |                                                       ^~~
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:12: error: 's' was not declared in this scope
    7 |   cout << (s[0]==s[1]||s[2]||s[2]||==s[3]?""Bad":"Good");
      |            ^
a.cc:7:36: error: expected primary-expression before '==' token
    7 |   cout << (s[0]==s[1]||s[2]||s[2]||==s[3]?""Bad":"Good");
      |                                    ^~
a.cc:7:48: error: inconsistent user-defined literal suffixes 'Bad' and 'Good' in string literal
    7 |   cout << (s[0]==s[1]||s[2]||s[2]||==s[3]?""Bad":"Good");
      |                                                ^~~~~~~
a.cc:7:48: error: unable to find string literal operator 'operator""Bad' with 'const char [2]', 'long unsigned int' arguments
a.cc:7:55: error: expected ':' before '}' token
    7 |   cout << (s[0]==s[1]||s[2]||s[2]||==s[3]?""Bad":"Good");
      |                                                       ^
      |                                                       :
    8 | }
      | ~                                                      
a.cc:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
a.cc:7:55: error: expected ')' before '}' token
    7 |   cout << (s[0]==s[1]||s[2]||s[2]||==s[3]?""Bad":"Good");
      |           ~                                           ^
      |                                                       )
    8 | }
      | ~
Language: C++

#include<iostream>
#include<string>
using namespace std;
main() {
  string S;
  cin >> S;
  cout << (s[0]==s[1]||s[2]||s[2]||==s[3]?""Bad":"Good");
           }

Compiler output:
a.cc:7:55: warning: missing terminating " character
    7 |   cout << (s[0]==s[1]||s[2]||s[2]||==s[3]?""Bad":"Good");
      |                                                       ^
a.cc:7:55: error: missing terminating " character
    7 |   cout << (s[0]==s[1]||s[2]||s[2]||==s[3]?""Bad":"Good");
      |                                                       ^~~
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:12: error: 's' was not declared in this scope
    7 |   cout << (s[0]==s[1]||s[2]||s[2]||==s[3]?""Bad":"Good");
      |            ^
a.cc:7:36: error: expected primary-expression before '==' token
    7 |   cout << (s[0]==s[1]||s[2]||s[2]||==s[3]?""Bad":"Good");
      |                                    ^~
a.cc:7:48: error: inconsistent user-defined literal suffixes 'Bad' and 'Good' in string literal
    7 |   cout << (s[0]==s[1]||s[2]||s[2]||==s[3]?""Bad":"Good");
      |                                                ^~~~~~~
a.cc:7:48: error: unable to find string literal operator 'operator""Bad' with 'const char [2]', 'long unsigned int' arguments
a.cc:7:55: error: expected ':' before '}' token
    7 |   cout << (s[0]==s[1]||s[2]||s[2]||==s[3]?""Bad":"Good");
      |                                                       ^
      |                                                       :
    8 |            }
      |            ~                                           
a.cc:8:12: error: expected primary-expression before '}' token
    8 |            }
      |            ^
a.cc:7:55: error: expected ')' before '}' token
    7 |   cout << (s[0]==s[1]||s[2]||s[2]||==s[3]?""Bad":"Good");
      |           ~                                           ^
      |                                                       )
    8 |            }
      |            ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:25: error: expected primary-expression before ',' token
   19 |         cout << "Good", , endl;
      |                         ^
Language: C++

//
//  main.cpp
//  ATcode131
//
//  Created by didi on 2020/1/16.
//  Copyright © 2020年 didi. All rights reserved.
//

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

int main(int argc, const char * argv[]) {
    // insert code here...
    string s
    cin >> s;
    for (int i = 0; i + 1 < s.length(); ++i) {
        if (s[i] == s[i+1]) {
            cout << "Bad";
            return 0;
        }
    }
    cout << "Good";
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:18:5: error: expected initializer before 'cin'
   18 |     cin >> s;
      |     ^~~
a.cc:19:29: error: 's' was not declared in this scope
   19 |     for (int i = 0; i + 1 < s.length(); ++i) {
      |                             ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'vec' was not declared in this scope
    8 |                 if (vec.at(i)==vec.at(i+1)){
      |                     ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'vec' was not declared in this scope
    8 |                 if (vec.at(i)==vec.at(i+1)){
      |                     ^~~
a.cc:9:35: error: expected ';' before '}' token
    9 |                         ans ="Bad"
      |                                   ^
      |                                   ;
   10 |                 }
      |                 ~
Language: C++

 #include <iostream> 
#include <string> 
using namespace std;
int main(void){ 
  string s; 
  // Input 12 cin >> s; 1// Compare the adjacent characters and judge 
  bool isgood = true;

 if (s[0] == s[1]) isgood = false;if (s[1] == s[2]) isgood = false; 18 if (s[2] == s[3]) isgood = false; 19 20 // Output 21 if (isgood) { 22 cout << "Good" << endl; 23 } else { 24 cout << "Bad" << endl; 25 } 2 return 0; 

Compiler output:
a.cc: In function 'int main()':
a.cc:9:71: error: expected ';' before 'if'
    9 |  if (s[0] == s[1]) isgood = false;if (s[1] == s[2]) isgood = false; 18 if (s[2] == s[3]) isgood = false; 19 20 // Output 21 if (isgood) { 22 cout << "Good" << endl; 23 } else { 24 cout << "Bad" << endl; 25 } 2 return 0;
      |                                                                       ^~~
      |                                                                       ;
a.cc:9:108: error: expected ';' before numeric constant
    9 |  if (s[0] == s[1]) isgood = false;if (s[1] == s[2]) isgood = false; 18 if (s[2] == s[3]) isgood = false; 19 20 // Output 21 if (isgood) { 22 cout << "Good" << endl; 23 } else { 24 cout << "Bad" << endl; 25 } 2 return 0;
      |                                                                                                            ^~~
      |                                                                                                            ;
a.cc:9:111: error: expected '}' at end of input
    9 |  if (s[0] == s[1]) isgood = false;if (s[1] == s[2]) isgood = false; 18 if (s[2] == s[3]) isgood = false; 19 20 // Output 21 if (isgood) { 22 cout << "Good" << endl; 23 } else { 24 cout << "Bad" << endl; 25 } 2 return 0;
      |                                                                                                               ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: C++

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

int main() {
  vector<int> a(3);
  for(int i=0; i<4; i++)[
    cin >> a.at(i);
  }
  for(int j=0; j<5; j++){
  	if(a.at(j)==a.at(j+1)){
    	cout << "bad";
        break;
    }
    else if(j==3){
    	cout<<"good";
      break;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: warning: capture of variable 'std::cin' with non-automatic storage duration
    7 |     cin >> a.at(i);
      |     ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::istream std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:8: error: expected ',' before '>>' token
    7 |     cin >> a.at(i);
      |        ^~~
      |        ,
a.cc:7:9: error: expected identifier before '>>' token
    7 |     cin >> a.at(i);
      |         ^~
a.cc:7:19: error: expected ']' before ';' token
    7 |     cin >> a.at(i);
      |                   ^
      |                   ]
a.cc: In lambda function:
a.cc:7:19: error: expected '{' before ';' token
a.cc: At global scope:
a.cc:9:3: error: expected unqualified-id before 'for'
    9 |   for(int j=0; j<5; j++){
      |   ^~~
a.cc:9:16: error: 'j' does not name a type
    9 |   for(int j=0; j<5; j++){
      |                ^
a.cc:9:21: error: 'j' does not name a type
    9 |   for(int j=0; j<5; j++){
      |                     ^
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
  char A[4];
  char B;
  int i;
  B=0;
  
  for(i=0;i<4;i++){
   cin >> A[i];
  }
  for(i=0;i<3;i++){
   if(A[i]==A[i+1])
     B=1;
  }
  if(B==1)
    cout("Bad")
  if(B==0)
    cout("Good")
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (const char [4])'
   19 |     cout("Bad")
      |     ~~~~^~~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
  char A[4];
  char B;
  B=0;
  
  for(i=0;i<4;i++){
   cin >> A[i];
  }
  for(i=0;i<3;i++){
   if(A[i]==A[i+1])
     B=1;
  }
  if(B==1)
    cout("Bad")
  if(B==0)
    cout("Good")
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'i' was not declared in this scope
   10 |   for(i=0;i<4;i++){
      |       ^
a.cc:13:7: error: 'i' was not declared in this scope
   13 |   for(i=0;i<3;i++){
      |       ^
a.cc:18:9: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (const char [4])'
   18 |     cout("Bad")
      |     ~~~~^~~~~~~
Language: C++

s = int(input())
s_list = list(s)
ans="Good"
for i in range(len(s))
	if s_list[i]==s_list[i+1]:
		ans="Bad"
print(ans)

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;
    string ans = "Bad";
    for(int i=0; i<=2; i++){
    	if(S[i]==S[i+1]){ans=Good;break;}
    }
    cout << ans <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: 'Good' was not declared in this scope
    9 |         if(S[i]==S[i+1]){ans=Good;break;}
      |                              ^~~~
Language: C++

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


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

#include <bits\stdc++.h>
using namespace std;
int main()
{
    int x,y,z,t;
    cin>>x>>y>>z>>t;
    if(x==y||y==z||z==t)
        cout<<"Bad";
    else cout<<"Good";
}


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>

int main() {
	char input[100];
	int i = 0;
	cin >> input;
	if (input[0] == input[1] || input[1] == input[2] || input[2] == input[3]) {
		counter++;
	}
	if (i == 0) {
		cout << "Good" << endl;
	}
	else if (i != 0) {
		cout << "Bad" << endl;
	}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> input;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:17: error: 'counter' was not declared in this scope
    8 |                 counter++;
      |                 ^~~~~~~
a.cc:11:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |                 cout << "Good" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |                 cout << "Good" << endl;
      |                                   ^~~~
      |                                   std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |                 cout << "Bad" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |                 cout << "Bad" << endl;
      |                                  ^~~~
      |                                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cstring>
#include <cmath>
#include <climits>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <array>
#include <bitset>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define io() ios_base::sync_with_stdio(false); cin.tie(nullptr)
#define ll long long
#define ull unsigned long long
#define ui unsigned int
#define us unsigned short
#define fi first
#define se second
#define IN(i,l,r) (l<i&&i<r)
#define LINR(i,l,r) (l<=i&&i<=r)
#define LIN(i,l,r) (l<=i&&i<r)
#define INR(i,l,r) (l<i&&i<=r)
#define v(T) vector<T>
#define p(T, N) pair<T, N>
#define tp(A, B, C) tuple<A, B, C>
#define ii p(int, int)
#define vi v(int)
#define vii v(p(int, int))
#define vvi v(v(int))
#define vl v(long long)
#define vll v(p(long long, long long))
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define qsort(a) sort(all(a))
#define qsortd(a) sort(all(a), greater<>())
#define qsortf(a, f) sort(all(a), f)
#define qsortsi(v) sort(v.begin(), v.end(), [](pair<int, int> a, pair<int, int> b){return a.se < b.se;})
#define pb(n) push_back(n)
#define eb(n) emplace_back(n)
#define pp(a, b) emplace_back(make_pair(a, b))
#define pt(a, b, c) emplace_back(make_tuple(a, b, c))
#define elif else if
#define fori(i, n) for(ll i = 0; i < n; ++i)
#define foris(i, a, b) for(ll i = a; i < b; ++i)
#define forise(i, a, b) for(ll i = a; i <= b; ++i)
#define ford(i, n) for(ll i = n; i >= 0; --i)
#define fords(i, a, b) for(ll i = a; i >= b; --i)
#define fordse(i, a, b) for(ll i = a; i > b; --i)
#define fora(i, a) for (auto &i: a)
#define rev(a) reverse(a.begin(), a.end())
#define revf(a, b, c) (reverse(a.begin() + b, a.begin() + c))
#define digits(i) (int)((log(i)/(log(10))+1)
#define umap unordered_map
#define uset unordered_set
#define nl '\n'
#define fileio(in, out) freopen(in, "r", stdin); freopen(out, "w", stdout)
const int mod = 1000000007;

string S;

int main() {
  io();
  cin >> S;
  
  bool istrue = true;
  fori(i, N.size()) {
    foris(j, i + 1, N.size()) {
      if(S[i] == S[j]) {
        istrue = false;
        break;
      }
    }
  }
  
  if(istrue) cout << "Good";
  else cout << "Bad";
  
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:85:11: error: 'N' was not declared in this scope
   85 |   fori(i, N.size()) {
      |           ^
a.cc:62:38: note: in definition of macro 'fori'
   62 | #define fori(i, n) for(ll i = 0; i < n; ++i)
      |                                      ^
Language: C++

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

int main() {
  cint.tie(0);
  ios::sync_with_stdio(false);
  
  string s;
  cin >> s;
  bool judge = true;
  for(int i = 0; i < s.size() - 1; i++) {
    if(s[i] == s[i + 1]) {
      judge = false;
    }
  }
  if(judge) {
    cout << "Good" << endl;
  }else {
    cout << "Bad" << endl;
  }
}
      

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:36: error: expected ';' before 'return'
   14 |   cout << (3 == i ? "Good" : "Bad")
      |                                    ^
      |                                    ;
   15 |   return 0;
      |   ~~~~~~
Language: C++

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

int main() {
    string S;
    cin >> S;
    bool A=false;
    for (int i=0 ; i<S.size() ; i++)){
        if (S.at(i)==S.at(i+1))
        A=true;
    }
    if (A==true)
    cout << "Bad" << endl;
    else if (A==false)
    cout << "Good" << endl;
}

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

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

int main() {
    string s;
    cin>>s;
	for(int i = 1; i<s.length(); ++i){
        if(s[i] == s[i-1]) {
            cout<<"Bad\n";
        }
    }
	else{
		cout<<"Good\n";
	}
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else{
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){c
long long a,b=0;
  string s;
  cin>>s;
  for(int i=0;i<3;i++){
    if(s[i]==s[i+1]) b=1;
  }
  if(b!=1) cout<<"Good\n";
  else cout<<"Bad\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:12: error: 'c' was not declared in this scope
    3 | int main(){c
      |            ^
a.cc:8:22: error: 'b' was not declared in this scope
    8 |     if(s[i]==s[i+1]) b=1;
      |                      ^
a.cc:10:6: error: 'b' was not declared in this scope
   10 |   if(b!=1) cout<<"Good\n";
      |      ^
Language: C++

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

int main() {
  string s ans="Good";
  cin >> s;
  rep(i,sz(s)-1) if(s.at(i)==s.at(i+1)) ans="Bad";
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected initializer before 'ans'
    8 |   string s ans="Good";
      |            ^~~
a.cc:9:10: error: 's' was not declared in this scope; did you mean 'sz'?
    9 |   cin >> s;
      |          ^
      |          sz
a.cc:10:41: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   rep(i,sz(s)-1) if(s.at(i)==s.at(i+1)) ans="Bad";
      |                                         ^~~
      |                                         abs
a.cc:11:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'n' was not declared in this scope
   11 |   for(int i=0; i < n-1; i++) {
      |                    ^
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 first = s.substring(0,1);
    String second = s.substring(1,2);
    String third = s.substring(2,3);
    String fourth = s.substring(3,4);
    
    if (first.equals(second)) {
      System.out.println(Bad);
    } else if (second.equals(third)) {
      System.out.println(Bad);
    } else if (third.equals(fourth)) {
      System.out.println(Bad);
    } else {
      System.out.println(Good);
    }
  }
}

Compiler output:
Main.java:14: error: cannot find symbol
      System.out.println(Bad);
                         ^
  symbol:   variable Bad
  location: class Main
Main.java:16: error: cannot find symbol
      System.out.println(Bad);
                         ^
  symbol:   variable Bad
  location: class Main
Main.java:18: error: cannot find symbol
      System.out.println(Bad);
                         ^
  symbol:   variable Bad
  location: class Main
Main.java:20: error: cannot find symbol
      System.out.println(Good);
                         ^
  symbol:   variable Good
  location: class Main
4 errors
Language: C++

#include<iostream>
using namespace std;

int main(){
    int n, a, b, c, d;
    cin >> n;
    
    a = n / 1000;
    b = (n / 100) / 10;
    c = (n / 10) / 10;
    d =  n - a - b - c;

    if(a == b || b == c || c = d){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: lvalue required as left operand of assignment
   13 |     if(a == b || b == c || c = d){
      |        ~~~~~~~~~~~~~~~~~^~~~
a.cc: At global scope:
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
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:6:22: error: extended character 　 is not valid in an identifier
    6 |   if(s.at(0)==s.at(1)　|| s.at(1)==s.at(2) || s.at(2)==s.at(3)){
      |                      ^
a.cc: In function 'int main()':
a.cc:6:22: error: expected ')' before '\U00003000'
    6 |   if(s.at(0)==s.at(1)　|| s.at(1)==s.at(2) || s.at(2)==s.at(3)){
      |     ~                ^~
      |                      )
Language: C++

package main

import (
	"fmt"
)

func main() {
	var s int
	fmt.Scan(&s)
	num = 1000
	
	for i:=0; i<3; i++ {
		if s / num == s % num / (num / 10){
			fmt.Println("Bad")
			return
		}
		num /= 10
	}
	fmt.Println("Good")
}

Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
Language: C++

#include<stdio.h>
#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
	using long long  a, b, c, d, cnt = 0, x, y;
	scanf("%lld %lld %lld %lld", &a, &b, &c, &d);
	for (int i = a; i <= b; i++) {
		x = i % c;
		y = i % d;
		if (x != 0 && y != 0) {
			cnt++;
		}
	}
	printf("%lld\n", cnt);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected nested-name-specifier before 'long'
    7 |         using long long  a, b, c, d, cnt = 0, x, y;
      |               ^~~~
a.cc:8:39: error: 'a' was not declared in this scope
    8 |         scanf("%lld %lld %lld %lld", &a, &b, &c, &d);
      |                                       ^
a.cc:8:43: error: 'b' was not declared in this scope
    8 |         scanf("%lld %lld %lld %lld", &a, &b, &c, &d);
      |                                           ^
a.cc:8:47: error: 'c' was not declared in this scope
    8 |         scanf("%lld %lld %lld %lld", &a, &b, &c, &d);
      |                                               ^
a.cc:8:51: error: 'd' was not declared in this scope
    8 |         scanf("%lld %lld %lld %lld", &a, &b, &c, &d);
      |                                                   ^
a.cc:10:17: error: 'x' was not declared in this scope
   10 |                 x = i % c;
      |                 ^
a.cc:11:17: error: 'y' was not declared in this scope
   11 |                 y = i % d;
      |                 ^
a.cc:13:25: error: 'cnt' was not declared in this scope; did you mean 'int'?
   13 |                         cnt++;
      |                         ^~~
      |                         int
a.cc:16:26: error: 'cnt' was not declared in this scope; did you mean 'int'?
   16 |         printf("%lld\n", cnt);
      |                          ^~~
      |                          int
Language: C++

#include <stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope; did you mean 'stdin'?
    4 |     string s;
      |     ^~~~~~
      |     stdin
a.cc:5:17: error: 's' was not declared in this scope
    5 |     scanf("%s", s);
      |                 ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'o' was not declared in this scope
    7 |   if(s.at(o) == s.at(1)){
      |           ^
Language: Java

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.StringTokenizer;
import java.io.BufferedReader;
import java.util.Comparator;
import java.util.Collections;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author Jaynil
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        DMegalomania solver = new DMegalomania();
        solver.solve(1, in, out);
        out.close();
    }

    static class DMegalomania {
        public void solve(int testNumber, InputReader in, PrintWriter out) {
            int n = in.nextInt();
            ArrayList<Pair<Integer, Integer>> a = new ArrayList<>();
            for (int i = 0; i < n; i++) {
                a.add(new Pair(in.nextInt(), in.nextInt()));
            }
            Collections.sort(a, new Comparator<Pair<Integer, Integer>>() {

                public int compare(Pair<Integer, Integer> o1, Pair<Integer, Integer> o2) {
                    return o1.getValue() - o2.getValue();
                }
            });
            long ans = 0;
            boolean yes = false;
            for (int i = 0; i < n; i++) {
                ans += a.get(i).getKey();
                if (ans > a.get(i).getValue()) {
                    yes = true;
                    break;
                }
            }
            if (yes) out.println("No");
            else out.println("Yes");
        }

    }

    static class Pair implements java.io.Serializable {
        K getKey();

        V getValue();

        Pair<Integer,Integer>;

        String toString();

        int hashCode();

        boolean equals;

    }

    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    }
}



Compiler output:
Main.java:64: error: <identifier> expected
        Pair<Integer,Integer>;
                             ^
1 error
Language: C++

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

int main()
{
  ifstream fIn("input.txt");
  if (fIn.is_open())
    cin.rdbuf(fIn.rdbuf());

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

      cout << "Good" << endl;
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int)'
    8 |     if (S.size(i - 1) == S.size(i)) cout << "Bad" << endl;
      |         ~~~~~~^~~~~~~
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:8:32: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)'
    8 |     if (S.size(i - 1) == S.size(i)) cout << "Bad" << endl;
      |                          ~~~~~~^~~
/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++

n=int(input())
a=[0]*n
b=[0]*n
for i in range(n):
  a[i],b[i] = map(int,input().split())

t=0
flag=True
for _ in range(n):
  i=b.index(min(b))
  j=sorted(a)[i]
  k=sorted(b)[i]
  if j>k-t:
    print('No')
    flag=False
    break
  else:
    t += j
if flag:
  print('Yes')

Compiler output:
a.cc:14:11: warning: multi-character character constant [-Wmultichar]
   14 |     print('No')
      |           ^~~~
a.cc:20:9: warning: multi-character character constant [-Wmultichar]
   20 |   print('Yes')
      |         ^~~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n=int(input())
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll gcd(ll a,ll b){return b?:gcd(b,a%b):a;}
ll lcm(ll a,ll b){return a/gcd(a,b)*b;}

ll f(ll x,int c,int d){
  ll res=x;
  res -= x/c;
  res -= x/d;
  res += x/lcm(c,d);
  return res;
}

int main(){
  int A,B,c,d;
  cin >> A >> B >> c >> d;
  ll ans = f(B,c,d) - f(A-1,c,d);
  cout << ans << endl;
  
}

Compiler output:
a.cc: In function 'll gcd(ll, ll)':
a.cc:4:39: error: expected ';' before ':' token
    4 | ll gcd(ll a,ll b){return b?:gcd(b,a%b):a;}
      |                                       ^
      |                                       ;
a.cc:4:39: error: expected primary-expression before ':' token
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    final String S=sc.next();
    char[] s=S.toCharArray();
    boolean flg=false;
    for(int i=0;i<3;i++){
      if(s[i]==s[i+1){
        flg=true;
        break;
      }
    }
    if(flg){
      System.out.println("Bad");
    }else{
      System.out.println("Good");
    }
  }
}

Compiler output:
Main.java:10: error: ']' expected
      if(s[i]==s[i+1){
                    ^
1 error
Language: C++

//inlclude前用define 
#define _USE_MATH_DEFINES

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

using namespace std;

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

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:42:17: error: expected ';' before '}' token
   42 |     cout<<"Good"
      |                 ^
      |                 ;
   43 | }
      | ~