criyle/codenet-compile-errors huggingface dataset:
Language: Java

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


Compiler output:
Main.java:3: error: cannot find symbol
    if(n < Integer.parseInt(args[0])){
       ^
  symbol:   variable n
  location: class Main
1 error
Language: Java

import java.util.Scanner;
import java.text.DecimalFormat;

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


Compiler output:
Main.java:6: error: cannot find symbol
    if(n < Integer.parseInt(args[0])){
       ^
  symbol:   variable n
  location: class Main
1 error
Language: Java

import java.util.Scanner;
import java.text.DecimalFormat;

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


Compiler output:
Main.java:13: error: incompatible types: unexpected return value
      return 0;
             ^
1 error
Language: C++

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

int main() {
  int a;
  cin>>a;
  
    if(a.at(i)<=999){
      cout<<"ABC"<<endl;
    }
    else{
      cout<<"ABD"<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: request for member 'at' in 'a', which is of non-class type 'int'
    8 |     if(a.at(i)<=999){
      |          ^~
a.cc:8:13: error: 'i' was not declared in this scope
    8 |     if(a.at(i)<=999){
      |             ^
Language: C++

#include <iostraem>

int main()
{
    int N;
    std::cin >> N;

    if (N < 1000) {
        std::cout << "ABC" << std::endl;
    }
    else {
        std::cout << "ABD" << std::endl;
    }
    return 0;
}

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

 #include<bits/stdc++.h>
using namespace std;
int main(){
int a;
cin>>a;
cout<<"AB";
if(a<1000) cout<<"C";
else cout<<"D";
cout<<"\n";


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected '}' at end of input
    9 | cout<<"\n";
      |            ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

    #include<bits/stdc++,h>
    using namespace std;
    int main(){
    int a;
    cin>>a;
cout<<"AB";
    if(a<1000) cout<<"C";
    else cout<<"D";
    cout<<"\n";
    }

Compiler output:
a.cc:1:13: 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(){
int a;
cin>>a;
if(a<1000) cout<<"C";
else cout<<"D";
cout<<"\n";
}

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |     cout < "ABD" << endl;
      |            ~~~~~~^~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main (){
  int n;
  cin >> n;
  cout << "AB";
  if (n>999){
    cout < "D" << endl;
  }
  else {
    cout << "C" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: invalid operands of types 'const char [2]' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |     cout < "D" << endl;
      |            ~~~~^~~~~~~
Language: C++

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

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

  if (x <= 999) {
    cout << "ABC" << endl;
  }
  else {
    cout << "ABD" << eldl;
  }

}


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

#include<iostream>
using namespace std;
int n;
int main(void){
  cin>>n;
  cout<<(n<1000?ABC:ABD);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'ABC' was not declared in this scope
    6 |   cout<<(n<1000?ABC:ABD);
      |                 ^~~
a.cc:6:21: error: 'ABD' was not declared in this scope
    6 |   cout<<(n<1000?ABC:ABD);
      |                     ^~~
Language: C++

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


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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int n; cin >> ,;
    if(n>=1000){
        cout << "ABD" << endl;
    }else{
        cout << "ABC" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: expected primary-expression before ',' token
    5 |     int n; cin >> ,;
      |                   ^
a.cc:5:20: error: expected primary-expression before ';' token
    5 |     int n; cin >> ,;
      |                    ^
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;
    }
    return 0
}

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

#include <bits/stdc++.h>
using namespace sdt;
#define pb push_back

int main()
{
    int n;
    cin>>n;
    if(n<=999) puts("ABC");
    else puts("ABD");
    return 0;
}

Compiler output:
a.cc:2:17: error: 'sdt' is not a namespace-name
    2 | using namespace sdt;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |     cin>>n;
      |     ^~~
      |     std::cin
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::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

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

const int MOD = 1000000007;

//long long
using ll = long long;

//出力系
#define print(x) cout << x << endl
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
 
// begin() end()
#define all(x) (x).begin(),(x).end()

//for
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)

//最大公約数 
unsigned gcd(unsigned a, unsigned b) {
  if(a < b) return gcd(b, a);
  unsigned r;
  while ((r=a%b)) {
    a = b;
    b = r;
  }
  return b;
}

 int main(){
   if(0 < N && 1000 > N) print("ABC");
   if(999 < N && 1999 > N) print("ABD");

 }

Compiler output:
a.cc: In function 'int main()':
a.cc:34:11: error: 'N' was not declared in this scope; did you mean 'NO'?
   34 |    if(0 < N && 1000 > N) print("ABC");
      |           ^
      |           NO
a.cc:35:13: error: 'N' was not declared in this scope; did you mean 'NO'?
   35 |    if(999 < N && 1999 > N) print("ABD");
      |             ^
      |             NO
Language: C++

#import<ios>
int a;main(){scanf("%d",&a);puts("AB");puts('C'+a/1000);}


Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<ios>
      |  ^~~~~~
a.cc:2:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | int a;main(){scanf("%d",&a);puts("AB");puts('C'+a/1000);}
      |       ^~~~
a.cc: In function 'int main()':
a.cc:2:48: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    2 | int a;main(){scanf("%d",&a);puts("AB");puts('C'+a/1000);}
      |                                             ~~~^~~~~~~
      |                                                |
      |                                                int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C++

#import<ios>
int a;main(){scanf("%d",&a);puts("AB");cout<<'C'+a/1000;}

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<ios>
      |  ^~~~~~
a.cc:2:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | int a;main(){scanf("%d",&a);puts("AB");cout<<'C'+a/1000;}
      |       ^~~~
a.cc: In function 'int main()':
a.cc:2:40: error: 'cout' was not declared in this scope
    2 | int a;main(){scanf("%d",&a);puts("AB");cout<<'C'+a/1000;}
      |                                        ^~~~
Language: C++

#include <iostream>
 
int main(){
  int a;cin>>a;
  if(a>999) cout << "ABD" << endl;
  else cout << "ABC" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   int a;cin>>a;
      |         ^~~
      |         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:5:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   if(a>999) cout << "ABD" << 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:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   if(a>999) cout << "ABD" << 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:6:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   else cout << "ABC" << 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:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   else cout << "ABC" << 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>
using namespace std;
using ll = long long;
const double pi = acos(-1);
#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME
#define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define rrep(...) __GET_MACRO3(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)
template<typename T> ostream& operator<<(ostream& os, const vector<T>& v) {
REP(i,v.size()){if(i)os<<" ";os<<v[i];}return os;}
template<typename T> ostream& operator<<(ostream& os, const vector<vector<T>>& v) {
REP(i,v.size()){if(i)os<<endl;os<<v[i];}return os;}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:35: error: expected ';' before 'endl'
   19 |         if(n < 1000) cout << "ABC" endl;
      |                                   ^~~~~
      |                                   ;
Language: C++

#include<iostream>
#include<vector>
#include<cmath>

using namespace std;

int p_rep(int p, int N, vector<int> &factors){
  int cnt = 0;
  int tmp = N;
  for(; tmp >= p; tmp /= p){
    factors.push_back(tmp % p);
    cnt++;
  }
  factors.push_back(tmp);
  cnt++;
  return cnt;
}

int main(){
  int N;
  cin >> N;
  vector<int> _9rep(100,-1);
  vector<int> _6rep(100,-1);
  //sentinel -1
  int lsb9 = p_rep(9,N, _9rep);
  int tmp = N;
  int ans = 999999;
  
  for(int i = 0; i < lsb9; i++){
    int drawal = 0;
    for(int k = 0; k <= i; k++){
      drawal += _9rep[k];
    }
    tmp -= _9rep[i]*pow(9,lsb-i-1);
    int lsb6 = p_rep(6,tmp,_6rep);
    for(int j = 0; j < lsb6; j++){
      drawal += _6rep[j];
    }
    drawal += tmp;
    ans = min(ans,drawal);
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:27: error: 'lsb' was not declared in this scope; did you mean 'lsb9'?
   34 |     tmp -= _9rep[i]*pow(9,lsb-i-1);
      |                           ^~~
      |                           lsb9
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected '}' before 'else'
    9 |   else
      |   ^~~~
a.cc:7:13: note: to match this '{'
    7 |   if(n<1000){
      |             ^
a.cc: At global scope:
a.cc:12:3: error: expected unqualified-id before 'return'
   12 |   return 0;
      |   ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'ABC' was not declared in this scope
    8 |     cout<<ABC<<endl;
      |           ^~~
a.cc:9:3: error: expected '}' before 'else'
    9 |   else
      |   ^~~~
a.cc:7:13: note: to match this '{'
    7 |   if(n<1000){
      |             ^
a.cc:10:11: error: 'ABD' was not declared in this scope
   10 |     cout<<ABD<<endl;
      |           ^~~
a.cc: At global scope:
a.cc:12:3: error: expected unqualified-id before 'return'
   12 |   return 0;
      |   ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: Java

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

Compiler output:
Main.java:8: error: bad operand types for binary operator '-'
        System.out.println(n < 1000 ? "ABC" + n : "ABD" + n - 999);
                                                            ^
  first type:  String
  second type: int
1 error
Language: C

#include <stdio.h>

int main() {
  int number_n;
  scanf("%d", &number_n);
  if(number_n <= 999) {
    printf("ABC\n");
  } else {
    printf("ABD\n",);
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected expression before ')' token
    9 |     printf("ABD\n",);
      |                    ^
Language: C++

n = int(input())
ans = None
if n < 1000:
    ans = 'ABC' + str(n).zfill(3)
else:
    ans = 'ABD' + str(n + 1)[1:].zfill(3)
print(ans)

Compiler output:
a.cc:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     ans = 'ABC' + str(n).zfill(3)
      |           ^~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     ans = 'ABD' + str(n + 1)[1:].zfill(3)
      |           ^~~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <numeric>
#include <tuple>
#include <stack>

#define rep(i,n) for (int i = 0; i < (n); ++i)
#define all(x) x.begin(),x.end()
#define print(s) cout << s << endl
typedef long long ll;
using namespace std;

int ctoi(char c) {
	if (c >= '0' && c <= '9') {
		return c - '0';
	}
	return 0;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:26:43: error: expected ';' before 'endl'
   26 |         cout << (n >= 1000 ? "ABD": "ABC") endl;
      |                                           ^~~~~
      |                                           ;
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define REP(i, n) for(int i = 0; i < (n); i++)
#define SORT(v, n) sort(v, v+n);
#define SSORT(v, n) sort(v, v+n, greater<int>())

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:13:36: error: expected '}' at end of input
   13 |         else cout << "ABC" << endl;
      |                                    ^
a.cc:9:11: note: to match this '{'
    9 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected ';' before string constant
    6 |   if(n<1000){cout"ABC";}
      |                  ^~~~~
      |                  ;
Language: C++

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

int main(void)
{
    int a;
    cin>>a;

    if(a<999)
      cout<<"ABC"<<endl;
    else
      cout<<"ABD"<<endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>a;
      |     ^~~
a.cc:10:7: error: 'cout' was not declared in this scope
   10 |       cout<<"ABC"<<endl;
      |       ^~~~
a.cc:10:20: error: 'endl' was not declared in this scope
   10 |       cout<<"ABC"<<endl;
      |                    ^~~~
a.cc:12:7: error: 'cout' was not declared in this scope
   12 |       cout<<"ABD"<<endl;
      |       ^~~~
a.cc:12:20: error: 'endl' was not declared in this scope
   12 |       cout<<"ABD"<<endl;
      |                    ^~~~
Language: C++

#include <stdio.h>
using namespace std;

int main( )
{
    int n;

    cin >> n;
    if (n < 1000)   cout << "ABC\n";
    else            cout << "ABD\n";

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> n;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:9:21: error: 'cout' was not declared in this scope
    9 |     if (n < 1000)   cout << "ABC\n";
      |                     ^~~~
a.cc:9:21: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:21: error: 'cout' was not declared in this scope
   10 |     else            cout << "ABD\n";
      |                     ^~~~
a.cc:10:21: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

#include <cstdio > int N;
int main ()
{
scanf("%d",&N);
int res=N;
for(int i=0;i<=N;i++) {
int cc =0;
int t=N-i; while(t>0)cc+=t%6,t/=6; t=i; while(t>0)cc+=t%9,t/=9; if(res>cc)res=cc;
} printf("%d\n",res);
}

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <cstdio > int N;
      |                    ^~~
main.c:1:10: fatal error: cstdio : No such file or directory
    1 | #include <cstdio > int N;
      |          ^~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(ll i = 0; i < (ll)n; i++)
#define FOR(i,a,b) for (ll i=(a);i<(ll)b; i++)
#define ALL(obj) (obj).begin(),(obj).end()
#define INF 1000000000000000
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
using namespace std;
typedef long long ll;
typedef double db;
typedef string str;
typedef pair<ll,ll> p;
constexpr int MOD = 1000000007;

void print(const std::vector<int>& v)
{
  std::for_each(v.begin(), v.end(), [](int x) {
    std::cout << x << " ";
  });
  std::cout << std::endl;
}

int main ()
{
  int N;
  if (N>= 1000) N -= 999;
  cout<<"ABC";
  cout << setfill(‘0’) << setw(3) << right << N<<endl;
  return 0;
}

Compiler output:
a.cc:28:19: error: extended character ‘ is not valid in an identifier
   28 |   cout << setfill(‘0’) << setw(3) << right << N<<endl;
      |                   ^
a.cc:28:19: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:28:19: error: '\U000020180\U00002019' was not declared in this scope
   28 |   cout << setfill(‘0’) << setw(3) << right << N<<endl;
      |                   ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected initializer before '>>' token
    5 |   int N,cin>>N;
      |            ^~
Language: C++

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


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nameplace'
    2 | using nameplace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:4:10: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   int n; cin>>n;
      |          ^~~
      |          std::cin
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::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   if(n>=1000) cout<<"ABD"<<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:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   if(n>=1000) cout<<"ABD"<<endl;
      |                            ^~~~
      |                            std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/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<<"ABC"<<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:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   else cout<<"ABC"<<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>
using nameplace std;
int main(){
  int n; cin>>n;
  if(n>=1000) cout<<"ABD"<<endl;
  else cout<<"ABC"<<endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:10: error: 'cin' was not declared in this scope
    4 |   int n; cin>>n;
      |          ^~~
a.cc:5:15: error: 'cout' was not declared in this scope
    5 |   if(n>=1000) cout<<"ABD"<<endl;
      |               ^~~~
a.cc:5:28: error: 'endl' was not declared in this scope
    5 |   if(n>=1000) cout<<"ABD"<<endl;
      |                            ^~~~
a.cc:6:8: error: 'cout' was not declared in this scope
    6 |   else cout<<"ABC"<<endl;
      |        ^~~~
a.cc:6:21: error: 'endl' was not declared in this scope
    6 |   else cout<<"ABC"<<endl;
      |                     ^~~~
Language: C++

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

#define ASC(vec) vec.begin(), vec.end()		// 昇順ソート 例：sort(ASC(vec));
#define DESC(vec) vec.rbegin(), vec.rend()	// 降順ソート 例:sort(DESC(vec));
#define rep(i, n) for(i = 0; i < n; i++)

const int inf = (int)1e9 + 7;
const long long INF = 1LL << 60;

typedef long long ll;

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

	if (N >= 1000)
	{
		cout << "ABD";
	}
	else
	{
		cout << "ABC";
	}
}
#include "bits/stdc++.h"
using namespace std;

#define ASC(vec) vec.begin(), vec.end()		// 昇順ソート 例：sort(ASC(vec));
#define DESC(vec) vec.rbegin(), vec.rend()	// 降順ソート 例:sort(DESC(vec));
#define rep(i, n) for(i = 0; i < n; i++)

const int inf = (int)1e9 + 7;
const long long INF = 1LL << 60;

typedef long long ll;

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

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


Compiler output:
a.cc:34:11: error: redefinition of 'const int inf'
   34 | const int inf = (int)1e9 + 7;
      |           ^~~
a.cc:8:11: note: 'const int inf' previously defined here
    8 | const int inf = (int)1e9 + 7;
      |           ^~~
a.cc:35:17: error: redefinition of 'const long long int INF'
   35 | const long long INF = 1LL << 60;
      |                 ^~~
a.cc:9:17: note: 'const long long int INF' previously defined here
    9 | const long long INF = 1LL << 60;
      |                 ^~~
a.cc:39:5: error: redefinition of 'int main()'
   39 | int main()
      |     ^~~~
a.cc:13:5: note: 'int main()' previously defined here
   13 | int main()
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int N;
  cin >> N;
  if(N < 1000)
    cout << 'ABC';
  elif(N < 1999)
    cout << 'ABD';
  return 0;
}

Compiler output:
a.cc:8:13: warning: multi-character character constant [-Wmultichar]
    8 |     cout << 'ABC';
      |             ^~~~~
a.cc:10:13: warning: multi-character character constant [-Wmultichar]
   10 |     cout << 'ABD';
      |             ^~~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'elif' was not declared in this scope
    9 |   elif(N < 1999)
      |   ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;
typedef long long unsigned int ll;
 
int main() {
 
  int a;
  cin >> a;
  
  if(a<1000){
    cout << "ABC";
    cout<< setfill('0') <<right << setw(3) << a<< endl;
  }else{
    cout << "ABD" ;
    cout<< setfill('0') << right << setw(3) << a-999<< endl;
  }
  
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: 'setfill' was not declared in this scope
   15 |     cout<< setfill('0') <<right << setw(3) << a<< endl;
      |            ^~~~~~~
a.cc:4:1: note: 'std::setfill' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    3 | #include <algorithm>
  +++ |+#include <iomanip>
    4 | 
a.cc:15:36: error: 'setw' was not declared in this scope
   15 |     cout<< setfill('0') <<right << setw(3) << a<< endl;
      |                                    ^~~~
a.cc:15:36: note: 'std::setw' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
a.cc:18:12: error: 'setfill' was not declared in this scope
   18 |     cout<< setfill('0') << right << setw(3) << a-999<< endl;
      |            ^~~~~~~
a.cc:18:12: note: 'std::setfill' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
a.cc:18:37: error: 'setw' was not declared in this scope
   18 |     cout<< setfill('0') << right << setw(3) << a-999<< endl;
      |                                     ^~~~
a.cc:18:37: note: 'std::setw' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <iomanip>
using namespace std;
typedef long long unsigned int ll;
 
int main() {
 
  int a;
  cin >> a;
  
  if(a<1000){
    cout << "ABC";
    cout<< setfill(‘0’) <<right << setw(3) << a<< endl;
  }else{
    cout << "ABD" ;
    cout<< setfill(‘0’) << right << setw(3) << a-999<< endl;
  }
  
   return 0;
}


Compiler output:
a.cc:15:20: error: extended character ‘ is not valid in an identifier
   15 |     cout<< setfill(‘0’) <<right << setw(3) << a<< endl;
      |                    ^
a.cc:15:20: error: extended character ’ is not valid in an identifier
a.cc:18:20: error: extended character ‘ is not valid in an identifier
   18 |     cout<< setfill(‘0’) << right << setw(3) << a-999<< endl;
      |                    ^
a.cc:18:20: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:15:20: error: '\U000020180\U00002019' was not declared in this scope
   15 |     cout<< setfill(‘0’) <<right << setw(3) << a<< endl;
      |                    ^~~
a.cc:18:20: error: '\U000020180\U00002019' was not declared in this scope
   18 |     cout<< setfill(‘0’) << right << setw(3) << a-999<< endl;
      |                    ^~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long unsigned int ll;
 
int main() {
 
  int a;
  cin >> a;
  
  if(a<1000){
    cout << "ABC";
    cout<< setfill(‘0’) <<right << setw(3) << a<< endl;
  }else{
    cout << "ABD" ;
    cout<< setfill(‘0’) << right << setw(3) << a-999<< endl;
  }
  
   return 0;
}


Compiler output:
a.cc:14:20: error: extended character ‘ is not valid in an identifier
   14 |     cout<< setfill(‘0’) <<right << setw(3) << a<< endl;
      |                    ^
a.cc:14:20: error: extended character ’ is not valid in an identifier
a.cc:17:20: error: extended character ‘ is not valid in an identifier
   17 |     cout<< setfill(‘0’) << right << setw(3) << a-999<< endl;
      |                    ^
a.cc:17:20: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:14:20: error: '\U000020180\U00002019' was not declared in this scope
   14 |     cout<< setfill(‘0’) <<right << setw(3) << a<< endl;
      |                    ^~~
a.cc:14:12: error: 'setfill' was not declared in this scope
   14 |     cout<< setfill(‘0’) <<right << setw(3) << a<< endl;
      |            ^~~~~~~
a.cc:4:1: note: 'std::setfill' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    3 | #include <algorithm>
  +++ |+#include <iomanip>
    4 | using namespace std;
a.cc:14:36: error: 'setw' was not declared in this scope
   14 |     cout<< setfill(‘0’) <<right << setw(3) << a<< endl;
      |                                    ^~~~
a.cc:14:36: note: 'std::setw' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
a.cc:17:20: error: '\U000020180\U00002019' was not declared in this scope
   17 |     cout<< setfill(‘0’) << right << setw(3) << a-999<< endl;
      |                    ^~~
a.cc:17:12: error: 'setfill' was not declared in this scope
   17 |     cout<< setfill(‘0’) << right << setw(3) << a-999<< endl;
      |            ^~~~~~~
a.cc:17:12: note: 'std::setfill' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
a.cc:17:37: error: 'setw' was not declared in this scope
   17 |     cout<< setfill(‘0’) << right << setw(3) << a-999<< endl;
      |                                     ^~~~
a.cc:17:37: note: 'std::setw' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long unsigned int ll;
 
int main() {
 
  int a;
  cin >> a;
  
  if(a<1000){
    cout << "ABC" << setfill(‘0’) <<right << setw(3) << a<< endl;
  }else{
    cout << "ABD" << setfill(‘0’) << right << setw(3) << a-999<< endl;
  }
  
   return 0;
}


Compiler output:
a.cc:13:30: error: extended character ‘ is not valid in an identifier
   13 |     cout << "ABC" << setfill(‘0’) <<right << setw(3) << a<< endl;
      |                              ^
a.cc:13:30: error: extended character ’ is not valid in an identifier
a.cc:15:30: error: extended character ‘ is not valid in an identifier
   15 |     cout << "ABD" << setfill(‘0’) << right << setw(3) << a-999<< endl;
      |                              ^
a.cc:15:30: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:30: error: '\U000020180\U00002019' was not declared in this scope
   13 |     cout << "ABC" << setfill(‘0’) <<right << setw(3) << a<< endl;
      |                              ^~~
a.cc:13:22: error: 'setfill' was not declared in this scope
   13 |     cout << "ABC" << setfill(‘0’) <<right << setw(3) << a<< endl;
      |                      ^~~~~~~
a.cc:4:1: note: 'std::setfill' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    3 | #include <algorithm>
  +++ |+#include <iomanip>
    4 | using namespace std;
a.cc:13:46: error: 'setw' was not declared in this scope
   13 |     cout << "ABC" << setfill(‘0’) <<right << setw(3) << a<< endl;
      |                                              ^~~~
a.cc:13:46: note: 'std::setw' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
a.cc:15:30: error: '\U000020180\U00002019' was not declared in this scope
   15 |     cout << "ABD" << setfill(‘0’) << right << setw(3) << a-999<< endl;
      |                              ^~~
a.cc:15:22: error: 'setfill' was not declared in this scope
   15 |     cout << "ABD" << setfill(‘0’) << right << setw(3) << a-999<< endl;
      |                      ^~~~~~~
a.cc:15:22: note: 'std::setfill' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
a.cc:15:47: error: 'setw' was not declared in this scope
   15 |     cout << "ABD" << setfill(‘0’) << right << setw(3) << a-999<< endl;
      |                                               ^~~~
a.cc:15:47: note: 'std::setw' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long unsigned int ll;
 
int main() {
 
  int a;
  cin >> a;
  
  if(a<1000){
    cout << "ABC" << setfill(‘0’) << setw(3) << right << a<< endl;
  }else{
    cout << "ABD" << setfill(‘0’) << setw(3) << right << a-999<< endl;
  }
  
   return 0;
}


Compiler output:
a.cc:13:30: error: extended character ‘ is not valid in an identifier
   13 |     cout << "ABC" << setfill(‘0’) << setw(3) << right << a<< endl;
      |                              ^
a.cc:13:30: error: extended character ’ is not valid in an identifier
a.cc:15:30: error: extended character ‘ is not valid in an identifier
   15 |     cout << "ABD" << setfill(‘0’) << setw(3) << right << a-999<< endl;
      |                              ^
a.cc:15:30: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:30: error: '\U000020180\U00002019' was not declared in this scope
   13 |     cout << "ABC" << setfill(‘0’) << setw(3) << right << a<< endl;
      |                              ^~~
a.cc:13:22: error: 'setfill' was not declared in this scope
   13 |     cout << "ABC" << setfill(‘0’) << setw(3) << right << a<< endl;
      |                      ^~~~~~~
a.cc:4:1: note: 'std::setfill' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    3 | #include <algorithm>
  +++ |+#include <iomanip>
    4 | using namespace std;
a.cc:13:38: error: 'setw' was not declared in this scope
   13 |     cout << "ABC" << setfill(‘0’) << setw(3) << right << a<< endl;
      |                                      ^~~~
a.cc:13:38: note: 'std::setw' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
a.cc:15:30: error: '\U000020180\U00002019' was not declared in this scope
   15 |     cout << "ABD" << setfill(‘0’) << setw(3) << right << a-999<< endl;
      |                              ^~~
a.cc:15:22: error: 'setfill' was not declared in this scope
   15 |     cout << "ABD" << setfill(‘0’) << setw(3) << right << a-999<< endl;
      |                      ^~~~~~~
a.cc:15:22: note: 'std::setfill' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
a.cc:15:38: error: 'setw' was not declared in this scope
   15 |     cout << "ABD" << setfill(‘0’) << setw(3) << right << a-999<< endl;
      |                                      ^~~~
a.cc:15:38: note: 'std::setw' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
Language: C++

#include <bits/stdc++.h>

int main() {
	int s;
	while ( cin >> s ) {
		if ( s > 999 ) cout << "ABD\n";
		else cout << "ABC\n";
    }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         while ( cin >> s ) {
      |                 ^~~
      |                 std::cin
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::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:32: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |                 if ( s > 999 ) cout << "ABD\n";
      |                                ^~~~
      |                                std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |                 else cout << "ABC\n";
      |                      ^~~~
      |                      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
using namespace std;
int N;
int main(){
  cin >> N;
  if ( N <1000) cout << "ABC" << endl;
  else cout << "ABD" << endl;
  retrun 0;
}

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

#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <queue>
#include <string>
#include <set>
#include <map>
#define REP(i,n) for(ll i = 0; i < (ll)n; i++)
#define INF 1000000000000000
using namespace std;
typedef long long ll;
typedef double db;
typedef string str;

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


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

function get_data_from_stdin()
	return Base.parse( Base.readline( Base.STDIN ) )
end

function abc099_a()

	# STEP.01
	# get the number of the slice of cake
	N = get_data_from_stdin()

	# STEP.02
	# output the result
	if N <= 999
		Base.println( Base.STDOUT, "ABC")
	else
		Base.println( Base.STDOUT, "ABD" )
	end

	# STEP.TRUE_END
	return Base.nothing

end

#==================================================================================================#

Main.abc099_a()

Compiler output:
main.c:1:1: error: unknown type name 'function'; did you mean 'union'?
    1 | function get_data_from_stdin()
      | ^~~~~~~~
      | union
main.c: In function 'get_data_from_stdin':
main.c:2:9: error: expected declaration specifiers before 'return'
    2 |         return Base.parse( Base.readline( Base.STDIN ) )
      |         ^~~~~~
main.c:7:11: error: invalid preprocessing directive #STEP
    7 |         # STEP.01
      |           ^~~~
main.c:8:11: error: invalid preprocessing directive #get
    8 |         # get the number of the slice of cake
      |           ^~~
main.c:11:11: error: invalid preprocessing directive #STEP
   11 |         # STEP.02
      |           ^~~~
main.c:12:11: error: invalid preprocessing directive #output
   12 |         # output the result
      |           ^~~~~~
main.c:19:11: error: invalid preprocessing directive #STEP
   19 |         # STEP.TRUE_END
      |           ^~~~
main.c:24:2: error: invalid preprocessing directive #==
   24 | #==================================================================================================#
      |  ^~
Language: C++

#include<stdio.h>
int main(){
  int n;
  scanf("%d",&n);
  printf("AB%c",'C' + n / 1000,);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:32: error: expected primary-expression before ')' token
    5 |   printf("AB%c",'C' + n / 1000,);
      |                                ^
Language: C++

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

int main(){
  int A;
  string ans;
  cin >> A;
  if (A<=999)
    ans = ABC;
  else
    ans = ABD;
  cout << ans <<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'ABC' was not declared in this scope
   12 |     ans = ABC;
      |           ^~~
a.cc:14:11: error: 'ABD' was not declared in this scope
   14 |     ans = ABD;
      |           ^~~
Language: C

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

int main(int argc, char const *argv[])
{
	int n;
	cin >> n;
	if(n > 999)	cout << "ABD" << endl;
	else cout << "ABC" << 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 <stdio.h>

int main(void)
{int n;
 scanf("%d",&n);
 if(n<=999){printf("ABC");
 else{printf("ABD");}
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:2: error: expected '}' before 'else'
    7 |  else{printf("ABD");}
      |  ^~~~
Language: C++

#include <stdio.h>
#include <iostream>
using namespace std;
 
int main() {
	//int X, Y;
    //cin >> ;
    if(N < 1000){
        cout << "ABC" << endl;
    }else cout << "ABD" << endl; 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'N' was not declared in this scope
    8 |     if(N < 1000){
      |        ^
Language: C++

#include <iostream>
using namespace std;

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

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

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

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

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

a=input()
if a<1000:
	print('ABC')
else:
	print('ABD')

Compiler output:
a.cc:3:15: warning: multi-character character constant [-Wmultichar]
    3 |         print('ABC')
      |               ^~~~~
a.cc:5:15: warning: multi-character character constant [-Wmultichar]
    5 |         print('ABD')
      |               ^~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a=input()
      | ^
Language: C++

# include < cstdio >
int N ;
int main ()
{
scanf ("% d " ,& N );
int res = N ;
for ( int i =0; i <= N ; i ++)
{
int cc =0;
int t = i ;
while (t >0) cc += t %6 , t /=6;
t=N - i ;
while (t >0) cc += t %9 , t /=9;
if ( res > cc ) res = cc ;
}
printf ("% d \ n " , res );
}

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

import java.util.*;
public class main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

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

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

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

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

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

#include<iostream>
#include<string>
#include<cmath>
#include<queue>
#include<map>
#include<set>
#include<list>
#include<iomanip>
#include<vector>
#include<random>
#include<functional>
#include<algorithm>
#include<stack>
#include<cstdio>
#include<bitset>
#include<unordered_map>
#include <climits>
#include<fstream>
using namespace std;
//---------------------------------------------------
//library zone!!!!!
typedef long long ll;
typedef long double ld;
#define rep(i,j) for(ll i=0;i<(long long)(j);i++)
#define all(a) (a).begin(),(a).end()
const ll Mod = 1000000007;
struct P {
	ll pos, cost;
};
bool operator<(P a, P b) { return a.cost < b.cost; }
bool operator>(P a, P b) { return a.cost > b.cost; }
struct B {
	ll to, cost;
};
struct E {
	ll from, to, cost;
};
bool operator<(E a, E b) {
	return a.cost < b.cost;
}
struct H {
	ll x, y;
};
bool operator<(H a, H b) {
	if (a.x != b.x) return a.x < b.x;
	return a.y < b.y;
}
bool operator>(H a, H b) {
	if (a.x != b.x) return a.x > b.x;
	return a.y > b.y;
}
bool operator==(H a, H b) {
	return a.x == b.x&&a.y == b.y;
}
bool operator!=(H a, H b) {
	return a.x != b.x || a.y != b.y;
}
ll gcm(ll i, ll j) {
	if (i > j) swap(i, j);
	if (i == 0) return j;
	return gcm(j%i, i);
}
ld mod_pow(ld x, ll n, ll p) {
	ld res = 1;
	while (n > 0) {
		if (n & 1) res = res * x;
		x = x * x;
		n >>= 1;
	}
	return res;
}//x^n%p
const ll Inf = 3023372036854775807;
const int inf = 1500000000;
#define int long long
//----------------------------------------------------
//++++++++++++++++++++++++++++++++++++++++++++++++++++
signed main() {
	int n;
	cin>>n;
	if(n<1000) cout<<"ABC\n";
	else cout<<"ABD\n"
}


Compiler output:
a.cc: In function 'int main()':
a.cc:81:27: error: expected ';' before '}' token
   81 |         else cout<<"ABD\n"
      |                           ^
      |                           ;
   82 | }
      | ~