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

#include <cmath>
#include <iostream>
#include <vector>
#include <queue>
#include <deque>
#include <map>
#include <set>
#include <stack>
#include <tuple>
#include <bitset>
#include <algorithm>
#include <functional>
#include <utility>
#include <iomanip>

#define int long long int
#define rep(i, n) for(int i = 0; i < (n); ++i)
#define ALL(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size())
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() )

using namespace std;

typedef pair<int, int> P;

const int INF = 1e15;
const int MOD = 1e9+7;

template <typename T>
using vector2 = vector<vector<T>>;
template <typename T>
vector2<T> initVec2(size_t n0, size_t n1, T e = T()){
    return vector2<T>(n0, vector<T>(n1, e));
}

template <typename T>
using vector3 = vector<vector<vector<T>>>;
template <typename T>
vector3<T> initVec3(size_t n0, size_t n1, size_t n2, T e = T()){
    return vector3<T>(n0, vector2<T>(n1, vector<T>(n2, e)));
}

tuple<int, int, int>

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

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

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

    int d = abs(a - b);
    if(d % 2){
        cout << "IMPOSSIBLE" << endl;
        return 0;
    }
    if(a > b){
        cout << (a - b) / 2 << endl;
    }else{
        cout << (b - a) / 2 << endl;
    }

    return 0;
}


Compiler output:
a.cc:45:1: error: 'signed' specified with 'std::tuple<long long int, long long int, long long int>'
   45 | signed main(){
      | ^~~~~~
a.cc:43:1: error: '::main' must return 'int'
   43 | tuple<int, int, int>
      | ^~~~~~~~~~~~~~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected statement before ')' token
    5 |   if ((a+b)%2)) printf("IMPOSSIBLE\n");
      |               ^
main.c:6:3: error: 'else' without a previous 'if'
    6 |   else printf("%ld\n",(a+b)/2);
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
#define ll long long int
#define mod 1000000007
#define all(x) (x).begin(),(x).end()
 
#define REP(i, n) for(int i = 0; i < (n); i++)
#define NREP(i, n) for(int i = 1; i <= (n); i++)
#define SREP(i, s) for(int i = 0; i < (s.size()); i++)
#define SORT(v, n) sort(v, v+n);
#define GSORT(v, n) sort(v, v+n, greater<int>());
#define VSORT(v) sort(v.begin(),v.end());
#define VGSORT(v) sort(v.begin(),v.end(),greater<int>());
#define REV(a) reverse(begin(a),end(a));

int main(){
	ios::sync_with_stdio(false);cin.tie(0);
	cout << fixed << setprecision(7);
////////////////////////////////////////////
	int a,b,c;
    cin >> a >> b;
    c=a+b;
    cout << (c%2==0 ? c/2 : "IMPOSSIBLE") << endl;
///////////////////////////////////////////
}


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

#include <bits/stdc++.h>
 
using namespace std;
 
#define ll long long int
#define mod 1000000007
#define all(x) (x).begin(),(x).end()
 
#define REP(i, n) for(int i = 0; i < (n); i++)
#define NREP(i, n) for(int i = 1; i <= (n); i++)
#define SREP(i, s) for(int i = 0; i < (s.size()); i++)
#define SORT(v, n) sort(v, v+n);
#define GSORT(v, n) sort(v, v+n, greater<int>());
#define VSORT(v) sort(v.begin(),v.end());
#define VGSORT(v) sort(v.begin(),v.end(),greater<int>());
#define REV(a) reverse(begin(a),end(a));

int main(){
	ios::sync_with_stdio(false);cin.tie(0);
	cout << fixed << setprecision(7);
////////////////////////////////////////////
	int a,b,c;
    cin >> a >> b;
    c=a+b;
    cout << (c%2==0 ? c/2 : IMPOSSIBLE) << endl;
///////////////////////////////////////////
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:29: error: 'IMPOSSIBLE' was not declared in this scope
   25 |     cout << (c%2==0 ? c/2 : IMPOSSIBLE) << endl;
      |                             ^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef vector<ll> vl;
typedef vector<pair<ll,ll>> vp;
#define rep(i,n) for(ll i = 0; i < ll(n); i++)
#define all(v) v.begin() , v.end()
#define inputv(v,n) rep(i,n){\
    ll x;\
    cin>>x;\
    v.push_back(x);\
    }
const ll INF=99999999999999;
const ll MOD=1000000007;
 
