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

import java.util.*;
public class Main{
  public static void main(String args[]){
  Scanner sc = new Scanner(System.in);
  int k;
  int a = sc.nextInt();
  int b = sc.nextInt();
  int ak = Math.abs(a-k);
  int bk = Math.abs(b-k);
  if(ak==bk){
    System.out.println(k);
  }else{
    System.out.println("IMPOSSIBLE");
  }
 }
}

Compiler output:
Main.java:8: error: variable k might not have been initialized
  int ak = Math.abs(a-k);
                      ^
1 error
Language: Java

class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		
		int c=a+b;
		
		if(c%2==0) {
			System.out.println(c/2);
		}
		else {
			System.out.println("IMPOSSIBLE");
		}
	}

}


Compiler output:
Main.java:3: error: cannot find symbol
		Scanner sc=new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner sc=new Scanner(System.in);
		               ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++


#include <iostream>
using namespace std;

int main()
{
  int A, B;
  cin >> A >> B;
  cout << ((0 == (A + B)%2) ? (A + B)/2 : "IMPOSSIBLE");
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: operands to '?:' have different types 'int' and 'const char*'
    9 |   cout << ((0 == (A + B)%2) ? (A + B)/2 : "IMPOSSIBLE");
      |            ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++


#include <iostream>
using namespace std;

int main()
{
  int A, B;
  cin >> A >> B;
  cout << (0 == (A + B)%2 ? (A + B)/2 : "IMPOSSIBLE");
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: operands to '?:' have different types 'int' and 'const char*'
    9 |   cout << (0 == (A + B)%2 ? (A + B)/2 : "IMPOSSIBLE");
      |            ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++


#include <iostream>
using namespace std;

int main()
{
  int A, B;
  cin >> A >> B;
  cout << (0 == (A + B)%2 ? (A + B)/2 : "IMPOSSIBLE")
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: operands to '?:' have different types 'int' and 'const char*'
    9 |   cout << (0 == (A + B)%2 ? (A + B)/2 : "IMPOSSIBLE")
      |            ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C

main(){
	int A,B,K=0;
	int i;

	
	scanf("%d",&A);
	scanf("%d",&B);
	
	K=(A+B)/2;
	if(abs(A-K)==abs(B-K)){
		printf("%d",K);
	}
	else{
		printf("IMPOSSIBLE")
	}
	
	
}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |         scanf("%d",&A);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){
main.c:6:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |         scanf("%d",&A);
      |         ^~~~~
main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:12: error: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
   10 |         if(abs(A-K)==abs(B-K)){
      |            ^~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
  +++ |+#include <stdlib.h>
    1 | main(){
main.c:11:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |                 printf("%d",K);
      |                 ^~~~~~
main.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   14 |                 printf("IMPOSSIBLE")
      |                 ^~~~~~
main.c:14:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:37: error: expected ';' before '}' token
   14 |                 printf("IMPOSSIBLE")
      |                                     ^
      |                                     ;
   15 |         }
      |         ~
Language: C++

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

int main()
{
    int A, B, K;
    cin >> A >> B >> K;

    if ( A = B || A = -B + 2K){
        cout << K << endl;
    }else {
        cout << "IMPOSSIBLE" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: fixed-point types not supported in C++
    9 |     if ( A = B || A = -B + 2K){
      |                            ^~
Language: Java

mport java.util.*;
public class Main{
  public static void main(String args[]){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    int m=sc.nextInt();
    int x=Math.abs(m-n);
    int y=0;

    if(x%2==0){
       y=x/2;
         if (n<m) {
         System.out.println(n+y);
       }else{
         System.out.println(m+y);
       }
    }else{
      System.out.println("IMPOSSIBLE");
    }


  }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
1 error
Language: Java

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

Compiler output:
Main.java:13: error: ')' expected
      if( r%2 == 0;){
                  ^
Main.java:13: error: illegal start of expression
      if( r%2 == 0;){
                   ^
Main.java:15: error: 'else' without 'if'
      }else{
       ^
3 errors
Language: C++

#include <bits/stdc++.h>
2 using namespace std;
3 int main() {
4 long long A, B;
5 cin >> A >> B;
6 if(A % 2 != B % 2) {
7 cout << "IMPOSSIBLE" << endl;
8 } else {
9 cout << (A + B) / 2 << endl;
10 }
11 return 0;
12 }


Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2 using namespace std;
      | ^
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3 int main() {
      | ^
Language: C++

#include <bits/stdc++>
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:1:10: fatal error: bits/stdc++: No such file or directory
    1 | #include <bits/stdc++>
      |          ^~~~~~~~~~~~~
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 cout << "IMPOSSIBLE"
    return 0;
}

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

#include "stdc++.h"

using namespace std;

int main()
{
    int a,b,i=0;
    cin>>a>>b;
    while(true){
        if(abs(a-i)==abs(b-i)){printf("%d",i);break;}
        if(a<i&&b<i){printf("IMPOSSIBLE");break;}
        i++;
    }
    return 0;
}


Compiler output:
a.cc:1:10: fatal error: stdc++.h: No such file or directory
    1 | #include "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 cout "IMPOSSIBLE";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before string constant
    8 |   else cout "IMPOSSIBLE";
      |            ^~~~~~~~~~~~~
      |            ;
Language: Java

import java.util.Scanenr;
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==0){
      System.out.println((A+B)/2);
    }else{
      System.out.prinln("IMPOSSIBLE");
    }
  }
}
      
  

Compiler output:
Main.java:1: error: cannot find symbol
import java.util.Scanenr;
                ^
  symbol:   class Scanenr
  location: package java.util
Main.java:4: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
                     ^
  symbol:   class Scanner
  location: class Main
Main.java:10: error: cannot find symbol
      System.out.prinln("IMPOSSIBLE");
                ^
  symbol:   method prinln(String)
  location: variable out of type PrintStream
4 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:46: error: expected ';' before ')' token
    7 |   if (((a + b) / 2 ) % 10 == 0) cout << a + b) / 2 << 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();
    boolean flg=false;
    long k;
    for(k=0;k<10000000000;k++){
      if(Math.abs(a-k)==Math.abs(b-k)){
        flg=true;
        break;
      }
    }
    if(flg){
      System.out.println(k);
    }else{
      System.out.println("IMPOSSIBLE");
    }
  }
}

Compiler output:
Main.java:10: error: integer number too large
    for(k=0;k<10000000000;k++){
              ^
1 error
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();
    boolean flg=false;
    int k;
    for(k=0;k<10000000000;k++){
      if(Math.abs(a-k)==Math.abs(b-k)){
        flg=true;
        break;
      }
    }
    if(flg){
      System.out.println(k);
    }else{
      System.out.println("IMPOSSIBLE");
    }
  }
}

Compiler output:
Main.java:10: error: integer number too large
    for(k=0;k<10000000000;k++){
              ^
1 error
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include <cstdlib>  
#include <math.h>
#include <cmath>
#include<cctype>
#include<string>
#include<set>
#include<iomanip>
#include <map>
#include<algorithm>
#include <functional>
#include<vector>
#include<climits>
#include<stack>
#include<queue>
#include<bitset>
#include <deque>
#include <climits>
#include <typeinfo>
#include <utility> 
using namespace std;
using ll = long long;
template<typename T>using min_priority_queue = priority_queue<T, vector<T>, greater<T>>;
const ll inf = 1LL << 60;
#define all(x) (x).begin(),(x).end()
#define puts(x) cout << x << endl
#define rep(i,m,n) for(ll i = m;i < n;++i)
#define pb push_back
#define fore(i,a) for(auto &i:a)
#define rrep(i,m,n) for(ll i = m;i >= n;--i)


vector<int>TopologicalSort(int n, vector<int>in, vector<int>e[]) {
	stack<int>st;
	for (int i = 0; i < n; i++)if (!in[i])st.push(i);
	vector<int>ret;
	while (st.size()) {
		int i = st.top();
		st.pop();
		ret.pb(i);
		fore(x, e[i]) {
			in[x]--;
			if (!in[x])st.push(x);
		}
	}
	return ret;
}

struct RollingHash {
	vector<ll>hash;
	vector<ll>base_pow;
	ll base, mod;
	const ll DEFAULT_BASE = 1009, DEFAULT_MOD = 1e9 + 7;
	RollingHash(string S = "", ll base_ = -1, ll mod_ = -1) {
		base = (base_ > 0) ? base_ : DEFAULT_BASE;
		mod = (mod_ > 0) ? mod_ : DEFAULT_MOD;
		if (S.size() > 0)initialize(S);
	}
	void initialize(string& S) {
		int N = S.size();
		vector<int>s(N);
		for (int i = 0; i < N; i++)s[i] = S[i];
		initialize2(s);
	}

	void initialize2(vector<int>& S) {
		hash.resize(S.size() + 1);
		base_pow.resize(S.size() + 1);
		hash[0] = 0;
		base_pow[0] = 1;
		for (int i = 1; i <= S.size(); i++) {
			hash[i] = (hash[i - 1]*base + S[i-1]) % mod;
			base_pow[i] = base_pow[i - 1] * base % mod;
		}
	}

	//[a,b)
	ll between(int a,int b) {
		return (mod + hash[b] - hash[a] * base_pow[b - a] % mod)%mod;
	}
};

int dp[1010101];

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

  int a,b
  cin >> a>>b;
  if((a+b)%2)puts("IMPOSSIBLE");
  else puts((a+b)/2);

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:92:3: error: expected initializer before 'cin'
   92 |   cin >> a>>b;
      |   ^~~
a.cc:93:9: error: 'b' was not declared in this scope
   93 |   if((a+b)%2)puts("IMPOSSIBLE");
      |         ^
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include <cstdlib>  
#include <math.h>
#include <cmath>
#include<cctype>
#include<string>
#include<set>
#include<iomanip>
#include <map>
#include<algorithm>
#include <functional>
#include<vector>
#include<climits>
#include<stack>
#include<queue>
#include<bitset>
#include <deque>
#include <climits>
#include <typeinfo>
#include <utility> 
using namespace std;
using ll = long long;
template<typename T>using min_priority_queue = priority_queue<T, vector<T>, greater<T>>;
const ll inf = 1LL << 60;
#define all(x) (x).begin(),(x).end()
#define puts(x) cout << x << endl
#define rep(i,m,n) for(ll i = m;i < n;++i)
#define pb push_back
#define fore(i,a) for(auto &i:a)
#define rrep(i,m,n) for(ll i = m;i >= n;--i)


vector<int>TopologicalSort(int n, vector<int>in, vector<int>e[]) {
	stack<int>st;
	for (int i = 0; i < n; i++)if (!in[i])st.push(i);
	vector<int>ret;
	while (st.size()) {
		int i = st.top();
		st.pop();
		ret.pb(i);
		fore(x, e[i]) {
			in[x]--;
			if (!in[x])st.push(x);
		}
	}
	return ret;
}

struct RollingHash {
	vector<ll>hash;
	vector<ll>base_pow;
	ll base, mod;
	const ll DEFAULT_BASE = 1009, DEFAULT_MOD = 1e9 + 7;
	RollingHash(string S = "", ll base_ = -1, ll mod_ = -1) {
		base = (base_ > 0) ? base_ : DEFAULT_BASE;
		mod = (mod_ > 0) ? mod_ : DEFAULT_MOD;
		if (S.size() > 0)initialize(S);
	}
	void initialize(string& S) {
		int N = S.size();
		vector<int>s(N);
		for (int i = 0; i < N; i++)s[i] = S[i];
		initialize2(s);
	}

	void initialize2(vector<int>& S) {
		hash.resize(S.size() + 1);
		base_pow.resize(S.size() + 1);
		hash[0] = 0;
		base_pow[0] = 1;
		for (int i = 1; i <= S.size(); i++) {
			hash[i] = (hash[i - 1]*base + S[i-1]) % mod;
			base_pow[i] = base_pow[i - 1] * base % mod;
		}
	}

	//[a,b)
	ll between(int a,int b) {
		return (mod + hash[b] - hash[a] * base_pow[b - a] % mod)%mod;
	}
};

int dp[1010101];

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

  int a,b;
  cin >> a>>b;
  if((a+b)%2)puts("IMPOSSIBLE");
  else puts((a+b)/2)

	return 0;
}


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

#include<iostream>
#include<cstdio>
#include<cstring>
#include <cstdlib>  
#include <math.h>
#include <cmath>
#include<cctype>
#include<string>
#include<set>
#include<iomanip>
#include <map>
#include<algorithm>
#include <functional>
#include<vector>
#include<climits>
#include<stack>
#include<queue>
#include<bitset>
#include <deque>
#include <climits>
#include <typeinfo>
#include <utility> 
using namespace std;
using ll = long long;
template<typename T>using min_priority_queue = priority_queue<T, vector<T>, greater<T>>;
const ll inf = 1LL << 60;
#define all(x) (x).begin(),(x).end()
#define puts(x) cout << x << endl
#define rep(i,m,n) for(ll i = m;i < n;++i)
#define pb push_back
#define fore(i,a) for(auto &i:a)
#define rrep(i,m,n) for(ll i = m;i >= n;--i)


vector<int>TopologicalSort(int n, vector<int>in, vector<int>e[]) {
	stack<int>st;
	for (int i = 0; i < n; i++)if (!in[i])st.push(i);
	vector<int>ret;
	while (st.size()) {
		int i = st.top();
		st.pop();
		ret.pb(i);
		fore(x, e[i]) {
			in[x]--;
			if (!in[x])st.push(x);
		}
	}
	return ret;
}

struct RollingHash {
	vector<ll>hash;
	vector<ll>base_pow;
	ll base, mod;
	const ll DEFAULT_BASE = 1009, DEFAULT_MOD = 1e9 + 7;
	RollingHash(string S = "", ll base_ = -1, ll mod_ = -1) {
		base = (base_ > 0) ? base_ : DEFAULT_BASE;
		mod = (mod_ > 0) ? mod_ : DEFAULT_MOD;
		if (S.size() > 0)initialize(S);
	}
	void initialize(string& S) {
		int N = S.size();
		vector<int>s(N);
		for (int i = 0; i < N; i++)s[i] = S[i];
		initialize2(s);
	}

	void initialize2(vector<int>& S) {
		hash.resize(S.size() + 1);
		base_pow.resize(S.size() + 1);
		hash[0] = 0;
		base_pow[0] = 1;
		for (int i = 1; i <= S.size(); i++) {
			hash[i] = (hash[i - 1]*base + S[i-1]) % mod;
			base_pow[i] = base_pow[i - 1] * base % mod;
		}
	}

	//[a,b)
	ll between(int a,int b) {
		return (mod + hash[b] - hash[a] * base_pow[b - a] % mod)%mod;
	}
};

int dp[1010101];

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

  int a,b
  cin >> a>>b;
  if((a+b)%2)puts("IMPOSSIBLE");
  else puts((a+b)/2)

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:92:3: error: expected initializer before 'cin'
   92 |   cin >> a>>b;
      |   ^~~
a.cc:93:9: error: 'b' was not declared in this scope
   93 |   if((a+b)%2)puts("IMPOSSIBLE");
      |         ^
Language: C

#include<stdio.h>
int main(void)
{
	int x, y, k;
	scanf_s("%d %d", &x, &y);
	printf("\n");

	k = (x + y) / 2;
	if ((x+y) % 2 == 0)
	{
		printf("%d", k);
	}
	else
	{
		printf("IMPOSSIBLE");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scanf_s("%d %d", &x, &y);
      |         ^~~~~~~
      |         scanf
Language: C

#include<stdio.h>
int main()
{
	int x, y, k;
  scanf("%d %d",&x,&y);
  printf("\n");
  
  k=(x+y)/2;
  if(k%2 == 0)
  {
    printf("%d",k);
  }
  else
  {
    printf("IMPOSSIBLE")
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:25: error: expected ';' before '}' token
   15 |     printf("IMPOSSIBLE")
      |                         ^
      |                         ;
   16 |   }
      |   ~
Language: C++

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


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

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

Compiler output:
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h> using namespace std;
      |                          ^~~~~
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 /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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << N/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:7:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << N/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:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   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:11: error: 'IMPOSSIBLE' was not declared in this scope
   10 |   cout << IMPOSSIBLE << endl;
      |           ^~~~~~~~~~
a.cc:10:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   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;

long A;
long B;
long K = 0;
bool possible = false;


int main () {

    cin >> A;
    cin >> B;

    while((abs(A-K) != abs(B-K) ) && (K < 1000000000)){
        K += 1;
        if (abs(A-K) == abs(B-K)){
            possible = true;
            cout << K;
            break;
        }
        
    }

    if (possible != true){      
    cout << "IMPOSSIBLE";
}

    

    
    


     

    

    





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

#include <stdio.h>
int main(){
  int a,b,k;
  scanf("%d %d", &a,&b);
    if((A + B)%2){
        puts("IMPOSSIBLE");
    }else{
       printf("%d",(A + B)/2);
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:9: error: 'A' undeclared (first use in this function)
    5 |     if((A + B)%2){
      |         ^
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:13: error: 'B' undeclared (first use in this function)
    5 |     if((A + B)%2){
      |             ^
Language: C++

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



int main()
{
	ABC135A();
	return 0;
}

Compiler output:
a.cc: In function 'void ABC135A()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> A >> B;
      |         ^~~
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout << "IMPOSSIBLE" << endl;
      |                 ^~~~
a.cc:7:41: error: 'endl' was not declared in this scope
    7 |                 cout << "IMPOSSIBLE" << endl;
      |                                         ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << c << endl;
      |         ^~~~
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |         cout << c << endl;
      |                      ^~~~
Language: C++

#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <unordered_map>

//#define int long long

using namespace std;

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

	int diff = abs(A - B);
	if (diff % 2 == 1) {
		cout << "IMPOSSIBLE" << endl;
	}
	else {
		cout << diff / 2 << endl;
	}
}

int32_t main()
{
	Main();
	return 0;
}

/*
void sample()
{
	vector<int> v;
	sort(v.begin(), v.end());
	sort(v.begin(), v.end(), greater<int>());

}
*

Compiler output:
a.cc:33:1: error: unterminated comment
   33 | /*
      | ^
Language: C++

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

Compiler output:
a.cc:7:11: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    7 |     cout<<'IMPOSSIBLE'<<endl;
      |           ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before '}' token
   10 |     cout<<(A+B)//2 <<endl;
      |                ^
      |                ;
   11 |   }
      |   ~
Language: C++

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

Compiler output:
a.cc:7:11: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    7 |     cout<<'IMPOSSIBLE'<<endl;
      |           ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:8: error: expected primary-expression before ')' token
    9 |   else(){
      |        ^
Language: C++

#include<iostream>
int main(){
  long A,B,temp;
  std::cin>>A>>B;
  if(A<B){
    temp=B;
    B=A;
    A=temp;
  }
  dif=A-B;
  if((A-B)%2==1){
    std::cout<<"IMPOSSIBLE"<<std::endl;
  }else{
    long ans=A-B;
    std::cout<<ans<<std::endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'dif' was not declared in this scope; did you mean 'div'?
   10 |   dif=A-B;
      |   ^~~
      |   div
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:37: error: expected ';' before ':' token
   10 |         cout << "IMPOSSIBLE" << endl:
      |                                     ^
      |                                     ;
Language: C++

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

int main() {
	long long A, B,K=0;
	cin >> A >> B;
	K = ((A * A) - (B * B)) / (2 * (B - A));
	if (K < 0)
		K = K * -1;
	A = A - K;
	B = B - K;
	if (A < 0)
		A = A * -1;
	if (B < 0)
		B = B * -1;
	if (A==B)
		cout << K << endl;
	else
		cout << "IMPOSSIBLE" << endl;
	return 0;

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

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

int a, b;

int main () {
	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:9:32: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |                 cout << (a+b/2 << endl;
      |                          ~~~~~~^~~~~~~
a.cc:9:39: error: expected ')' before ';' token
    9 |                 cout << (a+b/2 << endl;
      |                         ~             ^
      |                                       )
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'A' was not declared in this scope
    7 |   if(A % 2 == B % 2) {
      |      ^
a.cc:7:15: error: 'B' was not declared in this scope
    7 |   if(A % 2 == B % 2) {
      |               ^
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    double A = Integer.parseInt(sc.next());
    double B = Integer.parseInt(sc.next());
    if((A+B) % 2 == 0){
      System.out.println(int((A+B)/2));
    }else{
      System.out.println("IMPOSSIBLE");
    }
  }
}


Compiler output:
Main.java:9: error: '.class' expected
      System.out.println(int((A+B)/2));
                            ^
Main.java:9: error: not a statement
      System.out.println(int((A+B)/2));
                               ^
Main.java:9: error: ';' expected
      System.out.println(int((A+B)/2));
                                 ^
3 errors
Language: C++

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

int A,B,K;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected primary-expression before '|' token
    8 |         if ( |K-A| == |B-K| && A<B ) {
      |              ^
a.cc:8:20: error: expected primary-expression before '==' token
    8 |         if ( |K-A| == |B-K| && A<B ) {
      |                    ^~
a.cc:8:23: error: expected primary-expression before '|' token
    8 |         if ( |K-A| == |B-K| && A<B ) {
      |                       ^
a.cc:8:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if ( |K-A| == |B-K| && A<B ) {
      |                             ~~~~^~
a.cc:8:32: error: label 'A' used but not defined
    8 |         if ( |K-A| == |B-K| && A<B ) {
      |                                ^
Language: C++

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

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

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

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

	cin.get();
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'a' was not declared in this scope
    8 |         if ((a + b) % 2 == 0)
      |              ^
a.cc:8:18: error: 'b' was not declared in this scope
    8 |         if ((a + b) % 2 == 0)
      |                  ^
Language: C++

#include <iostream>
using namespace std;
int main(){
    int A,B,k,i,x,y;
    cin >> A >> B;
    x=0;
    y=0;
    if(A>=B){
        B=C;
        B=A;
        A=C;
    }
    for(i=0;i<B;i++){
        if(A-i==B-i){
            x=i;
            break;
        }
    }
    for(i=0;i<B;i++){
        if(A-i==i-B){
            y=i;
            break;
        }
    }
    if(x!=0)
        cout << x;
    if(y!=0)
        cout << y;
    else
        cout << "IMPOSSIBLE";
    return 0;
}

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

#include <iostream>
using namespace std;
int main(){
    int A,B,k,i,x,y;
    cin >> A >> B;
    x=0;
    y=0;
    if(A>=B){
        B=C;
        B=A;
        A=C;
    }
    for(i=0;i<B;i++){
        if(A-i==B-i){
            x=i;
            break;
        }
    }
    for(i=0;i<B;i++){
        if(A-i==i=B){
            y=i;
            break;
        }
    }
    if(x!=0)
        cout << x;
    if(y!=0)
        cout << y;
    else
        cout << "IMPOSSIBLE";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'C' was not declared in this scope
    9 |         B=C;
      |           ^
a.cc:20:15: error: lvalue required as left operand of assignment
   20 |         if(A-i==i=B){
      |            ~~~^~~
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int number_a = Integer.parseInt(sc.next());
    int number_b = Integer.parseInt(sc.next());
    if((number_a + number_b) % 2 == 1) {
      System.out.println("IMPOSSIBLE");
    } else {
      System.out.println(number_a + number_b) / 2);
    }
  }
}


Compiler output:
Main.java:11: error: not a statement
      System.out.println(number_a + number_b) / 2);
                                              ^
Main.java:11: error: ';' expected
      System.out.println(number_a + number_b) / 2);
                                                 ^
2 errors
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int number_a = Integer.parseInt(sc.next());
    int number_b = Integer.parseInt(sc.next());
    if((number_a + number_b) % 2 == 1) {
      System.out.println("IMPOSSIBLE");
    } else {
      System.out.println((Math.max((number_a, number_b) - Math.min(number_a, number_b)) / 2);
    }
  }
}


Compiler output:
Main.java:11: error: -> expected
      System.out.println((Math.max((number_a, number_b) - Math.min(number_a, number_b)) / 2);
                                                       ^
Main.java:11: error: ')' or ',' expected
      System.out.println((Math.max((number_a, number_b) - Math.min(number_a, number_b)) / 2);
                                                                                            ^
2 errors
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int number_a = Integer.parseInt(sc.next());
    int number_b = Integer.parseInt(sc.next());
    if((number_a + number_b) % 2 == 1) {
      System.out.println("IMPOSSIBLE");
    } else {
      System.out.println(Math.max((number_a, number_b) - Math.min(number_a, number_b)) / 2);
    }
  }
}


Compiler output:
Main.java:11: error: -> expected
      System.out.println(Math.max((number_a, number_b) - Math.min(number_a, number_b)) / 2);
                                                      ^
1 error
Language: C++

#include<iostream>
int main(void){
	int a,b,k;
    scanf("%d",&a);
    scanf("%d",&b);
    k=(a+b)/2;
    if((a+b)%2==0){printf("%d",k);}
    else(printf("IMPOSSIBLE");)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:30: error: expected ')' before ';' token
    8 |     else(printf("IMPOSSIBLE");)
      |         ~                    ^
      |                              )
a.cc:8:31: error: expected primary-expression before ')' token
    8 |     else(printf("IMPOSSIBLE");)
      |                               ^
Language: C++

#include <iostream>
using namespace std;

int main(void){
  int n,m;
  cin >> n >> m;
  if ((n+m)%2){
    cout << "IMPOSSIBLE" << endl;
  } else {
    cout << (n+m)/2 << endl;
  return 0;
}


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

#include<iostream>
using namespace std;

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

  


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

#include <iostream>
using namespace std;

int main() {
  
  int N;
  cin >> N;
  vector<int> p(N);
  int num = 0;
 
  for (int i = 0; i < N; i++) {
    cin >> p.at(i);
  }
  
  for(int i = 0; i < N; ++i){
    if(!(p.at(i) = p.at(i + 1))){
      ++num;
    }
  }
  
  if(num == 2 || num == 0){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vector' was not declared in this scope
    8 |   vector<int> p(N);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:10: error: expected primary-expression before 'int'
    8 |   vector<int> p(N);
      |          ^~~
a.cc:12:12: error: 'p' was not declared in this scope
   12 |     cin >> p.at(i);
      |            ^
a.cc:16:10: error: 'p' was not declared in this scope
   16 |     if(!(p.at(i) = p.at(i + 1))){
      |          ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before numeric constant
    9 |     cout << (a+b)2/;
      |                  ^
      |                  ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
typedef pair<ll,ll> P;
#define M 1000000007
int main(){
  int a,b;cin>>a>>b;
  if((a+b)%2)cout<<"IMPOSSIBLE";
  else (a+b)/2);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected ';' before ')' token
    9 |   else (a+b)/2);
      |               ^
      |               ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
typedef pair<ll,ll> P;
#define M 1000000007
int main(){
  int a,b;cin>>a>>b;
  if((a+b)%2?)cout<<"IMPOSSIBLE";
  else (a+b)/2);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected primary-expression before ')' token
    8 |   if((a+b)%2?)cout<<"IMPOSSIBLE";
      |              ^
a.cc:8:14: error: expected ':' before ')' token
    8 |   if((a+b)%2?)cout<<"IMPOSSIBLE";
      |              ^
      |              :
a.cc:8:14: error: expected primary-expression before ')' token
a.cc:9:15: error: expected ';' before ')' token
    9 |   else (a+b)/2);
      |               ^
      |               ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
typedef pair<ll,ll> P;
#define M 1000000007
int main(){
  int a,b;cin>>a>>b;
  cout<<((a+b)%2?"IMPOSSIBLE":(a+b)/2);}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: operands to '?:' have different types 'const char*' and 'int'
    8 |   cout<<((a+b)%2?"IMPOSSIBLE":(a+b)/2);}
      |          ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: 'emdl' was not declared in this scope
    8 |   else{cout << (A+B)/2 << emdl;}
      |                           ^~~~
Language: C

#include <stdio.h>

int main(void) {
	long int a,b; scanf("%ld%ld",&a,&b);
	long int temp = a+b;
	if (temp % 2 == 0) {
		printf("%ld", temp/2);
	} else {
		printf("IMPOSSIBLE")
	}
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:37: error: expected ';' before '}' token
    9 |                 printf("IMPOSSIBLE")
      |                                     ^
      |                                     ;
   10 |         }
      |         ~
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected primary-expression before '|' token
   12 |     cout << a + |a-b|/2 << endl;
      |                 ^
a.cc:12:22: error: expected primary-expression before '/' token
   12 |     cout << a + |a-b|/2 << endl;
      |                      ^
Language: C

#include <stdio.h>

int main(void) {

	int A;
	int B;

	scanf("%d", &A);
	scanf("%d", &B);      
    
  
    if((a+b)%2 == 0){
      printf("%d",(a+b)/2);
    }
    else{
      puts("IMPOSSIBLE");
    }

      
  
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:9: error: 'a' undeclared (first use in this function)
   12 |     if((a+b)%2 == 0){
      |         ^
main.c:12:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:11: error: 'b' undeclared (first use in this function)
   12 |     if((a+b)%2 == 0){
      |           ^
Language: C

#include <stdio.h>

int main(void) {

	int A;
	int B;
    int K;
    int num;

	scanf("%d", &A);
	scanf("%d", &B);      
    
    int K = (A + B)/2;
   
    if(K == num){
      printf("%d",K);
    }
    else{
      puts("IMPOSSIBLE");
    }

      
  
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:9: error: redeclaration of 'K' with no linkage
   13 |     int K = (A + B)/2;
      |         ^
main.c:7:9: note: previous declaration of 'K' with type 'int'
    7 |     int K;
      |         ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int N;cin>>N;
  int P;
  for (int i=0;i<N;++i)cin>>P[i];
  int cnt=0;
  for (int i=0;i<N;++i){
    if (i!=P[i]-1) ++cnt;
  }
  if (cnt<=2) cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:30: error: invalid types 'int[int]' for array subscript
    6 |   for (int i=0;i<N;++i)cin>>P[i];
      |                              ^
a.cc:9:13: error: invalid types 'int[int]' for array subscript
    9 |     if (i!=P[i]-1) ++cnt;
      |             ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected primary-expression before ')' token
   10 |   else(){
      |        ^
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 cout << "IMPOSSIBLE";
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before ';' token
    5 |   int a, b, ; cin >> a >> b;
      |             ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: operands to '?:' have different types 'int' and 'const char*'
    5 |   cout<<((a+b)%2==0?(a+b)/2:"IMPOSSIBLE")<<endl;
      |          ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: operands to '?:' have different types 'int' and 'const char*'
    5 |   cout<<((a+b%2)==0?(a+b)/2:"IMPOSSIBLE")<<endl;
      |          ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
Language: C++


#include <bits/stdc++.h>
#define rep(i,x,n) for(int (i)=(x);(i)<(n);(i)++)
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;
    }

    return 0;
}


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

a = list(map(int,input().split()))
a.sort()
if (a[1]-a[0])%2 == 0:
  print((a[1]-a[0])/2+a[0])
else:
  print("IMPOSSIBLE")

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a = list(map(int,input().split()))
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'list' [-Wimplicit-function-declaration]
    1 | a = list(map(int,input().split()))
      |     ^~~~
main.c:1:10: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 | a = list(map(int,input().split()))
      |          ^~~
main.c:1:14: error: expected expression before 'int'
    1 | a = list(map(int,input().split()))
      |              ^~~
main.c:2:1: error: expected ',' or ';' before 'a'
    2 | a.sort()
      | ^
Language: C

import math
a = list(map(int,input().split()))
a.sort()
if (a[1]-a[0])%2 == 0:
  print(math.ceil((a[1]-a[0])/2+a[0]))
else:
  print("IMPOSSIBLE")

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import math
      | ^~~~~~
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
    2 | a = list(map(int,input().split()))
      | ^
Language: C++

#include<iosteam>
using namespace std;
int main(){
  unsigned int A, B;
  cin >> A >> B;
  if(A%2 != B%2){
	cout << "IMPOSSIBLE" << endl;
  }else{
	cout << (A+B)/2 << endl;
  }
  return 0;
}

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

#include<stdio.h>
#include<stdio.h>
int main(){
  int a,b;
  scanf("%d %d",&a,&b);
  int k;
  if(a%2!=b%2){
    printf("%d",impossible);
  }
  else{
    printf("%d",(a+b)/2);
  }
  return 0;
}

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

#include<stdio.h>
#include<stdio.h>
int main(){
  int a,b;
  scanf("%d %d",&a,&b);
  int k;
  if(a%2!=b%2){
    printf("%d",impossible)
  }
  else{
    printf("%d",(a+b)/2)
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:17: error: 'impossible' undeclared (first use in this function)
    8 |     printf("%d",impossible)
      |                 ^~~~~~~~~~
main.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:28: error: expected ';' before '}' token
    8 |     printf("%d",impossible)
      |                            ^
      |                            ;
    9 |   }
      |   ~                         
main.c:11:25: error: expected ';' before '}' token
   11 |     printf("%d",(a+b)/2)
      |                         ^
      |                         ;
   12 |   }
      |   ~
Language: C

#include <stdio.h>
int main(){
	int A,B;
	int K=0;
	int sum=0;
	scanf("%d %d",%A,%B);
	sum=A+B;
 	if(sum%2==0){
		K=sum/2;
      	printf("%d",K);
	}else{
		printf("IMPOSSIBLE");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:23: error: expected expression before '%' token
    6 |         scanf("%d %d",%A,%B);
      |                       ^
Language: C++

#include<bits/stdc++>

using namespace std;

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


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

#include<bits/stdc++>

using namespace std;

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


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

#include<bits/stdc++>

using namespace std;

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

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
 
int main() {
  
  int A,B;
  cin>>A>>B;
  
  
  if(A+B%2==0){
  cout<<m<<endl;
  }
  
  else{
  cout<<"IMPOSSIBLE"<<endl;
  }
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'm' was not declared in this scope
   13 |   cout<<m<<endl;
      |         ^