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

#include <iostream>
#include <cmath>
using namespace std;
using ll = long long int;

int main() {
  ll a, b;
  cin >> a >> b;
  constexpr ll LAST = 1e9;
  
  ll sum = 0;
  for (ll i = 0; i < 1e9; i++) {
    if (abs(a-i) = abs(b-i)) {
      sum = i
    }
  }
  cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: lvalue required as left operand of assignment
   13 |     if (abs(a-i) = abs(b-i)) {
      |         ~~~^~~~~
a.cc:14:14: error: expected ';' before '}' token
   14 |       sum = i
      |              ^
      |              ;
   15 |     }
      |     ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:31: 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;
  cout << ((A + B) % 2 == 0 ? ((A + B) / 2) : "IMPOSSIBLE") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:29: 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;
    if(A<=B){
        if((A+B)%2==0){
            cout << (A+B)/2 << endl;
        }
        else{
            cout << "IMPOSSIBLE" << endl;
        }
    }
    else{
        if((A+B)%2==0){
            cout << (A+B)/2 << endl;
        }
        else{
            cout << "IMPOSSIBLE" << endl;
        }
    }
}

/*bool IsPossible(int A, int B){
    bool flg;
    if((A+B)%2==0){
        flg=true;
    }
    else{
        flg=false;
    }
    if(flg==true){
        return (A+B)/2;
    }
    else{
        return "IMPOSSIBLE";
    }
}*/

int main(){
    int A,B;cin>>A>>B;
    if(A<=B){
        cout << IsPossible(A,B) << endl;
    }
    else{
        cout << IsPossible(A,B) << endl;
    }
}

Compiler output:
a.cc:40:5: error: redefinition of 'int main()'
   40 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:43:17: error: 'IsPossible' was not declared in this scope
   43 |         cout << IsPossible(A,B) << endl;
      |                 ^~~~~~~~~~
a.cc:46:17: error: 'IsPossible' was not declared in this scope
   46 |         cout << IsPossible(A,B) << endl;
      |                 ^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(long long i = 0;i < n;i++)
#define repr(i, n) for(int i = n;i >= 0;i--)
#define Sort(v, n) sort(v, v+n);
#define VSort(v) sort(v.begin(), v.end());
#define ll long long
#define pb(a) push_back(a)
#define INF 999999999
#define cY cout<<"Yes";
#define cN cout<<"No";
#define cA(a) cout<<a;
const ll MOD = 1000000007;



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



Compiler output:
a.cc: In function 'int main()':
a.cc:19:39: error: expected ';' before numeric constant
   19 |     if(abs(a-b) %2 == 0) cout << (a+b).2;
      |                                       ^~
      |                                       ;
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:10:28: error: expected ';' before '}' token
   10 |   else cout << "IMPOSSIBLE"
      |                            ^
      |                            ;
   11 | }
      | ~
Language: C

#include<stdio.h>
int main (){
    int a=0,b=0,k,flag=1;
    scanf("%d %d",&a,&b);
    for(k=1;k<=1000000000;k++){
        if(((a+k)+(a-k)==0||(a-k)+(a+k))==0)
            flag=0;
            break;
        }
    }
    if(flag==1){
        printf("IMPOSSIBLE");
    }
    else{
        printf("%d",k);
    }
    return 0;

}

