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

#include<bits/stdc++.h>
using namespace std;
//#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())
#define fi first
#define se second
#define co(a) cout<<a<<endl
#define sz size()
#define bgn begin()
#define en end()
#define pb(a) push_back(a)
#define pop pop_back
#define V vector
#define P pair
#define V2(a,b,c) V<V<int>> a(b,V<int>(c))
#define V2a(a,b,c,d) V<V<int>> a(b,V<int>(c,d))
#define incin(a) int a; cin>>a
//#define min min<int>
//#define max max<int>
template<class T>
 void cou(vector<vector<T>> a){
  int b=a.size();
  int c=a[0].size();
  fo(i,b){
    fo(j,c){
      cout<<a[i][j];
      if(j==c-1)
        cout<<endl;
      else
        cout<<' ';
    }
  }
}
/*template<>
 void cou(vector<vector<char>> a){
  int b=a.size();
  int c=a[0].size();
  fo(i,b){
    fo(j,c){
      cout<<a[i][j];
      if(j==c-1)
        cout<<endl;
      else
        cout<<' ';
    }
  }
}*/
 int wari(int a,int b) {
   if(a%b==0)
     return a/b;
   else
     return a/b+1;
 }
 int keta(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
 }
 int souwa(int a){
  return a*(a+1)/2;
 }
 int lcm(int a,int b){
  int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return d*e/f;
    }
  int gcm(int a,int b){
      int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return f;
  }
 bool prime(int a){
   if(a<2)
     return false;
   else if(a==2)
     return true;
   else if(a%2==0)
     return false;
   double b=sqrt(a);
    for(int i=3;i<=b;i+=2){
      if(a%i==0){
        return false;
      }
    }
   return true;
 }
struct Union{
  vector<int> par;
  Union(int n){
	par= vector<int>(n, -1);
  }
  int find(int x){
    if(par[x]<0)
      return x;
    else
      return par[x]=find(par[x]);
  }
  bool same(int a,int b){
    return find(a)==find(b);
  }
  int Size(int a){
    return -par[find(a)];
  }
  void unite(int a,int b){
    a=find(a);
    b=find(b);
    if(a==b)
      return;
    if(Size(b)>Size(a))
      swap<int>(a,b);
    par[a]+=par[b];
    par[b]=a;
  }
};
int ketas(int a){
  string b=to_string(a);
  int c=0;
  fo(i,keta(a)){
    c+=b[i]-'0';
  }
  return c;
}
/*struct aa{
	vector<int> gt;
  aa(int n){
	gt= vector<int>(n, 1);
  }
	void c(V<int> d,int b){
	if(d[b]==0){
		gt[d[b]-1]++;
		gt[gt.sz-1]++;
	}
	else{
		gt[d[b]-1]++;
		c(d,d[d[b]]-1);
	}
}
void cok(int a){
	cout<<gt[a-1]<<endl;
	fo(i,a-1)
	cout<<gt[i]<<endl;
}
};
*/
signed main(){
	int a,b,c,d;
	cin>>a>>b>>c>>d;
	cout<<min(a,b)+min(c,d)<<endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:177:39: error: expected '}' at end of input
  177 |         cout<<min(a,b)+min(c,d)<<endl;
      |                                       ^
a.cc:174:14: note: to match this '{'
  174 | signed main(){
      |              ^
Language: C++

#include <iostream>
#include <iomanip>
#include <vector>
#include <cmath>
#include <algorithm>
#include <iomanip>
#include <cstring>
#define rep(i, N) for (int i = 0; i < (int)N; i++)
using namespace std;
typedef long long ll;
const ll LLINF = 9223372036854775807;
const int MOD = 1000000007;

int main() {
  int A, B, C, D; cin >> A >> B >> C >> D;
  int result = min(A,B) + min(C,D)
  cout << result << endl;
  return 0;
}

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

#include <stdio.h>

int main(void){
  
  int a;
  int b;
  int c;
  int d;
  
  scanf("%d %d %d %d",&a,&b,&c,&d);
  
  if(a <= b){
    if(c <= d){
      printf("%d",a + c);
    }
    else{
      printf("%d",a + d);
    }
  }
  else{
    if(c <= d){
      printf("%d",b + c);
    }
    else{
      printf("%d",b + d);
    }
  }
  
  return 0;
}
   
  
  return 0;
}
  


Compiler output:
main.c:33:3: error: expected identifier or '(' before 'return'
   33 |   return 0;
      |   ^~~~~~
main.c:34:1: error: expected identifier or '(' before '}' token
   34 | }
      | ^
