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

import java.util.*;
public class MainB {
static long A= 0;
static long B =0;
static long C=0;

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		A = sc.nextInt();
		B=  sc.nextInt();
		C=0;
		
		for(int i=1;i<Math.max(A,B);i++) {
			if(Math.abs(i-A)==Math.abs(i-B)) {
				C=i;
				break;
			}
		}
		if(C==0) {
			System.out.println("IMPOSSIBLE");
		}else {
			System.out.println(C);
		}
		

	}
}


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

#include<stdio.h>
#include<iostream>
#include<algorithm>
#include<string>
#include<string.h>
#include<math.h>
#include<stdlib.h>

cin>>a>>b;
if((a+b)%2==0){
    cout<<(a+b)/2<<endl;
}
else {
    cout<<"IMPOSSIBLE"<<endl;
}

Compiler output:
a.cc:9:1: error: 'cin' does not name a type
    9 | cin>>a>>b;
      | ^~~
a.cc:10:1: error: expected unqualified-id before 'if'
   10 | if((a+b)%2==0){
      | ^~
a.cc:13:1: error: expected unqualified-id before 'else'
   13 | else {
      | ^~~~
Language: C++

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

int main(){
  long int A >> B;
  std::cin >> A, B;
  long int K = A+B;
  if (K%2==0) { K /=2; }
  else { 
    std::cout << "IMPOSSIBLE" << std::endl; 
    return 0;
  }
  std::cout << K << std::endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected initializer before '>>' token
    7 |   long int A >> B;
      |              ^~
a.cc:8:15: error: 'A' was not declared in this scope
    8 |   std::cin >> A, B;
      |               ^
a.cc:8:18: error: 'B' was not declared in this scope
    8 |   std::cin >> A, B;
      |                  ^
Language: C++

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

int main(){
  long long a,b;
  cin>>a>>b;
  if((a+b)%2==0)	cout<<(a+b)/2<<endl
    else	cout<<"IMPOSSIBLE"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:44: error: expected ';' before 'else'
    7 |   if((a+b)%2==0)        cout<<(a+b)/2<<endl
      |                                            ^
      |                                            ;
    8 |     else        cout<<"IMPOSSIBLE"<<endl;
      |     ~~~~
Language: C++

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

int main(){
  long A, B;
  cin >> A >> B;
  if( (A + B) % 2 == 0)
    cout << (A + B) / 2 << endl;
  else
    cout << IMPOSSIBLE << endl;
}
    

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

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset

using namespace std;

int main() {

	int a[4],sum,n,flag=0,m;

	cin >> n >> m;

	if((n+m)/2%2==0)cout << (n+m)/2 << endl;
  else cout << IMPOSSIBLE << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:16: error: 'IMPOSSIBLE' was not declared in this scope
   27 |   else cout << IMPOSSIBLE << endl;
      |                ^~~~~~~~~~
Language: Java

import java.util.Scanner;
 
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    
    if ((A+B) % 2) == 1{
      System.out.println("IMPOSSIBLE");
    }else{
      int K = (A+B)/2;
      System.out.println(numGuard);
    }
    
    sc.close();
  }
}

Compiler output:
Main.java:9: error: illegal start of expression
    if ((A+B) % 2) == 1{
                   ^
Main.java:9: error: ';' expected
    if ((A+B) % 2) == 1{
                       ^
Main.java:11: error: 'else' without 'if'
    }else{
     ^
3 errors
Language: C++

a,b = map(int,input().split())
if (a+b)//2 != (a+b)/2:
  print("IMPOSSIBLE")
else:
  print(int((a+b)/2))

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b = map(int,input().split())
      | ^
Language: C++

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

int main(){
	long long a,b;
	while(~scanf("%lld %lld",&a,&b)){
		if((a+b)%2==0){
			printf("%lld\n",(a+b)/2);
		}
		else printf("IMPOSSIBLE\n");		
	}
	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 a,b;
  cin >> a >> b;
  if(a+b % 2 == 0)
    cout << (a + b) / 2;
    else if (a+b % 2 != 0)
      cout << IMPOSSIBLE;
}


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

int main(){
    int a, b, k;
    int c;
    cin >> a >> b;
    c = (b - a) % 2;
    if (c == 0){
        k = (b - a) / 2;
        if (k < 0){
            k *= -1;
        }
        cout << k << endl;
    }else{
        cout << "IMPOSSIBLE" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> a >> b;
      |     ^~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << k << endl;
      |         ^~~~
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |         cout << k << endl;
      |                      ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "IMPOSSIBLE" << endl;
      |         ^~~~
a.cc:13:33: error: 'endl' was not declared in this scope
   13 |         cout << "IMPOSSIBLE" << endl;
      |                                 ^~~~
Language: Java

import java.util.*;
public class MainB {
static long A= 0;
static long B =0;
static long C=0;

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		A = sc.nextInt();
		B=  sc.nextInt();
		C=0;
		
		for(int i=1;i<Integer.MAX_VALUE;i++) {
			if(Math.abs(i-A)==Math.abs(i-B)) {
				C=i;
				break;
			}
		}
		if(C==0) {
			System.out.println("IMPOSSIBLE");
		}else {
			System.out.println(C);
		}
		

	}
}


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

A,B=map(int,input().split())
if A==B:
    print(0)
elif (A+B)%2==0:
    print((A+B)//2)
else:
    print("IMPOSSIBLE")


Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A,B=map(int,input().split())
      | ^
Language: C++

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

int main(){
	int a,b;
	while(~scanf("%d %d",&a,&b)){
		if((a+b)%2==0){
			printf("%d\n",(a+b)/2);
		}
		else printf("IMPOSSIBLE\n");		
	}
	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: Java

import java.io.*;
import java.util.*;
public class Solution
{
	public static void main(String args[])
	{
		Scanner x=new Scanner(System.in);
    	int a=x.nextInt();
    	int b=x.nextInt();
    	if((a+b)%2!=0)
        {
          System.out.println("IMPOSSIBLE");
        }
    	else
    	{
          	System.out.println((a+b)/2);
        }
	}
}

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

#include <bits/stdc++.h>
//#define int int64_t
using namespace std;
typedef pair<int, int> P;
const int INF = 100000000;
// " ", ' '

// プロトタイプ宣言
// int myfunc(int, vector<vector<int>>);

// グローバル変数

// 関数：

signed main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	
	int A, B, K;
 	cin >> A >> B;
  	int a = abs(A); int b = abs(B);
  	int K = 0;
  	if (a>b) K = a-b;
  	else K = b-a;
  
  	cout << K << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: redeclaration of 'int K'
   22 |         int K = 0;
      |             ^
a.cc:19:19: note: 'int K' previously declared here
   19 |         int A, B, K;
      |                   ^
Language: C++

        #include <iostream>
        #include <vector>
        #include <bits/stdc++.h>
        #define rep(i,n) for (int i = 0; i < (n); ++i)
        using namespace std;
        typedef long long ll;
        typedef pair<int,int> P;
         
        int main(){
            int n,k;
            cin >> n>>k;
          if((n+k)%2!=0){
          cout<<"IMPOSSIBLE"<<endl;
          }else{
          cout << (n+K)/2 <<endl;
        }
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: 'K' was not declared in this scope
   15 |           cout << (n+K)/2 <<endl;
      |                      ^
Language: Java

/*
 * @Author: Kaustav Vats  
 */
import java.io.*;
import java.util.*;
import java.math.*;
import java.lang.*;


public class PA {

    public static void PrintIntArray(int[] Arr) {
        for (int i=0; i<Arr.length; i++) {
            System.out.print(Arr[i] + " ");
        }
        System.out.println();
    }

    public static void main(String[] args) throws IOException{
        Reader.init(System.in);
        long A = Reader.nextLong();
        long B = Reader.nextLong();
        if ((A+B) % 2 == 0) {
            System.out.println((A + B)/2);
        }
        else {
            System.out.println("IMPOSSIBLE");
        }
    }
}


/** Class for buffered reading int and double values */
class Reader {
    static BufferedReader reader;
    static StringTokenizer tokenizer;

    /** call this method to initialize reader for InputStream */
    static void init(InputStream input) {
        reader = new BufferedReader(
                     new InputStreamReader(input) );
        tokenizer = new StringTokenizer("");
    }

    /** get next word */
    static String next() throws IOException {
        while ( ! tokenizer.hasMoreTokens() ) {
            //TODO add check for eof if necessary
            tokenizer = new StringTokenizer(
                   reader.readLine() );
        }
        return tokenizer.nextToken();
    }

    static int nextInt() throws IOException {
        return Integer.parseInt( next() );
    }

    static long nextLong() throws IOException {
        return Long.parseLong( next() );
    }
	
    static double nextDouble() throws IOException {
        return Double.parseDouble( next() );
    }
}

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

#include <iostream>
using namespace std;

int main(){
  int a,b;
  cin >> a >> b;
  
  int ta,tb;
  if(a < 0) ta = -a;
  else ta = a;
  if(b < 0); tb = -b;
  else tb = b;
  
  if((a - b) % 2 == 1){
    cout << "IMPOSSIBLE" << endl;
  }else{
    cout << (a + b) /2 << endl;
  }
  return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else tb = b;
      |   ^~~~
Language: C++

#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b;
  cin>>a>>b;
  if((a+b)%2==0)
  {
    cout<<(a+b)/2;
  }
  else
  {
    cout<<"IMPOSSIBLE";
    return 0;
}

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

#include <stdio.h>

int main(void){
  int a,b;
  scanf("%d %d",&a,&b);
  
  if(a>=b){
    if((a-b)%2 = 0){
      printf("%d\n",(a-b)/2);
    }else{
      printf("IMPOSSIBLE");
    }
  }else{
    if((a-b)%2 = 0){
      printf("%d\n",(b-a)/2);
    }else{
      printf("IMPOSSIBLE");
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
    8 |     if((a-b)%2 = 0){
      |        ~~~~~^~
a.cc:14:13: error: lvalue required as left operand of assignment
   14 |     if((a-b)%2 = 0){
      |        ~~~~~^~
Language: C++

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

int main(){
	long long int a;
	long long int b;
	cin>>a>>b;
	long long int c = a+b;
	if((c%2 == 1){
			cout<<"IMPOSSIBLE";
			return 0;
	}
	cout<<c/2;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before '{' token
    9 |         if((c%2 == 1){
      |                      ^
      |                      ;
a.cc:13:18: error: expected ')' before ';' token
   13 |         cout<<c/2;
      |                  ^
      |                  )
a.cc:9:11: note: to match this '('
    9 |         if((c%2 == 1){
      |           ^
Language: C++

#include "SaveFuncs.cpp"

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#include <queue>
#include <stack>
#include <map>
#include <iomanip>	//cout << fixed << setprecision(桁数);
#include <stdexcept>

using namespace std;
using ll = long long;

#define rep(i, n) for(int i=0, i##_len=(n); i<i##_len; i++)
#define rep1(i, n) for(int i=1, i##_len=(n); i<i##_len; i++)
#define rrep(i, n) for(int i=(n)-1; i >= 0; i--)
#define rrep1(i, n) for(int i=(n); i > 0; i--)
#define all(x) (x).begin(), (x).end()
#define pair(a, b) make_pair(a, b);
//#define int long long
constexpr int INF = 2000000100;
template<class T> bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
string strMulti(string t, int n) { string out = ""; for (int i = 0; i < n; i++) { out += t; } return out; }

/*****/

int Main()
{
	ll A, B;
	cin >> A >> B;

	if (A < B)	swap(A, B);

	ll ret = A + B;

	if (ret % 2 == 1)
	{
		cout << "IMPOSSIBLE" << endl;
		return 0;
	}

	cout << ret / 2 << endl;

	return 0;
}

/*****/

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

	Main();

	return 0;
}


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

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

int main()
{
  int a, b, c;
  cin >> a >> b;
  c = a + b;
  if(c % 2 = 0) {
    cout << c / 2 << endl;
  } else {
    cout << "IMPOSSIBLE" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: lvalue required as left operand of assignment
    9 |   if(c % 2 = 0) {
      |      ~~^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
isInt(double x){
	if(ceil(x) == floor(x))	return 1;
	return 0;
}

int main(){
	//fast_io; cout_precision;
	int a,b;	cin >> a >> b;
	if(isInt(double(a+b)/2))	cout<<int(a+b)/2<<endl;
	else	cout<<"IMPOSSIBLE"<<endl;
	return 0;
}

Compiler output:
a.cc:3:1: error: ISO C++ forbids declaration of 'isInt' with no type [-fpermissive]
    3 | isInt(double x){
      | ^~~~~
Language: C++

a, b = map(int, input().split())

k = (a + b) / 2

if k%1 == 0:
    print(int(k))
else:
    print('IMPOSSIBLE')

Compiler output:
a.cc:8:11: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    8 |     print('IMPOSSIBLE')
      |           ^~~~~~~~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = map(int, input().split())
      | ^
Language: Java

public class Main {
	public static void solution(int x, int y) {
		for(int i=0;i<=1e9;i++) {
			if(Math.abs(x-i)==Math.abs(y-i)) {
				System.out.println(i);
			}
		}
	}
		
	
	public static void main(String args []) {
		Scanner obj = new Scanner(System.in);
		int x = obj.nextInt();
		int y = obj.nextInt();
		solution(x,y);
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
		Scanner obj = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:12: error: cannot find symbol
		Scanner obj = new Scanner(System.in);
		                  ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
import java.util.Arrays;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int A = sc.nextInt();
   int B = sc.nextInt();
   if((A-B) % 2 = 1) System.out.println("IMPOSSIBLE");
   else {
    if (A>=B) System.out.println((A-B)/2);
    else System.out.println((B-A)/2); 
   }
 }
}

Compiler output:
Main.java:8: error: unexpected type
   if((A-B) % 2 = 1) System.out.println("IMPOSSIBLE");
            ^
  required: variable
  found:    value
1 error
Language: C++

    #include <iostream>
    #include <vector>
    #include <bits/stdc++.h>
    #define rep(i,n) for (int i = 0; i < (n); ++i)
    using namespace std;
    typedef long long ll;
    typedef pair<int,int> P;
     
    int main(){
        int n,k;
        cin >> n>>k;
      if((n+k)%2!=0){
      cout<<"IMPOSSIVLE"<<endl;
      }else{
      cout << (n+K)/2 <<endl;
    }
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: 'K' was not declared in this scope
   15 |       cout << (n+K)/2 <<endl;
      |                  ^
Language: C++

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

int main() {
    long double a, b;
    cin >> a >> b;
    
    int ans = 0;
    if ( (a+b)%2 == 0 ) {
        cout << (a+b)/2 << endl;
    } else {
        cout << "IMPOSSIBLE" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: invalid operands of types 'long double' and 'int' to binary 'operator%'
    9 |     if ( (a+b)%2 == 0 ) {
      |          ~~~~~^~
      |            |   |
      |            |   int
      |            long double
Language: C++

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


isInt(double x){
	if(ceil(x) == floor(x))	return 1;
	return 0;
}

int main(){
	fast_io; cout_precision;
	int a,b;	cin >> a >> b;
	if(isInt(double(a+b)/2))	cout<<int(a+b)/2<<endl;
	else	cout<<"IMPOSSIBLE"<<endl;
	return 0;
}

Compiler output:
a.cc:5:1: error: ISO C++ forbids declaration of 'isInt' with no type [-fpermissive]
    5 | isInt(double x){
      | ^~~~~
a.cc: In function 'int main()':
a.cc:11:9: error: 'fast_io' was not declared in this scope
   11 |         fast_io; cout_precision;
      |         ^~~~~~~
a.cc:11:18: error: 'cout_precision' was not declared in this scope
   11 |         fast_io; cout_precision;
      |                  ^~~~~~~~~~~~~~
Language: Java

import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int f = a-b;
if(f>0){
f=-f;
}
if(f/2=0){
System.out.println(f/2);
}else{
System.out.println("IMPOSSIBLE");
}}}

Compiler output:
Main.java:7: error: cannot find symbol
int f = a-b;
        ^
  symbol:   variable a
  location: class Main
Main.java:7: error: cannot find symbol
int f = a-b;
          ^
  symbol:   variable b
  location: class Main
Main.java:11: error: unexpected type
if(f/2=0){
    ^
  required: variable
  found:    value
3 errors
Language: C++

#include<stdio.h>
#include<iostream>
#include<algorithm>
#include<string>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<vector>
#include<queue>
#include<map>
#include<iomanip>
#define rep(index,num) for(int index=0;index<num;index++)
#define rep1(index,num) for(int index=1;index<=num;index++)
#define leer(argument) cin>>argument
#define esc(argument) cout<<argument<<endl
#define eps 1e-7
#define mp(a1,a2) make_pair(a1,a2)
typedef long long ll;
using namespace std;
typedef pair<ll,ll> pll;
typedef pair<int,int> pint;
typedef vector<int> vint;
typedef vector<ll> vll;
typedef vector<pint> vpint;
typedef vector<pll> vpll;
ll INFl=1e+18+1;
int INF=1e+9+1;

int a,b;
leer(a>>b);
int c=a+b;
if(c%2==0){
    esc(c/2);
}
else{
    esc("IMPOSSIBLE")
}


Compiler output:
a.cc:14:24: error: 'cin' does not name a type
   14 | #define leer(argument) cin>>argument
      |                        ^~~
a.cc:30:1: note: in expansion of macro 'leer'
   30 | leer(a>>b);
      | ^~~~
a.cc:32:1: error: expected unqualified-id before 'if'
   32 | if(c%2==0){
      | ^~
a.cc:35:1: error: expected unqualified-id before 'else'
   35 | else{
      | ^~~~
Language: C++

#include <bits/stdc++.h>
#define int int64_t
using namespace std;
typedef pair<int, int> P;
const int INF = 100000000;
// " ", ' '

// プロトタイプ宣言
// int myfunc(int, vector<vector<int>>);

// グローバル変数

// 関数：

signed main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	
	int A, B, K;
 	cin >> A >> B;
  	int a = abs(A); int b = abs(B);
  	int K = 0;
  	if (a>b) K = a-b;
  	else K = b-a;
  
  	cout << K << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: redeclaration of 'int64_t K'
   22 |         int K = 0;
      |             ^
a.cc:19:19: note: 'int64_t K' previously declared here
   19 |         int A, B, K;
      |                   ^
Language: C++

#include <bits/stdc++.h>

int main()
{
  int a, b, c;
  cin >> a >> b;
  c = a + b;
  if(c % 2 = 0) {
    cout << c / 2 << endl;
  } else {
    cout << "IMPOSSIBLE" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b;
      |   ^~~
      |   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:8: error: lvalue required as left operand of assignment
    8 |   if(c % 2 = 0) {
      |      ~~^~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << c / 2 << 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:9:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout << c / 2 << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << "IMPOSSIBLE" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout << "IMPOSSIBLE" << endl;
      |                             ^~~~
      |                             std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;
 
 
 
int main(int argc, char *argv[])
{
	int a,b ;
	cin >> a >> b;

	if ((a+b)%2)
	{
			cout << "IMPOSSIBLE"
	} else {
		cout << (a+b)/2;
	}
	return 0;
}



Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:13:45: error: expected ';' before '}' token
   13 |                         cout << "IMPOSSIBLE"
      |                                             ^
      |                                             ;
   14 |         } else {
      |         ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define fast_io ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
#define cout_precision cout.setf(ios::fixed); cout.precision(32);
#define clr(a) memset(a,0,sizeof(a))
#define umap unordered_map
#define uset unordered_set
#define fr first
#define sc second
#define pb push_back
#define M int(1e9+7)


using ll = int64_t; using vll = vector<ll>; using vvll = vector<vll>;
using pll = pair<ll, ll>; using vpll = vector<pll>; using vvpll = vector<vpll>;

isInt(double x){
	if(ceil(x) == floor(x))	return 1;
	return 0;
}

int main(){
	fast_io; cout_precision;
	int a,b;	cin >> a >> b;
	if(isInt(double(a+b)/2))	cout<<int(a+b)/2<<endl;
	else	cout<<"IMPOSSIBLE"<<endl;
	return 0;
}

Compiler output:
a.cc:18:1: error: ISO C++ forbids declaration of 'isInt' with no type [-fpermissive]
   18 | isInt(double x){
      | ^~~~~
Language: C++

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

int main() {
int a,b;
  bool flag=false;
  cin >> a;
  cin >> b;
  for(int i=0;i< 1000000000;i++)
    if(abs(a-i)== abs(b-i)){
      cout << i <<endl;
  		flag = true;
    }
  if(flag == false)
    cout << IMPOSSIBLE<<endl;
}


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

import java.util.Scanner;

public class codeforces {
	public static void solution(int x, int y) {
		for(int i=0;i<=1e9;i++) {
			if(Math.abs(x-i)==Math.abs(y-i)) {
				System.out.println(i);
			}
		}
	}
		
	
	public static void main(String args []) {
		Scanner obj = new Scanner(System.in);
		int x = obj.nextInt();
		int y = obj.nextInt();
		solution(x,y);
	}
}

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

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

typedef pair<int,int>   II;
typedef vector< II >      VII;
typedef vector<int>     VI;
typedef vector< VI > 	VVI;
typedef long long int 	LL;
typedef unsigned long long int ULL;

#define PB push_back
#define MP make_pair
#define F first
#define S second
#define SZ(a) (int)(a.size())
#define ALL(a) a.begin(),a.end()
#define SET(a,b) memset(a,b,sizeof(a))
#define LET(x,a) __typeof(a) x(a)

#define rep(i, begin, end) for (__typeof(end) i = (begin) - ((begin) > (end)); i != (end) - ((begin) > (end)); i += 1 - 2 * ((begin) > (end)))
//Works for forward as well as backward iteration

#define gu getchar
#define pu putchar
#define si(n) scanf("%d",&n)
#define dout(n) printf("%d\n",n)
#define sll(n) scanf("%lld",&n)
#define lldout(n) printf("%lld\n",n)

#define DRT() int t; si(t); while(t--)

#define PlUSWRAP(index,n) index = (index+1)%n		//index++; if(index>=n) index=0
#define MINUSWRAP(index,n) index = (index + n -1)%n 	//index--; if(index<0) index=n-1
#define ROUNDOFFINT(d) d = (int)((double)d + 0.5)	//Round off d to nearest integer

#define FLUSHN while(gu()!='\n')
#define FLUSHS while(gu()!=' ')

#define TRACE

#ifdef TRACE
#define trace1(x)                cerr << #x << ": " << x << endl;
#define trace2(x, y)             cerr << #x << ": " << x << " | " << #y << ": " << y << endl;
#define trace3(x, y, z)          cerr << #x << ": " << x << " | " << #y << ": " << y << " | " << #z << ": " << z << endl;
#define trace4(a, b, c, d)       cerr << #a << ": " << a << " | " << #b << ": " << b << " | " << #c << ": " << c << " | " << #d << ": " << d << endl;
#define trace5(a, b, c, d, e)    cerr << #a << ": " << a << " | " << #b << ": " << b << " | " << #c << ": " << c << " | " << #d << ": " << d << " | " << #e << ": " << e << endl;
#define trace6(a, b, c, d, e, f) cerr << #a << ": " << a << " | " << #b << ": " << b << " | " << #c << ": " << c << " | " << #d << ": " << d << " | " << #e << ": " << e << " | " << #f << ": " << f << endl;

#else

#define trace1(x)
#define trace2(x, y)
#define trace3(x, y, z)
#define trace4(a, b, c, d)
#define trace5(a, b, c, d, e)
#define trace6(a, b, c, d, e, f)

#endif

#define off ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)

int main() {
	// #ifndef ONLINE_JUDGE
 //    freopen("input.txt", "r", stdin);
 //    freopen("output.txt", "w", stdout);
	// #endif
	off;
	LL a,b;
	cin>>a>>b;
	LL mi = min(a,b);
	LL ma = max(a,b);

	if((ma-mi)&1)
		cout<<"IMPOSSIBLE";
	else
	{
		LL d= (ma-mi)/2;
		k = mi+d;
		cout<<k;
	}

  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:78:17: error: 'k' was not declared in this scope
   78 |                 k = mi+d;
      |                 ^
Language: C++

#include <iostream>

using namespace std;

int main(){
  int A,B,c;
  cin >> A >> B;
  
  c = A + B;
  
  if(c % 2 =0) cout << c / 2 << endl;
  else cout << "IMPOSSIBLE" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: lvalue required as left operand of assignment
   11 |   if(c % 2 =0) cout << c / 2 << endl;
      |      ~~^~~
Language: C++

#include <iostream>
#include <vector>
#include <set>
#include <string>
#include <algorithm>
#include <utility>
#include <functional>
#include <queue>
#include <cmath>
#include <numeric>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <boost/math/common_factor.hpp>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/io.hpp>
#define REP(i, N) for(int i=0; i<(N); i++)
using namespace std;
using namespace boost::math;
using namespace boost::numeric::ublas;

int main() {
	long long A, B;

	cin >> A >> B;

  long long r = (A + B);
  if (r % 2LL)
	cout << "IMPOSSIBLE" << endl;
  else
    	cout << r / 2LL << endl;
)

	return 0;
}


Compiler output:
a.cc:14:10: fatal error: boost/math/common_factor.hpp: No such file or directory
   14 | #include <boost/math/common_factor.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
	int a,b;
	scanf("%d %d",&a,&b);
	if((a+b)%2==0){
		printf("%d\n",(a+b)/2);
	}
	else printf("IMPOSSIBLE\n");
	
	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++

a,b=map(int,input().split())
if (abs(a-b)%2==0):
    print(abs(a-b)//2+min(a,b))
else:
    print("IMPOSSIBLE")

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b=map(int,input().split())
      | ^
Language: C++

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

int main(){
	int A,B,K;
	cin >> A >> B;
  
  	if ( abs(A-K) == abs(B-K)){
    	cout << K << endl;
    }
  
  	else{
    	cout << "IMPOSSIBLE" << endl;
    }

	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main()
{
    long long A, B;
    cin >> A >> B;
    if ((A + B) % 2 == 0)
    {
        cout << (A + B) / 2 << endl;
    }
    else
    {
        cout << "IMPOSSIBLE" << endl;
    }
}


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

A,B= list(map(int, input().split()))
if (A+B)%2==0:
    print(int((A+B)/2))
else:
    print("IMPOSSIBLE")

Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A,B= list(map(int, input().split()))
      | ^
Language: C++

#include <iostream>

using namespace std;

int main(){
  int A,B;
  cin >> A >> B;
  
  c = A + B;
  
  if(c % 2 =0) cout << c / 2 << endl;
  else cout << "IMPOSSIBLE" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'c' was not declared in this scope
    9 |   c = A + B;
      |   ^
Language: C++

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

int main(){
    int n,k;
    cin >> n>>k;
  if((n+k)!=0){
  cout<<"IMPOSSIVLE"<<endl;
  }else{
  cout << (n+K)/2 <<endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: 'K' was not declared in this scope
   15 |   cout << (n+K)/2 <<endl;
      |              ^
Language: C++

#include <bits/stdc++.h>
#include <unordered_set>
using namespace std;
#define ll long long
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define repeat(i,s,n) for(int (i)=s; (i)<(n); (i)++)
#define revrep(i,n) for(int (i)=(n)-1;i>=0; i--)

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout<<setprecision(std::numeric_limits<float>::max_digits10);
  cout<<fixed;
  // a-k = -(b-k) a+b = 2k
  ll a,b;
  cin>>a>>b;
  if(k%2==0) {
    cout << (a+b)/2 << endl;
  } else {
    cout << "IMPOSSIBLE" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:6: error: 'k' was not declared in this scope
   17 |   if(k%2==0) {
      |      ^
Language: C++

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

int main(){
	int a,b;
	scanf("%d %d",&a,&b);
	if((a+b)%2==0){
		printf("%d\n",(a+b)/2);
	}
	else printf("IMPOSSIBLE");
	
	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 <iostream>
#include <vector>
#include <set>
#include <string>
#include <algorithm>
#include <utility>
#include <functional>
#include <queue>
#include <cmath>
#include <numeric>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <boost/math/common_factor.hpp>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/io.hpp>
#define REP(i, N) for(int i=0; i<(N); i++)
using namespace std;
using namespace boost::math;
using namespace boost::numeric::ublas;

int main() {
	long long A, B;

	cin >> A >> B;

  long long r = (A + B);
  if (r % 2LL)
	cout << "IMPOSSIBLE" : << endl;
  else
    	cout << r / 2LL << endl;
)

	return 0;
}


Compiler output:
a.cc:14:10: fatal error: boost/math/common_factor.hpp: No such file or directory
   14 | #include <boost/math/common_factor.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C

#indlude<stdio.h>

int main(void){
  int A,B;
  
  scanf("%d %d",&A,&B);
  
  if((A+B)%2==0){
  printf("%d",(A+B)/2);
  }
  else{
    printf("IMPOSSIBLE");
  }
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #indlude; did you mean #include?
    1 | #indlude<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   scanf("%d %d",&A,&B);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #indlude<stdio.h>
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%d %d",&A,&B);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |   printf("%d",(A+B)/2);
      |   ^~~~~~
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |     printf("IMPOSSIBLE");
      |     ^~~~~~
main.c:12:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

main :: IO ()
main = do
  [a, b] <- map read . words <$> getLine
  putStrLn $ maybe "IMPOSSIBLE" show $  solve a b

solve :: Int -> Int -> Maybe Int
solve a b
  | even (a - b) = Just $ (a + b) `div` 2
  | otherwise = Nothing


Compiler output:
a.cc:8:35: error: stray '`' in program
    8 |   | even (a - b) = Just $ (a + b) `div` 2
      |                                   ^
a.cc:8:39: error: stray '`' in program
    8 |   | even (a - b) = Just $ (a + b) `div` 2
      |                                       ^
a.cc:1:1: error: 'main' does not name a type
    1 | main :: IO ()
      | ^~~~
Language: C++

#include<stdio.h>
#include<iostream>
#include<algorithm>
using namespace stdl;
int main(){
	int a,b;
	scanf("%d%d",&a,&b);
	if((a+b)%2==0) cout<<(a+b)/2<<endl;
	else cout<<"IMPOSSIBLE"<<endl;
	return 0;
}

Compiler output:
a.cc:4:17: error: 'stdl' is not a namespace-name
    4 | using namespace stdl;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:8:24: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         if((a+b)%2==0) cout<<(a+b)/2<<endl;
      |                        ^~~~
      |                        std::cout
In file included from a.cc:2:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |         if((a+b)%2==0) cout<<(a+b)/2<<endl;
      |                                       ^~~~
      |                                       std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         else cout<<"IMPOSSIBLE"<<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:9:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         else cout<<"IMPOSSIBLE"<<endl;
      |                                  ^~~~
      |                                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
	int a,b;
	if((a+b)%2==0)cout<<(a+b)2<<endl;else cout<<"IMPOSSIBLE"<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:34: error: expected ';' before numeric constant
    5 |         if((a+b)%2==0)cout<<(a+b)2<<endl;else cout<<"IMPOSSIBLE"<<endl;
      |                                  ^
      |                                  ;
Language: C++

#include<stdio.h>
#include<iostream>
#include<algorithm>
#include<string>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<vector>
#include<queue>
#include<map>
#include<iomanip>
#define rep(index,num) for(int index=0;index<num;index++)
#define rep1(index,num) for(int index=1;index<=num;index++)
#define leer(argument) cin>>argument
#define esc(argument) cout<<argument<<endl
#define eps 1e-7
#define mp(a1,a2) make_pair(a1,a2)
typedef long long ll;
using namespace std;
typedef pair<ll,ll> pll;
typedef pair<int,int> pint;
typedef vector<int> vint;
typedef vector<ll> vll;
typedef vector<pint> vpint;
typedef vector<pll> vpll;
ll INFl=1e+18+1;
int INF=1e+9+1;

int a,b;
leer(a>>b);
c=a+b;
if(c%2==0){
    esc(c/2);
}
else{
    esc("IMPOSSIBLE
")
}

Compiler output:
a.cc:36:9: warning: missing terminating " character
   36 |     esc("IMPOSSIBLE
      |         ^
a.cc:37:1: warning: missing terminating " character
   37 | ")
      | ^
a.cc:38:2: error: unterminated argument list invoking macro "esc"
   38 | }
      |  ^
a.cc:14:24: error: 'cin' does not name a type
   14 | #define leer(argument) cin>>argument
      |                        ^~~
a.cc:30:1: note: in expansion of macro 'leer'
   30 | leer(a>>b);
      | ^~~~
a.cc:31:1: error: 'c' does not name a type
   31 | c=a+b;
      | ^
a.cc:32:1: error: expected unqualified-id before 'if'
   32 | if(c%2==0){
      | ^~
a.cc:35:1: error: expected unqualified-id before 'else'
   35 | else{
      | ^~~~
Language: C++

#include<iostream>
using namespace std;
#define ll long long
int main()
{
  ll a,b;
  cin>>a>>b;
  if(a==b){cout<<0;return 0;}
  else if((a+b)%2==0){cout<<(a+b)/2;return 0;}
  cout<<"IMPOSSIBLE";return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: expected '}' at end of input
   10 |   cout<<"IMPOSSIBLE";return 0;
      |                               ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include <iostream>

int main(){
  int A,B;
  cin >> A >> B;
  
  c = A + B;
  
  if(c % 2 =0) cout << c / 2 << endl;
  else cout << "IMPOSSIBLE" << 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 >> A >> B;
      |   ^~~
      |   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:3: error: 'c' was not declared in this scope
    7 |   c = A + B;
      |   ^
a.cc:9:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   if(c % 2 =0) cout << c / 2 << 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:9:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   if(c % 2 =0) cout << c / 2 << endl;
      |                                 ^~~~
      |                                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   else cout << "IMPOSSIBLE" << 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:10:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   else cout << "IMPOSSIBLE" << endl;
      |                                ^~~~
      |                                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 int main()
 {
     int n.k;
     cin>>n>>k;
     if((n+k)%2==0)
     cout<<(n+k)/2<<endl;
     else
     cout<<"IMPOSSIBLE"<<endl;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected initializer before '.' token
    5 |      int n.k;
      |           ^
a.cc:6:11: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |      cin>>n>>k;
      |           ^
      |           yn
a.cc:6:14: error: 'k' was not declared in this scope
    6 |      cin>>n>>k;
      |              ^
Language: Java

import java.util.Scanner;

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

        int a = sc.nextInt();
        int b = sc.nextInt();

        if((a + b)% 2 == 0){
            System.out.println((a + b) / 2);
        } else {
            System.out.println("IMPOSSIBLE");
        }
    }
}

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define all(x) (x).begin(), (x).end()
using namespace std;
int main() {
    int a,b;
    cin >> a >> b;
    int k;
    k = (a+b)/2
    if((a+b)%2 == 1){
        cout << "IMPOSSIBLE";
    }
    else cout << k;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected ';' before 'if'
    9 |     k = (a+b)/2
      |                ^
      |                ;
   10 |     if((a+b)%2 == 1){
      |     ~~          
a.cc:13:5: error: 'else' without a previous 'if'
   13 |     else cout << k;
      |     ^~~~
Language: C++

#include <iostream>

int main(){
  cin >> A >> B;
  
  c = A + B;
  
  if(c % 2 =0) cout << c / 2 << endl;
  else cout << "IMPOSSIBLE" << endl;
}

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 >> A >> B;
      |   ^~~
      |   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:4:10: error: 'A' was not declared in this scope
    4 |   cin >> A >> B;
      |          ^
a.cc:4:15: error: 'B' was not declared in this scope
    4 |   cin >> A >> B;
      |               ^
a.cc:6:3: error: 'c' was not declared in this scope
    6 |   c = A + B;
      |   ^
a.cc:8:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if(c % 2 =0) cout << c / 2 << 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:8:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   if(c % 2 =0) cout << c / 2 << endl;
      |                                 ^~~~
      |                                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   else cout << "IMPOSSIBLE" << 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:9:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   else cout << "IMPOSSIBLE" << endl;
      |                                ^~~~
      |                                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main() {
　int a,b;
  cin >> a >> b;
  if((a+b)%2 == 0){
    cout << (a+b)/2 << endl;
  }
  else
    cout << "IMPOSSIBLE" << endl;
}


Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　int a,b;
      | ^
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000int' was not declared in this scope
    5 | 　int a,b;
      | ^~~~~
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b;
      |               ^
Language: C++

/**akshaykumar99**/
 
#include<bits/stdc++.h>
using namespace std;
 
#define f(i,x,n) for(i=x;i<n;i++)
#define pu(x) push_back(x)
#define eb(x) emplace_back(x)
#define pp pop_back()
#define mp(a,b) make_pair(a,b)
#define F first
#define S second
#define all(v) v.begin(),v.end()
const int MOD=1e9+7 , INF=INT_MAX;
const long long LINF=LLONG_MAX;
 
typedef long long ll;
typedef long double ld;
typedef vector<int> ivc;
typedef pair<int,int> ipr;
 
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
    //#ifndef ONLINE_JUDGE
    //	freopen("input.txt", "r", stdin);
    //	freopen("output.txt","w",stdout);
  //  #endif
    int x,y;
    cin>>x,y;
    if((a+b)%2!=0)
    	cout<<"impossible"<<endl;
    else
    	cout<<(abs(a+b))/2<<endl;
 	
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:9: error: 'a' was not declared in this scope
   33 |     if((a+b)%2!=0)
      |         ^
a.cc:33:11: error: 'b' was not declared in this scope
   33 |     if((a+b)%2!=0)
      |           ^