Compiler output:
main.c:11:5: error: expected identifier or '(' before 'if'
   11 |     if(flag==1){
      |     ^~
main.c:14:5: error: expected identifier or '(' before 'else'
   14 |     else{
      |     ^~~~
main.c:17:5: error: expected identifier or '(' before 'return'
   17 |     return 0;
      |     ^~~~~~
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C++

#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <algorithm>
#include <functional>
#include <utility>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstdio>

using namespace std;
#define REP(i,n) for((i)=0;(i)<(int)(n);(i)++)
using ll = long long;
using P = pair<int,int>;

int main() {

  int a,b;
  cin >> a >> b;

  if(abs(a-k)==abs(b-k)){
    cout << k << endl;
  } else {
    cout << "IMPOSSIBLE" << endl;
  }
  return 0;
}

  

Compiler output:
a.cc: In function 'int main()':
a.cc:30:12: error: 'k' was not declared in this scope
   30 |   if(abs(a-k)==abs(b-k)){
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: lvalue required as left operand of assignment
   10 | if(b%2=0){
      |    ~^~
a.cc:11:23: error: expected ';' before '}' token
   11 |     printf("%d",a+c/2)
      |                       ^
      |                       ;
   12 | }else{
      | ~                      
a.cc:13:25: error: expected ';' before '}' token
   13 |     printf("IMPOSSIBLE")
      |                         ^
      |                         ;
   14 | }
      | ~
Language: C++

#include <bits/stdc++.h>
 using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
 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: In function 'int main()':
a.cc:7:12: error: lvalue required as left operand of assignment
    7 |    if((a+b)%2=0){
      |       ~~~~~^~
Language: C++

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

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

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

#include<iostream>
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:7:11: error: lvalue required as left operand of assignment
    7 |   if((A+B)%2=0){cout << (A+B)/2;} else {cout << "IMPOSSIBLE"};
      |      ~~~~~^~
a.cc:7:61: error: expected ';' before '}' token
    7 |   if((A+B)%2=0){cout << (A+B)/2;} else {cout << "IMPOSSIBLE"};
      |                                                             ^
      |                                                             ;
Language: Java

import java.util.Scanner;

public class Source {
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int A = scanner.nextInt();
		int B = scanner.nextInt();
		scanner.close();

		if (((A + B) & 1) == 0)
			System.out.println((A + B) >> 1);
		else
			System.out.println("IMPOSSIBLE");
	}
}

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

include <stdio.h>
 
int main(){
  long int a,b;
scanf("%li %li",&a,&b);
 
  printf("%li",a+b/2);
  return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: Java

import java.util.*;
import static java.lang.System.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int ans = 0;
		
		if(a % 2 == 0  && b % 2 == 1)
			out.println("IMPOSSIBLE");
		else if(a % 2 == 1 && b % 2 == 0)
			out.println("IMPOSSIBlE");
		else {
			int n = Math.abs(a - b) / 2;
			ans = Math.max(a, b) - n;
			out.println(ans);
		}
		
	}

Compiler output:
Main.java:22: error: reached end of file while parsing
	}
	 ^
1 error
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<<endl;
  else << "IMPOSSIBLE"<<endl;
}


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

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

int main() {
    int n, m;
    cin >> n >> m;

    cout << ((n + m) % 2 == 0 ? (n + m) / 2 : "IMPOSSIBLE") << endl;
}

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

public class Main {
    public static void main(String[] args){

        //スキャン
        Scanner s = new Scanner(System.in);
        int n =  s.nextInt();
        int m = s.nextInt();

        int hoge = (n * (n-1) + m * (m-1))/2;
        
        System.out.println(hoge);
    }

    
}

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

public static void main(String[] args){

        //スキャン
        Scanner s = new Scanner(System.in);
        int n =  s.nextInt();
        int m = s.nextInt();

        int hoge = (n * (n-1) + m * (m-1))/2;
        
        System.out.println(hoge);
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args){
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

public class App {
    public static void main(String[] args){

        //スキャン
        Scanner s = new Scanner(System.in);
        int n =  s.nextInt();
        int m = s.nextInt();

        int hoge = (n * (n-1) + m * (m-1))/2;
        
        System.out.println(hoge);
    }

    
}

Compiler output:
Main.java:1: error: class App is public, should be declared in a file named App.java
public class App {
       ^
Main.java:5: error: cannot find symbol
        Scanner s = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class App
Main.java:5: error: cannot find symbol
        Scanner s = new Scanner(System.in);
                        ^
  symbol:   class Scanner
  location: class App
3 errors
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",(a+b)/2);
  
  else
     printf("IMPOSSIBLE")
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: expected ';' before '}' token
   13 |      printf("IMPOSSIBLE")
      |                          ^
      |                          ;
   14 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: expected '}' before 'else'
    7 |     else {
      |     ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:17: error: invalid operands to binary & (have 'int *' and 'int')
    4 | scanf ("%d%d",&a&b);
      |               ~~^
      |               |
      |               int *
main.c:7:5: error: expected '}' before 'else'
    7 |     else {
      |     ^~~~
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;
	return 0;
}

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

//Harmony
#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;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: 'IMPOSSIBLE' was not declared in this scope
    8 |     if( (A+B)%2==1 )    cout<<IMPOSSIBLE<<endl;
      |                               ^~~~~~~~~~
Language: C++

#include <iostream>

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:10:23: error: expected ';' before '}' token
   10 |     cout<<"IMPOSSIBLE"
      |                       ^
      |                       ;
   11 |   }
      |   ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: expected ';' before 'endl'
   13 |   cout << (A + B)/2 endl;
      |                    ^~~~~
      |                    ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:34: error: expected ';' before 'return'
    6 |         else printf("%d",(a+b)/2)
      |                                  ^
      |                                  ;
    7 |         return 0;
      |         ~~~~~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<iomanip>
#include<utility>
#include<iomanip>
#include<map>
#include<math>
#define rep(i,n) for(int i=0; i<(n); ++i)
using namespace std;
using ll =long long;
using P = pair<int,int>;

int main(){
    cin.tie(0);
    int a,b,am,bm;
    cin >> a >> b;

    if(a==0 || b==0){
        cout << "IMPOSSIBLE" << endl;
        return 0;
    }

    if(a>b){
        swap(a,b);
    }

    am=a;
    bm=b;
    ll i=1;

    while(1){
        a-=i;
        b-=i;
        if(-a==b || -a==-b || a==b || a==-b){
            cout << i << endl;
            return 0;
        }
        a-=i;
        b-=i;
        if(-a==b || -a==-b || a==b || a==-b){
            cout << i << endl;
            return 0;
        }
         i++;
        a=am;
        b=bm;
    } 

    return 0;
}



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

#include <iostream>
#include <iomanip>
#include <utility>
#include <cmath>
#include <random>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <string>
#include <algorithm>
using namespace std;

#define rep(i,n) for(int i = 0; i<n; ++i)
const int INF = 100100100;
const int MOD = (int)1e9 + 7;
typedef long long ll;

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


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

#include <iostream>
#include <iomanip>
#include <utility>
#include <cmath>
#include <random>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <string>
#include <algorithm>
using namespace std;

#define rep(i,n) for(int i = 0; i<n; ++i)
const int INF = 100100100;
const int MOD = (int)1e9 + 7;
typedef long long ll;

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


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

mport java.util.*;

public class Main {
	public static void main(String[] args) {
		// practice contest

		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:1: error: class, interface, enum, or record expected
mport java.util.*;
^
1 error
Language: C++

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

using i64 = int64_t;

int main(){ 
  i64 a, b;
  cin >> a >> b;
  cout << ((a+b)%2 ? "IMPOSSIBLE" : (a+b)/2) << endl;
  return 0;
}

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

#include<bits/stdc++.h>
#define int long long
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:
cc1plus: error: '::main' must return 'int'
a.cc: In function 'int main()':
a.cc:11:24: error: expected '}' at end of input
   11 |     cout<<"IMPOSSIBLE";
      |                        ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include <bits/stdc++.h>
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;
    
    cout << K << endl;
    
}

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

using System;
using System.Linq;
 
public class ABC135_A
{
    public static void Main()
    {
        int[] ints = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();

      	int result = (ints[0] - ints[1]);
        if(result % 2 == 0) Console.WriteLine(result / 2);
      	else Console.WriteLine("IMPOSSIBLE");
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class ABC135_A
      | ^~~~~~
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: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<iostream>
#include<cmath>
 
using namespace std;
 
int main() {
 
    long long int a, b, k = 1;
    int flags = 0;
    cin >> a >> b;
 
    while(k <= a || k <= b){
 
        if (abs(a - k) == abs(b - k)) {
            flags = 1;
            break;
        }
 
        k++;
    }
 
    if(!flag)
        cout << "IMPOSSIBLE" << endl;
    else
        cout << k << endl;
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: 'flag' was not declared in this scope; did you mean 'flags'?
   22 |     if(!flag)
      |         ^~~~
      |         flags
Language: C++

#include <iostream>
#include <cmath>

int main(){
  int a, b;
  std::cin >> a >> b;
  if((b-a)%2 == 0)
    std::cout << std::min(a,b) + std::abs(b-a)/2 std::endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:49: error: expected ';' before 'std'
    8 |     std::cout << std::min(a,b) + std::abs(b-a)/2 std::endl;
      |                                                 ^~~~
      |                                                 ;
Language: C++

#include <iostream>
#include <cmath>

int main(){
  int a, b;
  std::cin >> a >> b;
  if((b-a)%2 == 0)
    std::cout << min(a,b) + abs(b-a)/2 std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 'min' was not declared in this scope; did you mean 'std::min'?
    8 |     std::cout << min(a,b) + abs(b-a)/2 std::endl;
      |                  ^~~
      |                  std::min
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected primary-expression before '=' token
    8 |   if(what)=cout<<"IMPOSSIBLE";
      |           ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected primary-expression before '%' token
    6 |   if(A%2==1 %% B%2==1) {
      |              ^
Language: C++

#include<iostream>
using namespace std ;

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

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

#include<iostream>
using namespace std;
int main()
{
  int a,b;
  cin>>a>>b;
  float k=(floor(a)+floor(b))/2;
  if(k-floor(k)==0)
    cout<<k;
  else
    cout<<"IMPOSSIBLE";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'floor' was not declared in this scope
    7 |   float k=(floor(a)+floor(b))/2;
      |            ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'floor' was not declared in this scope
    7 |   int k=(floor(a)+floor(b))/2;
      |          ^~~~~
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int[] p = new int[n];
    int downcounter = 0;
    boolean ans = true;
    for(int i = 0;i < n;i++){
      p[i] = sc.nextInt();
    }
    for(int j = 0;j < n - 1;j++){
      if(p[i] > p[i + 1]){
        downCounter++;
        if(downCounter == 2){
          ans = false;
          break;
        }
      }
    }
    if(ans){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}


Compiler output:
Main.java:14: error: cannot find symbol
      if(p[i] > p[i + 1]){
           ^
  symbol:   variable i
  location: class Main
Main.java:14: error: cannot find symbol
      if(p[i] > p[i + 1]){
                  ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
        downCounter++;
        ^
  symbol:   variable downCounter
  location: class Main
Main.java:16: error: cannot find symbol
        if(downCounter == 2){
           ^
  symbol:   variable downCounter
  location: class Main
4 errors
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",(a+b)/2)
}
else
printf("IMPOSSIBLE"); 

return 0;

}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: expected ';' before '}' token
   10 |     printf("%d",(a+b)/2)
      |                         ^
      |                         ;
   11 | }
      | ~
Language: C++

#include <iostream>
using namespace std ;
int main()
{
  int x , y ;
	cin >> x >> y ;
	if((x%2==0&&y%2==0) || (x%2==1&&y%2==1))
      cout << (x+y)/2 ;
	else 
      cout << "IMPOSSIBLE" ;
	RETURN 0 ;
}

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

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: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> A >> B;
      |   ^~~
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout << (A+B)/2 << endl;
      |     ^~~~
a.cc:5:24: error: 'endl' was not declared in this scope
    5 |     cout << (A+B)/2 << endl;
      |                        ^~~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << "IMPOSSIBLE" << endl;
      |         ^~~~
a.cc:7:33: error: 'endl' was not declared in this scope
    7 |         cout << "IMPOSSIBLE" << endl;
      |                                 ^~~~
Language: C++

in 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:1:1: error: 'in' does not name a type; did you mean 'int'?
    1 | in main(){
      | ^~
      | int
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected ',' or ';' before 'cout'
   13 |                 cout << ans << endl;
      |                 ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |         cout << ans << endl;
      |                 ^~~
      |                 abs
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected ',' or ';' before '}' token
   12 |         }
      |         ^
a.cc:13:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |         cout << ans << endl;
      |                 ^~~
      |                 abs
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected ',' or ';' before '}' token
   12 |         }
      |         ^
a.cc:13:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |         cout << ans;
      |                 ^~~
      |                 abs
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:36: error: expected ';' before '}' token
    7 |                 cout << (a + b) / 2
      |                                    ^
      |                                    ;
    8 |         } else {
      |         ~
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> a >> 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:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |                 cout << (a + b) / 2
      |                 ^~~~
      |                 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:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |                 cout << "IMPOSSIBLE\n";
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <stdio.h>

int main(void) {
	long long int a, b;
	scanf("%lld %lld", &a, &b);
	if (a + b % 2 == 0) {
		cout << (a + b) / 2
	} else {
		cout << "IMPOSSIBLE\n";
	}
}

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

#include <stdio.h>

int main(void) {
	long long int a, b;
	scanf("%d %d", &a, &b);
	if (a + b % 2 == 0) {
		cout << (a + b) / 2
	} else {
		cout << "IMPOSSIBLE\n";
	}
}

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

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

  int a,b;
  cin>>a>>b;
  cout<<((a+b)%2==0? (a+b)/2:"IMPOSSIBLE");
  return 0;
  
}

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

#include <iosteam>
int main(void)
{
    int a, b;
    std::cin >> a >> b;
    if ((a % 2 == 0 && b % 2 == 0) || (a % 2 == 1 && b % 2 == 1))
    {
        int c = (a + b) / 2;
        std::cout << c << std::endl;
    }
    else
    {
        std::cout << "IMPOSSIBLE" << std::endl;
    }
}

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

#include<iostream>
#include<cmath>
#include<algorithm>
using namespase std;
int main(){
  long long a,b;
  cin>>a>>b;
  if(a<b){
    swap(a,b);
  }
  int ok=0;
  for(long long i=0;i<a;i++){
    if(abs(a-i)==abs(b-i)){
     ok=1; 
    }
  }
  if(ok==0){
    cout<<"INPOSSIBLE"<<endl;
  }
 return 0; 
}

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'namespase'
    4 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>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:9:5: error: 'swap' was not declared in this scope
    9 |     swap(a,b);
      |     ^~~~
a.cc:9:5: note: suggested alternatives:
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
                 from /usr/include/c++/14/string:68,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
In file included from /usr/include/c++/14/bits/exception_ptr.h:41,
                 from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/ios:41:
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
a.cc:18:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |     cout<<"INPOSSIBLE"<<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:18:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |     cout<<"INPOSSIBLE"<<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(fabs(b-a)%2==1)cout<<"IMPOSSIBLE"<<endl;
  else cout<<max(a,b)-fabs(b-a)/2<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: invalid operands of types '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} and 'int' to binary 'operator%'
    6 |   if(fabs(b-a)%2==1)cout<<"IMPOSSIBLE"<<endl;
      |      ~~~~~~~~~^~
      |          |     |
      |          |     int
      |          __gnu_cxx::__enable_if<true, double>::__type {aka double}
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: invalid operands of types '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} and 'int' to binary 'operator%'
    6 |   if(fabs(b-a)%2)cout<<"IMPOSSIBLE"<<endl;
      |      ~~~~~~~~~^~
      |          |     |
      |          |     int
      |          __gnu_cxx::__enable_if<true, double>::__type {aka double}
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;
                }
    return 0;}

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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc:19:9: error: expected unqualified-id before 'return'
   19 |         return 0;
      |         ^~~~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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

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

import sys

num = list(map(int,input().split()))
A = num[0]
B = num[1]

if A%2==0 and B%2==0:
	print((A+B)/2)
	sys.exit()
if A%2==1 and B%2==1:
	print((A+B)/2)
	sys.exit()
print("IMPOSSIBLE" )

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
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:10:9: error: expected ';' before string constant
   10 |     cout "IMPOSSIBLE";
      |         ^~~~~~~~~~~~~
      |         ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
/***** MAIN *****/
signed main() {
  int a, b;
  scanf("%d%d", &a, &b):
  int total = a + b;
  if(total % 2 != 0) cout << "IMPOSSIBLE";
  else {
    cout << total / 2;
  }
  cout << "\n";
  return 0;
}
/***** MAIN *****/


Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected ';' before ':' token
    6 |   scanf("%d%d", &a, &b):
      |                        ^
      |                        ;
a.cc:8:6: error: 'total' was not declared in this scope
    8 |   if(total % 2 != 0) cout << "IMPOSSIBLE";
      |      ^~~~~
Language: C

#include<stdio.h>
int main(){
  float a,b,k;
  scanf("%f%f",&a,&b);
  k = (a+b)/2.0;
  if(k%2.0== 0) printf("%f",k);
  else printf("IMPOSSIBLE");
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: invalid operands to binary % (have 'float' and 'double')
    6 |   if(k%2.0== 0) printf("%f",k);
      |       ^
Language: C

#include<stdio.h>
int main(){
  float a,b,k;
  scanf("%f%f",&a,&b);
  k = (a+b)/2.0;
  if(k%2== 0)printf("%f",k);
  else printf("IMPOSSIBLE");
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: invalid operands to binary % (have 'float' and 'int')
    6 |   if(k%2== 0)printf("%f",k);
      |       ^
Language: C

#include<stdio.h>
int main(){
  float a,b,k;
  scanf("%f%f",&a,&b);
  k = (a+b)/2.0;
  if(k%2.0 == 0)printf("%f",k);
  else printf("IMPOSSIBLE");
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: invalid operands to binary % (have 'float' and 'double')
    6 |   if(k%2.0 == 0)printf("%f",k);
      |       ^
Language: C

#include<stdio.h>
int main(){
  float a,b,k;
  scanf("%d%d",&a,&b);
  k = (a+b)/2.0;
  if(k%2.0 == 0)printf("%f",k);
  else printf("IMPOSSIBLE");
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: invalid operands to binary % (have 'float' and 'double')
    6 |   if(k%2.0 == 0)printf("%f",k);
      |       ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:7: error: invalid operands to binary % (have 'double' and 'double')
    7 |   if(k%2.000 == 0)printf("%lf",k);
      |       ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:7: error: invalid operands to binary % (have 'double' and 'double')
    7 |   if(k%2.0 == 0)printf("%lf",k);
      |       ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:7: error: invalid operands to binary % (have 'float' and 'double')
    7 |   if(k%2.0 == 0)printf("%f",k);
      |       ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:7: error: invalid operands to binary % (have 'float' and 'int')
    7 |   if(k%2 == 0)printf("%f",k);
      |       ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:7: error: invalid operands to binary % (have 'float' and 'int')
    7 |   if(k%2 == 0)printf("%d",k);
      |       ^
Language: C

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

Compiler output:
main.c:9:1: error: expected identifier or '(' before '}' token
    9 | }
      | ^
Language: C

#include<math.h>
#include<stdio.h>
#include <stdlib.h>
int main(){
  int a,b,k;
  scanf("%d%d",&a,&b);
  for(i=0;pow(10.0,6.0);i++){
    if(abs(a-k) == abs(b-k))printf("%d",k);
  else printf("impossible");  
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: 'i' undeclared (first use in this function)
    7 |   for(i=0;pow(10.0,6.0);i++){
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:1: error: expected declaration or statement at end of input
   10 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected expression before '=' token
    6 | if((A+B)%==0)
      |           ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected expression before '=' token
    6 | if(A+B%==0)
      |         ^
Language: C++

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> A >> B;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << (A+B)/2 << endl;
      |         ^~~~
a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:28: error: 'endl' was not declared in this scope
    8 |         cout << (A+B)/2 << endl;
      |                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "IMPOSSIBLE";
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>

using namespace std

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


Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 | int main() {
      | ~~~
Language: C++

#include <bits/stdc++.h>

int main(){
  int a,b;
  cin >> a >> b;
  if(a%2 != b%2){
    puts("No");
    return 0;
  }
  
  cout << (a+b)/2 << 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 /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:11:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   cout << (a+b)/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:11:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   cout << (a+b)/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)
      |     ^~~~
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();
  if(a>b){
    int x = a%b;
    if(x==0){
    int ak = (a-b)/2;
    int k = a-ak;
    }else if(x==1){
    System.out.println("IMPOSSIBLE");
    }
  }else if(a<b){
    int x = b%a;
    if(x==0){
    int bk = (b-a)/2;
    int k = b-bk;
    }else if(x==1){
    System.out.println("IMPOSSIBLE");
    }
  }
  }
 }
}

Compiler output:
Main.java:26: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a,b;
    cin >> a >> b;
    for(int i =1;i < 100;i++){
        if((a-i)**2 == (b-i)**2){
            cout << i << endl;
            break;
        }
        else if ( i > a && i > b){
            cout << "IMPOSSIBLE" << endl;
            break;
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: invalid type argument of unary '*' (have 'int')
    8 |         if((a-i)**2 == (b-i)**2){
      |                  ^~
a.cc:8:30: error: invalid type argument of unary '*' (have 'int')
    8 |         if((a-i)**2 == (b-i)**2){
      |                              ^~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a,b,c;
    cin >> a >> b;
    for(int i =1;i < 1000;i++){
        if((a-i)**2==(b-i)**2){
            cout << i << endl;
            break;
        }
        else if ( i > a && i > b){
            cout << "IMPOSSIBLE" << endl;
            break;
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: invalid type argument of unary '*' (have 'int')
    8 |         if((a-i)**2==(b-i)**2){
      |                  ^~
a.cc:8:28: error: invalid type argument of unary '*' (have 'int')
    8 |         if((a-i)**2==(b-i)**2){
      |                            ^~