int main() {
int n;
  cin >> n;
  vector<int> a,b;
  rep(i,n+1){
    int x;
    cin >> x;
    a.push_back(x);
  }
  rep(i,n){
    int x;
    cin >> x;
    b.push_back(x);
  }
  int c,d=0,f;
  rep(i,n){
    c = min(a[i],b[i]);
    d += c;
    b[i] -= c
    f = min(a[i+1], b[i]);
    d += f;
    a[i+1] -= f;
    
  }
  cout << d;
    
  
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:14: error: expected ';' before 'f'
   34 |     b[i] -= c
      |              ^
      |              ;
   35 |     f = min(a[i+1], b[i]);
      |     ~
Language: C++

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

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: 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 | #inclide<bits/stdc++.h>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "IMPOSSIBLE" << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:29: error: 'endl' was not declared in this scope
    8 |     cout << "IMPOSSIBLE" << endl;
      |                             ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclide<bits/stdc++.h>
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << (a + b) / 2 << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:28: error: 'endl' was not declared in this scope
   11 |     cout << (a + b) / 2 << endl;
      |                            ^~~~
a.cc:11:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: 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 | #inclide<bits/stdc++.h>
a.cc:7:19: error: 'cout' was not declared in this scope
    7 |   if((a + b) % 2) cout << "IMPOSSIBLE" << endl;
      |                   ^~~~
a.cc:7:19: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:43: error: 'endl' was not declared in this scope
    7 |   if((a + b) % 2) cout << "IMPOSSIBLE" << endl;
      |                                           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclide<bits/stdc++.h>
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout << (a + b) / 2 << endl;
      |        ^~~~
a.cc:8:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:31: error: 'endl' was not declared in this scope
    8 |   else cout << (a + b) / 2 << endl;
      |                               ^~~~
a.cc:8:31: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

a, b = gets.split.map(:&to_i)
if (a + b) % 2 == 0
  puts (a + b) / 2
else
  puts "IMPOSSIBLE"

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

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected ';' before 'endl'
   11 |     cout << k endl;
      |              ^~~~~
      |              ;
a.cc:13:25: error: expected ';' before 'endl'
   13 |     cout << "IMPOSSIBLE" endl;
      |                         ^~~~~
      |                         ;
Language: C++

    #include<iostream>
	#include<cmath>
     
    main(){
      int A,B,K;
      cin >> A >> B;
     
      for (K=0; K<pow(10,9); K++){
        if (abs(A - K) - abs (B - K) == 0){
          cout << K;
          break;
        }
        if (K==pow(10,9)){
          cout << "IMPOSSIBLE";
          break;
        }
      }
    }

Compiler output:
a.cc:4:5: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 |     main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:6:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |       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:10:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |           cout << K;
      |           ^~~~
      |           std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |           cout << "IMPOSSIBLE";
      |           ^~~~
      |           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<iostream>
	#include<cmath>
     
    main(){
      int A,B,K;
      cin >> A >> B;
     
      for (K=0, K<pow(10,9), K++){
        if (abs(A - K) - abs (B - K) == 0){
          cout << K;
          break;
        }
        if (K==pow(10,9)){
          cout << "IMPOSSIBLE";
          break;
        }
      }
    }

Compiler output:
a.cc:4:5: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 |     main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:6:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |       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:8:33: error: expected ';' before ')' token
    8 |       for (K=0, K<pow(10,9), K++){
      |                                 ^
      |                                 ;
a.cc:18:5: error: expected primary-expression before '}' token
   18 |     }
      |     ^
a.cc:17:8: error: expected ';' before '}' token
   17 |       }
      |        ^
      |        ;
   18 |     }
      |     ~   
a.cc:18:5: error: expected primary-expression before '}' token
   18 |     }
      |     ^
a.cc:17:8: error: expected ')' before '}' token
   17 |       }
      |        ^
      |        )
   18 |     }
      |     ~   
a.cc:8:11: note: to match this '('
    8 |       for (K=0, K<pow(10,9), K++){
      |           ^
a.cc:18:5: error: expected primary-expression before '}' token
   18 |     }
      |     ^
Language: C++

    #include<iostream>
     
    main(){
      int A,B,K;
      cin >> A >> B;
     
      for (K=0, K<pow(10,9), K++){
        if (abs(A - K) - abs (B - K) == 0){
          cout << K;
          break;
        }
        if (K==pow(10,9)){
          cout << "IMPOSSIBLE";
          break;
        }
      }
    }

Compiler output:
a.cc:3:5: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 |     main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:5:7: 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:19: error: 'pow' was not declared in this scope
    7 |       for (K=0, K<pow(10,9), K++){
      |                   ^~~
a.cc:17:5: error: expected primary-expression before '}' token
   17 |     }
      |     ^
