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

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<iomanip>
#include<math.h>
#include<complex>
#include<queue>
#include<deque>
#include<stack>
#include<map>
#include<set>
#include<bitset>
#include<functional>
#include<assert.h>
#include<numeric>
using namespace std;
#define REP(i,m,n) for(int i=(int)(m) ; i < (int) (n) ; ++i )
#define rep(i,n) REP(i,0,n)
using ll = long long;
const int inf=1e9+7;
const ll longinf=1LL<<60 ;
const ll mod=1e9+7 ;

int a, b, c;

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



Compiler output:
a.cc: In function 'int main()':
a.cc:31:31: error: expected ';' before 'return'
   31 |     else cout << c / 2 << endl
      |                               ^
      |                               ;
   32 | 
   33 |     return 0;
      |     ~~~~~~
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    
    String strN = scan.next();   
    int n = Integer.parseInt(strN);
    
    String s = "";
    int[] p = new int[n];
    
    for (int i = 0; i < n; i++) {
      String s = scan.next();
      int p[i] = Integer.parseInt(s);
    }
    
    for (int k = 0; k < n; k++) {
          if (p[k] > p[k+1]) {
            break;
          } else if (k == n - 1) {
            System.out.print("YES");
          }
    }
    
    int tmp = 0;
    
    for (int i = 0; i < n; i++) {
      tmp = p[i];
      
      for (int j = i; j < n; i++) {
        p[i] = p[j];
        p[j] = tmp;
        
        for (int k = 0; k < n; k++) {
          if (p[k] > p[k+1]) {
            break;
          } else if (k == n - 1) {
            System.out.print("YES");
          }
        }
      }
    }
    
    System.out.print("NO");
  }
}


Compiler output:
Main.java:15: error: ']' expected
      int p[i] = Integer.parseInt(s);
            ^
Main.java:15: error: ';' expected
      int p[i] = Integer.parseInt(s);
             ^
2 errors
Language: C++

#include<iostream>

using namespace std; 

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

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

#include<iostram>

using namespace std; 

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

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

import java.util.*;
public class Harmony{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();

    int  max = Math.max(A,B);

    for(int k = 0 ;k<max;k++){
       int AA = Math.abs(A-k);
       int BB = Math.abs(B-k);

        if(AA==BB){
          System.out.println(k);
          System.exit(0);
        }
    }
    System.out.println("IMPOSSIBLE");
  }
}

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

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		long A = sc.nextLong(),B = sc.nextLong();
		double k = 0;
		k = (A+B)/2;

		if((A+B)%2==0) {
			System.out.println((int)k);
		}else {
			System.out.println("IMPOSSIBLE");
		}
	}
}


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

def main():
    s = input().split()
    if (int(s[0]) + int(s[1])) % 2 == 0:
        print(int((int(s[0]) + int(s[1]))/2))
    else:
        print('IMPOSSIBLE')


if __name__ == "__main__":
    main()


Compiler output:
a.cc:6:15: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    6 |         print('IMPOSSIBLE')
      |               ^~~~~~~~~~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def main():
      | ^~~
Language: Java

package contest135;
import java.io.*;

public class A_Harmony {

	public static void main(String[] args) throws IOException{
		// TODO Auto-generated method stub
		InputStreamReader ir=new InputStreamReader(System.in);
		BufferedReader br=new BufferedReader(ir);
		String [] num=br.readLine().split(" ");
		int A=Integer.parseInt(num[0]);
		int B=Integer.parseInt(num[1]);
		int sum=A+B;
		if(A == B)
		{
			System.out.println(0);
		}
		else if(sum % 2 !=0)
		{
			System.out.println("IMPOSSIBLE");
		}
		else
		{
			int k=sum/2;
			System.out.println(k);
		}
		
	}

}


Compiler output:
Main.java:4: error: class A_Harmony is public, should be declared in a file named A_Harmony.java
public class A_Harmony {
       ^
1 error
Language: Java

public class Main { 
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long a = sc.nextInt();
    long b = sc.nextInt();

	double C =(A+B)/2;

	if (!(A%2 == B%2 )){
		
	System.out.println("IMPOSSIBLE");

	

			}
	else {
	System.out.println (C);
	    }


  }
}


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
Main.java:7: error: cannot find symbol
	double C =(A+B)/2;
	           ^
  symbol:   variable A
  location: class Main
