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

#include <bits/stdc++.h>
#define INF (1<<30)
#define MOD 1000000007
#define l_ength size
using ll = long long;
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: 's' was not declared in this scope
   11 |                 s = "ABD";
      |                 ^
a.cc:13:17: error: 's' was not declared in this scope
   13 |                 s = "ABC";
      |                 ^
a.cc:15:17: error: 's' was not declared in this scope
   15 |         cout << s << endl;
      |                 ^
Language: C++

#include<iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

int main(void) {
  cin >> N;

  if(N <= 999) {
    cout << "ABC" << endl;
  } else {
    cout << "ABD" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'N' was not declared in this scope
    5 |   cin >> N;
      |          ^
Language: C++

n = int(input())
if n > 999:
    print('ABD')
else:
    print('ABC')


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

#include<stdio.h>
int main(void)
{
int N;

if ((1 <= N)&&(N <= 999))
{
printf("ABC");
}

if ((1000 <= N)&&(N <= 1998)
{
printf("ABD");
}
}

Compiler output:
main.c: In function 'main':
main.c:11:29: error: expected ')' before '{' token
   11 | if ((1000 <= N)&&(N <= 1998)
      |    ~                        ^
      |                             )
   12 | {
      | ~                            
main.c:15:1: error: expected expression before '}' token
   15 | }
      | ^
Language: C++

#include(iostream)
using namespace std;

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

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include(iostream)
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"ABC"<<endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |     cout<<"ABC"<<endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include(iostream)
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"ABD"<<endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |     cout<<"ABD"<<endl;
      |                  ^~~~
a.cc:10:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>
using namespce std;
int main(){
  int n;
  cin>>n;
  if(n<=999)
    cout<<"ABC";
  else
    cout<<"ABD";
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>n;
      |   ^~~
      |   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:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<"ABC";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<"ABD";
      |     ^~~~
      |     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 namespze std;
int main(){
  int n;
  cin>>n;
  if(n<=999)
    cout<<"ABC";
  else
    cout<<"ABD";
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespze'
    2 | using namespze std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>n;
      |   ^~~
      |   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:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<"ABC";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<"ABD";
      |     ^~~~
      |     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>
int main(){
  int n;
  cin>>n;
  if(n<=999)
    cout<<"ABC";
  else
    cout<<"ABD";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>n;
      |   ^~~
      |   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:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout<<"ABC";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout<<"ABD";
      |     ^~~~
      |     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 manespace std;
int main(){
 int N;
 cin >> N;
 if(N<1000) cout << "ABC" << "\n";
 else cout << "ABD" << "\n";
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'manespace'
    2 | using manespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |  cin >> N;
      |  ^~~
      |  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:6:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |  if(N<1000) 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
      |                  ^~~~
a.cc:7:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |  else 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
      |                  ^~~~
Language: C

#include <stdio.h>
int main (){
int a;
 scanf ("%d",&a);
 if (a<1000){
 printf ("ABC");
 }
  else{
  printf ("ABD")
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: expected ';' before '}' token
    9 |   printf ("ABD")
      |                 ^
      |                 ;
   10 |   }
      |   ~
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:11: error: ';' expected
			System.out.println("ABC"));
			                         ^
Main.java:14: error: ';' expected
			System.out.println("ABD"));
			                         ^
2 errors
Language: C++

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     std::cout << "ABC" << 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,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     std::cout << "ABD" << endl;
      |                           ^~~~
      |                           std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

int main(void)
{
    int n;
        scanf("%d",&n);
    if (n < 1 || n > 1998){
        printf("1<=n<=1998の値を入力してください");
        scanf("%d",&n);
    }
    
    if (1999 > n && n > 999){
        printf ("ABD");
    }else if(n > 0){
        printf("ABC");
    }else{
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%d",&n);
      |         ^~~~~
a.cc:6:9: error: 'printf' was not declared in this scope
    6 |         printf("1<=n<=1998の値を入力してください");
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
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>'
a.cc:13:9: error: 'printf' was not declared in this scope
   13 |         printf("ABC");
      |         ^~~~~~
a.cc:13: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;

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

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

#include <iostream>
using namespace std;
 //Compiler version g++ 6.3.0

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: unable to find numeric literal operator 'operator""m'
    8 |         if(a<1000m{
      |              ^~~~~
a.cc:8:19: error: expected ')' before '{' token
    8 |         if(a<1000m{
      |           ~       ^
      |                   )
a.cc:13:2: error: expected primary-expression before '}' token
   13 |  }
      |  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:14: error: 'a' was not declared in this scope
    4 |         cin>>a;
      |              ^
Language: C

#include <stdio.h>
int main(void)
{
  int aa, ab;
  scanf("%d", &aa);
  if(aa < 1000)
    printf("ABC");
  else
    printf("ABD");
    return 0;

Compiler output:
main.c: In function 'main':
main.c:10:5: error: expected declaration or statement at end of input
   10 |     return 0;
      |     ^~~~~~
Language: C

#include <stdio.h>
int main(void)
{
  int aa, ab;
  scanf("%d", &aa);
  int ac;
  ac = aa - 1000;
  if(ac < 0)
    printf("ABC%d", aa);
  else
    printf("ABD%d", aa - 999);
    return 0;

Compiler output:
main.c: In function 'main':
main.c:12:5: error: expected declaration or statement at end of input
   12 |     return 0;
      |     ^~~~~~
Language: C++

#include <iostream>
#include <string> 
#include <vector>
#include <map>
#include <set>

using namespace std;

template <class T>ostream &operator<<(ostream &o, const vector<T>&obj) {
	o << "{"; for (int i = 0; i < (int)obj.size(); ++i)o << (i > 0 ? ", " : "") << obj[i]; o << "}"; return o;
}

template <class T, class U>ostream &operator<<(ostream &o, const pair<T, U>&obj) {
	o << "{" << obj.first << ", " << obj.second << "}"; return o;
}

template <template <class tmp>  class T, class U> ostream &operator<<(ostream &o, const T<U> &obj) {
	o << "{"; for (auto itr = obj.begin(); itr != obj.end(); ++itr)o << (itr != obj.begin() ? ", " : "") << *itr; o << "}"; return o;
}

template <class Head, class... Tail> void print(Head&& head, Tail&&... tail) {
	cout << head << " ";
	print(forward<Tail>(tail)...);
}

template <class Head> void print(Head&& head) {
	cout << head;
	print();
}

void print(void) {
	cout << endl;
}

int main() {
	int N;
	cin >> N;
  	if(N<1000) print("ABC");
  	else print("ABD");

	return 0;
}


Compiler output:
a.cc: In function 'void print(Head&&)':
a.cc:28:14: error: no matching function for call to 'print()'
   28 |         print();
      |         ~~~~~^~
a.cc:21:43: note: candidate: 'template<class Head, class ... Tail> void print(Head&&, Tail&& ...)'
   21 | template <class Head, class... Tail> void print(Head&& head, Tail&&... tail) {
      |                                           ^~~~~
a.cc:21:43: note:   candidate expects at least 1 argument, 0 provided
a.cc:26:28: note: candidate: 'template<class Head> void print(Head&&)'
   26 | template <class Head> void print(Head&& head) {
      |                            ^~~~~
a.cc:26:28: note:   candidate expects 1 argument, 0 provided
Language: C++

#include <iostream>
#include <string> 
#include <vector>
#include <map>
#include <set>

using namespace std;

template <class T>ostream &operator<<(ostream &o, const vector<T>&obj) {
	o << "{"; for (int i = 0; i < (int)obj.size(); ++i)o << (i > 0 ? ", " : "") << obj[i]; o << "}"; return o;
}

template <class T, class U>ostream &operator<<(ostream &o, const pair<T, U>&obj) {
	o << "{" << obj.first << ", " << obj.second << "}"; return o;
}

template <template <class tmp>  class T, class U> ostream &operator<<(ostream &o, const T<U> &obj) {
	o << "{"; for (auto itr = obj.begin(); itr != obj.end(); ++itr)o << (itr != obj.begin() ? ", " : "") << *itr; o << "}"; return o;
}

template <class Head, class... Tail> void print(Head&& head, Tail&&... tail) {
	cout << head << " ";
	print(forward<Tail>(tail)...);
}

template <class Head> void print(Head&& head) {
	cout << head;
	print();
}

void print() {
	cout << endl;
}

int main() {
	int N;
	cin >> N;
  	if(N<1000) print("ABC");
  	else print("ABD");

	return 0;
}


Compiler output:
a.cc: In function 'void print(Head&&)':
a.cc:28:14: error: no matching function for call to 'print()'
   28 |         print();
      |         ~~~~~^~
a.cc:21:43: note: candidate: 'template<class Head, class ... Tail> void print(Head&&, Tail&& ...)'
   21 | template <class Head, class... Tail> void print(Head&& head, Tail&&... tail) {
      |                                           ^~~~~
a.cc:21:43: note:   candidate expects at least 1 argument, 0 provided
a.cc:26:28: note: candidate: 'template<class Head> void print(Head&&)'
   26 | template <class Head> void print(Head&& head) {
      |                            ^~~~~
a.cc:26:28: note:   candidate expects 1 argument, 0 provided
Language: C++

#include <iostream>
#include <string> 
#include <vector>
#include <map>
#include <set>

using namespace std;
class hoge {
public:
	template <class T>ostream &operator<<(ostream &o, const vector<T>&obj) {
		o << "{"; for (int i = 0; i < (int)obj.size(); ++i)o << (i > 0 ? ", " : "") << obj[i]; o << "}"; return o;
	}

	template <class T, class U>ostream &operator<<(ostream &o, const pair<T, U>&obj) {
		o << "{" << obj.first << ", " << obj.second << "}"; return o;
	}

	template <template <class tmp>  class T, class U> ostream &operator<<(ostream &o, const T<U> &obj) {
		o << "{"; for (auto itr = obj.begin(); itr != obj.end(); ++itr)o << (itr != obj.begin() ? ", " : "") << *itr; o << "}"; return o;
	}

	template <class Head, class... Tail> void print(Head&& head, Tail&&... tail) {
		cout << head << " ";
		print(forward<Tail>(tail)...);
	}

	template <class Head> void print(Head&& head) {
		cout << head;
		print();
	}

	void print() {
		cout << endl;
	}
};

int main() {
	int N;
	cin >> N;
  	hoge p;
  	if(N<1000) p.print("ABC");
  	else p.print("ABD");

	return 0;
}

Compiler output:
a.cc:10:36: error: 'std::ostream& hoge::operator<<(std::ostream&, const std::vector<T>&)' must have exactly one argument
   10 |         template <class T>ostream &operator<<(ostream &o, const vector<T>&obj) {
      |                                    ^~~~~~~~
a.cc:14:45: error: 'std::ostream& hoge::operator<<(std::ostream&, const std::pair<_T1, _T2>&)' must have exactly one argument
   14 |         template <class T, class U>ostream &operator<<(ostream &o, const pair<T, U>&obj) {
      |                                             ^~~~~~~~
a.cc:18:68: error: 'std::ostream& hoge::operator<<(std::ostream&, const T<U>&)' must have exactly one argument
   18 |         template <template <class tmp>  class T, class U> ostream &operator<<(ostream &o, const T<U> &obj) {
      |                                                                    ^~~~~~~~
Language: C++

#include <iostream>
#include <string> 
#include <vector>
#include <map>
#include <set>

using namespace std;

template <class T>ostream &operator<<(ostream &o, const vector<T>&obj) {
	o << "{"; for (int i = 0; i < (int)obj.size(); ++i)o << (i > 0 ? ", " : "") << obj[i]; o << "}"; return o;
}

template <class T, class U>ostream &operator<<(ostream &o, const pair<T, U>&obj) {
	o << "{" << obj.first << ", " << obj.second << "}"; return o;
}

template <template <class tmp>  class T, class U> ostream &operator<<(ostream &o, const T<U> &obj) {
	o << "{"; for (auto itr = obj.begin(); itr != obj.end(); ++itr)o << (itr != obj.begin() ? ", " : "") << *itr; o << "}"; return o;
}

template <class Head, class... Tail> void print(Head&& head, Tail&&... tail) {
	cout << head << " ";
	print(forward<Tail>(tail)...);
}

template <class Head> void print(Head&& head) {
	cout << head;
	print();
}

void print() {
	cout << endl;
}

int main() {
	int N;
	cin >> N;
  	if(N<1000) print("ABC");
  	else print("ABD");

	return 0;
}

Compiler output:
a.cc: In function 'void print(Head&&)':
a.cc:28:14: error: no matching function for call to 'print()'
   28 |         print();
      |         ~~~~~^~
a.cc:21:43: note: candidate: 'template<class Head, class ... Tail> void print(Head&&, Tail&& ...)'
   21 | template <class Head, class... Tail> void print(Head&& head, Tail&&... tail) {
      |                                           ^~~~~
a.cc:21:43: note:   candidate expects at least 1 argument, 0 provided
a.cc:26:28: note: candidate: 'template<class Head> void print(Head&&)'
   26 | template <class Head> void print(Head&& head) {
      |                            ^~~~~
a.cc:26:28: note:   candidate expects 1 argument, 0 provided
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:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

main(a){scanf("%d",&a);printf("AB%c%d",a<1000?'C':'D',n%999+999*(n%999==0));}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a){scanf("%d",&a);printf("AB%c%d",a<1000?'C':'D',n%999+999*(n%999==0));}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a){scanf("%d",&a);printf("AB%c%d",a<1000?'C':'D',n%999+999*(n%999==0));}
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a){scanf("%d",&a);printf("AB%c%d",a<1000?'C':'D',n%999+999*(n%999==0));}
main.c:1:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a){scanf("%d",&a);printf("AB%c%d",a<1000?'C':'D',n%999+999*(n%999==0));}
      |         ^~~~~
main.c:1:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:24: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(a){scanf("%d",&a);printf("AB%c%d",a<1000?'C':'D',n%999+999*(n%999==0));}
      |                        ^~~~~~
main.c:1:24: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:24: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:24: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:55: error: 'n' undeclared (first use in this function)
    1 | main(a){scanf("%d",&a);printf("AB%c%d",a<1000?'C':'D',n%999+999*(n%999==0));}
      |                                                       ^
main.c:1:55: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
	int a;
	cin>>a;
	
	else if(a<10)cout<<"ABC"<<"00"<<a<<endl;
	else if(a<100)cout<<"ABC"<<'0'<<a<<endl;
	else if(a<1000)cout<<"ABC"<<a<<endl;
	else if(a<=1008)cout<<"ABD"<<"00"<<a-999<<endl;
	else if(a<=1098)cout<<"ABD"<<'0'<<a-999<<endl;
	else cout<<"ABD"<<a-999<<endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else if(a<10)cout<<"ABC"<<"00"<<a<<endl;
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
	int a;
	cin>>a;
	if(n<1000)cout<<"ABC"<<a<<endl;
	else cout<<"ABD"<<a-999<<endl;

	return 0;
}


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

#include <bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
	int a;
	cin>>a;
	if(n<1000)cout<<"ABC"a<<endl;
	else cout<<"ABD"a-999<<endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'n' was not declared in this scope
    7 |         if(n<1000)cout<<"ABC"a<<endl;
      |            ^
a.cc:7:25: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
    7 |         if(n<1000)cout<<"ABC"a<<endl;
      |                         ^~~~~~
a.cc:8:20: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
    8 |         else cout<<"ABD"a-999<<endl;
      |                    ^~~~~~
Language: C++

#include<iostream>
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:9:25: error: 'ABC' was not declared in this scope
    9 |                 cout << ABC << endl;
      |                         ^~~
a.cc:11:25: error: 'ABD' was not declared in this scope
   11 |                 cout << ABD << endl;
      |                         ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;cin>>n;
  if(n<=999){
    char a;
    sprintf(a,"%d",n)
    cout<<"ABC"<<a<<endl;
  }
  else{
    n-=999;
    sprintf(char b,"%d",n);
    cout<<"ABD"<<b<<endl;
  }
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: invalid conversion from 'char' to 'char*' [-fpermissive]
    7 |     sprintf(a,"%d",n)
      |             ^
      |             |
      |             char
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/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:365:38: note:   initializing argument 1 of 'int sprintf(char*, const char*, ...)'
  365 | extern int sprintf (char *__restrict __s,
      |                     ~~~~~~~~~~~~~~~~~^~~
a.cc:7:22: error: expected ';' before 'cout'
    7 |     sprintf(a,"%d",n)
      |                      ^
      |                      ;
    8 |     cout<<"ABC"<<a<<endl;
      |     ~~~~              
a.cc:12:13: error: expected primary-expression before 'char'
   12 |     sprintf(char b,"%d",n);
      |             ^~~~
a.cc:13:18: error: 'b' was not declared in this scope
   13 |     cout<<"ABD"<<b<<endl;
      |                  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;cin>>n;
  if(n<=999){
    char a;
    sprintf(a,%s,n)
    cout<<"ABC"<<a<<endl;
  }
  else{
    n-=999;
    sprintf(char b,%s,n);
    cout<<"ABD"<<b<<endl;
  }
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected primary-expression before '%' token
    7 |     sprintf(a,%s,n)
      |               ^
a.cc:7:16: error: 's' was not declared in this scope
    7 |     sprintf(a,%s,n)
      |                ^
a.cc:12:13: error: expected primary-expression before 'char'
   12 |     sprintf(char b,%s,n);
      |             ^~~~
a.cc:12:20: error: expected primary-expression before '%' token
   12 |     sprintf(char b,%s,n);
      |                    ^
a.cc:12:21: error: 's' was not declared in this scope
   12 |     sprintf(char b,%s,n);
      |                     ^
a.cc:13:18: error: 'b' was not declared in this scope
   13 |     cout<<"ABD"<<b<<endl;
      |                  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: invalid conversion from 'char' to 'char*' [-fpermissive]
    7 |     sprintf(a,n)
      |             ^
      |             |
      |             char
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/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:365:38: note:   initializing argument 1 of 'int sprintf(char*, const char*, ...)'
  365 | extern int sprintf (char *__restrict __s,
      |                     ~~~~~~~~~~~~~~~~~^~~
a.cc:7:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    7 |     sprintf(a,n)
      |               ^
      |               |
      |               int
/usr/include/stdio.h:366:44: note:   initializing argument 2 of 'int sprintf(char*, const char*, ...)'
  366 |                     const char *__restrict __format, ...) __THROWNL;
      |                     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:7:17: error: expected ';' before 'cout'
    7 |     sprintf(a,n)
      |                 ^
      |                 ;
    8 |     cout<<"ABC"<<a<<endl;
      |     ~~~~         
a.cc:12:13: error: expected primary-expression before 'char'
   12 |     sprintf(char b,n);
      |             ^~~~
a.cc:13:18: error: 'b' was not declared in this scope
   13 |     cout<<"ABD"<<b<<endl;
      |                  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;cin>>n;
  if(n<=999){
    char a;
    sprintf(a,%d,n)
    cout<<'ABC'<<a<<endl;
  }
  else{
    n-=999;
    sprintf(char b,%d,n);
    cout<<'ABD'<<b<<endl;
  }
}
      

Compiler output:
a.cc:8:11: warning: multi-character character constant [-Wmultichar]
    8 |     cout<<'ABC'<<a<<endl;
      |           ^~~~~
a.cc:13:11: warning: multi-character character constant [-Wmultichar]
   13 |     cout<<'ABD'<<b<<endl;
      |           ^~~~~
a.cc: In function 'int main()':
a.cc:7:15: error: expected primary-expression before '%' token
    7 |     sprintf(a,%d,n)
      |               ^
a.cc:7:16: error: 'd' was not declared in this scope
    7 |     sprintf(a,%d,n)
      |                ^
a.cc:12:13: error: expected primary-expression before 'char'
   12 |     sprintf(char b,%d,n);
      |             ^~~~
a.cc:12:20: error: expected primary-expression before '%' token
   12 |     sprintf(char b,%d,n);
      |                    ^
a.cc:12:21: error: 'd' was not declared in this scope
   12 |     sprintf(char b,%d,n);
      |                     ^
a.cc:13:18: error: 'b' was not declared in this scope
   13 |     cout<<'ABD'<<b<<endl;
      |                  ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int N;

  cin >> N;


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

  return 0;
}
tansei@t

Compiler output:
a.cc:19:7: error: stray '@' in program
   19 | tansei@t
      |       ^
a.cc:19:1: error: 'tansei' does not name a type
   19 | tansei@t
      | ^~~~~~
Language: C++

#include <cstdio>
#include <vector>
#include <algorithm>
#include <functional>
#include <map>
#include <set>
#include <string>
#include <iostream>
#include <cassert>
#include <cmath>
using namespace std;

int main() {
	int n;
	cin >> n;
	puts(n >= 1000 ? "ABD" : "ABC");999
        return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:44: error: expected ';' before 'return'
   16 |         puts(n >= 1000 ? "ABD" : "ABC");999
      |                                            ^
      |                                            ;
   17 |         return 0;
      |         ~~~~~~
Language: C++

#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <cstring>
#include <map>
#include <stack>
#include <queue>
#include <cmath>
#include <complex> // complex<double> a(1.2 , 2.3);// real(): 1.2, imag()2.3
using namespace std;

#define MOD 1000000007
#define ll long long
#define ld long double
#define FOR(i,a,b) for(ll i=(ll)a;i<(ll)b;i++)
#define rep(i,n) FOR(i,0,n)
#define pb push_back
#define mp make_pair
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define rmsame(a) sort(all(a)),a.erase(unique(all(a)), a.end())
#define rmvector(a,b) rep(i,a.size())rep(j,b.size())if(a[i]==b[j]){a.erase(a.begin()+i);i--;break;}
template<typename X> bool exist(vector<X> vec, X item){return find(all(vec), item)!=vec.end();}

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

    ll N ;
    cin >> N;
    if(n < 1000) cout << "ABC" << endl ;
    else cout << "ABD" << endl;


    //cout << fixed << setprecision(16) << ans << endl;
    return 0;
}


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

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

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

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


Compiler output:
Main.java:2: error: '{' expected
public class Main 
                 ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:9: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
#include <iostream>
using namespace std;
int main()
{
        int n;
        scanf(“%d”,&n);
        printf(“AB”);
        if (n<=999) printf(“C\n”);
              else printf(“D\n”);
        return 0;

}


Compiler output:
a.cc:10:15: error: extended character “ is not valid in an identifier
   10 |         scanf(“%d”,&n);
      |               ^
a.cc:10:17: error: extended character ” is not valid in an identifier
   10 |         scanf(“%d”,&n);
      |                 ^
a.cc:11:16: error: extended character “ is not valid in an identifier
   11 |         printf(“AB”);
      |                ^
a.cc:11:16: error: extended character ” is not valid in an identifier
a.cc:12:28: error: extended character “ is not valid in an identifier
   12 |         if (n<=999) printf(“C\n”);
      |                            ^
a.cc:12:30: error: stray '\' in program
   12 |         if (n<=999) printf(“C\n”);
      |                              ^
a.cc:12:31: error: extended character ” is not valid in an identifier
   12 |         if (n<=999) printf(“C\n”);
      |                               ^
a.cc:13:27: error: extended character “ is not valid in an identifier
   13 |               else printf(“D\n”);
      |                           ^
a.cc:13:29: error: stray '\' in program
   13 |               else printf(“D\n”);
      |                             ^
a.cc:13:30: error: extended character ” is not valid in an identifier
   13 |               else printf(“D\n”);
      |                              ^
a.cc: In function 'int main()':
a.cc:10:15: error: '\U0000201c' was not declared in this scope
   10 |         scanf(“%d”,&n);
      |               ^
a.cc:10:17: error: 'd\U0000201d' was not declared in this scope
   10 |         scanf(“%d”,&n);
      |                 ^~
a.cc:11:16: error: '\U0000201cAB\U0000201d' was not declared in this scope
   11 |         printf(“AB”);
      |                ^~~~
a.cc:12:28: error: '\U0000201cC' was not declared in this scope
   12 |         if (n<=999) printf(“C\n”);
      |                            ^~
a.cc:13:27: error: '\U0000201cD' was not declared in this scope
   13 |               else printf(“D\n”);
      |                           ^~
Language: C++

#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
#include <iostream>

int main()
{
        int n;
        scanf(“%d”,&n);
        printf(“AB”);
        if (n<=999) printf(“C\n”);
              else printf(“D\n”);
        return 0;

}


Compiler output:
a.cc:10:15: error: extended character “ is not valid in an identifier
   10 |         scanf(“%d”,&n);
      |               ^
a.cc:10:17: error: extended character ” is not valid in an identifier
   10 |         scanf(“%d”,&n);
      |                 ^
a.cc:11:16: error: extended character “ is not valid in an identifier
   11 |         printf(“AB”);
      |                ^
a.cc:11:16: error: extended character ” is not valid in an identifier
a.cc:12:28: error: extended character “ is not valid in an identifier
   12 |         if (n<=999) printf(“C\n”);
      |                            ^
a.cc:12:30: error: stray '\' in program
   12 |         if (n<=999) printf(“C\n”);
      |                              ^
a.cc:12:31: error: extended character ” is not valid in an identifier
   12 |         if (n<=999) printf(“C\n”);
      |                               ^
a.cc:13:27: error: extended character “ is not valid in an identifier
   13 |               else printf(“D\n”);
      |                           ^
a.cc:13:29: error: stray '\' in program
   13 |               else printf(“D\n”);
      |                             ^
a.cc:13:30: error: extended character ” is not valid in an identifier
   13 |               else printf(“D\n”);
      |                              ^
a.cc: In function 'int main()':
a.cc:10:15: error: '\U0000201c' was not declared in this scope
   10 |         scanf(“%d”,&n);
      |               ^
a.cc:10:17: error: 'd\U0000201d' was not declared in this scope
   10 |         scanf(“%d”,&n);
      |                 ^~
a.cc:11:16: error: '\U0000201cAB\U0000201d' was not declared in this scope
   11 |         printf(“AB”);
      |                ^~~~
a.cc:12:28: error: '\U0000201cC' was not declared in this scope
   12 |         if (n<=999) printf(“C\n”);
      |                            ^~
a.cc:13:27: error: '\U0000201cD' was not declared in this scope
   13 |               else printf(“D\n”);
      |                           ^~
Language: C++

#include <bits/stdc++.h>
#define INF (1<<30)
#define MOD 1000000007
#define l_ength size
using ll = long long;
using namespace std;

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

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

#include <stdio.h>

int main(void){

        printf("何回目？: ");
        int N;
        scanf("%d", &N);
        if(scanf("%d/%d", &numerator, &denominator) < 2) {
        fprintf(stderr, "error: ill-formed fraction.\n");
        exit(1);
        }
      if( 1 <= N && N <= 999 ){
        printf("A B C\n");
      }else if ( 1000 <= N && N <= 1998 ){
        printf("A B D\n");
      }else if( N <= 0 || N >= 1999 ){
        printf("This number is exception.\n");
      }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: 'numerator' was not declared in this scope
    8 |         if(scanf("%d/%d", &numerator, &denominator) < 2) {
      |                            ^~~~~~~~~
a.cc:8:40: error: 'denominator' was not declared in this scope
    8 |         if(scanf("%d/%d", &numerator, &denominator) < 2) {
      |                                        ^~~~~~~~~~~
a.cc:10:9: error: 'exit' was not declared in this scope
   10 |         exit(1);
      |         ^~~~
a.cc:2:1: note: 'exit' is defined in header '<cstdlib>'; this is probably fixable by adding '#include <cstdlib>'
    1 | #include <stdio.h>
  +++ |+#include <cstdlib>
    2 |
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before '{' token
    8 |       }else (N <= 1998){
      |                        ^
      |                        ;
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before '{' token
    8 |   }else (N <= 1998){
      |                    ^
      |                    ;
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:3:16: note: to match this '{'
    3 | int main (void){
      |                ^
Language: C++

#include <stdio.h>

int main(void){

int N;
scanf("%d",&N);

if(N < 0 && 1998< N){

break;

}else{

if(1<= N <= 999){

printf("ABC");

}

else if(1000<= N <= 1998){

printf("ABD");

}
}

return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: break statement not within loop or switch
   10 | break;
      | ^~~~~
Language: C++

#include <stdio.h>

int main(){

int N;
sscanf("%d",&N);

if(1<= N <= 999){

printf("ABC");

}

else if(1000<= N <= 1998){

printf("ABD");

}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: cannot convert 'int*' to 'const char*'
    6 | sscanf("%d",&N);
      |             ^~
      |             |
      |             int*
In file included from a.cc:1:
/usr/include/stdio.h:431:43: note:   initializing argument 2 of 'int sscanf(const char*, const char*, ...)'
  431 |                    const char *__restrict __format, ...) __THROW;
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#import <stdio.h>

int main(){

int N;
sscanf("%d",&N);

if(1<= N <= 999){

printf("ABC");

}

if(1000<= N <= 1998){

printf("ABD");

}

}

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import <stdio.h>
      |  ^~~~~~
a.cc: In function 'int main()':
a.cc:6:13: error: cannot convert 'int*' to 'const char*'
    6 | sscanf("%d",&N);
      |             ^~
      |             |
      |             int*
In file included from a.cc:1:
/usr/include/stdio.h:431:43: note:   initializing argument 2 of 'int sscanf(const char*, const char*, ...)'
  431 |                    const char *__restrict __format, ...) __THROW;
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'else'
    8 | cout<<"ABC"
      |            ^
      |            ;
    9 | else
      | ~~~~        
a.cc:11:10: error: expected '}' at end of input
   11 | return 0;
      |          ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

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

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

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


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

#include<iostream>
using namespace std;
int main()
{
    // string s;
    int N;
    cin >> N;
    // int c = 0;

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

    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected primary-expression before '>' token
   10 |     if (N => 1000){
      |            ^
a.cc:12:15: error: 's' was not declared in this scope
   12 |     }else if (s=="-"){
      |               ^
Language: C++

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespaces'
    2 | using namespaces std;
      |       ^~~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

int main(void)
{
 int n;
 sin>>n;
 if(n>=1000)
  {
   cout<<"abd"<<endl;
  }
  else
  {
   cout<<"abc"<<endl;
  }
}

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


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

Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include "bits/stdc++.h"
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define all(s) s.begin(), s.end()
using namespace std;
typedef long long int ll;
typedef pair<int,int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<P> vp;
const int MX = 100005, INF = 1001001001;
const ll LINF = 1e18;
const double eps = 1e-10;
const int DIV = 1e9+7;

int n;

int main()
{
    cin >> n;
    string ans = n > 1000 ? "ABD" : "ABC";
    puts(ans);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:10: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   28 |     puts(ans);
      |          ^~~
      |          |
      |          std::string {aka std::__cxx11::basic_string<char>}
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/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 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);
      |                  ~~~~~~~~~~~~^~~