a.cc:16:8: error: expected ';' before '}' token
   16 |       }
      |        ^
      |        ;
   17 |     }
      |     ~   
a.cc:17:5: error: expected primary-expression before '}' token
   17 |     }
      |     ^
a.cc:16:8: error: expected ')' before '}' token
   16 |       }
      |        ^
      |        )
   17 |     }
      |     ~   
a.cc:7:11: note: to match this '('
    7 |       for (K=0, K<pow(10,9), K++){
      |           ^
a.cc:17:5: error: expected primary-expression before '}' token
   17 |     }
      |     ^
Language: C++

#include<iostream>

main(){
  int A,B,K;
  cin >> A >> B;
 
  for (K=0, K<pow(10,9), K++){
    if (abs(A - K) - abs (B - K) == 0){
      cout << K;
      break;
    }
    if (K==pow(10,9)){
      cout << "IMPOSSIBLE"
      break;
    }
  }
}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> A >> B;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:15: error: 'pow' was not declared in this scope
    7 |   for (K=0, K<pow(10,9), K++){
      |               ^~~
a.cc:17:1: error: expected primary-expression before '}' token
   17 | }
      | ^
a.cc:16:4: error: expected ';' before '}' token
   16 |   }
      |    ^
      |    ;
   17 | }
      | ~   
a.cc:17:1: error: expected primary-expression before '}' token
   17 | }
      | ^
a.cc:16:4: error: expected ')' before '}' token
   16 |   }
      |    ^
      |    )
   17 | }
      | ~   