Main.java:7: error: cannot find symbol
	double C =(A+B)/2;
	             ^
  symbol:   variable B
  location: class Main
Main.java:9: error: cannot find symbol
	if (!(A%2 == B%2 )){
	      ^
  symbol:   variable A
  location: class Main
Main.java:9: error: cannot find symbol
	if (!(A%2 == B%2 )){
	             ^
  symbol:   variable B
  location: class Main
6 errors
Language: Java

public class Main { 
  public static void main(String[] args){
    
	long A ;
	long B ;
	double C =(A+B)/2;

	if (A%2 == B%2 ){
		
	System.out.println("IMPOSSIBLE");

	

			}
	else {
	System.out.println (C);
	    }


  }
}

Compiler output:
Main.java:6: error: variable A might not have been initialized
	double C =(A+B)/2;
	           ^
Main.java:6: error: variable B might not have been initialized
	double C =(A+B)/2;
	             ^
2 errors
Language: Java

public class Main {
	long A;
	long B;
	double C =(A+B)/2;

	if(!(A/2 = B/2 )){
		
	System.out.println("IMPOSSIBLE");

			}
	else{
	System.out.println(C);
	    }
}

Compiler output:
Main.java:6: error: illegal start of type
	if(!(A/2 = B/2 )){
	^
Main.java:6: error: <identifier> expected
	if(!(A/2 = B/2 )){
	      ^
Main.java:6: error: <identifier> expected
	if(!(A/2 = B/2 )){
	            ^
Main.java:11: error: illegal start of type
	else{
	^
4 errors
Language: C++

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

int main()
{
 int n,k;
  while(cin>>n>>k){
	int temp = abs(n-k)/2;
    if(abs(n-k)%2==0){
      cout<<temp+min(n,k)-1<<endl;
    }
    else{
      cout<<"IMPOSSIBLE"<<endl;
    }
  }
  return 0;
}

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

#include<bits/stdc++.h>

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

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

import java.util.*;

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

Compiler output:
Main.java:16: error: reached end of file while parsing
  }
   ^
1 error
Language: C++

import java.util.*;

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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:9: error: expected ':' before 'static'
    4 |   public static void main(String[] args){
      |         ^~~~~~~
      |         :
a.cc:4:27: error: 'String' has not been declared
    4 |   public static void main(String[] args){
      |                           ^~~~~~
a.cc:4:36: error: expected ',' or '...' before 'args'
    4 |   public static void main(String[] args){
      |                                    ^~~~
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:3:12: note: to match this '{'
    3 | class Main {
      |            ^
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:5: error: 'Scanner' was not declared in this scope
    5 |     Scanner sc = new Scanner(System.in);
      |     ^~~~~~~
a.cc:7:11: error: 'sc' was not declared in this scope
    7 |     int a=sc.nextInt();
      |           ^~
a.cc:11:7: error: 'System' was not declared in this scope
   11 |       System.out.println("IMPOSSIBLE");
      |       ^~~~~~
a.cc:14:7: error: 'System' was not declared in this scope
   14 |       System.out.println(k);
      |       ^~~~~~
a.cc: At global scope:
a.cc:16:4: error: expected unqualified-id at end of input
   16 |   }
      |    ^
Language: C++

import java.util.*;

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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:9: error: expected ':' before 'static'
    4 |   public static void main(String[] args){
      |         ^~~~~~~
      |         :
a.cc:4:27: error: 'String' has not been declared
    4 |   public static void main(String[] args){
      |                           ^~~~~~
a.cc:4:36: error: expected ',' or '...' before 'args'
    4 |   public static void main(String[] args){
      |                                    ^~~~
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:3:12: note: to match this '{'
    3 | class Main {
      |            ^
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:5: error: 'Scaner' was not declared in this scope
    5 |     Scaner sc = new Scanner(System.in);
      |     ^~~~~~
a.cc:7:11: error: 'sc' was not declared in this scope
    7 |     int a=sc.nextInt();
      |           ^~
a.cc:11:7: error: 'System' was not declared in this scope
   11 |       System.out.println("IMPOSSIBLE");
      |       ^~~~~~
a.cc:14:7: error: 'System' was not declared in this scope
   14 |       System.out.println(k);
      |       ^~~~~~
a.cc: At global scope:
a.cc:16:4: error: expected unqualified-id at end of input
   16 |   }
      |    ^
Language: C++

import java.util.*;

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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:9: error: expected ':' before 'static'
    4 |   public static void main(String[] args){
      |         ^~~~~~~
      |         :
a.cc:4:27: error: 'String' has not been declared
    4 |   public static void main(String[] args){
      |                           ^~~~~~
a.cc:4:36: error: expected ',' or '...' before 'args'
    4 |   public static void main(String[] args){
      |                                    ^~~~
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:3:12: note: to match this '{'
    3 | class Main {
      |            ^
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:5: error: 'Scaner' was not declared in this scope
    5 |     Scaner sc = new Scaner(System.in);
      |     ^~~~~~
a.cc:7:11: error: 'sc' was not declared in this scope
    7 |     int a=sc.nextInt();
      |           ^~
a.cc:11:7: error: 'System' was not declared in this scope
   11 |       System.out.println("IMPOSSIBLE");
      |       ^~~~~~
a.cc:14:7: error: 'System' was not declared in this scope
   14 |       System.out.println(k);
      |       ^~~~~~
a.cc: At global scope:
a.cc:16:4: error: expected unqualified-id at end of input
   16 |   }
      |    ^
Language: C++

import java.utill.*;

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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.utill.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:9: error: expected ':' before 'static'
    4 |   public static void main(String[] args){
      |         ^~~~~~~
      |         :
a.cc:4:27: error: 'String' has not been declared
    4 |   public static void main(String[] args){
      |                           ^~~~~~
a.cc:4:36: error: expected ',' or '...' before 'args'
    4 |   public static void main(String[] args){
      |                                    ^~~~
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:3:12: note: to match this '{'
    3 | class Main {
      |            ^
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:5: error: 'Scaner' was not declared in this scope
    5 |     Scaner sc = new Scaner(System.in);
      |     ^~~~~~
a.cc:7:11: error: 'sc' was not declared in this scope
    7 |     int a=sc.nextInt();
      |           ^~
a.cc:11:7: error: 'System' was not declared in this scope
   11 |       System.out.println("IMPOSSIBLE");
      |       ^~~~~~
a.cc:14:7: error: 'System' was not declared in this scope
   14 |       System.out.println(k);
      |       ^~~~~~
a.cc: At global scope:
a.cc:16:4: error: expected unqualified-id at end of input
   16 |   }
      |    ^
Language: C++

import java.utill.*;

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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.utill.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:9: error: expected ':' before 'static'
    4 |   public static void main(String[] args){
      |         ^~~~~~~
      |         :
a.cc:4:27: error: 'String' has not been declared
    4 |   public static void main(String[] args){
      |                           ^~~~~~
a.cc:4:36: error: expected ',' or '...' before 'args'
    4 |   public static void main(String[] args){
      |                                    ^~~~
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:3:12: note: to match this '{'
    3 | class Main {
      |            ^
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:5: error: 'Scaner' was not declared in this scope
    5 |     Scaner sc = new Scaner(System.in);
      |     ^~~~~~
a.cc:7:11: error: 'sc' was not declared in this scope
    7 |     int a=sc.nextInt();
      |           ^~
a.cc:11:7: error: 'System' was not declared in this scope
   11 |       System.out.println("IMPOSSIBLE");
      |       ^~~~~~
a.cc:14:7: error: 'System' was not declared in this scope
   14 |       System.out.println(k.toString);
      |       ^~~~~~
a.cc:14:28: error: request for member 'toString' in 'k', which is of non-class type 'int'
   14 |       System.out.println(k.toString);
      |                            ^~~~~~~~
a.cc: At global scope:
a.cc:16:4: error: expected unqualified-id at end of input
   16 |   }
      |    ^
Language: Java

 public static void main(String[] args) {
    int a = Integer.parseInt(args[0]);
    int b = Integer.parseInt(args[1]);
    calculation(a, b);
}

public static void calculation(int a, int b) {
    int sub = a > b ? a - b : b - a;
    if (sub % 2 == 1) {
        System.out.println("IMPOSSIBLE");
        return;
    }
    int k = sub / 2 + (a > b ? b : a);
    System.out.println(String.format("%d", k));
}

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: C++

#include <iostream>
using namespace std;

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

if (a - k >= 0) {
	if (b - k >= 0) {
		cout << "impossible" << endl;

		else if((a - b) % 2 =0){
			k = (a - b) / 2;
			cout << k << endl;

			else {
				cout << "impossible" << endl;
			}
		}
	}

	else if (b - k >= 0) {

		if ((b - a) % 2 = 0) {
			k = (b - a) / 2;
			cout << k << endl;

			else {
				cout << "impossible" << endl;

			}
		}

		else
			cout << "impossible" << endl;

	}

	return 0;

}


Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> a >> b;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if (a - k >= 0) {
      | ^~
Language: C++

#include <iostream>
using namespace std;

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

if (a - k >= 0) {
	if (b - k >= 0) {
		cout << "impossible" << endl;

		else if((a - b) % 2 =0){
		k = (a - b) / 2;
		cout << k << endl;

			else {
				cout << "impossible" << endl;
			}
		}
	}

	else if (b - k >= 0) {

		if ((b - a) % 2 = 0) {
			k = (b - a) / 2;
			cout << k << endl;

			else {
				cout << "impossible" << endl;

			}
		}

		else
			cout << "impossible" << endl;

	}

	return 0;

}

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> a >> b;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if (a - k >= 0) {
      | ^~
Language: C++

#include <iostream>
using namespace std;

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

if (a - k >= 0) {
	if (b - k >= 0) {
		cout << "impossible" << endl;

	    else if((a - b) % 2 =0){
		k = (a - b) / 2;
		cout << k << endl;

			else
			cout << "impossible" << endl;
		
		}
	}

	else if (b - k >= 0) {

		if ((b - a) % 2 = 0) {
			k = (b - a) / 2;
			cout << k << endl;

			else
			cout << "impossible" << endl;
		}

		else
			cout << "impossible" << endl;

	}

	return 0;

}

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> a >> b;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if (a - k >= 0) {
      | ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:20: error: expected ')' before ';' token
   12 |     printf("%d",c/2;
      |           ~        ^
      |                    )
main.c:12:21: error: expected ';' before '}' token
   12 |     printf("%d",c/2;
      |                     ^
      |                     ;
   13 |   }else if(c%2 == 1){
      |   ~
Language: C

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

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

#include <iostream>

using namespace std;

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

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

#include<stdio.h>

int main(void)
{
  int A,B,K,a,b;
  scanf("%d",&A);
  scanf("%d",&B);
  a=A+B;
  a=a/2;
  a=a*2;
  if(a==b)
  {
     K=(A+B)/2;
     printf("%d\n",K)
  }
  else printf("IMPOSSIBLE");
}

Compiler output:
main.c: In function 'main':
main.c:14:22: error: expected ';' before '}' token
   14 |      printf("%d\n",K)
      |                      ^
      |                      ;
   15 |   }
      |   ~
Language: C

#include<stdio.h>

int main(void)
{
▸---int a,b,k;

▸---scanf("%d%d",&a,&b);

▸---if(a<0) a = a*(-1);
▸---if(b<0) b = b*(-1);

▸---k=(a+b)/2;

▸---if(k%2==0)

▸---printf("%d",k);

▸---else
▸---printf("IMPOSSIBLE");

▸---return 0;
▸---}


Compiler output:
main.c: In function 'main':
main.c:5:1: error: stray '\342' in program
    5 | <U+25B8>---int a,b,k;
      | ^~~~~~~~
main.c:5:5: error: expected expression before 'int'
    5 | ▸---int a,b,k;
      |     ^~~
main.c:7:1: error: stray '\342' in program
    7 | <U+25B8>---scanf("%d%d",&a,&b);
      | ^~~~~~~~
main.c:7:19: error: 'a' undeclared (first use in this function)
    7 | ▸---scanf("%d%d",&a,&b);
      |                   ^
main.c:7:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:22: error: 'b' undeclared (first use in this function)
    7 | ▸---scanf("%d%d",&a,&b);
      |                      ^
main.c:9:1: error: stray '\342' in program
    9 | <U+25B8>---if(a<0) a = a*(-1);
      | ^~~~~~~~
main.c:9:5: error: expected expression before 'if'
    9 | ▸---if(a<0) a = a*(-1);
      |     ^~
main.c:10:1: error: stray '\342' in program
   10 | <U+25B8>---if(b<0) b = b*(-1);
      | ^~~~~~~~
main.c:10:5: error: expected expression before 'if'
   10 | ▸---if(b<0) b = b*(-1);
      |     ^~
main.c:12:1: error: stray '\342' in program
   12 | <U+25B8>---k=(a+b)/2;
      | ^~~~~~~~
main.c:12:5: error: 'k' undeclared (first use in this function)
   12 | ▸---k=(a+b)/2;
      |     ^
main.c:14:1: error: stray '\342' in program
   14 | <U+25B8>---if(k%2==0)
      | ^~~~~~~~
main.c:14:5: error: expected expression before 'if'
   14 | ▸---if(k%2==0)
      |     ^~
main.c:16:1: error: stray '\342' in program
   16 | <U+25B8>---printf("%d",k);
      | ^~~~~~~~
main.c:18:1: error: stray '\342' in program
   18 | <U+25B8>---else
      | ^~~~~~~~
main.c:18:5: error: expected expression before 'else'
   18 | ▸---else
      |     ^~~~
main.c:19:1: error: stray '\342' in program
   19 | <U+25B8>---printf("IMPOSSIBLE");
      | ^~~~~~~~
main.c:21:1: error: stray '\342' in program
   21 | <U+25B8>---return 0;
      | ^~~~~~~~
main.c:21:5: error: expected expression before 'return'
   21 | ▸---return 0;
      |     ^~~~~~
main.c:22:1: error: stray '\342' in program
   22 | <U+25B8>---}
      | ^~~~~~~~
main.c:22:5: error: expected expression before '}' token
   22 | ▸---}
      |     ^
Language: C

#include<stdio.h>

int main(void)
{
▸---int a,b,k;

▸---scanf("%d%d",&a,&b);

▸---if(a<0) a = a*(-1);
▸---if(b<0) b = b*(-1);

▸---k=(a+b)/2;

▸---printf("%d",k);

▸---return 0;
▸---}


Compiler output:
main.c: In function 'main':
main.c:5:1: error: stray '\342' in program
    5 | <U+25B8>---int a,b,k;
      | ^~~~~~~~
main.c:5:5: error: expected expression before 'int'
    5 | ▸---int a,b,k;
      |     ^~~
main.c:7:1: error: stray '\342' in program
    7 | <U+25B8>---scanf("%d%d",&a,&b);
      | ^~~~~~~~
main.c:7:19: error: 'a' undeclared (first use in this function)
    7 | ▸---scanf("%d%d",&a,&b);
      |                   ^
main.c:7:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:22: error: 'b' undeclared (first use in this function)
    7 | ▸---scanf("%d%d",&a,&b);
      |                      ^
main.c:9:1: error: stray '\342' in program
    9 | <U+25B8>---if(a<0) a = a*(-1);
      | ^~~~~~~~
main.c:9:5: error: expected expression before 'if'
    9 | ▸---if(a<0) a = a*(-1);
      |     ^~
main.c:10:1: error: stray '\342' in program
   10 | <U+25B8>---if(b<0) b = b*(-1);
      | ^~~~~~~~
main.c:10:5: error: expected expression before 'if'
   10 | ▸---if(b<0) b = b*(-1);
      |     ^~
main.c:12:1: error: stray '\342' in program
   12 | <U+25B8>---k=(a+b)/2;
      | ^~~~~~~~
main.c:12:5: error: 'k' undeclared (first use in this function)
   12 | ▸---k=(a+b)/2;
      |     ^
main.c:14:1: error: stray '\342' in program
   14 | <U+25B8>---printf("%d",k);
      | ^~~~~~~~
main.c:16:1: error: stray '\342' in program
   16 | <U+25B8>---return 0;
      | ^~~~~~~~
main.c:16:5: error: expected expression before 'return'
   16 | ▸---return 0;
      |     ^~~~~~
main.c:17:1: error: stray '\342' in program
   17 | <U+25B8>---}
      | ^~~~~~~~
main.c:17:5: error: expected expression before '}' token
   17 | ▸---}
      |     ^
Language: C

#include <stdio.h>
int main(void)
{
   int a,b;
   int ans;
   int result;
​
   scanf("%d %d", &a, &b);

   if (a > b)
   {
       ans = a - b;
   }

   else
   {
       ans = b - a;
  }
    
​
   if (ans % 2 == 0 && ans < a){
      result = a - (ans / 2);
   }
​
   else if(ans % 2 == 0 && ans > a){
       result = a + (ans / 2);
   }
​
   else {
       printf("INPOSSIBLE\n");
       return 0;
   }
​
   printf("%d\n", result);
​
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: unknown type name '\U0000200b'
    7 | ​
      |  
main.c:8:10: error: expected declaration specifiers or '...' before string constant
    8 |    scanf("%d %d", &a, &b);
      |          ^~~~~~~
main.c:8:19: error: expected declaration specifiers or '...' before '&' token
    8 |    scanf("%d %d", &a, &b);
      |                   ^
main.c:8:23: error: expected declaration specifiers or '...' before '&' token
    8 |    scanf("%d %d", &a, &b);
      |                       ^
main.c:20:1: error: '\U0000200b' undeclared (first use in this function)
   20 | ​
      |  
main.c:20:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:1: error: expected ';' before 'if'
   20 | ​
      | ^
      | ;
   21 |    if (ans % 2 == 0 && ans < a){
      |    ~~
main.c:35:1: error: expected ';' before 'return'
   35 | ​
      | ^
      | ;
   36 |    return 0;
      |    ~~~~~~
Language: C

#include<stdio.h>

int main(void)
{
▸---int a,b,k;

▸---scanf("%d%d",&a,&b);

▸---if(a<0) a = a*(-1);
▸---if(b<0) b = b*(-1);

▸---k=(a+b)/2;

▸---printf("%d",k);

▸---return 0;


Compiler output:
main.c: In function 'main':
main.c:5:1: error: stray '\342' in program
    5 | <U+25B8>---int a,b,k;
      | ^~~~~~~~
main.c:5:5: error: expected expression before 'int'
    5 | ▸---int a,b,k;
      |     ^~~
main.c:7:1: error: stray '\342' in program
    7 | <U+25B8>---scanf("%d%d",&a,&b);
      | ^~~~~~~~
main.c:7:19: error: 'a' undeclared (first use in this function)
    7 | ▸---scanf("%d%d",&a,&b);
      |                   ^
main.c:7:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:22: error: 'b' undeclared (first use in this function)
    7 | ▸---scanf("%d%d",&a,&b);
      |                      ^
main.c:9:1: error: stray '\342' in program
    9 | <U+25B8>---if(a<0) a = a*(-1);
      | ^~~~~~~~
main.c:9:5: error: expected expression before 'if'
    9 | ▸---if(a<0) a = a*(-1);
      |     ^~
main.c:10:1: error: stray '\342' in program
   10 | <U+25B8>---if(b<0) b = b*(-1);
      | ^~~~~~~~
main.c:10:5: error: expected expression before 'if'
   10 | ▸---if(b<0) b = b*(-1);
      |     ^~
main.c:12:1: error: stray '\342' in program
   12 | <U+25B8>---k=(a+b)/2;
      | ^~~~~~~~
main.c:12:5: error: 'k' undeclared (first use in this function)
   12 | ▸---k=(a+b)/2;
      |     ^
main.c:14:1: error: stray '\342' in program
   14 | <U+25B8>---printf("%d",k);
      | ^~~~~~~~
main.c:16:1: error: stray '\342' in program
   16 | <U+25B8>---return 0;
      | ^~~~~~~~
main.c:16:5: error: expected expression before 'return'
   16 | ▸---return 0;
      |     ^~~~~~
main.c:16:5: error: expected declaration or statement at end of input
Language: Java

 
public class InputSample {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = Integer.parseInt(scan.next());
        int b = Integer.parseInt(scan.next());
 
        scan.close();
      
      if((a+b)%2 == 0){
        System.out.println(""+(a+b)/2);
      }else{
        System.out.println("IMPOSSIBLE");
      }
    }
}

Compiler output:
Main.java:2: error: class InputSample is public, should be declared in a file named InputSample.java
public class InputSample {
       ^
Main.java:4: error: cannot find symbol
        Scanner scan = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class InputSample
Main.java:4: error: cannot find symbol
        Scanner scan = new Scanner(System.in);
                           ^
  symbol:   class Scanner
  location: class InputSample
3 errors
Language: Java

import java.util.Scanner;
 
public class InputSample {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = Integer.parseInt(scan.next());
        int b = Integer.parseInt(scan.next());
 
        scan.close();
      
      if((a+b)%2 == 0){
        System.out.println(""+(a+b)/2);
      }else{
        System.out.println("IMPOSSIBLE");
    }
}

Compiler output:
Main.java:16: error: reached end of file while parsing
}
 ^
1 error
Language: C++

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

#define ll long long


int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	ll a, b;
	cin >> a >> b;
  	if ((a+b)And %2 == 1){ cout << "IMPOSSIBLE"; }
  	else { cout << (a+b)/2 << endl; }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: expected ')' before 'And'
   12 |         if ((a+b)And %2 == 1){ cout << "IMPOSSIBLE"; }
      |            ~     ^~~
      |                  )
Language: C++

#include <iostream>
using namesace std;
int main(){
  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:2:7: error: expected nested-name-specifier before 'namesace'
    2 | using namesace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>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:6:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if(a%2!=b%2)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:6:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   if(a%2!=b%2)cout<<"IMPOSSIBLE"<<endl;
      |                                   ^~~~
      |                                   std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else 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:7:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   else cout<<(a+b)/2<<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>

int sum = 0;

int myaddr(int a; int b; int cin)	//return cout
{
  if (a <= cin){
    sum += a;
    return b;
  }
  else if (a <= cin+b){
    sum += a;
    return cin + b - a;
  }
  else{
    sum += cin + b;
    return 0;
  }
}
 
int main() 
{
  int n;
  std::cin >> n;
  int a[n+1], b[n+1];
  for (int i = 0; i < n+1; i++) std::cin >> a[i];
  for (int i = 0; i < n; i++) std::cin >> b[i];
  b[n] = 0;
  
  int cin = 0;
  for (int i = 0; i < n+1; i++) cin = myaddr(a[i], b[i], cin);
  
  std::cout << sum;
  return 0;
}
  


Compiler output:
a.cc:5:17: error: expected ')' before ';' token
    5 | int myaddr(int a; int b; int cin)       //return cout
      |           ~     ^
      |                 )
a.cc:5:33: error: expected initializer before ')' token
    5 | int myaddr(int a; int b; int cin)       //return cout
      |                                 ^
a.cc: In function 'int main()':
a.cc:31:45: error: too many arguments to function 'int myaddr(int)'
   31 |   for (int i = 0; i < n+1; i++) cin = myaddr(a[i], b[i], cin);
      |                                       ~~~~~~^~~~~~~~~~~~~~~~~
a.cc:5:5: note: declared here
    5 | int myaddr(int a; int b; int cin)       //return cout
      |     ^~~~~~
Language: C++

#include <iostream>
#include <c.math>
using namespace std;

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


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

#include <iostream>

int main()
{
  int N;
  std::cin >> N;
  int p[N];
  for (int i = 0; i < N; i++) std::cin >> p[i];
  
  int  c = 0;
  for (int i = 0; i < N; i++){
    if (p[i] != i+1) c++;
  }
  
  if (c < 2) {
    std::cout << "YES";
    return 0;
  }
  
  else {
    c = 0;
    for (int i = 0; i < N-1; i++){
      if (p[i] != i+2) c++;
    }
    if (c == 0){
      std::cout << "YES";
      return 0;
    }
    
    else {
      c = 0;
      for ( int i = 1; i < N; i++){
        if  (p[i] != i) c++;
      }
      if (c == 0){
        std::cout << "YES";
        return 0;
      }
    }
    
    std::cout << "NO";
    return 0;
  }
  
  
  


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

#include <iostream>

int main()
{
  int N;
  std::cin >> N;
  int p[N];
  for (int i = 0; i < N; i++) std::cin >> p[i];
  
  int  c = 0;
  for (int i = 0; i < N; i++){
    if (p[i] != i+1) c++;
  }
  
  if (c < 2) {
    std::cout << "YES" << endl;
    return 0;
  }
  
  else {
    c = 0;
    for (int i = 0; i < N-1; i++){
      if (p[i] != i+2) c++;
    }
    if (c == 0){
      std::cout << "YES" << endl;
      return 0;
    }
    
    else {
      c = 0;
      for ( int i = 1; i < N; i++){
        if  (p[i] != i) c++;
      }
      if (c == 0){
        std::cout << "YES" << endl;
        return 0;
      }
    }
    
    std::cout << "NO" << endl;
    return 0;
  }
  
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:16:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |     std::cout << "YES" << endl;
      |                           ^~~~
      |                           std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:26:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   26 |       std::cout << "YES" << endl;
      |                             ^~~~
      |                             std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:36:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   36 |         std::cout << "YES" << endl;
      |                               ^~~~
      |                               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:41:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   41 |     std::cout << "NO" << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:43:4: error: expected '}' at end of input
   43 |   }
      |    ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <iostream>

int main()
{
  int N;
  cin >> N;
  int p[N];
  for (int i = 0; i < N; i++) std::cin >> p[i];
  
  int  c = 0;
  for (int i = 0; i < N; i++){
    if (p[i] != i+1) c++;
  }
  
  if (c < 2) {
    std::cout << "YES" << endl;
    return 0;
  }
  
  else {
    c = 0;
    for (int i = 0; i < N-1; i++){
      if (p[i] != i+2) c++;
    }
    if (c == 0){
      std::cout << "YES" << endl;
      return 0;
    }
    
    else {
      c = 0;
      for ( int i = 1; i < N; i++){
        if  (p[i] != i) c++;
      }
      if (c == 0){
        std::cout << "YES" << endl;
        return 0;
      }
    }
    
    std::cout << "NO" << endl;
    return 0;
  }
  
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> N;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:16:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |     std::cout << "YES" << endl;
      |                           ^~~~
      |                           std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:26:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   26 |       std::cout << "YES" << endl;
      |                             ^~~~
      |                             std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:36:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   36 |         std::cout << "YES" << endl;
      |                               ^~~~
      |                               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:41:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   41 |     std::cout << "NO" << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:43:4: error: expected '}' at end of input
   43 |   }
      |    ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: Java

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    
    String strA = scan.next();
    String strB = scan.next();
    
    int a = Integer.parseInt(strA);
    int b = Integer.parseInt(strB);
    
    int c = a + b;
    
    if (c % 2 == 0) {
      System.out.print(c / 2);
    } else {
      System.out.print("IMPOSSIBLE");
    }
  }
}

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

#include<bits/stdc++.h>
using namespace std;
int main(void){

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

	s = (a+b)/2;

if(fabs(a-s) == fabs(b-s)){
  cout<< s <<endl;
}else{
    cout<< "impossible"<<endl;
}
  return 0;
}
  

　　
    



Compiler output:
a.cc:19:1: error: extended character 　 is not valid in an identifier
   19 | 　　
      | ^
a.cc:19:1: error: extended character 　 is not valid in an identifier
a.cc:19:1: error: '\U00003000\U00003000' does not name a type
   19 | 　　
      | ^~~~
Language: C++

#include<bits/stdc++.h>
int main(void){
using namespace std;
  int a,b,s;
  cin >> a,b ;

	s = (a+b)/2;

if(fabs(a-s) == fabs(b-s)){
  cout<< s <<endl;
}else{
    cout<< "impossible"<<endl;
}
  return 0;
}
  

　　
    



Compiler output:
a.cc:18:1: error: extended character 　 is not valid in an identifier
   18 | 　　
      | ^
a.cc:18:1: error: extended character 　 is not valid in an identifier
a.cc:18:1: error: '\U00003000\U00003000' does not name a type
   18 | 　　
      | ^~~~
Language: C++

#include<bits/stdc++.h>
int main(void){
using namespace std
  int a,b,s;
  cin >> a,b ;

	s = (a+b)/2;

if(fabs(a-s) == fabs(b-s)){
  cout<< s <<endl;
}else{
    cout<< "impossible"<<endl;
}
  return 0;
}
  

　　
    



Compiler output:
a.cc:18:1: error: extended character 　 is not valid in an identifier
   18 | 　　
      | ^
a.cc:18:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 |   int a,b,s;
      |   ~~~               
a.cc: At global scope:
a.cc:18:1: error: '\U00003000\U00003000' does not name a type
   18 | 　　
      | ^~~~
Language: C++

#include<bits/stdc++.h>
int main(void){
using namespace std
  int a,b,s;
  cin >> a,b ;

	s = (a+b)/2;

if(fabs(a-s) == fabs(b-s)){
  cout<< s <<emdl;
  else{
    cout<< "impossible"<<endl;
  }
}
  return 0;
}
  

　　
    



Compiler output:
a.cc:19:1: error: extended character 　 is not valid in an identifier
   19 | 　　
      | ^
a.cc:19:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 |   int a,b,s;
      |   ~~~               
a.cc:10:14: error: 'emdl' was not declared in this scope
   10 |   cout<< s <<emdl;
      |              ^~~~
a.cc:11:3: error: expected '}' before 'else'
   11 |   else{
      |   ^~~~
a.cc:9:27: note: to match this '{'
    9 | if(fabs(a-s) == fabs(b-s)){
      |                           ^
a.cc: At global scope:
a.cc:15:3: error: expected unqualified-id before 'return'
   15 |   return 0;
      |   ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
a.cc:19:1: error: '\U00003000\U00003000' does not name a type
   19 | 　　
      | ^~~~