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

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

int main() {
  int a;
  cin >> a
  cout << "ABC" + a << end;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before 'cout'
    6 |   cin >> a
      |           ^
      |           ;
    7 |   cout << "ABC" + a << end;
      |   ~~~~
Language: C++

#include <iostream>

using namespace std;

int main(void) {
  int n;
  cin >> n;
  cou << "ABC" << n << endl;
}


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

#include <iostream>

int main(void) {
  int n;
  cin >> n;
  cou << "ABC" << n << endl;
}

Compiler output:
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:6:3: error: 'cou' was not declared in this scope
    6 |   cou << "ABC" << n << endl;
      |   ^~~
a.cc:6:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cou << "ABC" << n << 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)
      |     ^~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int b;
  cin>>b;
  cout<<"ABC"<<;b
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected primary-expression before ';' token
    7 |   cout<<"ABC"<<;b
      |                ^
a.cc:7:18: error: expected ';' before '}' token
    7 |   cout<<"ABC"<<;b
      |                  ^
      |                  ;
    8 | }
      | ~
Language: C++

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

int main() {
	int n;
	cin >> n;
	cout <<"ABC"<< n << endl;
}

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

#include <iostream>
#include <string>
using namespace std;
int main(void)
{
  string N; cin>>N;
  cout<<("ABC"+N)<<endl;

  return 0
}

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

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