a.cc:7:7: note: to match this '('
    7 |   for (K=0, K<pow(10,9), K++){
      |       ^
a.cc:17:1: error: expected primary-expression before '}' token
   17 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: lvalue required as left operand of assignment
    9 |   if(sum%2=0){
      |      ~~~^~
a.cc:12:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   12 |     ans = "IMPOSSIBLE"
      |           ^~~~~~~~~~~~
      |           |
      |           const char*
a.cc:12:23: error: expected ';' before '}' token
   12 |     ans = "IMPOSSIBLE"
      |                       ^
      |                       ;
   13 |   }
      |   ~                    
a.cc: At global scope:
a.cc:19:5: error: redefinition of 'int main()'
   19 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc: In function 'int main()':
a.cc:24:9: error: lvalue required as left operand of assignment
   24 |   if(sum%2=0){
      |      ~~~^~
a.cc:27:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   27 |     ans = "IMPOSSIBLE";
      |           ^~~~~~~~~~~~
      |           |
      |           const char*
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: lvalue required as left operand of assignment
    9 |   if(sum%2=0){
      |      ~~~^~
a.cc:12:11: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   12 |     ans = "IMPOSSIBLE"
      |           ^~~~~~~~~~~~
      |           |
      |           const char*
a.cc:12:23: error: expected ';' before '}' token
   12 |     ans = "IMPOSSIBLE"
      |                       ^
      |                       ;
   13 |   }
      |   ~
Language: C++

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

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

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

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


Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:3:7: note: to match this '{'
    3 | main(){
      |       ^
Language: C++

#include <iostream>
#include <math.h>
#include <fstream>
#include <algorithm>
#include <string>
#include <string.h>
#include <queue>
#include <vector>
#include <set>
#include <map>
using namespace std;
vector<long long int> solution(string S, int i){
  vector<long long int> res(i, 0); 
  if(len == 0)
    {
    	res[0] = 1;
    	return res;
    }
  int num = S[i - 1] - '0';
		for (int j = 0; j < 13; j++)
		{
          	vector<long long int> resold = solution(S,i-1);
			if (num != '?' - '0') {
				res[(j * 10 + num) % 13] += resold[j];
			}
			else
			{
				for (int k = 0; k < 10; k++)
				{
					res[(j * 10 + k)%13] += resold[j];
				}
			}
		}
		for (int j = 0; j < 13; j++)res[j] %= 1000000007;
  return res;
  
}
 
int main() {
	string S;
	cin >> S;
	int len=S.length();
	vector<long long int> res = solution(S,len);
	cout << res[5];
}

Compiler output:
a.cc: In function 'std::vector<long long int> solution(std::string, int)':
a.cc:14:6: error: 'len' was not declared in this scope
   14 |   if(len == 0)
      |      ^~~
Language: C++

#include <iostream>
#include <math.h>
#include <fstream>
#include <algorithm>
#include <string>
#include <string.h>
#include <queue>
#include <vector>
#include <set>
#include <map>
using namespace std;
vector<long long int> solution(string S, int i){
  vector<long long int> res(i, 0); 
  if(len == 0)
    {
    	res[0] = 1;
    	return res;
    }
  int num = S[i - 1] - '0';
		for (int j = 0; j < 13; j++)
		{
          	vector<long long int> resold = solution(S,i-1);
			if (num != '?' - '0') {
				res[(j * 10 + num) % 13] += resold[j];
			}
			else
			{
				for (int k = 0; k < 10; k++)
				{
					res[(j * 10 + k)%13] += resold[j];
				}
			}
		}
		for (int j = 0; j < 13; j++)res[j] %= 1000000007;
  return res;
  
}
 
int main() {
	string S;
	cin >> S;
	,len=S.length();
	vector<long long int> res = solution(S,len);
	cout << res[5];
}

Compiler output:
a.cc: In function 'std::vector<long long int> solution(std::string, int)':
a.cc:14:6: error: 'len' was not declared in this scope
   14 |   if(len == 0)
      |      ^~~
a.cc: In function 'int main()':
a.cc:42:9: error: expected primary-expression before ',' token
   42 |         ,len=S.length();
      |         ^
a.cc:42:10: error: 'len' was not declared in this scope
   42 |         ,len=S.length();
      |          ^~~
Language: C++

#include <iostream>
#include <math.h>
#include <fstream>
#include <algorithm>
#include <string>
#include <string.h>
#include <queue>
#include <vector>
#include <set>
#include <map>
using namespace std;
vector<long long int> solution(string S, int i){
  vector<long long int> res = vect(n, 0); 
  if(len == 0)
    {
    	res[0] = 1;
    	return res;
    }
  int num = S[i - 1] - '0';
		for (int j = 0; j < 13; j++)
		{
          	vector<long long int> resold = solution(S,i-1);
			if (num != '?' - '0') {
				res[(j * 10 + num) % 13] += resold[j];
			}
			else
			{
				for (int k = 0; k < 10; k++)
				{
					res[(j * 10 + k)%13] += resold[j];
				}
			}
		}
		for (int j = 0; j < 13; j++)res[j] %= 1000000007;
  return res;
  
}
 
int main() {
	string S;
	cin >> S;
	,len=S.length();
	vector<long long int> res = solution(S,len);
	cout << res[5];
}

Compiler output:
a.cc: In function 'std::vector<long long int> solution(std::string, int)':
a.cc:13:36: error: 'n' was not declared in this scope
   13 |   vector<long long int> res = vect(n, 0);
      |                                    ^
a.cc:13:31: error: 'vect' was not declared in this scope
   13 |   vector<long long int> res = vect(n, 0);
      |                               ^~~~
a.cc:14:6: error: 'len' was not declared in this scope
   14 |   if(len == 0)
      |      ^~~
a.cc: In function 'int main()':
a.cc:42:9: error: expected primary-expression before ',' token
   42 |         ,len=S.length();
      |         ^
a.cc:42:10: error: 'len' was not declared in this scope
   42 |         ,len=S.length();
      |          ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
  int N;
  cin >> N;
  
  vector<long long> A(100001);
  vector<long long> B(100000); 
  for (int i=0; i<N+1; i++) {
    cin >> A(i);
  }
  for (int i=0; i<N; i++) {
    cin >> B(i);
  }
  
  long long win;
  for (int i=0; i<N; i++) {
    if (A(i)>=B(i)) win += B(i);
    else {
      win += A(i);
      A(i+1) -= A(i);
  }
  
    cout << win << endl;
  
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: no match for call to '(std::vector<long long int>) (int&)'
   12 |     cin >> A(i);
      |            ~^~~
a.cc:15:13: error: no match for call to '(std::vector<long long int>) (int&)'
   15 |     cin >> B(i);
      |            ~^~~
a.cc:20:10: error: no match for call to '(std::vector<long long int>) (int&)'
   20 |     if (A(i)>=B(i)) win += B(i);
      |         ~^~~
a.cc:20:16: error: no match for call to '(std::vector<long long int>) (int&)'
   20 |     if (A(i)>=B(i)) win += B(i);
      |               ~^~~
a.cc:20:29: error: no match for call to '(std::vector<long long int>) (int&)'
   20 |     if (A(i)>=B(i)) win += B(i);
      |                            ~^~~
a.cc:22:15: error: no match for call to '(std::vector<long long int>) (int&)'
   22 |       win += A(i);
      |              ~^~~
a.cc:23:8: error: no match for call to '(std::vector<long long int>) (int)'
   23 |       A(i+1) -= A(i);
      |       ~^~~~~
a.cc:23:18: error: no match for call to '(std::vector<long long int>) (int&)'
   23 |       A(i+1) -= A(i);
      |                 ~^~~
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<iostream>
using namespace 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: In function 'int main()':
a.cc:7:23: error: expected ';' before '{' token
    7 |   if ((a % 2 != b % 2){
      |                       ^
      |                       ;
a.cc:9:5: error: expected primary-expression before 'else'
    9 |   } else {
      |     ^~~~
a.cc:9:4: error: expected ')' before 'else'
    9 |   } else {
      |    ^~~~~
      |    )
a.cc:7:6: note: to match this '('
    7 |   if ((a % 2 != b % 2){
      |      ^
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);

  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:13:28: error: expected ';' before '}' token
   13 |     cout << (A-B)/2 << endl
      |                            ^
      |                            ;
   14 |   } else {
      |   ~                         
a.cc:15:37: error: expected ';' before '}' token
   15 |         cout << "IMPOSSIBLE" << endl
      |                                     ^
      |                                     ;
   16 |   }
      |   ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:9: error: invalid operands to binary % (have 'double' and 'int')
   10 |    if( a%2 != b%2 ) printf("impossible");
      |         ^
main.c:10:16: error: invalid operands to binary % (have 'double' and 'int')
   10 |    if( a%2 != b%2 ) printf("impossible");
      |                ^
Language: C++

import sys
# n=int(input())  #数値入力 「N」だけの入力のとき
# a,b=map(int, input().split())  #複数数値入力　「A B」みたいなスペース空いた入力のとき
# c=list(map(int, input().split()))  #リスト入力 「a1 a2 a3 ...」みたいな配列のような入力のとき
# s=[list(map(int,list(input()))) for i in range(h)]  # 二次元配列入力　二次元マップみたいな入力のとき
def main():
    A,B=map(int, input().split())
    if (A+B)%2==0:
        print(int((A+B)/2))
    else:
        print('IMPOSSIBLE')

if __name__=='__main__':
    main()


Compiler output:
a.cc:2:3: error: invalid preprocessing directive #n
    2 | # n=int(input())  #数値入力 「N」だけの入力のとき
      |   ^
a.cc:2:29: error: extended character 「 is not valid in an identifier
    2 | # n=int(input())  #数値入力 「N」だけの入力のとき
      |                             ^
a.cc:2:29: error: extended character 」 is not valid in an identifier
a.cc:3:3: error: invalid preprocessing directive #a
    3 | # a,b=map(int, input().split())  #複数数値入力　「A B」みたいなスペース空いた入力のとき
      |   ^
a.cc:3:35: error: extended character 　 is not valid in an identifier
    3 | # a,b=map(int, input().split())  #複数数値入力　「A B」みたいなスペース空いた入力のとき
      |                                   ^
a.cc:3:35: error: extended character 「 is not valid in an identifier
a.cc:3:53: error: extended character 」 is not valid in an identifier
    3 | # a,b=map(int, input().split())  #複数数値入力　「A B」みたいなスペース空いた入力のとき
      |                                                     ^
a.cc:4:3: error: invalid preprocessing directive #c
    4 | # c=list(map(int, input().split()))  #リスト入力 「a1 a2 a3 ...」みたいな配列のような入力のとき
      |   ^
a.cc:4:50: error: extended character 「 is not valid in an identifier
    4 | # c=list(map(int, input().split()))  #リスト入力 「a1 a2 a3 ...」みたいな配列のような入力のとき
      |                                                  ^
a.cc:4:64: error: extended character 」 is not valid in an identifier
    4 | # c=list(map(int, input().split()))  #リスト入力 「a1 a2 a3 ...」みたいな配列のような入力のとき
      |                                                                ^
a.cc:5:3: error: invalid preprocessing directive #s
    5 | # s=[list(map(int,list(input()))) for i in range(h)]  # 二次元配列入力　二次元マップみたいな入力のとき
      |   ^
a.cc:5:57: error: extended character 　 is not valid in an identifier
    5 | # s=[list(map(int,list(input()))) for i in range(h)]  # 二次元配列入力　二次元マップみたいな入力のとき
      |                                                         ^
a.cc:11:15: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
   11 |         print('IMPOSSIBLE')
      |               ^~~~~~~~~~~~
a.cc:13:14: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   13 | if __name__=='__main__':
      |              ^~~~~~~~~~
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>
typedef long long ll;
#define mod 1000000007
#define pb push_back
#define mp(a,b) make_pair(a,b)
#define pii pair<int,int>
#define pll pair<ll,ll>
#define vll vector <ll>
#define vii vector <int>
#define vpii vector <pii>
#define vpll vector <pll>
#define ff first
#define ss second
#define matrix vector <vll>
#define all(v) v.begin(),v.end()
#define PQ priority_queue
using namespace std;
ll pow(ll a, ll b){
	ll res = 1;
	while(b > 0){
		if(b&1) res*=a;
		b/=2;
		a*=a;
	}
	return res;
}
int main()
{
	//ios::sync_with_stdio(0);
	//cin.tie(0);
  	ll a, ll b;
  	cin >> a >> b;
  	ll k = (a+b)/2;
  	if(2*k == a+b) cout << k << "\n";
  	else cout << "IMPOSSIBLE\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:18: error: expected initializer before 'b'
   31 |         ll a, ll b;
      |                  ^
a.cc:32:21: error: 'b' was not declared in this scope
   32 |         cin >> a >> b;
      |                     ^
Language: C++

static const ull MOD = 1000000007LL;

 int n;
 char s[100005];
 uint64_t dp[100005][13];

 uint64_t solve () {
   int i, j, ki;
   uint64_t res = 0;

   scanf("%s", s);
   n = strlen(s);

   dp[0][0] = 1;
   for (i = 0; i < n; i++) {
     int c;
     if (s[i] == '?') c = -1;
     else c = s[i] - '0';

     for (j = 0; j < 10; j++) {
       if (c != -1 && c != j) continue;
       for (ki = 0; ki < 13; ki++) {
         dp[i + 1][(ki * 10 + j) % 13] += dp[i][ki];
       }
     }
     for (j = 0; j < 13; j++) dp[i + 1][j] %= MOD;
   }
   res = dp[n][5];

   printf("%llu\n", res);
   return 0;
 }

Compiler output:
a.cc:1:14: error: 'ull' does not name a type
    1 | static const ull MOD = 1000000007LL;
      |              ^~~
a.cc:5:2: error: 'uint64_t' does not name a type
    5 |  uint64_t dp[100005][13];
      |  ^~~~~~~~
a.cc:1:1: note: 'uint64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | static const ull MOD = 1000000007LL;
a.cc:7:2: error: 'uint64_t' does not name a type
    7 |  uint64_t solve () {
      |  ^~~~~~~~
a.cc:7:2: note: 'uint64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
Language: C++

#include<iostream>
uisng namespace std;
int main(){
long long int a,b;
  cin>>a>>b ;
  long long int ans=(a+b)/2;
  if((a+b)/2 & 1 == 0 ){
    cout<<"IMPOSSIBLE\n";
  }
  else cout<<ans<<endl;
  return 0;
}


Compiler output:
a.cc:2:1: error: 'uisng' does not name a type
    2 | uisng namespace 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:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     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
      |                  ^~~~
a.cc:10:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   else cout<<ans<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   else cout<<ans<<endl;
      |                   ^~~~
      |                   std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.utils.*;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    long ans = sc.nextLong() + sc.nextLong();
    if (ans%2 == 1)
      System.out.println("IMPOSSIBLE");
    else
    System.out.println(ans/2);
  }
}


Compiler output:
Main.java:1: error: package java.utils does not exist
import java.utils.*;
^
Main.java:4: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
                     ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: Java

import java.utils.*;
class Main{
  public static void main(String[]: args){
    Scanner sc = new Scanner(System.in);
    long ans = sc.nextLong() + sc.nextLong();
    if (ans%2 == 1)
      System.out.println("IMPOSSIBLE");
    else
    System.out.println(ans/2);
  }
}

Compiler output:
Main.java:3: error: <identifier> expected
  public static void main(String[]: args){
                                  ^
1 error
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    8 |   if(ans % 2 == 0) cout << ans / 2;
      |      ~~~ ^ ~
      |      |     |
      |      |     int
      |      double
Language: C++

#import<ios>
using namespace std;
typedef long long int ll;

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:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<ios>
      |  ^~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 | int a,b;cin>>a>>b;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #import<ios>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:8:1: error: 'cout' was not declared in this scope
    8 | cout << (a+b)/2 << endl;
      | ^~~~
a.cc:8:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:20: error: 'endl' was not declared in this scope
    8 | cout << (a+b)/2 << endl;
      |                    ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #import<ios>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:11:1: error: 'cout' was not declared in this scope
   11 | cout << "IMPOSSIBLE" << endl;
      | ^~~~
a.cc:11:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:25: error: 'endl' was not declared in this scope
   11 | cout << "IMPOSSIBLE" << endl;
      |                         ^~~~
a.cc:11:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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

#include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
#include <stack>
#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <math.h>
#include <stdio.h>
#include <ctype.h>
#include <ios> 
#include <iomanip>
using namespace std;

#define N_MAX   (100000)
#define LL_MAX_NUM (1LL<<60)
#define INF 1e7

typedef long long ll;
typedef long long int lli;

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:26:24: error: operands to '?:' have different types 'int' and 'const char*'
   26 |     cout << ((A+B)%2==0?(A+B)/2:"IMPOSSIBLE") << endl;
      |              ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
#include<cstdlib>
using namespace std;
int main(){
  cin >> A >> B;
  int K;
  if (abs(A - K) == abs(B - K))
    cout << K << endl;
  else
    cout << "IMPOSSIBLE" << endl;
}

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

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

int f(int num){
  if(num <= 0) return num*-1;
  return num;
}

int main(){
 	int A,B;
 	cin >> A >> B;
	for(unsigned int i = 0; i < 4294967295; ++i)
    {
    	if(f(A-i) == f(B-i)){
          std::cout << i;
          done = true;
          break;
        }
    }
    if(!done)std::cout << "IMPOSSIBLE";
 	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: 'done' was not declared in this scope
   17 |           done = true;
      |           ^~~~
a.cc:21:9: error: 'done' was not declared in this scope
   21 |     if(!done)std::cout << "IMPOSSIBLE";
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typdef long long int ll;

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

Compiler output:
a.cc:3:1: error: 'typdef' does not name a type; did you mean 'typedef'?
    3 | typdef long long int ll;
      | ^~~~~~
      | typedef
a.cc: In function 'int main()':
a.cc:7:3: error: 'll' was not declared in this scope
    7 |   ll a,b;
      |   ^~
a.cc:8:8: error: 'a' was not declared in this scope
    8 |   cin>>a>>b;
      |        ^
a.cc:8:11: error: 'b' was not declared in this scope
    8 |   cin>>a>>b;
      |           ^
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)%2==0)){
         System.out.println((A+B)/2));
        }
        else{
          System.out.println("IMPOSSIBLE");
        }
	}
}

Compiler output:
Main.java:7: error: illegal start of expression
        if((A-B)%2==0)){
                      ^
Main.java:8: error: ';' expected
         System.out.println((A+B)/2));
                                    ^
