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

import std.stdio, std.conv, std.string, std.algorithm;

void main() {
	int N, M;
	int [] t;
	t  = readln().chomp().split().to!(int[]);
	N = t[0]; M = t[1];

	long [][] a;
	foreach(int i; 0..N)
		a ~= readln().chomp().split().to!(long[]);

	long res = 0;
	foreach(int i; 0..(1<<3)) {
		long [] b;
		foreach(int j; 0..N) {
			long c = 0;
			foreach(int k; 0..3) {
				if(i&(1<<k))
					c += a[j][k];
				else
					c -= a[j][k];
			}
			b ~= c;
		}
		b.sort!("a > b");
		long d = 0;
		foreach(int j; 0..M) {
			d += b[j];
		}
		res = max(res,d);
	}
	writefln("%d",res);
}


Compiler output:
a.cc:10:24: error: too many decimal points in number
   10 |         foreach(int i; 0..N)
      |                        ^~~~
a.cc:14:24: error: too many decimal points in number
   14 |         foreach(int i; 0..(1<<3)) {
      |                        ^~~
a.cc:16:32: error: too many decimal points in number
   16 |                 foreach(int j; 0..N) {
      |                                ^~~~
a.cc:18:40: error: too many decimal points in number
   18 |                         foreach(int k; 0..3) {
      |                                        ^~~~
a.cc:28:32: error: too many decimal points in number
   28 |                 foreach(int j; 0..M) {
      |                                ^~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import std.stdio, std.conv, std.string, std.algorithm;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: '::main' must return 'int'
    3 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:13: error: structured binding declaration cannot have type 'int'
    5 |         int [] t;
      |             ^~
a.cc:5:13: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:5:13: error: empty structured binding declaration
a.cc:5:16: error: expected initializer before 't'
    5 |         int [] t;
      |                ^
a.cc:6:9: error: 't' was not declared in this scope
    6 |         t  = readln().chomp().split().to!(int[]);
      |         ^
a.cc:6:14: error: 'readln' was not declared in this scope
    6 |         t  = readln().chomp().split().to!(int[]);
      |              ^~~~~~
a.cc:9:14: error: structured binding declaration cannot have type 'long int'
    9 |         long [][] a;
      |              ^~
a.cc:9:14: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:9:14: error: empty structured binding declaration
a.cc:9:16: error: expected initializer before '[' token
    9 |         long [][] a;
      |                ^
a.cc:10:17: error: expected primary-expression before 'int'
   10 |         foreach(int i; 0..N)
      |                 ^~~
a.cc:14:17: error: expected primary-expression before 'int'
   14 |         foreach(int i; 0..(1<<3)) {
      |                 ^~~
a.cc:33:9: error: 'writefln' was not declared in this scope
   33 |         writefln("%d",res);
      |         ^~~~~~~~
Language: Java

import java.util.*;
import static java.lang.System.out;

public class Main{
   public static Scanner sc = new Scanner(System.in);
   public static void main(String args[]){
    int N = sc.nextInt();
    int M = sc.nextInt();
    long array[] = new int[N];
    for (int i = 0; i < A; i++) {
      int sum = 0;
      for (int j = 0; j < 3; j++) {
        sum += sc.nextInt();
      }
      array[i] = sum;
    }
    Arrays.sort(array);

    long result = 0;
    for (int i = N; i > M; i--) {
      if (array[i] > 0){
        ressult += array[i]; 
      }
    }
    printf(result);
   }
}

Compiler output:
Main.java:9: error: incompatible types: int[] cannot be converted to long[]
    long array[] = new int[N];
                   ^
Main.java:10: error: cannot find symbol
    for (int i = 0; i < A; i++) {
                        ^
  symbol:   variable A
  location: class Main
Main.java:22: error: cannot find symbol
        ressult += array[i]; 
        ^
  symbol:   variable ressult
  location: class Main
Main.java:25: error: cannot find symbol
    printf(result);
    ^
  symbol:   method printf(long)
  location: class Main
4 errors
Language: C++

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

const int MAX = 1000;

int main() {
	int N, M;
	int64_t x, y, z;
	cin >> N >> M;
	int64_t ans[8][MAX];
	for (int i = 0;i < N;i ++) {
		cin >> x >> y >> z;
		for (int j = 0;j < 8;j ++) {
			ans[j][i] = ((j & 4) == 0 ? x : -x) + ((j & 2) == 0 ? y : -y) + ((j & 1) == 0 ? z : -z);
			
		}
	}
	for (int i = 0;i < 8;i ++) sort(ans[i], ans[i] + N, greater<int64_t>());
	for (int i = 0;i < 8;i ++) for (int j = 1;j < M;j ++) ans[i][0] += ans[i][j];
	int64_t maximum = 0;
	for (int i = 0;i < 8;i ++) maximum = max(maximum, ans[i][0]);
	cout << maximum;
	return 0;
}
/*
31536000のコメント解説欄
ここテンプレで用意してるから、A問題とかだとこの先空欄の危険あり

絶対値を聞かれた時は場合分けして符号を外すのは常識よね
ということで、8通りに場合分けするよ
とりあえず、全部正の時で考えると、当然だけどx+y+zがそのまま合計になる訳だ
ということはx+y+zが0以上になるやつ全部取ればおｋね
これを、後はxの符号を反転させたり以下略で試せば終わるよ
なおオーバーフローには注意ね！
*/

Compiler output:
a.cc:4:9: fatal error: stdint: No such file or directory
    4 | #include<stdint>
      |         ^~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
struct cake{long long x,y,z;};
long long max(long long a,long long b){
  return a>b?a:b;
}
long long min(long long a,long long b){
  return a<b?a:b;
}
long long abs(long long a){
  return a>0?a:-a;
}
int main(void){
  int n,m,i,j;
  long long ans=0,x,y,z;
  struct cake c[1000],tmp;
  scanf("%d %d",&n,&m);
  for(i=0;i<n;i++)
    scanf("%lld %lld %lld",&c[i].x,&c[i].y,&c[i].z);
  for(i=0;i<n-1;i++){
    for(j=n-1;j>i;j--){
      if(c[j-1].x<c[j].x){
        tmp=c[j-1];
        c[j-1]=c[j];
        c[j]=tmp;
      }
    }
  }
  x=y=z=0;
  for(i=0;i<m;i++){
    x+=c[i].x;
    y+=c[i].y;
    z+=c[i].z;
  }
  ans=max(ans,abs(x)+abs(y)+abs(z));
  for(i=0;i<n-1;i++){
    for(j=n-1;j>i;j--){
      if(c[j-1].x>c[j].x){
        tmp=c[j-1];
        c[j-1]=c[j];
        c[j]=tmp;
      }
    }
  }
  x=y=z=0;
  for(i=0;i<m;i++){
    x+=c[i].x;
    y+=c[i].y;
    z+=c[i].z;
  }
  ans=max(ans,abs(x)+abs(y)+abs(z));
  for(i=0;i<n-1;i++){
    for(j=n-1;j>i;j--){
      if(c[j-1].y<c[j].y){
        tmp=c[j-1];
        c[j-1]=c[j];
        c[j]=tmp;
      }
    }
  }
  x=y=z=0;
  for(i=0;i<m;i++){
    x+=c[i].x;
    y+=c[i].y;
    z+=c[i].z;
  }
  ans=max(ans,abs(x)+abs(y)+abs(z));
  for(i=0;i<n-1;i++){
    for(j=n-1;j>i;j--){
      if(c[j-1].y>[j].y){
        tmp=c[j-1];
        c[j-1]=c[j];
        c[j]=tmp;
      }
    }
  }
  x=y=z=0;
  for(i=0;i<m;i++){
    x+=c[i].x;
    y+=c[i].y;
    z+=c[i].z;
  }
  ans=max(ans,abs(x)+abs(y)+abs(z));
  for(i=0;i<n-1;i++){
    for(j=n-1;j>i;j--){
      if(c[j-1].z<c[j].z){
        tmp=c[j-1];
        c[j-1]=c[j];
        c[j]=tmp;
      }
    }
  }
  x=y=z=0;
  for(i=0;i<m;i++){
    x+=c[i].x;
    y+=c[i].y;
    z+=c[i].z;
  }
  ans=max(ans,abs(x)+abs(y)+abs(z));
  for(i=0;i<n-1;i++){
    for(j=n-1;j>i;j--){
      if(c[j-1].z>c[j].z){
        tmp=c[j-1];
        c[j-1]=c[j];
        c[j]=tmp;
      }
    }
  }
  x=y=z=0;
  for(i=0;i<m;i++){
    x+=c[i].x;
    y+=c[i].y;
    z+=c[i].z;
  }
  ans=max(ans,abs(x)+abs(y)+abs(z));
  printf("%lld\n",ans);
  return 0;
}

Compiler output:
main.c:9:11: warning: conflicting types for built-in function 'abs'; expected 'int(int)' [-Wbuiltin-declaration-mismatch]
    9 | long long abs(long long a){
      |           ^~~
main.c:2:1: note: 'abs' is declared in header '<stdlib.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | struct cake{long long x,y,z;};
main.c: In function 'main':
main.c:69:19: error: expected expression before '[' token
   69 |       if(c[j-1].y>[j].y){
      |                   ^
Language: C++

//////////////////////////////
// Check before you submit!!!

const long long MOD = 1e9+7;
// const long long MOD = 998244353;
/////////////////////////////

#include <bits/stdc++.h>
#ifdef _ATCODER_LIBRARY
#include <atcoder/all>
using namespace atcoder;
#endif
using namespace std;

#define DEBUG(x);
#ifdef _DEBUG
#define DEBUG(x) std::cerr << #x << " : " << (x) << std::endl;
#define GLIBCXX_DEBUG
#define GLIBCXX_DEBUG_PEDANTIC
#endif

using ll = long long;
using P = pair<ll, ll>;

#define FOR(i,a,b) for (ll i=(a);i<(ll)(b);++i)
#define REP(i,n) FOR(i,0,n)
#define ALL(v) (v).begin(),(v).end()

int dx[4]{0, 1, 0, -1};
int dy[4]{1, 0, -1, 0};

int main(int argc, char **argv)
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);

	ll N; cin >> N;
	string res = "AB";
	if (N <= 999) res += 'C';
	else res += 'D';
	std::cout << << std::endl;
	
	return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:41:22: error: expected primary-expression before '<<' token
   41 |         std::cout << << std::endl;
      |                      ^~
Language: C++

#inlcude <iostream>
using namespace std;

int main() {
  int x;
  cin >> x;
  if (x > 1000) {
    cout << "ABD";
  }else {
    cout << "ABC";
  }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> x;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude <iostream>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "ABD";
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "ABC";
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

int main()
{
    int a;
    scanf("%d", &a);
    if(a<1000)
    {
        printf("ABC");
    }
    else
    {
        printf("ABD");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'scanf' was not declared in this scope
    4 |     scanf("%d", &a);
      |     ^~~~~
a.cc:7:9: error: 'printf' was not declared in this scope
    7 |         printf("ABC");
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
a.cc:11:9: error: 'printf' was not declared in this scope
   11 |         printf("ABD");
      |         ^~~~~~
a.cc:11:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i, n) for (ll i = 0; i < n; ++i)
#define P pair<ll, ll>
#define Graph vector<vector<ll>>
#define fi first
#define se second
constexpr ll mod = 1000000007;
constexpr ll INF = (1ll << 60);
constexpr double pi = 3.14159265358979323846;
template <typename T>
inline bool chmax(T& a, T b) {
    if (a < b) {
        a = b;
        return 1;
    }
    return 0;
}
template <typename T>
inline bool chmin(T& a, T b) {
    if (a > b) {
        a = b;
        return 1;
    }
    return 0;
}

int main() {
    if (n <= 999) {
        cout << "ABC\n";
    } else {
        cout << "ABD\n";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:9: error: 'n' was not declared in this scope; did you mean 'yn'?
   30 |     if (n <= 999) {
      |         ^
      |         yn
Language: C++

#include<iostream>
#include<string>
#include<math.h>

using namespace std;

int main()
{	int a;
	cin a;
	if (a < 1000)
		cout << "abc";
	else
		cout << "abd";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before 'a'
    9 |         cin a;
      |            ^~
      |            ;
Language: C++

#include <bits/stdc++.h>

#define si(v) int(v.size())
#define all(v) v.begin(), v.end()
#define rep(i, n) for (ll i = 0; i < (n); ++i)
#define rep2(i, n, m) for (ll i = n; i <= (m); ++i)
#define rep3(i, n, m) for (ll i = n; i >= (m); --i)

template<class T, class U> void chmax(T &a, U b) { if (a < b) a = b; }
template<class T, class U> void chmin(T &a, U b) { if (b < a) a = b; }

using ll = long long;
using ld = long double;
using namespace std;

signed main()
{
  cout << fixed << setprecision(20);
  ios::sync_with_stdio(false);
  cin.tie(0);

  int n; cin >> n;
  
  if (n <= 999) cout << "ABC\n";
  else cout << "ABD\n"
  
  return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:23: error: expected ';' before 'return'
   25 |   else cout << "ABD\n"
      |                       ^
      |                       ;
   26 | 
   27 |   return (0);
      |   ~~~~~~
Language: C++

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

int main(){
  int n;
  char ch=C;
  cin>> n;
  
  ch+=n/1000;
  cout<< AB << ch <<endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'C' was not declared in this scope
    6 |   char ch=C;
      |           ^
a.cc:10:10: error: 'AB' was not declared in this scope
   10 |   cout<< AB << ch <<endl;
      |          ^~
Language: Java

import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String ans;
		if (n <= 999) {
			ans = "ABC"
		}else {
			ans = "ABD"
		}
		System.out.println(ans);
	}

}


Compiler output:
Main.java:9: error: ';' expected
			ans = "ABC"
			           ^
Main.java:11: error: ';' expected
			ans = "ABD"
			           ^
2 errors
Language: C++

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

int main(){
int n;
cin>>n;
if(n<1000){
cout<<"ABC";
return 0;
}else{
cout<<"ABD";
return 0;
}

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

/**
 * Я слил Atcoder Beginner Contest 172, решив всего две задачи!
 * Я не могу апнуть синего!
 * Я постоянно сливаю раунды, либо не решив тупую задачу, либо набрав штрафа!
 * Я постоянно уступаю всем своим друзьям и знакомым в контестах и нахожу этому оправдания!
 * Я постоянно придумываю сложные неверные решения к простым задачам!
 * -------------------------------------------------------------
 * -Решать сложные задачи
 * -Участвовать в контестах
 * -Делать виртуальные соревнования
 * -------------------------------------------------------------
 * Не уберу это, пока не начну нормально решать задачи, а не заниматься ерундой!!!
**/
  
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
typedef long long  ll;
//typedef tree<ld,null_type,less<ld>,rb_tree_tag,tree_order_statistics_node_update> indexed_set
// this for long double
#define press_F_to_pay_respect ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
#define forn for(int i=0;i<n;i++) 
#define form for(int j=0;j<n;j++) 
#define fore(i,a,b) for(int i = a; i < (b); i++)
#define pb push_back 
#define pob pop_back()
#define mp make_pair 
#define sc second 
#define f first 
#define ld long double
#define kek cout<<endl; 
#define rep(i,a,b) for(int i=a;i<b;i++)
#define all(v) ((v).begin()), ((v).end()) 
#define pob pop_back() 
#define halt {cout<<"NO"; return 0;}
const ll MOD = 1e9 + 7;
const ll MOD2 = 998244353;
const int N = 1010;
const int INF = 1e8;
const ll LL_INF=1e10;
const ll MOD1=1073741824;
const long double pi=3.1415926535;
using namespace std;
using namespace __gnu_pbds;
typedef tree<ld,null_type,less<ld>,rb_tree_tag,tree_order_statistics_node_update> indexed_set;
string bin_rep(int n)
{
     string s="";
      for(int i=31;i>=0;i--)
   {
           if(n&(1<<i)) s+='1';
           else s+='0';
   }
   return s;
}
int main()
{
#if defined(_DEBUG)
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif
 press_F_to_pay_respect;
 // cout << fixed << setprecision(12) << ans;
 // string al = "abcdefghijklmnopqrstuvwxyz";
 int n;
 cin>>n;
 if(n<1000) cotu<<"ABC";
 else cout<<"ABD";
 
 
 
 
 
 
 
 
 
  // cout <<"Runtime is:"<<clock() * 1.0 / CLOCKS_PER_SEC <<endl;
   return 0;
   
   
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:66:13: error: 'cotu' was not declared in this scope
   66 |  if(n<1000) cotu<<"ABC";
      |             ^~~~
Language: C++

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

int main()
{
    string s;
    cin >> s;
    if(s.size()==3)cout << "ABC;
    else   cout << "ABD";
}



Compiler output:
a.cc:9:28: warning: missing terminating " character
    9 |     if(s.size()==3)cout << "ABC;
      |                            ^
a.cc:9:28: error: missing terminating " character
    9 |     if(s.size()==3)cout << "ABC;
      |                            ^~~~~
a.cc: In function 'int main()':
a.cc:10:5: error: expected primary-expression before 'else'
   10 |     else   cout << "ABD";
      |     ^~~~
Language: C++

#include <stdio.h>
int main(){
  int a;
  cin >> a;
  if(a <=999)
    cout << "ABC" <<endl;
  else
    cout << "ABD" <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> a;
      |   ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << "ABC" <<endl;
      |     ^~~~
a.cc:6:21: error: 'endl' was not declared in this scope
    6 |     cout << "ABC" <<endl;
      |                     ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "ABD" <<endl;
      |     ^~~~
a.cc:8:21: error: 'endl' was not declared in this scope
    8 |     cout << "ABD" <<endl;
      |                     ^~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  if(N <=999){
    cout << "ABC" << endl;
  }
  else{
    cout << "ABD" << ednl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: 'ednl' was not declared in this scope
   11 |     cout << "ABD" << ednl;
      |                      ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (long long i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<ll,ll>;
const ll MOD = 1000000007;
#define all(v) v.begin(), v.end()

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<iostream>
int main(){
        int N;
        std::cin >> N;
        if(A <= 999) std::cout<<"ABC";
        else std::cout<<"ABD";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'A' was not declared in this scope
    5 |         if(A <= 999) std::cout<<"ABC";
      |            ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  int N;
  cin >> N;
  
  if (N >= 1000) {
    cout << "ABD" << endl;
  } else {
    cout << "ABC" << endl;
}

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

#include <iostream>

void ans(int b){
  if(b > 99) cout << b << endl;
  else if(b > 9) cout << "0" << b << endl;
  else cout << "00" << b << endl;
}

using namespace std;
int main(){
  int a;
  cin >> a;
  if(a > 999) cout << "ABD";
  else cout << "ABC";
  ans(a%999);
}

Compiler output:
a.cc: In function 'void ans(int)':
a.cc:4:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    4 |   if(b > 99) cout << b << endl;
      |              ^~~~
      |              std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:4:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    4 |   if(b > 99) cout << b << 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:5:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   else if(b > 9) cout << "0" << b << 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:5:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   else if(b > 9) cout << "0" << b << endl;
      |                                      ^~~~
      |                                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:6:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   else cout << "00" << b << 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:6:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   else cout << "00" << b << 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 <bits/stdc++.h>
#define rep(i, z, n) for(int i = z; i < n; i++)
#define all(v) v.begin(), v.end()
typedef long long ll;
//const int INF = 1<<29;
//const int MODINF = 1000000007;
using namespace std;

int main(){
    int N;
    cin >> N;
    if (N > 999){
        cout << "ABD";
        N -= 999;
    }
    else{
        cout << "ABC";
    }
    if (N < 10) cout << 0;
    if (N < 100) cout << 0;
    cout << N << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:21:23: error: expected '}' at end of input
   21 |     cout << N << endl;
      |                       ^
a.cc:9:11: note: to match this '{'
    9 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(ll i=0;i<(n);++i)
#define sayyes cout<<"Yes"<<endl;
#define sayno cout<<"No"<<endl;
using namespace std;
typedef long long ll;
typedef pair<int,int>P;
const int mod =1e9+7;

int main()
{
  int n;
  cin>>n;
  if(n>999)
  {
    cout<<"ABD;
  }
  else
  {
    cout<<"ABC";
  }
}

Compiler output:
a.cc:16:11: warning: missing terminating " character
   16 |     cout<<"ABD;
      |           ^
a.cc:16:11: error: missing terminating " character
   16 |     cout<<"ABD;
      |           ^~~~~
a.cc: In function 'int main()':
a.cc:17:3: error: expected primary-expression before '}' token
   17 |   }
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long 
#define endl "\n"
#define pb push_back
#define f(i,n) for(i=0;i<n;i++)
#define F(i,a,b) for(i=a;a<=b;i++)
#define arr(a,n) for( i=0;i<n;i++)cin>>a[i];
#define fi first
#define se second
#define mp make_pair
#define mod 1000000007
#define YES cout<<"YES"<<endl;
#define Yes cout<<"Yes"<<endl;
#define NO cout<<"NO"<<endl;
#define No cout<<"No"<<endl;
#define yes cout<<"yes"<<endl;
#define no cout<<"no"<<endl;
#define vi vector<ll>
#define ed end()
#define bg begin()
#define sz size()
#define ln length()
#define s() sort(a,a+n);
#define sr() sort(a,a+n,greater<ll>());
#define v()  sort(v.begin(),v.end());
#define vr() sort(v.begin(),v.end(),greater<ll>());
#define mod 1000000007
#define fast() ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
ll gcd(ll a, ll b){if(!b)return a;return gcd(b, a % b);}
ll power(ll x,ll y,ll p){ll res=1;x%=p;while(y>0){if(y&1)res=(res*x)%p;y=y>>1;x=(x*x)%p;}return res;}
int main() {
    /*#ifndef ONLINE_JUDGE
        // for getting input from input.txt
        freopen("input.txt", "r", stdin);
        // for writing output to output.txt
        freopen("output.txt", "w", stdout);
    #endif*/
        /* 
        Ofcourse it's Hard.
        It's supposed to be Hard.
        If it's easy everyone would do it.
        HARD IS WHAT MAKES IT GREAT

        YESTERDAY U SAID TOMORROW

        SLOWLY BECOMING THE PERSON I 
        SHOULD HAVE BEEN A LONG TIME AGO

        SAME TASK CAN'T BE FOUND DIFFICULT TWICE

        BTBHWSITW

        SPRH TU KAB P

        CP IS ALL ABOUT THINKING 
        YOU HAVE MUCH MORE POTENTIAL THAN U THINK

        AJIT SHIDDAT 10

        UR DAILY ROUTINE 


        */

fast();
//ll t;cin>>t;while(t--)
{
    ll a
    cin>>a;
    if(a<1000)
        cout<<"ABC"<<endl;
    else
        cout<<"ABCD"<<endl;
    
    
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:70:5: error: expected initializer before 'cin'
   70 |     cin>>a;
      |     ^~~
a.cc:71:8: error: 'a' was not declared in this scope
   71 |     if(a<1000)
      |        ^
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( void )
{
    int n;
    cin >> n;
    
    cout << "AB" << 'C' + 0x( n / 1000 ) << n % 1000 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: unable to find numeric literal operator 'operator""x'
   11 |     cout << "AB" << 'C' + 0x( n / 1000 ) << n % 1000 << endl;
      |                           ^~
Language: C++

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

int main() {
  int n;
  cin >> n;
  n>999 ? cout << "ABC" << endl; : cout << "ABD" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected ':' before ';' token
    7 |   n>999 ? cout << "ABC" << endl; : cout << "ABD" << endl;
      |                                ^
      |                                :
a.cc:7:32: error: expected primary-expression before ';' token
a.cc:7:34: error: expected primary-expression before ':' token
    7 |   n>999 ? cout << "ABC" << endl; : cout << "ABD" << endl;
      |                                  ^
Language: C++

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

int main() {
	
int x ;    
cin >> x ;
if(x<1000)
  cout << "ABC" << endl ;
else
  cout << "ABD" << endl ;
  
  return 0;
}
}


Compiler output:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include <cstdio > 
int N; 
int main() { 
  scanf("%d",&N); 
  if(N<=999)puts("ABC"); 
  else puts("ABD"); 
}



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

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

  
int main(){
 ll n,;
  cin >> n ;
  if(n>=1000) cout << "ABD"  <<endl;
  else cout <<"ABC" << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: expected unqualified-id before ';' token
   11 |  ll n,;
      |       ^
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int i = sc.nextInt();
    if(i >= 1000){
      System.out.println("ABD");
      else{
        System.out.println("ABC");
      }
    }
  }
}

Compiler output:
Main.java:8: error: 'else' without 'if'
      else{
      ^
1 error
Language: C++

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

int main(){
  int N;
  cin >> N;
  if (N > 999) {
    cout << "ABD" << endl;
  }
  else {
    cout << "ABC" << endl;
}


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

#include<iostream>
using namespace std:
int main(){
  int a;
  cin >> a;
  cout << ((a <= 999) ? "ABC":"ABD") << endl;
}

Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C

#include <stdio.h>

int main()
{
   int n;
  scanf("%d",&n);
  if(n>=1 && n<1000)
      printf("ABC");
  
  else
     printf("ABD");
  ]


Compiler output:
main.c: In function 'main':
main.c:12:3: error: expected statement before ']' token
   12 |   ]
      |   ^
main.c:12:3: error: expected declaration or statement at end of input
Language: C++

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

	int main(){
	  int a;
      cin >> a;
      
      if(a>=1000){
      cout << "ABD";
      }else{
      cout << "ABC"
      }
return 0;
}

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

int main() {
	int n;
	cin >> n;
	
	string third;
	third = "C";
	
	if (n > 999) {
		n -=  999;
		third = "D";
	}
	cout << "AB" + third  << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> n;
      |         ^~~
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string third;
      |         ^~~~~~
a.cc:6:9: error: 'third' was not declared in this scope
    6 |         third = "C";
      |         ^~~~~
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "AB" + third  << endl;
      |         ^~~~
a.cc:12:34: error: 'endl' was not declared in this scope
   12 |         cout << "AB" + third  << endl;
      |                                  ^~~~
Language: Java

import java.util.*;
public class Main{
  public static main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    if(n < 1000){
      System.out.println("ABC"+n);
    }else{
      System.out.println("ABD"+(n-999));
    }
  }
}


Compiler output:
Main.java:3: error: invalid method declaration; return type required
  public static main(String[] args){
                ^
1 error
Language: C++

# include <cstdio>
int N ;
int main ()
{
scanf ("% d",　& N);
if (N <=999) puts ("ABC");
else puts ("ABD");
}

Compiler output:
a.cc:5:14: error: extended character 　 is not valid in an identifier
    5 | scanf ("% d",　& N);
      |              ^
a.cc: In function 'int main()':
a.cc:5:14: error: '\U00003000' was not declared in this scope
    5 | scanf ("% d",　& N);
      |              ^~
Language: C++

# include < cstdio >
int N ;
int main ()
{
scanf ("% d " ,& N );
if (N <=999) puts (" ABC ");
else puts (" ABD ");
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
	int a:
   	cin >> a;
  
	if ( a < 1000) cout << "ABC" << endl;
  	else cout << "ABD" << endl; 
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: found ':' in nested-name-specifier, expected '::'
    6 |         int a:
      |              ^
      |              ::
a.cc:6:13: error: 'a' has not been declared
    6 |         int a:
      |             ^
a.cc:7:13: error: qualified-id in declaration before '>>' token
    7 |         cin >> a;
      |             ^~
a.cc:9:14: error: 'a' was not declared in this scope
    9 |         if ( a < 1000) cout << "ABC" << endl;
      |              ^
Language: C

#include <bits/stdc++.h>
#define rep(i,n) for(int64_t i=0;i < (int64_t)(n);i++)
using namespace std;
//////全探索したいときに開けよ////////
vector<vector<int>> fspattern;
vector<int> fspattern_draft;
int fspcnt = 0;

void setfspattern_core(int floor,int number,int degree){
  if(floor==degree){
    fspattern.at(fspcnt) = fspattern_draft;
    fspcnt++;
  }else{
    rep(i,number){
      fspattern_draft.at(floor) = i;
      setfspattern_core(floor+1,number,degree);
    }
  }
}

void setfspattern(int number,int degree){
  int64_t array_num = 1;
  rep(i,degree){
    array_num *= number;
  }
  fspattern = vector<vector<int>>(array_num,vector<int>(degree));
  fspattern_draft = vector<int>(degree);
  setfspattern_core(0,number,degree);
}

//////nCrのmodを求めたいときに開けよ/////////
//int64_t univMod = 1000000007;
//int64_t factnum = 100000
//vector<int64_t> modfact(factnum);
//vector<int64_t> modinvfact(factnum);

/*void setmodfact(){
  for(int i=0;i<factnum;i++){
    if(i == 0){
      modfact.at(i) = 1;
    }else{
      modfact.at(i) = (modfact.at(i-1)*i)%univMod;
    }
  }
}

int64_t calcmodpower(int64_t a,int64_t n){
  int64_t res = 1;
  while(n != 0){
    if(n & 1){
      res = (res * a) % univMod;
    }
    a = (a*a) % univMod;
    n = n >> 1;
  }
  return res;
}

int64_t calcinverse(int64_t n){
	return calcmodpower(n,univMod-2);
}

void setmodinvfact(){
  for(int i=0;i<factnum;i++){
    if(i==0){
      modinvfact.at(i) = 1;
    }else{
      modinvfact.at(i) = calcmodpower(modfact.at(i),univMod-2);
    }
  }
}*/


/*
int64_t calcGCD(int64_t a,int64_t b){
	int64_t p = a;
	int64_t q = b;
	int64_t c = a%b;
	while(c != 0){
		p = q;
		q = c;
		c = p%q;
	}
	return q;
}
*/

int main(){
  int n;
  cin >> n;
  if(n < 1000){
    cout << "ABC" << endl;
  }else{
    cout << "ABD" << endl;
  }
}

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

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

int main() {
  cint n;
  cin >> n;
  if(n<1000)
    cout << "ABC";
  else
    cout << "ABD";
}


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 n;
      |   ^~~~
      |   uint
a.cc:6:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin >> n;
      |          ^
      |          yn
Language: C++

#include<bits/stdc++.h>    
using namespace std;
int main() {
   // freopen("input.in","r",stdin); 
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
  
    long long c;
    cin>>c;
    if(c<=999)
        cout<<"ABC";
    else{
       cout<<"ABD";  

   return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0; i<(n); i++)
int main()
{
    int n;
    cin >> n;
	
  	if(n <= 999){
      cout << "ABC" << endl;
    }
  	else){
      cout << "ABD" << endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected primary-expression before ')' token
   12 |         else){
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0; i<(n); i++)
int main()
{
    int n;
    cin >> n;
	
  	if(n <= 999){
      string ans;
      if(n < 10)
		ans = "00" + to_string(n);
      else if( n < 100)
		ans = "0" + to_string(n);
      else
        ans = to_string(n);
      cout << "ABC" << ans << endl;
    }
  	else){
      string ans;
      int m = n - 999;
      if(m < 10)
		ans = "00" + to_string(m);
      else if(m < 100)
		ans = "0" + to_string(m);
      else
        ans = to_string(m);
      cout << "ABD" << ans << endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: expected primary-expression before ')' token
   19 |         else){
      |             ^
Language: C

#include<Stdio.h>
void main()
{
    int n;
    scanf("%d",&n);

    if(n<1000)
        printf("ABC\n");
    else if(n>999 && n<1999) printf("ABD\n");

    return 0;
}

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

#include<Stdio.h>
int main()
{
    int n;
    scanf("%d",&n);

    if(n<1000)
        printf("ABC\n");
    else if(n>999 && n<1999) printf("ABD\n");

    return 0;
}


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

#include<Stdio.h>
int main()
{
    int n;
    scanf("%d",&n);

    if(n<1000)
        printf("ABC\n");
    else printf("ABD\n");

    return 0;
}


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

#!/usr/bin/env python3

N = int(input())
if N < 1000:
    print("ABC")
else:
    print("ABD")


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python3
      |  ^
a.cc:3:1: error: 'N' does not name a type
    3 | N = int(input())
      | ^
Language: C

#include<stdio.h>
int main()
{
	int input;
	scanf("%d",&input);
	if(input<=999)
	{
		printf("ABC\n");
	}
	else printf("ABD\n")
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:29: error: expected ';' before 'return'
   10 |         else printf("ABD\n")
      |                             ^
      |                             ;
   11 |         return 0;
      |         ~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin>>n;
    if(n<=999)cout<<"ABC"endl;
    else cout<<"ABD"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: unable to find string literal operator 'operator""endl' with 'const char [4]', 'long unsigned int' arguments
    6 |     if(n<=999)cout<<"ABC"endl;
      |                     ^~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void)
{
  int n;
  scanf("%d",&n);
  if(n<1000){
    printf("ABC\n");
  }
  else{
    printf("ABD\n"){
  }
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before '{' token
   11 |     printf("ABD\n"){
      |                    ^
      |                    ;
a.cc:14:4: error: expected '}' at end of input
   14 |   }
      |    ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void)
{
  int n;
  if(n<1000){
    printf("ABC\n");
  }
  else{
    printf("ABD\n"){
  }
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before '{' token
   10 |     printf("ABD\n"){
      |                    ^
      |                    ;
a.cc:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  if(n<1000){
    printf("ABC\n");
  }
  else{
    printf("ABD\n"){
  }
  return 0;
  }
    

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before '{' token
   10 |     printf("ABD\n"){
      |                    ^
      |                    ;
a.cc:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int n;
  //string a, b, c, d;
  cin >> n;//a >> b >> c >> d;
  //cin >> s;
  if(n<=999)cout << "ABC" << endl;
  //else if(abs(a-b)<=d&&abs(b-c)<=d)cout << "Yes" << endl;
  else cout << "ABD" << endl;
  //int x, y;
  //x = min(a,b);
  //y = min(c,d);
  //cout << x+y << endl;
  retu

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A;
  cin >> A;
  string ABC = "ABC";
  
  if(A >= 1000){
  	A -= 999;
    ABC = "ABD"
  }
  
  if(A < 10){
  	cout <<  ABC <<"00" << A << endl;
  }else if(A < 100 && A >= 10){
  	cout << ABC << "0" << A << endl;
  }else{
  	cout << ABC << A << endl;
  }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before '}' token
   11 |     ABC = "ABD"
      |                ^
      |                ;
   12 |   }
      |   ~
Language: C++

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

int main() {
  int A;
  cin >>A;
  if(A<1000){
    cout <<"ABC" <<endl;
  }
  else{
    cout <<"ABD" <<Endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'Endl' was not declared in this scope
   11 |     cout <<"ABD" <<Endl;
      |                    ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
#include <map>
using namespace std;
int main()
{
    int s;
    cin >> s
               string ans;
    ans = s >= 1000 ? "ABD" : "ABC";
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before 'string'
   11 |     cin >> s
      |             ^
      |             ;
   12 |                string ans;
      |                ~~~~~~
a.cc:13:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |     ans = s >= 1000 ? "ABD" : "ABC";
      |     ^~~
      |     abs
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
#include <map>
using namespace std;
int main()
{
    int s;
    cin >> s
               string ans = s >= 1000 ? "ABD" : "ABC";
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before 'string'
   11 |     cin >> s
      |             ^
      |             ;
   12 |                string ans = s >= 1000 ? "ABD" : "ABC";
      |                ~~~~~~
a.cc:13:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define YES cout<<"YES"<<endl
#define NO cout<<"NO"<<endl
#define Yes cout<<"Yes"<<endl
#define No cout<<"No"<<endl
#define ANS cout << ans << endl
#define all(a) a.begin(),a.end()
#define SORT(a) sort(all(a))
#define REVERSE(a) reverse(all(a))
#define int long long
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define VIin(a) for(int i=0; i<a.size(); i++) cin >> a[i]
#define OUT(a) cout << a << endl
typedef vector<int> VI;
typedef vector<VI> VVI;
const int MOD=1e9+7;
const long long INF = 1LL << 60;
/*最大公約数*/int gcd(int x, int y) { return y ? gcd(y,x%y) : x;}
/*最小公倍数*/int lcm(int a, int b) { int g = gcd(a, b); return a / g * b; }
/*素数判定*/int isPrime(int n){if(n<2){return 0;}for(int i=2; i*i<=n; i++){if(n%i==0){return 0;}}return 1;}
/*約数列挙*/vector<int> getDivisor(int n){vector<int> v; for(int i=1; i*i<=n; i++){if(n%i==0){v.push_back(i);if(i!=n/i){v.push_back(n/i);}}}sort(v.begin(),v.end()); return v;}
//----------------------------------------------
signed main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    
	int n; cin >> n;
  	if(n <= 999) OUT("ABC");
  	else OUT("ABD")

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:5: error: expected ';' before 'return'
   33 |     return 0;
      |     ^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(void){
  int a,b,c;
 cin >> a;
  if(a > 999){
    cout << ABD;
  }else{
    cout << ABC;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'ABD' was not declared in this scope
    7 |     cout << ABD;
      |             ^~~
a.cc:9:13: error: 'ABC' was not declared in this scope
    9 |     cout << ABC;
      |             ^~~
Language: C++

#include<iostream>
using namespace std;
int main(void){
  int a,b,c;
 cin >> a;
  if(a > 999){
    cout << ABD;
  }else{
    cout << ABC
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'ABD' was not declared in this scope
    7 |     cout << ABD;
      |             ^~~
a.cc:9:13: error: 'ABC' was not declared in this scope
    9 |     cout << ABC
      |             ^~~
Language: Java

import java.util.Scanner;

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

        if(N < 10){
            System.out.println("ABC00" + N);
        }else if(N < 100){
            System.out.println("ABC0"  + N);
        }else if(N < 1000){
            System.out.println("ABC"   + N);
        }else if(N < 1009){
            System.out.println("ABD00" + N - 999);
        }else if(N < 1099){
            System.out.println("ABD0"  + N - 999);
        }else{
            System.out.println("ABD"   + N - 999);
        }
    }
}

Compiler output:
Main.java:15: error: bad operand types for binary operator '-'
            System.out.println("ABD00" + N - 999);
                                           ^
  first type:  String
  second type: int
Main.java:17: error: bad operand types for binary operator '-'
            System.out.println("ABD0"  + N - 999);
                                           ^
  first type:  String
  second type: int
Main.java:19: error: bad operand types for binary operator '-'
            System.out.println("ABD"   + N - 999);
                                           ^
  first type:  String
  second type: int
3 errors
Language: Java

import java.util.Scanner;

class Rp1ABC099A{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = nextInt();
    if(a < 999){
      System.out.println(ABC);
    }else{
      System.out.println(ABD);
    }
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
    int a = nextInt();
            ^
  symbol:   method nextInt()
  location: class Rp1ABC099A
Main.java:8: error: cannot find symbol
      System.out.println(ABC);
                         ^
  symbol:   variable ABC
  location: class Rp1ABC099A
Main.java:10: error: cannot find symbol
      System.out.println(ABD);
                         ^
  symbol:   variable ABD
  location: class Rp1ABC099A
3 errors
Language: Java

import java.util.Scanner;

class 099A{
	public static void main(String args[]){
		Scanner sc = new Scanner (System.in);
		int n = sc.nextInt();

		if(n >= 1000){
			System.out.println("ABD");
		}else{
			System.out.println("ABC");
		}
	}
}


Compiler output:
Main.java:3: error: <identifier> expected
class 099A{
     ^
1 error
Language: Java

class Main {
  static public void main(String args[]) {
    if(Integer.parseInt(args[0]) < 1000){
      System.out.println("ABC");
    } else {
      System.out.println("ABD");
    }
      return 0;
    }
}

Compiler output:
Main.java:8: error: incompatible types: unexpected return value
      return 0;
             ^
1 error
Language: Java

class Main {
  static public void main(String args[]) {
    if(Integer.parseInt(args[0]) < 1000){
      System.out.println("ABC";
    } else {
      System.out.println("ABD");
    }
      return 0;
    }
}


Compiler output:
Main.java:4: error: ')' or ',' expected
      System.out.println("ABC";
                              ^
1 error
Language: Java

class Main {
  static public void main(String args[]) {
    if(Integer.parseInt(args[0]) < 1000){
      System.out.println("ABC" + dformat.format(n));
    } else {
      System.out.println("ABD" + dformat.format(n-1000));
    }
      return 0;
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
      System.out.println("ABC" + dformat.format(n));
                                                ^
  symbol:   variable n
  location: class Main
Main.java:4: error: cannot find symbol
      System.out.println("ABC" + dformat.format(n));
                                 ^
  symbol:   variable dformat
  location: class Main
Main.java:6: error: cannot find symbol
      System.out.println("ABD" + dformat.format(n-1000));
                                                ^
  symbol:   variable n
  location: class Main
Main.java:6: error: cannot find symbol
      System.out.println("ABD" + dformat.format(n-1000));
                                 ^
  symbol:   variable dformat
  location: class Main
Main.java:8: error: incompatible types: unexpected return value
      return 0;
             ^
5 errors