Language: C++

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

int main() {
    int A, B, C, D;
    cin >> A >> B >> C >> D;
    cout << max({A+c, A+D, B+C, B+D}) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: 'c' was not declared in this scope
   10 |     cout << max({A+c, A+D, B+C, B+D}) << endl;
      |                    ^
a.cc:10:16: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   10 |     cout << max({A+c, A+D, B+C, B+D}) << endl;
      |             ~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main ()
{
    int a,b,c,d;
    cin >> a >> b >> c >> d;
  	a = min(a,b);
    c = min(c,d);
    cout<a+c<<endl;
    return 0;
}
/*
*/





Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |     cout<a+c<<endl;
      |          ~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int A, B, C, D;
  cin >> A >> B >> C >> D;
  int m == min (A, B);
  int M == min (C, D);
  cout << m + M << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before '==' token
    6 |   int m == min (A, B);
      |         ^~
a.cc:7:9: error: expected initializer before '==' token
    7 |   int M == min (C, D);
      |         ^~
a.cc:8:11: error: 'm' was not declared in this scope
    8 |   cout << m + M << endl;
      |           ^
a.cc:8:15: error: 'M' was not declared in this scope
    8 |   cout << m + M << endl;
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int A, B, C, D;
  cin >> A >> B >> C >> D;
  m == min (A, B);
  M == min (C, D);
  cout << m + M << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'm' was not declared in this scope
    6 |   m == min (A, B);
      |   ^
a.cc:7:3: error: 'M' was not declared in this scope
    7 |   M == min (C, D);
      |   ^
Language: C

#include <stdio.h>

int main(int argc, char *argv[]) {
	int N, A;
	
	scanf("%d %d", &N, &A);
	if(N == 0 && A == 0) break;
	
	while(N > 500) {
		N -= 500;
	}
	if(N <= A) {
		printf("Yes¥n");
	} else {
		printf("No¥n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:30: error: break statement not within loop or switch
    7 |         if(N == 0 && A == 0) break;
      |                              ^~~~~
Language: C

#include <stdio.h>

int main(int argc, char *argv[]) {
	int N, A;
	
	scanf("%d %d", &N, &A);
	if(N == 0 && A == 0) break;
	
	while(N > 500) {
		N -= 500;
	}
	if(N <= A) {
		printf("Yes\n");
	} else {
		printf("No\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:30: error: break statement not within loop or switch
    7 |         if(N == 0 && A == 0) break;
      |                              ^~~~~
Language: C

#include <stdio.h>

int main(int argc, char *argv[]) {
	int N, A;
	
	scanf("%d %d", &N, &A);
	if(N == 0 && A == 0) break;
	
	while(N > 500) {
		N -= 500;
	}
	if(N <= A) {
		printf("Yes");
	} else {
		printf("No");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:30: error: break statement not within loop or switch
    7 |         if(N == 0 && A == 0) break;
      |                              ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,b,c,d,e,f;
  cin>>a>>b>>c>>d;
  if(a<b){
    e=a;
  }else{
    e=b:
  }
  if(c<d){
    f=c;
  }else{
    f=d;
  }
  cout<<e+f<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected ';' before ':' token
   10 |     e=b:
      |        ^
      |        ;
Language: C++

#include <bits/stdc++.h>
#define rep(i,a,n)  for (int i=(int)(a); i<=(int)(n); ++i)
#define rrep(i,a,n) for (int i=(int)(a); i>=(int)(n); --i)
#define debug(x) cerr << #x << " = " << x << "\n"
#define debugv(x) rep(i, x.size()) cerr << x[i] << (i == x.size() - 1 ? "\n" : " ")
#define all(x) x.begin(),x.end()
#define int long long
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int INF = ((1LL << 30) + (1LL << 29));
const int MOD = 1000000007;

//=============================
int N,M,K;

string S,T;
int A,B,C,D;
//=============================
void input()
{
    cIN>>A>>B>>C>>D;

}
//=============================
void func(){}
//=============================
void solve()
{
    cout<<min(A,B)+min(C,D)<<endl;

}
//=============================
signed main()
{
    input();
    solve();
    return 0;
}

Compiler output:
a.cc: In function 'void input()':
a.cc:22:5: error: 'cIN' was not declared in this scope
   22 |     cIN>>A>>B>>C>>D;
      |     ^~~
Language: C++

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

int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  cout << min(a, b) + mon(c, d) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: 'mon' was not declared in this scope
    7 |   cout << min(a, b) + mon(c, d) << endl;
      |                       ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a ,b,c,d;
  cin>>a>>b>>c>>d;
  cout<<min(a,b)+min(c,d)<<endl;}
}

Compiler output:
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define INF 999999999
#define rep(i, n) for(int i = 0;i < n;i++)
#define pb(n) push_back(n)
#define Sort(n) sort(n.begin(), n.end())
#define Rev(n) reverse(n.begin(),n.end())
#define Out(S) cout << S << endl
#define Vecpr vector<pair<lli,lli>>
int main() {
  lii A,B,C,D;
  cin >>A>>B>>C>>D;
  Out(min(A,B)+min(C,D));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'lii' was not declared in this scope; did you mean 'lli'?
   12 |   lii A,B,C,D;
      |   ^~~
      |   lli
a.cc:13:9: error: 'A' was not declared in this scope
   13 |   cin >>A>>B>>C>>D;
      |         ^
a.cc:13:12: error: 'B' was not declared in this scope
   13 |   cin >>A>>B>>C>>D;
      |            ^
a.cc:13:15: error: 'C' was not declared in this scope
   13 |   cin >>A>>B>>C>>D;
      |               ^
a.cc:13:18: error: 'D' was not declared in this scope
   13 |   cin >>A>>B>>C>>D;
      |                  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,d;
  cin>>a>>b>>c>>d;
 int n =min(a,b)+min(c,d)
   cout << n << endl;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,d;
  cin>>a>>b>>c>>d;
  vector<int>v(4);
  v={a,b,c,d};
  sort(v.begin(),v.end());
  int n = at.v(0)+at.v(1);
  cout << n <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'at' was not declared in this scope; did you mean 'a'?
    9 |   int n = at.v(0)+at.v(1);
      |           ^~
      |           a
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,d;
  cin>>a>>b>>c>>d;
  vector<int>v(4);
  v={a,b,c,d};
  sort(v.begin(),v.end());
  int n = a.v(0)+a.v(1);
  cout << n <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: request for member 'v' in 'a', which is of non-class type 'int'
    9 |   int n = a.v(0)+a.v(1);
      |             ^
a.cc:9:20: error: request for member 'v' in 'a', which is of non-class type 'int'
    9 |   int n = a.v(0)+a.v(1);
      |                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,d;
  cin>>a>>b>>c>>d;
  int v[3];
  v={a,b,c,d}
  sort(v,v+4);
  int n = v[0]+v[1];
  cout << n <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: assigning to an array from an initializer list
    7 |   v={a,b,c,d}
      |   ~^~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,d;
  cin>>a>>b>>c>>d;
  int v[3]={a,b,c,d};
  sort(v,v+4);
  cout << v[0]+v[1] <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: too many initializers for 'int [3]'
    6 |   int v[3]={a,b,c,d};
      |                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,d;
  cin>>a>>b>>c>>d;
  int v[3]={a,b,c,d};
  sort(v,v+4);
  cout << v.at(0)+v.at(1) <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: too many initializers for 'int [3]'
    6 |   int v[3]={a,b,c,d};
      |                    ^
a.cc:8:13: error: request for member 'at' in 'v', which is of non-class type 'int [3]'
    8 |   cout << v.at(0)+v.at(1) <<endl;
      |             ^~
a.cc:8:21: error: request for member 'at' in 'v', which is of non-class type 'int [3]'
    8 |   cout << v.at(0)+v.at(1) <<endl;
      |                     ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,d;
  cin>>a>>b>>c>>d;
  int v={a,b,c,d};
  sort(v,v+4);
  cout << v.at(0)+v.at(1) <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: scalar object 'v' requires one element in initializer
    6 |   int v={a,b,c,d};
      |       ^
Language: C++

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

using ll = long long int;

const int MAX = (int)(1e5 + 5);
const ll INF = (ll)(1e10 + 5);

int a, b, c, d;

int main(void) {
  // Here your code !
  scanf("%d %d %d %d",&a, &b, &c, &d);

  printf("%d\n", min(a, b) + min(c, d))
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:40: error: expected ';' before 'return'
   15 |   printf("%d\n", min(a, b) + min(c, d))
      |                                        ^
      |                                        ;
   16 | 
   17 |   return 0;
      |   ~~~~~~
Language: C++

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

int main() {
  int a;
  int b;
  int c;
  int d;
  
  cin >> a >> b >> c >> d;
  
  if (a + c < a + d && a + c < b + c && a + c < b + d) {
    cout << a + c << endl;
  }
  else if ( a + d < a + c && a + d < b + c && a + d < b + d) {
    cout << a + d << endl;
  }
  else if (b + c < a + c && b + c < a + d && b + c < b + d) {
    cout << b + c << endl;
  }
  else if (b + d < a + c && b + d < a + d && b + d < b + c) {
    cout << b + d << endl;
  }
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'cin' was not declared in this scope
   10 |   cin >> a >> b >> c >> d;
      |   ^~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << a + c << endl;
      |     ^~~~
a.cc:13:22: error: 'endl' was not declared in this scope
   13 |     cout << a + c << endl;
      |                      ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout << a + d << endl;
      |     ^~~~
a.cc:16:22: error: 'endl' was not declared in this scope
   16 |     cout << a + d << endl;
      |                      ^~~~
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout << b + c << endl;
      |     ^~~~
a.cc:19:22: error: 'endl' was not declared in this scope
   19 |     cout << b + c << endl;
      |                      ^~~~
a.cc:22:5: error: 'cout' was not declared in this scope
   22 |     cout << b + d << endl;
      |     ^~~~
a.cc:22:22: error: 'endl' was not declared in this scope
   22 |     cout << b + d << endl;
      |                      ^~~~
Language: C++

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

int main() {
  int a;
  int b;
  int c;
  int d;
  
  cin >> a >> b >> c >> d;
  
  if (a + c < a + d && a + c < b + c && a + c < b + d) {
    cout << a + c;
  }
  else if ( a + d < a + c && a + d < b + c && a + d < b + d) {
    cout << a + d;
  }
  else if (b + c < a + c && b + c < a + d && b + c < b + d) {
    cout << a + d;
  }
  else if (b + d < a + c && b + d < a + d && b + d < b + c) {
    cout << a + d;
  }
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'cin' was not declared in this scope
   10 |   cin >> a >> b >> c >> d;
      |   ^~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << a + c;
      |     ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout << a + d;
      |     ^~~~
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout << a + d;
      |     ^~~~
a.cc:22:5: error: 'cout' was not declared in this scope
   22 |     cout << a + d;
      |     ^~~~
Language: C++

#include<algorithm>
#include<iostream>

using namespace std;

int main(){
cin>>a>>b>>c>>d;
  cout<<min(a,b)+min(c,d);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'a' was not declared in this scope
    7 | cin>>a>>b>>c>>d;
      |      ^
a.cc:7:9: error: 'b' was not declared in this scope
    7 | cin>>a>>b>>c>>d;
      |         ^
a.cc:7:12: error: 'c' was not declared in this scope
    7 | cin>>a>>b>>c>>d;
      |            ^
a.cc:7:15: error: 'd' was not declared in this scope
    7 | cin>>a>>b>>c>>d;
      |               ^
Language: Java

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

int main() {
    int A, B, C, D;
    cin >> A >> B >> C >> D;
    cout << min(A, B) + min(C, D) << endl; 
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:6: error: not a statement
    cin >> A >> B >> C >> D;
                       ^
Main.java:7: error: not a statement
    cout << min(A, B) + min(C, D) << endl; 
                                  ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: C++

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

int main()
{
	int a,b,c,d;
	cin>>a>>b>>c>>d;
  	cout<<((a>b)?b:a)+(c>d?d:c))<<endl;
  	return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:36: error: expected ';' before ')' token
    8 |         cout<<((a>b)?b:a)+(c>d?d:c))<<endl;
      |                                    ^
      |                                    ;
Language: C++

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

int main() {
  int A, B, C, D;
  cin >> A >> B >> C >> D;
  Pt = min(A, B);
  Pb = min(C, D);
  cout << Pt + Pb << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'Pt' was not declared in this scope
    7 |   Pt = min(A, B);
      |   ^~
a.cc:8:3: error: 'Pb' was not declared in this scope
    8 |   Pb = min(C, D);
      |   ^~
Language: C++

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

int main() {
  int A, B, C, D;
  cin >> A >> B >> C >> D;
  T = min(A, B);
  B = min(C, D);
  cout << T + B << endl;
}

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

#include<iostream>
usign namespace std;


int main(){

  int A,B,C,D;
  cin >> A >> B >> C >> D;
  
  int ans =0;
  
  ans+= (A>B ? B : A);
  ans+= (C>D ? C : D );
  cout << ans;
  
  
}

Compiler output:
a.cc:2:1: error: 'usign' does not name a type
    2 | usign namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> A >> B >> C >> D;
      |   ^~~
      |   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:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout << ans;
      |   ^~~~
      |   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 <algorithm>

using namespace std;

int main(){
    int A, B, C, D;
    cin >> A >> B >> C >> D;

    cout << mix(A, B) + min(C, D) << endl;
}

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

#include<iostream>
#include <algorithm>

using namespace std;

int main(){
    A, B, C, D;
    cin >> A >> B >> C >> D;

    cout << mix(A, B) + min(C, D) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'A' was not declared in this scope
    7 |     A, B, C, D;
      |     ^
a.cc:7:8: error: 'B' was not declared in this scope
    7 |     A, B, C, D;
      |        ^
a.cc:7:11: error: 'C' was not declared in this scope
    7 |     A, B, C, D;
      |           ^
a.cc:7:14: error: 'D' was not declared in this scope
    7 |     A, B, C, D;
      |              ^
a.cc:10:13: error: 'mix' was not declared in this scope
   10 |     cout << mix(A, B) + min(C, D) << endl;
      |             ^~~
Language: C++

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

int main() {
  int A,B,C,D,X;
  cin >> A >> B >> C >> D;
  x = 0;
  if(A <= B)
    X += A;
  else
    X += B;
  if(C <= D)
    X += C;
  else
    X += D;
  
  cout << X << endl;

}

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

using namespace std;
int main(){
    int A, B, C, D;
    cin >> A;
    cin >> B;
    cin >> C;
    cin >> D;
    int ans = min(A,B) + min(C,D);
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> A;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:8:15: error: 'min' was not declared in this scope; did you mean 'main'?
    8 |     int ans = min(A,B) + min(C,D);
      |               ^~~
      |               main
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << ans << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:20: error: 'endl' was not declared in this scope
    9 |     cout << ans << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include<iostream>
#invlude<algorithm>
using namespace std;
int a, b, c, d;
int main(){
  cin >> a >> b >> c >> d;
  int ret = 0;
  ret += min(a, b);
  ret += min(c, d);
  
    cout << ret << endl;
  return 0;
  }


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #invlude; did you mean #include?
    2 | #invlude<algorithm>
      |  ^~~~~~~
      |  include
Language: C++

A = int(input())
B = int(input())
C = int(input())
D = int(input())

print(A,B,C,D)

if A <= B:
    train = A
else:
    train = B

if C <= D:
    bus = C
else:
    bus = D

total = train + bus
print(total)


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

#include <bits/stdc++.h>
using namespace std;
int main() {
int A,B,C,D;
cin>>A>>B>>C>>D;
Min1=min(A,B);
Min2=min(C,D);
cout<<Min1+Min2<<endl;
  }
               
            
     




Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'Min1' was not declared in this scope
    6 | Min1=min(A,B);
      | ^~~~
a.cc:7:1: error: 'Min2' was not declared in this scope
    7 | Min2=min(C,D);
      | ^~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
using namespace std;
using ll = long long;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int a, b, c, d;
  cin >> a cin >> b cin >> c cin >> d;
  cout << min(a, b) + min(c, d) << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected ';' before 'cin'
   10 |   cin >> a cin >> b cin >> c cin >> d;
      |           ^~~~
      |           ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,d;
  cin a>>b>>c>>d;
  cout<<min(a,b)+min(c,d)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'a'
    5 |   cin a>>b>>c>>d;
      |      ^~
      |      ;
Language: C++

#include <iostream>
using namespace std;
#include <cstdlib>
#include <algorithm>

int main() {
	int A, B, C, D;
	cin >> A >> B >> C >> D;
	int sum;
	
	int AB = min(A, B);
	int CD = min(C, D);
	sum AB + CD;
	
	cout << sum;
	

	cout << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: expected ';' before 'AB'
   13 |         sum AB + CD;
      |            ^~~
      |            ;
Language: C++

#include <iostream>
using namespace std;
#include <cstdlib>
#include <algorithm>

int main() {
	int A, B, C, D;
	cin A >> B >> C >> D;
	int sum;
	
	int AB = min(A, B);
	int CD = min(C, D);
	sum = AB + CD;
	
	cout << sum;
	

	cout << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'A'
    8 |         cin A >> B >> C >> D;
      |            ^~
      |            ;
Language: C++

#include <iostream>
using namespace std;
#include <cstdlib>
#include <algorithm>

int main() {
	int A, B, C, D;
	cin A >> B >> C >> D;
	int sum;
	
	int AB = min(A, B);
	int CD = min(C, D);
	sum AB + CD;
	
	cout << sum;
	

	cout << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'A'
    8 |         cin A >> B >> C >> D;
      |            ^~
      |            ;
a.cc:13:12: error: expected ';' before 'AB'
   13 |         sum AB + CD;
      |            ^~~
      |            ;
Language: C++

#include<iostream>
using namespace std;

int main(){
  int a,b,c,d;
  
  cin>>a>>b>>c>>d;
  cout<<min([a,b])+min([c,d])<<endl;
  
  return 0;
}

Compiler output:
a.cc: In lambda function:
a.cc:8:18: error: expected '{' before ')' token
    8 |   cout<<min([a,b])+min([c,d])<<endl;
      |                  ^
a.cc: In function 'int main()':
a.cc:8:12: error: no matching function for call to 'min(main()::<lambda()>)'
    8 |   cout<<min([a,b])+min([c,d])<<endl;
      |         ~~~^~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
a.cc: In lambda function:
a.cc:8:29: error: expected '{' before ')' token
    8 |   cout<<min([a,b])+min([c,d])<<endl;
      |                             ^
a.cc: In function 'int main()':
a.cc:8:23: error: no matching function for call to 'min(main()::<lambda()>)'
    8 |   cout<<min([a,b])+min([c,d])<<endl;
      |                    ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long unsigned int ll;
 
int main() {
 
  int a,b,c,d;
  cin >> a;
  cin >>b;
  cin >>c;
  cin >>d;
  
  if(a>b)a=b;
  if(c>d)c=d
  
  cout << a+c <<endl;
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: expected ';' before 'cout'
   16 |   if(c>d)c=d
      |             ^
      |             ;
   17 | 
   18 |   cout << a+c <<endl;
      |   ~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include<vector>
#include <queue>

int main()
{
	int a, b, c, d; std:cin >> a >> b >> c >> d; std:cout << min(a, b) + min(c, d) << std : endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         int a, b, c, d; std:cin >> a >> b >> c >> d; std:cout << min(a, b) + min(c, d) << std : endl;
      |                             ^~~
      |                             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:54: error: duplicate label 'std'
    8 |         int a, b, c, d; std:cin >> a >> b >> c >> d; std:cout << min(a, b) + min(c, d) << std : endl;
      |                                                      ^~~
a.cc:8:58: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         int a, b, c, d; std:cin >> a >> b >> c >> d; std:cout << min(a, b) + min(c, d) << std : endl;
      |                                                          ^~~~
      |                                                          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:66: error: 'min' was not declared in this scope; did you mean 'std::min'?
    8 |         int a, b, c, d; std:cin >> a >> b >> c >> d; std:cout << min(a, b) + min(c, d) << std : endl;
      |                                                                  ^~~
      |                                                                  std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:8:95: error: found ':' in nested-name-specifier, expected '::'
    8 |         int a, b, c, d; std:cin >> a >> b >> c >> d; std:cout << min(a, b) + min(c, d) << std : endl;
      |                                                                                               ^
      |                                                                                               ::
Language: C++

#include <iostream>
using namespace std;

int min(int a, int b){
    if(a>=b){
        return b;
    }else{
        return a;
    }
}

int main (){
    int a, b, c, d;
    cin a >> b >> c >>d;
    cout << min(a,b)+min(c,d);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: expected ';' before 'a'
   14 |     cin a >> b >> c >>d;
      |        ^~
      |        ;
Language: C++

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

int main(){
    int a, b, c, d;
  cin >> a >> b >> c >> d;
  if (a < b && c < d) {
    cout << a + c << endl;
  }
  else if (a > b && c < d) {
    cout << b + c << endl;
  }
  else if (a < b && c > d) {
    cout << a + d << endl;
  }
  else if (a > b && c > d) {
    cout << b + d << endl;
  }
  else if (a == b && c < d) {
    cout << a + c << endl;
  }
  else if (a == b && c > d) {
    cout << a + d << endl;
  }
  else if (a < b && c == d) {
    cout << a + c << endl;
  }
  else if (a > b && c == d) {
    cout << b + c << endl;
  }
  else {
    cout << a + c << endl;
  }
  }
}


Compiler output:
a.cc:35:1: error: expected declaration before '}' token
   35 | }
      | ^
Language: Java

import java.util.*;
import java.io.*;
public class Main{
  public static void main(String[] args){
    BufferedReader bf = new BufferedReader(new ImputStreamReader(System.in));
    try{
      int a = Integer.parseInt(bf.nextLine());
      int b = Integer.parseInt(bf.nextLine());
      int c = Integer.parseInt(bf.nextLine());
      int d = Integer.parseInt(bf.nextLine());
    }catch(Exception e){
      
    }
    
    System.out.println(Math.min(a, b) + Math.min(c, d));
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    BufferedReader bf = new BufferedReader(new ImputStreamReader(System.in));
                                               ^
  symbol:   class ImputStreamReader
  location: class Main
Main.java:7: error: cannot find symbol
      int a = Integer.parseInt(bf.nextLine());
                                 ^
  symbol:   method nextLine()
  location: variable bf of type BufferedReader
Main.java:8: error: cannot find symbol
      int b = Integer.parseInt(bf.nextLine());
                                 ^
  symbol:   method nextLine()
  location: variable bf of type BufferedReader
Main.java:9: error: cannot find symbol
      int c = Integer.parseInt(bf.nextLine());
                                 ^
  symbol:   method nextLine()
  location: variable bf of type BufferedReader
Main.java:10: error: cannot find symbol
      int d = Integer.parseInt(bf.nextLine());
                                 ^
  symbol:   method nextLine()
  location: variable bf of type BufferedReader
Main.java:15: error: cannot find symbol
    System.out.println(Math.min(a, b) + Math.min(c, d));
                                ^
  symbol:   variable a
  location: class Main
Main.java:15: error: cannot find symbol
    System.out.println(Math.min(a, b) + Math.min(c, d));
                                   ^
  symbol:   variable b
  location: class Main
Main.java:15: error: cannot find symbol
    System.out.println(Math.min(a, b) + Math.min(c, d));
                                                 ^
  symbol:   variable c
  location: class Main
Main.java:15: error: cannot find symbol
    System.out.println(Math.min(a, b) + Math.min(c, d));
                                                    ^
  symbol:   variable d
  location: class Main
9 errors
Language: Java

import java.util.*;
import java.io.*;
public class Main{
  public static void main(String[] args){
    BufferedReader bf = new BufferedReader(new ImputStreamReader(System.in));
    int a = Integer.parseInt(bf.nextLine());
    int b = Integer.parseInt(bf.nextLine());
    int c = Integer.parseInt(bf.nextLine());
    int d = Integer.parseInt(bf.nextLine());
    
    System.out.println(Math.min(a, b) + Math.min(c, d));
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    BufferedReader bf = new BufferedReader(new ImputStreamReader(System.in));
                                               ^
  symbol:   class ImputStreamReader
  location: class Main
Main.java:6: error: cannot find symbol
    int a = Integer.parseInt(bf.nextLine());
                               ^
  symbol:   method nextLine()
  location: variable bf of type BufferedReader
Main.java:7: error: cannot find symbol
    int b = Integer.parseInt(bf.nextLine());
                               ^
  symbol:   method nextLine()
  location: variable bf of type BufferedReader
Main.java:8: error: cannot find symbol
    int c = Integer.parseInt(bf.nextLine());
                               ^
  symbol:   method nextLine()
  location: variable bf of type BufferedReader
Main.java:9: error: cannot find symbol
    int d = Integer.parseInt(bf.nextLine());
                               ^
  symbol:   method nextLine()
  location: variable bf of type BufferedReader
5 errors
Language: C++

int main() {
	int a[4];
	for (int i = 0; i < 4; i++) {
		std::cin >> a[i];
	}

	
	for (int j = 0; j < 4; j++) {
		int temp = 0;
		for (int i = 1; i < 4; i++)
		{
			if (a[i] <= a[i - 1]) {
				temp = a[i];
				a[i] = a[i - 1];
				a[i - 1] = temp;
			}
		}
	}
	std::cout << a[0] + a[1] << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:22: error: 'cin' is not a member of 'std'
    4 |                 std::cin >> a[i];
      |                      ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main() {
a.cc:19:14: error: 'cout' is not a member of 'std'
   19 |         std::cout << a[0] + a[1] << std::endl;
      |              ^~~~
a.cc:19:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:42: error: 'endl' is not a member of 'std'
   19 |         std::cout << a[0] + a[1] << std::endl;
      |                                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main() {
Language: C

int min(int a, int b){return a>b?b:a;}
int a, b, c, d;
int main(){
  scanf("%d%d%d%d", &a, &b, &c, %d);
  printf("%d\n", min(a,b)+min(c,d));
}


Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d%d%d%d", &a, &b, &c, %d);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int min(int a, int b){return a>b?b:a;}
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d%d%d%d", &a, &b, &c, %d);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:33: error: expected expression before '%' token
    4 |   scanf("%d%d%d%d", &a, &b, &c, %d);
      |                                 ^
main.c:5:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   printf("%d\n", min(a,b)+min(c,d));
      |   ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<iostream>
int main() {
    int i,A,B,C,D;
    std::cin >> A >> B >> C >> D;
    std::cout << min(A,B)+min(C,D);
  return 0;
}


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

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

Compiler output:
main.c: In function 'main':
main.c:9:8: error: expected expression before '>' token
    9 |   if(a=>b){yasui1==b;}
      |        ^
main.c:11:10: error: expected expression before '>' token
   11 |     if(c=>d){yasui2==d;}
      |          ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:8: error: expected expression before '>' token
    9 |   if(a=>b){yasui1==b}
      |        ^
main.c:9:21: error: expected ';' before '}' token
    9 |   if(a=>b){yasui1==b}
      |                     ^
      |                     ;
main.c:10:25: error: expected ';' before '}' token
   10 |   else if(b>a){yasui1==a}
      |                         ^
      |                         ;
main.c:11:10: error: expected expression before '>' token
   11 |     if(c=>d){yasui2==d}
      |          ^
main.c:11:23: error: expected ';' before '}' token
   11 |     if(c=>d){yasui2==d}
      |                       ^
      |                       ;
main.c:12:25: error: expected ';' before '}' token
   12 |   else if(d>c){yasui2==c}
      |                         ^
      |                         ;
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a, b, c, d;
  
  cin >> a >> b >> c >> d;
  
  int min = a + c;
  if(min > b + d){
    cout <<　min << endl;
  } else {
    cout << b + d << endl;
  }
  
 return 0;
}


Compiler output:
a.cc:10:12: error: extended character 　 is not valid in an identifier
   10 |     cout <<　min << endl;
      |            ^
a.cc: In function 'int main()':
a.cc:10:12: error: '\U00003000min' was not declared in this scope
   10 |     cout <<　min << endl;
      |            ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a,b,c,d;
  cin a << b << c << d;
  if(a<=b&&c<=d)
    cout<<a+c<<endl;
  else if (a<=b&&c>d)
    cout<<a+d<<endl;
  else if(a>b&&c<=d)
    cout<<b+c<<endl;
  else
    cout<<b+d<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'a'
    5 |   cin a << b << c << d;
      |      ^~
      |      ;
Language: C++

import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a, b, c, d;
        a = Integer.parseInt(sc.next());
        b = Integer.parseInt(sc.next());
        c = Integer.parseInt(sc.next());
        d = Integer.parseInt(sc.next());

        int min_1 = Math.min(a, b);
        int min_2 = Math.min(c, d);

        System.out.println(min_1 + min_2);
    }
}


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:2:1: error: 'import' does not name a type
    2 | import java.io.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main {
      | ^~~~~~
Language: C++

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

int main(){
    int a,b,c,d;
    cin >> a>>b>>c>>d;
    cout << min({a,b})+min({c,d})
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:34: error: expected ';' before '}' token
    7 |     cout << min({a,b})+min({c,d})
      |                                  ^
      |                                  ;
    8 | }
      | ~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a,b,c,d;
    cin >> a>>b>>c>>d;
    cout << min({a,b})+min({c,d})
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
    7 |     cout << min({a,b})+min({c,d})
      |             ~~~^~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
a.cc:7:27: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
    7 |     cout << min({a,b})+min({c,d})
      |                        ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
Language: C

#include<stdio.h>

int main(void){
  int a,b,c,d;
  scanf("%d %d %d %d",&a,&b,&c,&d);
  
  if(a<=b){
    if(c<=d){
      printf("%d\n",a+c);
    }else{
      printf("%d\n",a+d);
    }
  }else{
    if(c<=d){
      printf("%d\n",b+c);
    }else{
      printf("%d\n",b+d);
    }
  }
  
  reutnr 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:3: error: 'reutnr' undeclared (first use in this function)
   21 |   reutnr 0;
      |   ^~~~~~
main.c:21:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:9: error: expected ';' before numeric constant
   21 |   reutnr 0;
      |         ^~
      |         ;