Main.java:10: error: 'else' without 'if'
        else{
        ^
3 errors
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)%2==0){
         System.out.println((A+B)/2);
        }
        else{
          System.out.println("IMPOSSIBLE");
        }
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
        if((A-B)%2==0){
            ^
  symbol:   variable A
  location: class Main
Main.java:7: error: cannot find symbol
        if((A-B)%2==0){
              ^
  symbol:   variable B
  location: class Main
Main.java:8: error: cannot find symbol
         System.out.println((A+B)/2);
                             ^
  symbol:   variable A
  location: class Main
Main.java:8: error: cannot find symbol
         System.out.println((A+B)/2);
                               ^
  symbol:   variable B
  location: class Main
4 errors
Language: Java

import java.util.Scanner;
public class p{
public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num1 = sc.nextInt();
        int num2 = sc.nextInt();
        int num3 = num1 % 2;
        int num4 = num2 % 2;
        if(num1 == 0 || num3 != 0 ){
        System.out.println("IMPOSSIBLE");
        }
        if(num2 == 0 || num4 != 0 ){
        System.out.println("IMPOSSIBLE");
        }  
        int k = (num1 + num2) / 2;
        System.out.println(k);
  
}
}


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

import java.util.Scanner;
public class p{
public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num1 =　sc.nextInt();
        int num2 =　sc.nextInt();
        int num3 = num1 % 2;
        int num4 = num2 % 2;
        if(num1 == 0 || num3 != 0 ){
        System.out.println("IMPOSSIBLE");
        }
        if(num2 == 0 || num4 != 0 ){
        System.out.println("IMPOSSIBLE");
        }  
        int k = (num1 + num2) / 2;
        System.out.println(k);
  
}
}