int main()
{
  string "ABC",n; cin >> n;
  cout << "ABC" + n << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before string constant
    6 |   string "ABC",n; cin >> n;
      |          ^~~~~
a.cc:6:26: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   string "ABC",n; cin >> n;
      |                          ^
      |                          yn
Language: C++

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

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

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

int main (){

  int n;
  cin >> n;
  
  cout << ABC
  if(n<10) cout << "0" << "0" << n << endl;
  else if(n<100) cout << "0" << n << endl;
  else cout << n << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'ABC' was not declared in this scope
    9 |   cout << ABC
      |           ^~~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else if(n<100) cout << "0" << n << endl;
      |   ^~~~
Language: C

read num; echo ABC$num

Compiler output:
main.c:1:1: error: unknown type name 'read'
    1 | read num; echo ABC$num
      | ^~~~
main.c:1:11: error: unknown type name 'echo'
    1 | read num; echo ABC$num
      |           ^~~~
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
    1 | read num; echo ABC$num
      | ^~~~
Language: Java

import java.util.*;

class Main{
  public static void main(string[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    System.out.println("ABC" + a);
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
  public static void main(string[] args){
                          ^
  symbol:   class string
  location: class Main
1 error
Language: C++

#include <iostream>
#include <cmath>
#include <vector>
#include <string>
#include <ctime>
#include <climits>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <utility>
#include <cstdlib>

using namespace std;
const int MOD = 1000000007,MAX = 510000;
long int pow107 = (int)pow(10, 9) + 7,llimit = LONG_MAX,fac[MAX], finv[MAX], inv[MAX];
int ilimit = INT_MAX;

// テーブルを作る前処理
void COMinit() {
    fac[0] = fac[1] = 1;
    finv[0] = finv[1] = 1;
    inv[1] = 1;
    for (int i = 2; i < MAX; i++){
        fac[i] = fac[i - 1] * i % MOD;
        inv[i] = MOD - inv[MOD%i] * (MOD / i) % MOD;
        finv[i] = finv[i - 1] * inv[i] % MOD;
    }
}

// 二項係数計算
long int COM(long int n,long int k){
    if (n < k) return 0;
    if (n < 0 || k < 0) return 0;
    return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}

bool comp(pair<int, int> a, pair<int, int> b){
    if(a.first != b.first) return a.first > b.first;
    else return a.second < b.second;
}

long int jou(long int x, long int y){
    long int f = 1;
    for(int i = 0; i < y; ++i){
        f = f * x % pow107;
    }
    return f;
}

bool pn(long int x){
    if(x != 2 && x % 2 == 0)
        return false;
    for(int i = 3; i < x; ++i){
        if(x != i && x % i == 0)
            return false;
    }
    return true;
}

long int factorial(long int n){
    long int f = 1;
    for(long int i = 1; i <= n; ++i){
        f = f * i % pow107;
    }
    return f;
}

long int Func2(long int n,long int m){
    long int s2 = 1,
        r = 1;
    for(long int i = 1; i <= m; ++i){
        s2 = (s2*(n - (i - 1))/i) % (pow107);
    }
    return s2;
}

bool secsort(pair<int, int> a, pair<int, int> b){
    if(a.second == b.second)return a.first > b.first;
    else return a.second > b.second;
}

//long intの最大llimit
//intの最大ilimit
//10^9+7    pow107
//素数pn
//n乗jou
//階乗factorial
//コンビネーションFunc2
//コンビネーションCOMinit(),COM(n,m)

int main(){
    vector<pair< int , int > > vn,v1;
    int n,m;
    cin >> n >> m;
    for(int i = 0; i < m; i++){
        int a,b;
        cin >> a >> b;
        if(a == 1){
            v1.push_back(make_pair(a,b));
        }
        if(b == n){
            vn.push_back(make_pair( a , b ));
        }
        
    }

    sort(v1.begin(),v1.end(),secsort);

    for(int i = 0; i < vn.size(); ++i){
        for(int j = 0; j < v1.size(); ++j){
            if(vn[i].first == v1[j].second){
                cout << "POSSIBLE" << endl;
                return 0;
            }
            else(v1[j].second < vn[i].first){
                break;
            }
        }
    }
    cout << "IMPOSSIBLE" << endl;
    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:116:45: error: expected ';' before '{' token
  116 |             else(v1[j].second < vn[i].first){
      |                                             ^
      |                                             ;
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
typedef long double ld;
int main()
{
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int x;
  cin >> x;

  cout << << "ABC" << x << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: expected primary-expression before '<<' token
   16 |   cout << << "ABC" << x << endl;
      |           ^~
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int a=sc.nextInt();
    System.out.println(ABC+a/100+""+a/10%10+""+a%10);
  }
}


Compiler output:
Main.java:6: error: cannot find symbol
    System.out.println(ABC+a/100+""+a/10%10+""+a%10);
                       ^
  symbol:   variable ABC
  location: class Main
1 error
Language: C++

#include<bits/stdc++.h>
using namesace std;
typedef long long int ll;
int main()
{
  ll n;
  cin >> n;
  cout << "ABC" << n;
  
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesace'
    2 | using namesace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   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<bits/c++std.h>
using namesace std;
typedef long long int ll;
int main()
{
  ll n;
  cin >> n;
  cout << "ABC" << n;
  
  return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int  main (){
  int a;
  cin>>a
    cout<<"ABC"<<a<<"\n";
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected ';' before 'cout'
    5 |   cin>>a
      |         ^
      |         ;
    6 |     cout<<"ABC"<<a<<"\n";
      |     ~~~~
Language: C++

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

int main(){
  int N; cin >> N;
  cout << "ABC" << N;

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expected '}' at end of input
    6 |   cout << "ABC" << N;
      |                      ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C

#include <stdio.h>


int main (void)
{
	int a,flag=0;
	char str[64];
	
	fgets(str,sizeof(str),stdin);
	sscanf(str,"%d",&a);
	
	printf("ABC%d",a)
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:12:26: error: expected ';' before 'return'
   12 |         printf("ABC%d",a)
      |                          ^
      |                          ;
   13 |         return 0;
      |         ~~~~~~
Language: C++

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

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

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); ++i)
typedef long long ll;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1;} return 0;}
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1;} return 0;}
const ll INF = 1LL << 60;

int main(){
	string s;
	cin >> s;
	puts("ABC" + s);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
   12 |         puts("ABC" + s);
      |              ~~~~~~^~~
      |                    |
      |                    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);
      |                  ~~~~~~~~~~~~^~~
Language: C++

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

int main() {
  int N; 
  cin>>N;
  cout<<ABC<<N<<endl;
  return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'N'
    6 |   cout << "ABC" N << endl;
      |                ^~
      |                ;
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <iostream>

int main()
{
	int N;

	scanf("%d", &N);

	printf("ABC%d\n",N);

}



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

#include <bits/stdc++.h>
using namespace std;
int main(){
  string abc="ABC";
  int c;
  cin >> c;
  cout << string+c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected primary-expression before '+' token
    7 |   cout << string+c << endl;
      |                 ^
Language: C++

#inlcude<stdio.h>
int main(void)
{
	int a;
	scanf("%d",&a);
	printf("ABC%d",a);
	return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<stdio.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf' was not declared in this scope
    5 |         scanf("%d",&a);
      |         ^~~~~
a.cc:6:9: error: 'printf' was not declared in this scope
    6 |         printf("ABC%d",a);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #inlcude<stdio.h>
Language: C++

#include <iostream>
#include <string>

using namespace std;

// int main(){
//   int N;
//   int large;
//   int counter, high_count;
//   int target;
//   cin >> N;
//   high_count = 0;
//   target = 1;
//   for(int i=1;i<N+1;i++){
//     int aNumber = i;
//     counter = 0;
//     while(aNumber%2 == 0) aNumber /=2, counter++;
//     if(counter> high_count){
//       target=i;
//       high_count = counter;
//     }
//   }

//   cout << target << endl;
// }

int main(){
  int N;
  int target;
  cin >> N;
  for(int i=6; i>0;i--){
    if(N >= 2^i){
      cout << 2^i << endl;
      break;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   33 |       cout << 2^i << endl;
      |                 ~~^~~~~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){
  int N;
  int large;
  int counter, high_count;
  int target;
  cin >> N;
  high_count = 0;
  for(int i=1;i<N+1;i++){
    int aNumber = i;
    counter = 0;
    while(aNumber%2 == 0) aNumber /=2, counter++;
    if(counter> high_count){
      target=j;
      high_count = counter;
    }
  }

  cout << target << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:14: error: 'j' was not declared in this scope
   18 |       target=j;
      |              ^
Language: C++

#include<math.h>
#include<map>
#include<iostream>
#include <algorithm>
#include <string>
#include<vector>
#include<array>
#include<tuple>
#include<queue>
#include<stack>
#include<iomanip>
#include<bitset>
#include <list>
//AtCoderC++.cpp

using namespace std;

inline int ceileing(int a, int b) {
	return a % b == 0 ? a / b : a / b + 1;
}

int main() {
	int N; cin >> N >> D;
	cout << "ABC" << N << endl;
}

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

#include<math.h>
#include<map>
#include<iostream>
#include <algorithm>
#include <string>
#include<vector>
#include<array>
#include<tuple>
#include<queue>
#include<stack>
#include<iomanip>
#include<bitset>
#include <list>
//AtCoderC++.cpp

using namespace std;

inline int ceileing(int a, int b) {
	return a % b == 0 ? a / b : a / b + 1;
}

vector<int> dividers(int n, bool sorted = true) {
	auto divs = vector<int>();
	int root = sqrt(n);
	for (size_t i = 1; i <= root; i++) {
		if (n%i == 0) {
			divs.push_back(i);
			//平方数対策.
			if (n / i != i)divs.push_back(n / i);
		}
	}
	if (sorted)sort(divs.begin(), divs.end());
	return divs;
}

int count_bits(int a,int b) {
	auto res = a & b;
	auto count= 0;
	for (size_t i = 0; i < 32; i++) {
		if ((res >> i) % 2 == 1)++count;
	}
	return count;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:47:24: error: expected primary-expression before '<' token
   47 |         cout<<"ABC"<<N,<endl;
      |                        ^
Language: Java

public class AtCodder {

    public static void main(String[] args) {
 
    int a; 
     String str2="ABC";
    Scanner input = new Scanner(System.in);
    a=input.nextInt();
    
    String str1 = Integer.toString(a); 
      System.out.println(str2+str1);
    
      
    }

Compiler output:
Main.java:14: error: reached end of file while parsing
    }
     ^
1 error
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(){
int N;
cin >> N;
print("ABC"N);
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:36:7: error: unable to find string literal operator 'operator""N' with 'const char [4]', 'long unsigned int' arguments
   36 | print("ABC"N);
      |       ^~~~~~
a.cc:10:26: note: in definition of macro 'print'
   10 | #define print(x) cout << x << endl
      |                          ^
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(){
  string s; cin>>string;
  cout<<"ABC"<<s<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected primary-expression before ';' token
    7 |   string s; cin>>string;
      |                        ^
Language: C++

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

int main(){
    int n;
    cin >> n;
    cout << "ABC"
    cout << n << endl;
}


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

#include <iostream>
n;main(){std::cin>>n;std::cout<<"ABC"<<n;}

Compiler output:
a.cc:2:1: error: 'n' does not name a type
    2 | n;main(){std::cin>>n;std::cout<<"ABC"<<n;}
      | ^
a.cc:2:3: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | n;main(){std::cin>>n;std::cout<<"ABC"<<n;}
      |   ^~~~
a.cc: In function 'int main()':
a.cc:2:20: error: 'n' was not declared in this scope
    2 | n;main(){std::cin>>n;std::cout<<"ABC"<<n;}
      |                    ^
Language: C++

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

int main(){
  string a="ABC";
  int num;
  cin>>num>>endl;
  cout<<a<<num<<endl;
}

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

using namespace std;

int main () {
    int n;
    string ans;
    cin >> n;
    if (n < 100) {
        if (n < 10) {
            ans = "ABC00" + to_string(n);
        } else {
            ans = "ABC0" + to_string(n);
        }
    } else {
        ans = "ABC" + to_string(n);
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'string' was not declared in this scope
    5 |     string ans;
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:6:5: 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 | using namespace std;
a.cc:9:13: error: 'ans' was not declared in this scope
    9 |             ans = "ABC00" + to_string(n);
      |             ^~~
a.cc:9:29: error: 'to_string' was not declared in this scope
    9 |             ans = "ABC00" + to_string(n);
      |                             ^~~~~~~~~
a.cc:9:29: note: 'std::to_string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
a.cc:11:13: error: 'ans' was not declared in this scope
   11 |             ans = "ABC0" + to_string(n);
      |             ^~~
a.cc:11:28: error: 'to_string' was not declared in this scope
   11 |             ans = "ABC0" + to_string(n);
      |                            ^~~~~~~~~
a.cc:11:28: note: 'std::to_string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
a.cc:14:9: error: 'ans' was not declared in this scope
   14 |         ans = "ABC" + to_string(n);
      |         ^~~
a.cc:14:23: error: 'to_string' was not declared in this scope
   14 |         ans = "ABC" + to_string(n);
      |                       ^~~~~~~~~
a.cc:14:23: note: 'std::to_string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout << ans << endl;
      |     ^~~~
a.cc:16:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:13: error: 'ans' was not declared in this scope
   16 |     cout << ans << endl;
      |             ^~~
a.cc:16:20: error: 'endl' was not declared in this scope
   16 |     cout << ans << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include <iostream>
using namespace std;

int main(){
  int n;
  cin>>n;
  cout<<"ABC"<<N<<endl;
  return 0;
}


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

import numpy as np

if __name__ == '__main__':
    N = int(input())
    print("ABC"+str(N))


Compiler output:
a.cc:3:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    3 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import numpy as np
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<iostream>
#include<string>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
string s;
int n;
int main(){
  cin >> n;
  s = "ABC";
  s += itoa(n);
  cout << s << endl;
  return 0;
  }

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

#include<iostream>
#include<string>
using namespace std;
string s;
int n;
int main(){
  cin >> n;
  s = "ABC";
  s += itoa(n);
  cout << s << endl;
  return 0;
  }

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

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

int main()
{
  int n;
  cout << "ABC" << n << endl;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namspace'
    3 | using namspace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << "ABC" << n << endl;
      |   ^~~~
      |   std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << "ABC" << n << 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)
      |     ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <math.h>
#include <stdio.h>
using namespace std;

int main(){
    int n;
    cin>>n;
    prinf("ABC%03d\n", n);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'prinf' was not declared in this scope; did you mean 'printf'?
   10 |     prinf("ABC%03d\n", n);
      |     ^~~~~
      |     printf
Language: C++

#include <iostream>
#include <algorithm>
#include <math.h>
using namespace std;

int main(){
    int n;
    cin>>n;
    prinf("ABC%03d\n", n);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'prinf' was not declared in this scope; did you mean 'printf'?
    9 |     prinf("ABC%03d\n", n);
      |     ^~~~~
      |     printf
Language: C++

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

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string N;
  cin >> N;
  int ans = "ABC";
  ans += N;
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   11 |   int ans = "ABC";
      |             ^~~~~
      |             |
      |             const char*
a.cc:12:7: error: no match for 'operator+=' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   12 |   ans += N;
      |   ~~~~^~~~
Language: C++

#include <iostream>
using namespace std;
#include <algorithm>
 
int main() {
	int N;
	cin >> N;
	
	string ABC = "ABC":
	string strN = to_string(N);
	
	cout << ABC + strN;
	
	cout << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: expected ',' or ';' before ':' token
    9 |         string ABC = "ABC":
      |                           ^
a.cc:12:23: error: 'strN' was not declared in this scope
   12 |         cout << ABC + strN;
      |                       ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  ll N;
  cin >> N;
  cout << "ABC" << N << endl;
}

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

#define rep(i, n) for(int i = 0; i < n; ++i)
#define repR(i, n) for(int i = n; i >= 0; ++i)
#define FDS(i, n) for(int i = 0; i < n; ++i)
#define FDSR(i, n) for(int i = n; i >= 0; ++i)
#define FOR(i, m, n) for(int i = m; i < n; ++i)
#define FORR(i, m, n) for(int i = m;i >= n;--i)
#define VSORT(v) sort(v.begin(), v.end());
#define INF 999999999
#define itn int
#define ednl endl
using namespace std;
typedef long long ll;
int main(){
  int n;
  cin>>n;
  cout<<"ABC"<<n<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'cin' was not declared in this scope
   15 |   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 | #define rep(i, n) for(int i = 0; i < n; ++i)
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout<<"ABC"<<n<<endl;
      |   ^~~~
a.cc:16:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:19: error: 'endl' was not declared in this scope
   16 |   cout<<"ABC"<<n<<endl;
      |                   ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #define rep(i, n) for(int i = 0; i < n; ++i)
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
 string n;
 cin>>n;
 cout << "ABC"+"n" <<endl;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: invalid operands of types 'const char [4]' and 'const char [2]' to binary 'operator+'
    9 |  cout << "ABC"+"n" <<endl;
      |          ~~~~~^~~~
      |          |     |
      |          |     const char [2]
      |          const char [4]
Language: C++

#include<iostrem>
#include<string>
using namespace std;
int main(){
  int n;
  cin>>n;
  cout<<"ABC"<<n<<endl;
  return 0;
}


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

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>

#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
#define TBMod 1000000007
har const *argv[])
{
	int n;
	scanf("%d",&n);
	printf("ABC%d\n", n);
	return 0;
}


Compiler output:
main.c:10:4: error: expected ';' before 'const'
   10 | har const *argv[])
      |    ^~~~~~
      |    ;
main.c:10:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ')' token
   10 | har const *argv[])
      |                  ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int N;
  cin >> N;
  cout << "ABC"N <<endl;
}


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

#include <bits/stdc++.h>

using namespace std;

int main() {
  cin >> N;
  cout << "ABC" << N << endl;
  return 0;
}

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

#include <bts/stdc++.h>
using namespace std;
int main(){
  int n;
  cin << n;
  cout << "ABC" << n << endl;
}

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

from sys import exit
# A,B,C = [int(n) for n in input().split()]
# N = int(input())
# a = [int(input()) for _ in range(N)]
S = str(input())
# L = len(S)
# T = str(input())
print("ABC" + S)


Compiler output:
a.cc:2:3: error: invalid preprocessing directive #A
    2 | # A,B,C = [int(n) for n in input().split()]
      |   ^
a.cc:3:3: error: invalid preprocessing directive #N
    3 | # N = int(input())
      |   ^
a.cc:4:3: error: invalid preprocessing directive #a
    4 | # a = [int(input()) for _ in range(N)]
      |   ^
a.cc:6:3: error: invalid preprocessing directive #L
    6 | # L = len(S)
      |   ^
a.cc:7:3: error: invalid preprocessing directive #T
    7 | # T = str(input())
      |   ^
a.cc:1:1: error: 'from' does not name a type
    1 | from sys import exit
      | ^~~~
Language: C

#include<stdio.h>

int main(){
  int n;
  scanf(%d", &n);
  printf("ABC%d", n);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected expression before '%' token
    5 |   scanf(%d", &n);
      |         ^
main.c:5:11: warning: missing terminating " character
    5 |   scanf(%d", &n);
      |           ^
main.c:5:11: error: missing terminating " character
    5 |   scanf(%d", &n);
      |           ^~~~~~~
main.c:7:12: error: expected ';' before '}' token
    7 |   return 0;
      |            ^
      |            ;
    8 | }
      | ~
Language: C++

#include <iostream>

using namespace std;

int main()
{
 int a;
 cin>>a;
 cout<< ‘ABC’;
 cout<<a;
 return 0;
 }

Compiler output:
a.cc:9:9: error: extended character ‘ is not valid in an identifier
    9 |  cout<< ‘ABC’;
      |         ^
a.cc:9:9: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:9: error: '\U00002018ABC\U00002019' was not declared in this scope
    9 |  cout<< ‘ABC’;
      |         ^~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
 int a;
 cin>>a;
  cout<<“ABC”;
 cout<<a;
 return 0;
 }

Compiler output:
a.cc:9:9: error: extended character “ is not valid in an identifier
    9 |   cout<<“ABC”;
      |         ^
a.cc:9:9: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:9: error: '\U0000201cABC\U0000201d' was not declared in this scope
    9 |   cout<<“ABC”;
      |         ^~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
 int a;
 cin>>a;
  cout<<“ABC”<<a;
 return 0;
 }

Compiler output:
a.cc:9:9: error: extended character “ is not valid in an identifier
    9 |   cout<<“ABC”<<a;
      |         ^
a.cc:9:9: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:9: error: '\U0000201cABC\U0000201d' was not declared in this scope
    9 |   cout<<“ABC”<<a;
      |         ^~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;
using llong = long long;
using P = pair<llong, llong>;

#define BE(x) x.begin(), x.end()

const llong inf = llong(1e18)+7;
const llong mod = 1e9+7;

int main(){
	int n;
	cin >> n;
	if(N/100 == 0)
		cout << 0;
	if(N/10 == 0)
		cout << 0;
	cout << n << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: 'N' was not declared in this scope
   15 |         if(N/100 == 0)
      |            ^
a.cc:17:12: error: 'N' was not declared in this scope
   17 |         if(N/10 == 0)
      |            ^
Language: C++

#include <iostream>
using namespace std;

int main() {
    int N;
    cin >> N;
    int max = 0;
    for (int i = 1; i <= N; ++i) {
        bool can = true;
        int number = i;
        int count = 0;
        while(can) {
            if (number % 2 == 0) {
                number /= 2;
                ++count;
            }
            else {
                can = false;
                if (count > max) {
                    max = count;
                    res = i;
                }
            }
        }
    }
    cout << res << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:21: error: 'res' was not declared in this scope
   21 |                     res = i;
      |                     ^~~
a.cc:26:13: error: 'res' was not declared in this scope
   26 |     cout << res << endl;
      |             ^~~
Language: C++

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

int main() {
  int n;
  cin>>n;
  cout<<ABC<<n;
}

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

#include"bits/stdc++.h"

using namespace std;

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

	cout << "ABC" << N << endl;

	return 0;


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

#include<iostream>

int main(){
	int a;
	cin >> a;
	cout << "ABC" << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         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:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         cout << "ABC" << a << 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:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         cout << "ABC" << a << 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)
      |     ^~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  cout << "ABC" << N << endl;
}

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

#include <bits/stdc++.h>

int main()
{
    int n; cin >> n;
    cout << "ABC" << n << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     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:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << "ABC" << n << 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:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout << "ABC" << n << 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)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
typedef long long ll;
using namespace std;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;

int h,w,x;
char s[1000][1000];
bool visited [1000][1000];
pair<int,int> start,goal;
queue<pair<int,pair<int,int>>> q;
vector<pair<int,int>> ino;

int main(){
  int a,b,c,d;cin >>a>>b>>c>>d;
  cout << "ABC"<<a;



Compiler output:
a.cc: In function 'int main()':
a.cc:19:20: error: expected '}' at end of input
   19 |   cout << "ABC"<<a;
      |                    ^
a.cc:17:11: note: to match this '{'
   17 | int main(){
      |           ^
Language: C++

#include<bits/tdc++.h>
using namespace std;
int main() {
	int N;
	cin >> N;
	cout << "ABC" << N << endl;
}

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

#include<iostream>
using namespace std;
int main()
{
	int n;
while(cin >> n)
{
    cout << "ABC" << n << endl;
}
return 0；
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: unable to find numeric literal operator 'operator""\U0000ff1b'
   10 | return 0；
      |        ^~~
a.cc:10:11: error: expected ';' before '}' token
   10 | return 0；
      |           ^
      |           ;
   11 | }
      | ~
Language: C++

#include <iostream>
using namespace std;
int main()
 {int n;
while(cin>>n);
{cout<<"ABC"n<<endl;
return 0;}
 }

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

#include <iostream>
using namespace std;
int _move[8][2] = {-1,-1,0,-1,1,-1,-1,0,1,0,-1,1,0,1,1,1,};
int main( ){
    int h,w;
    cin>>h>>w;
    char _map[55][55];
    for(int i = 0;i<52;i++){
        _map[0][i]='.';
        _map[i][0]='.';
    }
    for(int i = 1;i<=h;i++){
        for(int j = 1;j<=w;j++){
            cin>>_map[i][j];
        }
    }
    for(int i = 1;i<=h;i++){
        for(int j = 1;j<=w;j++){
            if(_map[i][j]=='.'){
                _map[i][j]='0';
                for(int x=0;x<8;x++){
                    if(_map[i+_move[x][0]][j+_move[x][1]]=='#'){
                        _map[i][j]++;
                    }
                }
            }
        }
    }
    for(int i = 1;i<=h;i++){
        for(int j = 1;j<=w;j++){
            cout<<_map[i][j];
        }
        cout<<endl;
    }
    return 0;
}

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

import java.math.BigDecimal;
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        while(cin.hasNext())
        {
            BigDecimal num1=cin.nextBigDecimal();
            BigDecimal num2=cin.nextBigDecimal();
            String str1=num1.stripTrailingZeros().toPlainString();
            String str2=num2.stripTrailingZeros().toPlainString();
            if(str1.equals(str2))
                System.out.println("YES");
            else System.out.println("NO");
        }
    }
}


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.math.BigDecimal;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.math.BigDecimal;
      |            ^
main.c:2:1: error: unknown type name 'import'
    2 | import java.util.Scanner;
      | ^~~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | import java.util.Scanner;
      |            ^
main.c:3:1: error: unknown type name 'public'
    3 | public class Main {
      | ^~~~~~
main.c:3:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    3 | public class Main {
      |              ^~~~
Language: C++

import java.math.BigDecimal;
import java.util.Scanner;
public class Main
{
    public static void main(String[] args)
    {
        Scanner cin = new Scanner(System.in);
        while(cin.hasNext())
        {
            BigDecimal num1=cin.nextBigDecimal();
            BigDecimal num2=cin.nextBigDecimal();
            String str1=num1.stripTrailingZeros().toPlainString();
            String str2=num2.stripTrailingZeros().toPlainString();
            if(str1.equals(str2))
                System.out.println("YES");
            else System.out.println("NO");
        }
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.math.BigDecimal;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Scanner;
      | ^~~~~~
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 <iostream>
using namespace std;
int _move[8][2] = {-1,-1,0,-1,1,-1,-1,0,1,0,-1,1,0,1,1,1,};
int main( )
{
    int h,w;
    cin>>h>>w;
    char _map[55][55];
    for(int i = 0; i<52; i++)
    {
        _map[0][i]='.';
        _map[i][0]='.';
    }
    for(int i = 1; i<=h; i++)
    {
        for(int j = 1; j<=w; j++)
        {
            cin>>_map[i][j];
        }
    }
    for(int i = 1; i<=h; i++)
    {
        for(int j = 1; j<=w; j++)
        {
            if(_map[i][j]=='.')
            {
                _map[i][j]='0';
                for(int x=0; x<8; x++)
                {
                    if(_map[i+_move[x][0]][j+_move[x][1]]=='#')
                    {
                        _map[i][j]++;
                    }
                }
            }
        }
    }
    for(int i = 1; i<=h; i++)
    {
        for(int j = 1; j<=w; j++)
        {
            cout<<_map[i][j];
        }
        cout<<endl;
    }
    return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:4:17: error: 'a' undeclared (first use in this function)
    4 |     scanf("%d",&a);
      |                 ^
main.c:4:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
#include<iomanip>
#include<cstring>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<set>
#include<map>
using namespace std;
int a[10000005]
int main() {
    int n;
    while(cin>>n&&n)
    {  for(int i=1;i<=n;i++)cin>>a[i];
       sort(a+1,a+n+1);
       for(int i=1;i<=n;i++)cout<<a[i]<<" ";
       cout<<endl;
	}
	return 0;
}

Compiler output:
a.cc:11:1: error: expected initializer before 'int'
   11 | int main() {
      | ^~~
Language: C++

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

int main() {
	scanf("%d", &n);
	printf("ABC%d\n", n)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: expected ';' before '}' token
    7 |         printf("ABC%d\n", n)
      |                             ^
      |                             ;
    8 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
const int maxx = 2e5 + 7;
int n, k;
int p[maxx];
map <int, int> mp;

int main() {
	bool flg = 0;
	cin >> n >> k;
	for(int i = 1; i <= n; i++) cin >> p[i] >> mp[p[i]];
	for(int i = 1; i <= n; i++) {
		if(a[i] == 1 && mp[mp[a[i]]] == n) {
			flg = 1;
			break;
		}
	}
	if(flg) puts("POSSIBLE");
	else puts("IMPOSSIBLE");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: 'a' was not declared in this scope
   13 |                 if(a[i] == 1 && mp[mp[a[i]]] == n) {
      |                    ^
Language: C++

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

int mian(){
    int n;
    cin >>n;
    cout << "ABC" << n << endl;
}

Compiler output:
a.cc: In function 'int mian()':
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include<stdio.h>
imt main(void)
{
	int a;
	scanf("%d",&a);
	printf("ABC%d\n",a);
	return 0;
}

Compiler output:
main.c:2:1: error: unknown type name 'imt'; did you mean 'int'?
    2 | imt main(void)
      | ^~~
      | int
Language: C++

#include<iostream>
 
using namespace std;
 
int main()
{
	int a;
    
    cin >> a;
    
   cout <<  "ABC"a << endl;
   
   
  
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
   11 |    cout <<  "ABC"a << endl;
      |             ^~~~~~