Compiler output:
Main.java:5: error: illegal character: '\u3000'
        int num1 =?sc.nextInt();
                  ^
Main.java:6: error: illegal character: '\u3000'
        int num2 =?sc.nextInt();
                  ^
2 errors
Language: Java

import java.util.Scanner;

public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num1 =　sc.nextInt();
        int num2 =　sc.nextInt();
        int num3 = num1 % 2;
        int num4 = num2 % 2;
        if(num1 == 0 || num3 != 0 ){
        System.out.println("IMPOSSIBLE");
        }
        if(num2 == 0 || num4 != 0 ){
        System.out.println("IMPOSSIBLE");
        }  
        int k = (num1 + num2) / 2;
        System.out.println(k);
  
}

Compiler output:
Main.java:5: error: illegal character: '\u3000'
        int num1 =?sc.nextInt();
                  ^
Main.java:6: error: illegal character: '\u3000'
        int num2 =?sc.nextInt();
                  ^
Main.java:3: 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)
3 errors
Language: Java

class Main() {
  
public static void Main(String args[]){
  long a = Long.parseLong(args[0]);
  long b = Long.parseLong(args[1]);
  
  if((b+a)%2==1){
    System.out.print("IMPOSSIBLE");
  }else{
    System.out.print((b+a)/2);
  }
}

}

Compiler output:
Main.java:1: error: '{' expected
class Main() {
          ^
1 error
Language: C++

#include <stdio>

using namespace std;

int find_k(int a, int b);

int main()
{
  int num1 = 0;
  int num2 = 0;
  
  stdin >> num1;
  stdin >> num2;
  
  int num_k = find_k(num1, num2);
  
  return 0;
}

int find_k(int a, int b)
{
  int k = 0;
  
  k = ((a * a) - (b * b))/ (2 * (a - b));
  
  return k;
}

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

raw_input = input().split()
[a,b] = [int(x) for x in raw_input]
if a == b:
    print(0)
else:
    k = (a+b)/2
    if k == int(k):
        print(int(k))
    else:
        print("IMPOSSIBLE")


Compiler output:
a.cc:1:1: error: 'raw_input' does not name a type
    1 | raw_input = input().split()
      | ^~~~~~~~~
Language: C++

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

  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:17:1: error: extended character 　 is not valid in an identifier
   17 | 　　
      | ^
a.cc:17:1: error: extended character 　 is not valid in an identifier
a.cc:17:1: error: '\U00003000\U00003000' does not name a type
   17 | 　　
      | ^~~~
Language: C++

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

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

	s = (a+b)/2.0;

if(s % 2 == 0.0){
  cout<< s <<endl;
}else{
    cout<< "IMPOSSIBLE"<<endl;
}
  return 0;
}
  

　　
    



Compiler output:
a.cc:20:1: error: extended character 　 is not valid in an identifier
   20 | 　　
      | ^
a.cc:20:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:11:6: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 | if(s % 2 == 0.0){
      |    ~ ^ ~
      |    |   |
      |    |   int
      |    double
a.cc: At global scope:
a.cc:20:1: error: '\U00003000\U00003000' does not name a type
   20 | 　　
      | ^~~~
Language: C++

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

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

	s = (a+b)/2.0;

if(s % 2.0 == 0){
  cout<< s <<endl;
}else{
    cout<< "IMPOSSIBLE"<<endl;
}
  return 0;
}
  

　　
    



Compiler output:
a.cc:20:1: error: extended character 　 is not valid in an identifier
   20 | 　　
      | ^
a.cc:20:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:11:6: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   11 | if(s % 2.0 == 0){
      |    ~ ^ ~~~
      |    |   |
      |    |   double
      |    double
a.cc: At global scope:
a.cc:20:1: error: '\U00003000\U00003000' does not name a type
   20 | 　　
      | ^~~~
Language: C++

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

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

	s = (a+b)/2.0;

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

　　
    



Compiler output:
a.cc:20:1: error: extended character 　 is not valid in an identifier
   20 | 　　
      | ^
a.cc:20:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:11:6: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 | if(s % 2 == 0){
      |    ~ ^ ~
      |    |   |
      |    |   int
      |    double
a.cc: At global scope:
a.cc:20:1: error: '\U00003000\U00003000' does not name a type
   20 | 　　
      | ^~~~
Language: C++

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

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

	s = (a+b)/2.0;

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

　　
    



Compiler output:
a.cc:20:1: error: extended character 　 is not valid in an identifier
   20 | 　　
      | ^
a.cc:20:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:11:6: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 | if(s % 2 = 0){
      |    ~ ^ ~
      |    |   |
      |    |   int
      |    double
a.cc: At global scope:
a.cc:20:1: error: '\U00003000\U00003000' does not name a type
   20 | 　　
      | ^~~~
Language: C++

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

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

	s = (a+b)/2;

if(abs(a-s) == abs(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 | 　　
      | ^~~~