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

#include <iostream>
#include <vector>
#include <algorithm>
#include <utility>
#include <tuple>

using namespace std;

#define int long long

struct segtree {
    vector<int> dat;
    int n;

    segtree(int n_) {
        n = 1;

        while (n < n_) n *= 2;

        dat.resize(2*n, 0);
    }

    void update(int i, int x) {
        i += n - 1;
        int diff = x - dat[i];
        dat[i] = x;

        while (i > 0) {
            i = (i - 1) / 2;
            dat[i] += diff;
        }
    }

    int query(int a, int b, int k = 0, int l = 0, int r = -1) {
        if (r == -1) r = n;

        if (r <= a || l >= b) return 0;

        if (a <= l && r <= b) {
            return dat[k];
        }

        int lv = query(a, b, k * 2 + 1, l, (l + r) / 2);
        int rv = query(a, b, k * 2 + 2, (l + r) / 2, r);

        return lv + rv;
    }
};

int main()
{
    int N; cin >> N;
    vector<int> a(N), b(N);

    segtree P(N), Q(N);
    vector<tuple<int, int, int>> tmp;

    for (int i = 0; i < N; ++i) {
        cin >> a[i] >> b[i];
        tmp.push_back(make_tuple(a[i], i, b[i]));
    }

    sort(begin(a), end(a));
    sort(begin(tmp), end(tmp));

    vector<pair<int, int>> data;

    for (int i = 0; i < N; ++i) {
        int aaa, bbb, val;
        tie(aaa, bbb, val) = tmp[i];
        data.push_back(make_pair(val, i));
    }

    sort(begin(data), end(data));
    
    for (int i = 0; i < N; ++i) {
        P.update(i, a[i]);
        Q.update(i, 1);
    }

    int ma = 0;

    for (int i = 0; i < N; ++i) {
        pair<int, int> d = data[i];

        int l = 0, r = N-1;

        for (int j = 0; j < 20; ++j) {
            int mid = (l + r) / 2;
            int PP = P.query(0, mid + 1);
            int QQ = Q.query(0, mid + 1);
            double v = double(PP) / QQ;

            if (v <= d.first) {
                l = mid;
            } else {
                r = mid;
            }
        }

        ma = max(ma, Q.query(0, l+1));

        P.update(d.second, 0);
        Q.update(d.second, 0);
    }

    cout << ma << endl;
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#define int long long
using namespace std;

typedef pair<int,int> P;

int bit[100001][2],n;
vector<P> bug;

int sum(int i,int num){
	int s = 0;
	while(i > 0){
		s += bit[i][num];
		i -= i & -i;
	}
	return s;
}

void add(int i,int x,int num){
	while(i <= 100000){
		bit[i][num] += x;
		i += i & -i;
	}
}

bool C(int x,int ok){
	return sum(x,0) * ok >= sum(x,1);
}

int main(){
	int ma = 0;
	cin >> n;
	for(int i = 0;i < n;i++){
		int a,b;
		cin >> a >> b;
		bug.push_back(P(b,a));
	}
	sort(bug.begin(),bug.end(),greater<P>());
	for(int i = 0;i < n;i++){
		int ok = bug[i].first,foo = bug[i].second;
		add(foo,1,0);
		add(foo,foo,1);
		int low = 0,up = 100001;
		while(up - low > 1){
			int mid = (up + low) / 2;
			if(C(mid,ok)) low = mid;
			else up = mid;
		}
		int s = sum(low,0);
		if(low != 100000 && sum(low + 1,0) - sum(low,0) >= 2){
			int j = 1;
			for(;j < sum(low + 1,0) - sum(low,0);j++){
				if((sum(low,0) + j) * ok < sum(low,1) + j * (low + 1)) break;
			}
			s += j - 1;
		}
		ma = max(s,ma);
	}
	cout << ma << endl;
	return 0;
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#define int long long
using namespace std;

typedef pair<int,int> P;

int bit[100001][2],n;
vector<P> bug;

signed sum(int i,int num){
	int s = 0;
	while(i > 0){
		s += bit[i][num];
		i -= i & -i;
	}
	return s;
}

void add(int i,int x,int num){
	while(i <= 100000){
		bit[i][num] += x;
		i += i & -i;
	}
}

bool C(int x,int ok){
	return sum(x,0) * ok >= sum(x,1);
}

int main(){
	int ma = 0;
	cin >> n;
	for(int i = 0;i < n;i++){
		int a,b;
		cin >> a >> b;
		bug.push_back(P(b,a));
	}
	sort(bug.begin(),bug.end(),greater<P>());
	for(int i = 0;i < n;i++){
		int ok = bug[i].first,foo = bug[i].second;
		add(foo,1,0);
		add(foo,foo,1);
		int low = 0,up = 100001;
		while(up - low > 1){
			int mid = (up + low) / 2;
			if(C(mid,ok)) low = mid;
			else up = mid;
		}
		int s = sum(low,0);
		if(low != 100000 && sum(low + 1,0) - sum(low,0) >= 2){
			int j = 1;
			for(;j < sum(low + 1,0) - sum(low,0);j++){
				if((sum(low,0) + j) * ok < sum(low,1) + j * (low + 1)) break;
			}
			s += j - 1;
		}
		ma = max(s,ma);
	}
	cout << ma << endl;
	return 0;
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define repl(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define rep(i,n) repl(i,0,n)
#define mp(a,b) make_pair((a),(b))
#define pb(a) push_back((a))
#define all(x) (x).begin(),(x).end()
#define uniq(x) sort(all(x)),(x).erase(unique(all(x)),end(x))
#define fi first
#define se second
#define dbg(x) cout<<#x" = "<<((x))<<endl
template<class T,class U> ostream& operator<<(ostream& o, const pair<T,U> &p){o<<"("<<p.fi<<","<<p.se<<")";return o;}
template<class T> ostream& operator<<(ostream& o, const vector<T> &v){o<<"[";for(T t:v){o<<t<<",";}o<<"]";return o;}

#define INF 2147483600

int main(){
  int n;
  cin>>n;
  vector<pair<long, long>> vec(n);
  rep(i,n) cin>>vec[i].se >> vec[i].fi;

  sort(all(vec), greater<pair<long,long>>());

  int l=0, r=n+1;
  while(r-l>1){
    auto f = [&](int k){
      if(k==0) return true;
      // fi:b, se:a
      priority_queue<long> pq;
      long acc = 0;
      rep(i,k){
        pq.push(vec[i].se);
        acc += vec[i].se;
      }
      if(acc <= k*vec[k-1].fi) return true;
      repl(i,k,n){
        long mx = pq.top(); pq.pop();
        acc -= mx;
        pq.push(min(mx, vec[i].se));
        acc += min(mx, vec[i].se);

        if(acc <= k*vec[i].fi) return true;
      }
      return false;
    };

    if(f((r+l)/2)) l = k;
    else r = k;
  }

  cout << l << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:24: error: 'k' was not declared in this scope
   48 |     if(f((r+l)/2)) l = k;
      |                        ^
a.cc:49:14: error: 'k' was not declared in this scope
   49 |     else r = k;
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> Bug;
#define a second
#define b first
vector<Bug> bug;

int solve(int l,int r){
	if(l+1==r)return l;
	int k=(l+r)/2;
	ll sumA=0;
	priority_queue<int> pq;
	for(auto x:bug){
		sumA+=x.a;
		pq.push(x.a);
		if(pq.size()>k){
			sumA-=pq.top();
			pq.pop();
		}
		if(pq.size()==k && sumA<=(ll)k*x.b){
			return solve(k,r);
		}
	}
	return solve(l,k);
}

int main(void){
	int N;
	cin>>N;
	bug.resize(N);
	for(auto x:bug)cin>>x.a>>x.b;
	sort(a.begin(),a.end(),greater<Bug>());
	cout<<solve(0,N+1)<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'second' was not declared in this scope
    5 | #define a second
      |           ^~~~~~
a.cc:33:14: note: in expansion of macro 'a'
   33 |         sort(a.begin(),a.end(),greater<Bug>());
      |              ^
Language: C++

#include<algorithm>
#include<queue>
#include<map>
#include<utility>
using namespace std;
typedef  long long ll;
pair<int,int> a[333333];
int n;
bool check(int k){
  priority_queue <int> q;
  ll s=0;
  int i;
  for(i=0;i<k;i++){
    q.push(a[i].first);
    s+=a[i].first;
  }

  //cout << s << " : " << a[k-1].second*k << endl;
  if(s<=k*a[k-1].second) return 1;
  while(i<n){
    s-=q.top(); q.pop();
    q.push(a[i].first);
    s+=a[i].first;

    //cout << s << " : " << k*a[i].second << endl;
    if(s<=k*a[i].second) return 1;
    i++;
  }
  //cout << s << " : " << k*a[i].second << endl;
  return s<=k*a[i].second;
}
main(){
  cin >> n;

  for(int i=0;i<n;i++){
    cin >> a[i].second >> a[i].first;
    a[i].first*=-1;
    // a[i].second*=-1;
  }

  sort(a,a+n);//世具ソートス
  for(int i=0;i<n;i++){
    a[i].first*=-1;
    //a[i].second*=-1;
    swap(a[i].first,a[i].second);
    //cout << a[i].first << ' ' << a[i].second << endl;
  }

  int ed = n;
  int st=0;
  int res=0;
  while(st<=ed){
    int h=(st+ed)/2;
    //cout << "check" << endl;
    if(check(h)){
      //cout << "ok..." <<  h << endl;
      st=h+1;
      res=max(res,h);
    }
    else{
      //cout << "ng..." << h << endl;
      ed=h-1;
    }
  }
  cout << res << endl;
  return 0;
}

Compiler output:
a.cc:32:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   32 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:33:3: error: 'cin' was not declared in this scope
   33 |   cin >> n;
      |   ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include<utility>
  +++ |+#include <iostream>
    5 | using namespace std;
a.cc:65:3: error: 'cout' was not declared in this scope
   65 |   cout << res << endl;
      |   ^~~~
a.cc:65:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:65:18: error: 'endl' was not declared in this scope
   65 |   cout << res << endl;
      |                  ^~~~
a.cc:5:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    4 | #include<utility>
  +++ |+#include <ostream>
    5 | using namespace std;
Language: C++

//Bokan ga bokka--nn!!
//Daily Lunch Special Tanoshii !!
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <string>
#include <algorithm>
#include <vector>
#include <queue>
#include <stack>
#include <functional>
#include <iostream>
#include <map>
#include <set>
using namespace std;
typedef pair<int,int> P;
typedef pair<int,P> P1;
typedef pair<P,P> P2;
typedef long long ll;
#define pu push
#define pb push_back
#define mp make_pair
#define eps 1e-7
#define INF 2000000000
#define s(x) scanf("%d",&x)
#define rep(i,x) for(int i=0;i<x;i++)
struct A
{
	ll a,b;
}bug[300005];
bool comp(const A& a,const A& b)
{
	if(A.b!=B.b) return A.b>B.b;
}	return A.a<B.b;

ll bit[(1<<17)+1]={};
ll bit2[(1<<17)+1]={};
void add(int i,ll x)
{
	while(i<=(1<<17))
	{
		bit[i]+=x;
		i += i & -i;
	}
}
void add2(int i,ll x)
{
	while(i<=(1<<17))
	{
		bit2[i]+=x;
		i += i & -i;
	}
}
int main()
{
	int n;
	scanf("%d",&n);
	for(int i=0;i<n;i++)
	{
		scanf("%lld %lld",&bug[i].a,&bug[i].b);
	}
	sort(bug,bug+n,comp);
	int ret=0;
	for(int i=0;i<n;i++)
	{
		ll bord=bug[i].b;
		add(bug[i].a,bug[i].a);
		add2(bug[i].a,1);
		ll now=0;
		int many=0;
		int nowid=0;
		int id=(1<<17);
		while(id>0 && nowid+id<=(1<<17))
		{
			if(now+bit[nowid+id]<=bord*(many+bit2[nowid+id]))
			{
				now+=bit[nowid+id];
				many+=bit2[nowid+id];
				nowid+=id;
				id/=2;
			}
			else
			{
				id/=2;
			}
		}
		ret=max(ret,many);
	}
	printf("%d\n",ret);
}

Compiler output:
a.cc: In function 'bool comp(const A&, const A&)':
a.cc:34:13: error: expected unqualified-id before '.' token
   34 |         if(A.b!=B.b) return A.b>B.b;
      |             ^
a.cc:34:30: error: expected primary-expression before '.' token
   34 |         if(A.b!=B.b) return A.b>B.b;
      |                              ^
a.cc:34:33: error: 'B' was not declared in this scope
   34 |         if(A.b!=B.b) return A.b>B.b;
      |                                 ^
a.cc: At global scope:
a.cc:35:9: error: expected unqualified-id before 'return'
   35 | }       return A.a<B.b;
      |         ^~~~~~
Language: C++

#include "stdio.h"
#include <iostream>
#include <algorithm>
#include <functional>

using namespace std;

#define DEEP 19

long long int gfb[(1 << DEEP)];
long long int mkb[(1 << DEEP)];

void adb(long long int* a,int b,long long int x)
{
	int n = b + 1;
	while(n)
	{
		a[n - 1] += x;
		n -= (n & (-n));
	}
}

long long int wa(long long int* a,int b)
{
	long long int w = 0;
	int n = b + 1;
	while(b != (1 << DEEP))
	{
		w += a[n - 1];
		n += (n & (-n));
	}
	return w;
}

pair<long long int,int> aw[(1 << DEEP)];
int at[(1 << DEEP)];
pair<long long int,int> bw[(1 << DEEP)];

int main()
{
	int n;
	scanf("%d",&n);
	for(int i = 0; i < n; i++)
	{
		int aq,bq;
		scanf("%d %d",&aq,&bq);
		aw[i] = make_pair(aq,i);
		bw[i] = make_pair(bq,i);
	}
	sort(aw,aw + n);
	for(int i = 0; i < n; i++)
	{
		at[aw[i].second] = i;
	}
	sort(bw,bw + n,greater<int>);
	for(int i = 0; i < (1 << DEEP); i++)
	{
		gfb[i] = 0;
		mkb[i] = 0;
	}
	
	int na = 0;
	int max = 0;
	for(int i = 0; i < n; i++)
	{
		adb(gfb,at[bw[i].second],aw[at[bw[i].second]].first);
		adb(mkb,at[bw[i].second],1);
		if(bw[i].first == bw[i + 1].first)
		{
			continue;
		}
		
		int minf = bw[i].first;
		if(wa(gfb,na) <= minf * wa(mkb,na))
		{
			while(1)
			{
				if(na >= n - 1)
				{
					if(max < wa(mkb,na))
					{
						max = wa(mkb,na);
					}
					break;
				}
				
				if(wa(gfb,na + 1) > minf * wa(mkb,na + 1))
				{
					if(max < wa(mkb,na))
					{
						max = wa(mkb,na);
					}
					break;
				}
				na++;
			}
		}
		else
		{
			while(1)
			{
				if(na <= 0)
				{
					if(max < wa(mkb,na))
					{
						max = wa(mkb,na);
					}
					break;
				}
				
				if(wa(gfb,na - 1) > minf * wa(mkb,na - 1))
				{
					if(max < wa(mkb,na))
					{
						max = wa(mkb,na);
					}
					break;
				}
				na--;
			}
		}
	}
	printf("%d\n",max);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:55:36: error: expected primary-expression before ')' token
   55 |         sort(bw,bw + n,greater<int>);
      |                                    ^
Language: Java

package java_kadai_1;

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[3];
		int[] b = new int[2];
		for(int i;i<3;i++){
			a[i] = sc.nextInt();
		}
		for(int i;i<2;i++){
			b[i] = sc.nextInt();
		}
		int c=2000,d = 2000;
		for(int i=0; i<3;i++){
			if(a[i]<c){
				c = a[i];
			}
		}
		for(int i=0; i<2;i++){
			if(b[i]<d){
				d = b[i];
			}
		}
		
		
		System.out.printf("%d", c+d-50);
	}
}

Compiler output:
Main.java:10: error: variable i might not have been initialized
		for(int i;i<3;i++){
		          ^
Main.java:13: error: variable i might not have been initialized
		for(int i;i<2;i++){
		          ^
2 errors
Language: Java


import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[3];
		int[] b = new int[2];
		for(int i;i<3;i++){
			a[i] = sc.nextInt();
		}
		for(int i;i<2;i++){
			b[i] = sc.nextInt();
		}
		int c=2000,d = 2000;
		for(int i=0; i<3;i++){
			if(a[i]<c){
				c = a[i];
			}
		}
		for(int i=0; i<2;i++){
			if(b[i]<d){
				d = b[i];
			}
		}
		
		
		System.out.printf("%d", c+d-50);
	}
}

Compiler output:
Main.java:9: error: variable i might not have been initialized
		for(int i;i<3;i++){
		          ^
Main.java:12: error: variable i might not have been initialized
		for(int i;i<2;i++){
		          ^
2 errors
Language: Java

import java.util.Scanner;
public class main{

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int [] pasta = new int[3];
		int [] drink = new int[2];
		int [][] price = new int[3][2];
		for(int i = 0;i < 3;i++){
			pasta[i] = sc.nextInt();
		}
		for(int j = 0;j < 2;j++){
			drink[j] = sc.nextInt();
		}
		for(int i = 0;i < 3;i++){
			for(int j = 0;j < 2;j++){
				price[i][j] = pasta[i] + drink[j]-50;
			}
		}
		int min = price[0][0];
		for(int i = 0;i < 3;i++){
			for(int j = 0;j < 2;j++){
				if(min > price[i][j]){
					min = price[i][j];
				}
			}
		}
		System.out.println(min);
	}

}

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

Main class{
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int pasta[]=new int[3];
		int juice[] = new int [2];
		for(int i=0;i<3;i++)pasta[i]=in.nextInt();
		for(int i=0;i<2;i++)juice[i]=in.nextInt();
		int p=0,j=0;
		for(int i=1;i<3;i++){
			if(pasta[i]<pasta[p])p=i;
		}
		for(int i=1;i<2;i++){
			if(juice[i]<juice[j])j=i;
		}
		int ans = pasta[p]+juice[j]-50;
		System.out.println(ans);
		
	}

}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Main class{
^
Main.java:1: error: <identifier> expected
Main class{
          ^
2 errors
Language: Java

class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int pasta[]=new int[3];
		int juice[] = new int [2];
		for(int i=0;i<3;i++)pasta[i]=in.nextInt();
		for(int i=0;i<2;i++)juice[i]=in.nextInt();
		int p=0,j=0;
		for(int i=1;i<3;i++){
			if(pasta[i]<pasta[p])p=i;
		}
		for(int i=1;i<2;i++){
			if(juice[i]<juice[j])j=i;
		}
		int ans = pasta[p]+juice[j]-50;
		System.out.println(ans);
		
	}

}

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

import java.util.*;

public class main {


	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int m[] = new int[5];
		int minP = 2001,minJ = 2001;
		
		for(int i=0; i<5; i++){
			m[i] =s.nextInt(); 	
		}
		
		for(int i=0; i<5; i++){
			if(i < 3){
				if(m[i] < minP)	minP = m[i];
			}
			else{
				if(m[i] < minJ)	minJ = m[i];
			}
		}
		
		System.out.println(minP + minJ -50);

	}

}

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

import java.util.*;
class Main{
        public static void main(String[] args){
                Scanner sc = new Scanner(System.in);
                int[] pasta = new int[3];
                int[] juice = new int[2];
                for(int i=0;i<3;i++){
                        pasta[i] = sc.nextInt();
                }
                for(int i=0;i<2;i++){
                        juice[i] = sc.nextInt();
                }
                int bestpasta = pasta[0];
                int bestjuice = juice[0];
                for(int i=1;i<3;i++){
                        if(bestpasta > pasta[i]){
                                bestpasta = pasta[i];
                        }
                }
                for(int i=1;i<2;i++){
                        if(bestjuice > juice[i]){
                                best juice = juice[i];
                        }
                }      
                System.out.println(bestpasta + bestjuice - 50);
        }
}

Compiler output:
Main.java:22: error: cannot find symbol
                                best juice = juice[i];
                                ^
  symbol:   class best
  location: class Main
Main.java:22: error: variable juice is already defined in method main(String[])
                                best juice = juice[i];
                                     ^
2 errors
Language: Java

package SD;
import java.util.Scanner;
public class aoj0565 {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub	
		Scanner sc=new Scanner(System.in);
		int a,b,c,d,e;
		a=sc.nextInt();
		b=sc.nextInt();
		c=sc.nextInt();
		d=sc.nextInt();
		e=sc.nextInt();	
		int[] x={a,b,c};
		int [] y={d,e};
		for(int i=0;i<x.length/2;i++){
			for(int j=0;j<x.length;j++){
				if(x[j]<x[i]){
				int t=x[i];
				x[i]=x[j];
				x[j]=t;
				}	
			}
		}
		for(int i=0;i<y.length/2;i++){
			for(int j=0;j<y.length;j++){
				if(y[j]<y[i]){
					int s=y[i];
					y[i]=y[j];
					y[j]=s;
				}
			}
		}
		int A=x[0]+y[0]-50;
		System.out.println(A);
	}
}

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

package zyugyo;

import java.util.Scanner;

public class aoj0565 {
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int a=0,b=0,c;
		for(int i = 0;i < 3;i++){
			c=in.nextInt();
			if(i == 0) a = c;
			else{
				if(a > c){
					a = c;
				}
			}
		}
		for(int i = 0;i < 2;i++){
			c=in.nextInt();
			if(i == 0) b = c;
			else{
				if(b > c){
					b = c;
				}
			}
		}
		c = a + b - 50;
		System.out.println(c);
	}
}

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

package zyugyo;

import java.util.Scanner;

public class main {
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int a=0,b=0,c;
		for(int i = 0;i < 3;i++){
			c=in.nextInt();
			if(i == 0) a = c;
			else{
				if(a > c){
					a = c;
				}
			}
		}
		for(int i = 0;i < 2;i++){
			c=in.nextInt();
			if(i == 0) b = c;
			else{
				if(b > c){
					b = c;
				}
			}
		}
		c = a + b - 50;
		System.out.println(c);
	}
}

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

import java.util.Scanner;

public class AOJ0565 {

	public static void main(String[] args) {
		int[] pasta = {0,0,0};
		int[] juice = {0,0};
		Scanner sc = new Scanner(System.in);
		for(int i = 0; i < 3; i++){
			pasta[i] = sc.nextInt();
		}
		for(int i = 0; i < 2; i++){
			juice[i] = sc.nextInt();
		}
		int min = pasta[0] + juice[0];
		
		for(int i = 0; i < 3; i++){
			for(int j = 0; j < 2; j++){
				if(min > pasta[i] + juice[j]) min = pasta[i] + juice[j];
			}
		}
		System.out.println(min - 50);
	}

}

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

public class AOJ0565 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int pasta=2000, juice=2000;
		int i;
		for(i=0;i<5;i++){
			if(i<3){
				pasta = Math.min(pasta, sc.nextInt());
			}
			else{
				juice = Math.min(juice, sc.nextInt());
			}
		}
		System.out.println(pasta+juice-50);

	}

}

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

package software_design;
import java.util.Scanner;
public class AOJ0565 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int pasta=2000, juice=2000;
		int i;
		for(i=0;i<5;i++){
			if(i<3){
				pasta = Math.min(pasta, sc.nextInt());
			}
			else{
				juice = Math.min(juice, sc.nextInt());
			}
		}
		System.out.println(pasta+juice-50);

	}

}

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

import java.util.Scanner;
public class AOJ0565 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int pasta=2000, juice=2000;
		int i;
		for(i=0;i<5;i++){
			if(i<3){
				pasta = Math.min(pasta, sc.nextInt());
			}
			else{
				juice = Math.min(juice, sc.nextInt());
			}
		}
		System.out.println(pasta+juice-50);

	}

}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int pasta=2000, juice=2000;
		int i;
		for(i=0;i<5;i++){
			if(i<3){
				pasta = Math.min(pasta, sc.nextInt());
			}
			else{
				juice = Math.min(juice, sc.nextInt());
			}
		}
		System.out.println(pasta+juice-50);

	}

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

import java.util.Scanner;

public class Lunch {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		//1でパスタの最安値、2でジュースの最安値を記録
		int min1 = 2000, min2 =2000;
		for(int i=0; i<5; i++){
			if(i<3){
				min1 = Math.min(min1, sc.nextInt());
			}
			else{
				min2 = Math.min(min2, sc.nextInt());
			}
		}
		System.out.println(min1+min2-50);
	}
}

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

import java.util.Scanner;

//Lunch
public class AOJ0565 {

	void run(){
		Scanner sc = new Scanner(System.in);
		System.out.println((Math.min(sc.nextInt(), Math.min(sc.nextInt(), sc.nextInt())))+Math.min(sc.nextInt(), sc.nextInt())-50);
	}
	
	public static void main(String[] args) {
		new AOJ0565().run();
	}
}

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

package software_design;
import java.util.Arrays;
import java.util.Scanner;
public class AOJ0565 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] pasta = new int [3];
		int[] juice = new int [2];
		pasta[0] = sc.nextInt();
		pasta[1] = sc.nextInt();
		pasta[2] = sc.nextInt();
        juice[0] = sc.nextInt();
        juice[1] = sc.nextInt();
        Arrays.sort(pasta);
        Arrays.sort(juice);
        System.out.println(pasta[0]+juice[0]-50);
	}

}

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

import java.util.Arrays;
import java.util.Scanner;
public class AOJ0565 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] pasta = new int [3];
		int[] juice = new int [2];
		pasta[0] = sc.nextInt();
		pasta[1] = sc.nextInt();
		pasta[2] = sc.nextInt();
        juice[0] = sc.nextInt();
        juice[1] = sc.nextInt();
        Arrays.sort(pasta);
        Arrays.sort(juice);
        System.out.println(pasta[0]+juice[0]-50);
	}

}

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

#include<stdio.h>

int main(void)
{
	int ne[6];
	int ans[2];
	int i;
	
	for(i=0;i<5;i++){
		scanf("%d",&ne[i]);
	}
	if(ne[0]<ne[1] && ne[0]<ne[2])
	ans[0]=ne[0];
	
	else if(ne[1]<ne[0] && ne[1]<ne[2])
	ans[0]=ne[1];
	
	else
	ans[0]=ne[2];
	
	if(ne[3]<ne[4])
	ans[1]=ne[3];
	
	else
	ans[1]=ne[4];
	
	printf("%d\n",ans[0]+ans[1]-50);
	
	return 0;
}
}


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

#include <stdio.h>

main(){
int a,b,c,d,e,f,g,h;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
scanf("%d",&e);
if(a<=b&&a<=c)
int f=a;
else if(b<=c)
int f=b;
else
int f=c;
if(d<=e)
int g=d;
else
int g=e;
int h=f+g-50;
printf("%d\n", h);


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:11:1: error: expected expression before 'int'
   11 | int f=a;
      | ^~~
main.c:13:1: error: expected expression before 'int'
   13 | int f=b;
      | ^~~
main.c:15:1: error: expected expression before 'int'
   15 | int f=c;
      | ^~~
main.c:17:1: error: expected expression before 'int'
   17 | int g=d;
      | ^~~
main.c:19:1: error: expected expression before 'int'
   19 | int g=e;
      | ^~~
main.c:20:5: error: redeclaration of 'h' with no linkage
   20 | int h=f+g-50;
      |     ^
main.c:4:19: note: previous declaration of 'h' with type 'int'
    4 | int a,b,c,d,e,f,g,h;
      |                   ^
main.c:21:1: error: expected declaration or statement at end of input
   21 | printf("%d\n", h);
      | ^~~~~~
Language: C

#include <stdio.h>

main(){
int a,b,c,d,e,f,g,h;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
scanf("%d",&e);
if(a<=b&&a<=c)
int f=a;
else if(b<=c)
int f=b;
else
int f=c;
if(d<=e)
int g=d;
else
int g=e;
int h=f+g-50;
printf("%d\n", h);
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:11:1: error: expected expression before 'int'
   11 | int f=a;
      | ^~~
main.c:13:1: error: expected expression before 'int'
   13 | int f=b;
      | ^~~
main.c:15:1: error: expected expression before 'int'
   15 | int f=c;
      | ^~~
main.c:17:1: error: expected expression before 'int'
   17 | int g=d;
      | ^~~
main.c:19:1: error: expected expression before 'int'
   19 | int g=e;
      | ^~~
main.c:20:5: error: redeclaration of 'h' with no linkage
   20 | int h=f+g-50;
      |     ^
main.c:4:19: note: previous declaration of 'h' with type 'int'
    4 | int a,b,c,d,e,f,g,h;
      |                   ^
Language: C

#include <stdio.h>

main(){
int a,b,c,d,e;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
scanf("%d",&e);
if((a<=b)&&(a<=c))
int f=a;
else if(b<=c)
int f=b;
else
int f=c;
if(d<=e)
int g=d;
else
int g=e;
int h=f+g-50;
printf("%d\n", h);
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:11:1: error: expected expression before 'int'
   11 | int f=a;
      | ^~~
main.c:13:1: error: expected expression before 'int'
   13 | int f=b;
      | ^~~
main.c:15:1: error: expected expression before 'int'
   15 | int f=c;
      | ^~~
main.c:17:1: error: expected expression before 'int'
   17 | int g=d;
      | ^~~
main.c:19:1: error: expected expression before 'int'
   19 | int g=e;
      | ^~~
main.c:20:7: error: 'f' undeclared (first use in this function)
   20 | int h=f+g-50;
      |       ^
main.c:20:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:9: error: 'g' undeclared (first use in this function)
   20 | int h=f+g-50;
      |         ^
Language: C

#include <stdio.h>

main(){
int a,b,c,d,e;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
scanf("%d",&e);
if((a<=b)&&(a<=c))
    int f=a;
else if(b<=c)
    int f=b;
else if
    int f=c;
if(d<=e)
    int g=d;
else if
    int g=e;
int h=f+g-50;
printf("%d\n", h);
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:11:5: error: expected expression before 'int'
   11 |     int f=a;
      |     ^~~
main.c:13:5: error: expected expression before 'int'
   13 |     int f=b;
      |     ^~~
main.c:15:5: error: expected '(' before 'int'
   15 |     int f=c;
      |     ^~~
      |     (
main.c:17:5: error: expected expression before 'int'
   17 |     int g=d;
      |     ^~~
main.c:19:5: error: expected '(' before 'int'
   19 |     int g=e;
      |     ^~~
      |     (
main.c:20:7: error: 'f' undeclared (first use in this function)
   20 | int h=f+g-50;
      |       ^
main.c:20:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:9: error: 'g' undeclared (first use in this function)
   20 | int h=f+g-50;
      |         ^
Language: C

#include <stdio.h>

int main(){
int a,b,c,d,e;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
scanf("%d",&e);
if((a<=b)&&(a<=c))
    int f=a;
else if(b<=c)
    int f=b;
else if
    int f=c;
if(d<=e)
    int g=d;
else if
    int g=e;
int h=f+g-50;
printf("%d\n", h);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:5: error: expected expression before 'int'
   11 |     int f=a;
      |     ^~~
main.c:13:5: error: expected expression before 'int'
   13 |     int f=b;
      |     ^~~
main.c:15:5: error: expected '(' before 'int'
   15 |     int f=c;
      |     ^~~
      |     (
main.c:17:5: error: expected expression before 'int'
   17 |     int g=d;
      |     ^~~
main.c:19:5: error: expected '(' before 'int'
   19 |     int g=e;
      |     ^~~
      |     (
main.c:20:7: error: 'f' undeclared (first use in this function)
   20 | int h=f+g-50;
      |       ^
main.c:20:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:9: error: 'g' undeclared (first use in this function)
   20 | int h=f+g-50;
      |         ^
Language: C

#include <stdio.h>

int main(){
int a,b,c,d,e;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
scanf("%d",&e);
if((a<=b)&&(a<=c))
    int f=a;
else if(b<=c)
    int f=b;
else
    int f=c;
if(d<=e)
    int g=d;
else
    int g=e;
int h=f+g-50;
printf("%d\n", h);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:5: error: expected expression before 'int'
   11 |     int f=a;
      |     ^~~
main.c:13:5: error: expected expression before 'int'
   13 |     int f=b;
      |     ^~~
main.c:15:5: error: expected expression before 'int'
   15 |     int f=c;
      |     ^~~
main.c:17:5: error: expected expression before 'int'
   17 |     int g=d;
      |     ^~~
main.c:19:5: error: expected expression before 'int'
   19 |     int g=e;
      |     ^~~
main.c:20:7: error: 'f' undeclared (first use in this function)
   20 | int h=f+g-50;
      |       ^
main.c:20:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:9: error: 'g' undeclared (first use in this function)
   20 | int h=f+g-50;
      |         ^
Language: C

#include <stdio.h>

int main(){
int a,b,c,d,e;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &d);
scanf("%d", &e);
if((a<=b)&&(a<=c))
    int f=a;
else if(b<=c)
    int f=b;
else
    int f=c;
if(d<=e)
    int g=d;
else
    int g=e;
int h=f+g-50;
printf("%d\n", h);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:5: error: expected expression before 'int'
   11 |     int f=a;
      |     ^~~
main.c:13:5: error: expected expression before 'int'
   13 |     int f=b;
      |     ^~~
main.c:15:5: error: expected expression before 'int'
   15 |     int f=c;
      |     ^~~
main.c:17:5: error: expected expression before 'int'
   17 |     int g=d;
      |     ^~~
main.c:19:5: error: expected expression before 'int'
   19 |     int g=e;
      |     ^~~
main.c:20:7: error: 'f' undeclared (first use in this function)
   20 | int h=f+g-50;
      |       ^
main.c:20:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:9: error: 'g' undeclared (first use in this function)
   20 | int h=f+g-50;
      |         ^
Language: C

#include <stdio.h>

int main(void)
{
    int pasta, juice;
    int mini[2] = {3000, 3000};
    int i;
    
    for (i = 0; i < 3; i++){
        scanf("%d", &pasta);
        if (mini[0] > pasta) mini[0] = pasta;
    }
    for (i = 0; i < 2; i++){
        scanf("%d", &juice);
        if (mini[1] > juice) mini[1] = juice;
    }
    printf("%d\n", mini[0] + mini[1] - 50);
    
    return 0;
}


Compiler output:
main.c:21:1: error: stray '\22' in program
   21 | <U+0012>
      | ^~~~~~~~
Language: C

#include<stdio.h>
int main(void){
int a,a1,b,b1,i;
for(i=0;i<3,i++){
scanf("%d",&a);
	if(i!=0){
		if(a1<a){
		a=a1;
		}
	}
a1=a;
}
for(i=0;i<2,i++){
scanf("%d",&b);
	if(i!=0){
		if(b1<b){
		b=b1;
		}
	}
b1=b;
}
printf("%d\n",a1+b1-50);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:16: error: expected ';' before ')' token
    4 | for(i=0;i<3,i++){
      |                ^
      |                ;
main.c:13:16: error: expected ';' before ')' token
   13 | for(i=0;i<2,i++){
      |                ^
      |                ;
Language: C

#include <stdio.h>
int a,b=2000,c;

int main(void){
	for(;c<3;++c)scanf("%d",&a),b=(a<b)?a:b;
	scanf("%d%d",&a,&c),a=(a<c)a:c;
	printf("%d\n",a+b-50);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:36: error: expected ';' before 'a'
    6 |         scanf("%d%d",&a,&c),a=(a<c)a:c;
      |                                    ^
      |                                    ;
Language: C

a;main(b,c,d,e){scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);a=!printf("%d\n",(c<a=(a<b?a:b)?c:a)+(d<e?d:e)-50);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a;main(b,c,d,e){scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);a=!printf("%d\n",(c<a=(a<b?a:b)?c:a)+(d<e?d:e)-50);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a;main(b,c,d,e){scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);a=!printf("%d\n",(c<a=(a<b?a:b)?c:a)+(d<e?d:e)-50);}
      |   ^~~~
main.c: In function 'main':
main.c:1:3: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:3: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:3: error: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:1:3: error: type of 'e' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | a;main(b,c,d,e){scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);a=!printf("%d\n",(c<a=(a<b?a:b)?c:a)+(d<e?d:e)-50);}
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a;main(b,c,d,e){scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);a=!printf("%d\n",(c<a=(a<b?a:b)?c:a)+(d<e?d:e)-50);}
main.c:1:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | a;main(b,c,d,e){scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);a=!printf("%d\n",(c<a=(a<b?a:b)?c:a)+(d<e?d:e)-50);}
      |                 ^~~~~
main.c:1:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:55: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | a;main(b,c,d,e){scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);a=!printf("%d\n",(c<a=(a<b?a:b)?c:a)+(d<e?d:e)-50);}
      |                                                       ^~~~~~
main.c:1:55: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:55: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:55: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:73: error: lvalue required as left operand of assignment
    1 | a;main(b,c,d,e){scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);a=!printf("%d\n",(c<a=(a<b?a:b)?c:a)+(d<e?d:e)-50);}
      |                                                                         ^
Language: C

#include <stdio.h>

int main(void) {
		int a,b,c,d,e;
	
	scanf("%d\n%d\n%d\n%d\n%d",&a,&b,&c,&d,&e);
if(a=<b && a=<c && d=<e){
	a=a+d-50;
		printf("%d\n",a);
}
if(b=<a && b=<c && d=<e){
	a=b+d-50;
		printf("%d\n",a);
}
	if(c=<a && c=<b && d=<e){
	a=c+d-50;
		printf("%d\n",a);
}
	if(b=<a && b=<c && e=<d){
	a=b+e-50;
		printf("%d\n",a);
}
	if(a=<b && a=<c && e=<d){
	a=a+e-50;
		printf("%d\n",a);
}
	if(c=<a && c=<b && e=<d){
	a=c+e-50;
		printf("%d\n",a);
}
	// your code goes here
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected expression before '<' token
    7 | if(a=<b && a=<c && d=<e){
      |      ^
main.c:11:6: error: expected expression before '<' token
   11 | if(b=<a && b=<c && d=<e){
      |      ^
main.c:15:14: error: expected expression before '<' token
   15 |         if(c=<a && c=<b && d=<e){
      |              ^
main.c:19:14: error: expected expression before '<' token
   19 |         if(b=<a && b=<c && e=<d){
      |              ^
main.c:23:14: error: expected expression before '<' token
   23 |         if(a=<b && a=<c && e=<d){
      |              ^
main.c:27:14: error: expected expression before '<' token
   27 |         if(c=<a && c=<b && e=<d){
      |              ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:31:1: error: expected declaration or statement at end of input
   31 | }
      | ^
Language: C

#include <stdio.h>

int main(void) {
   int a,b,c,d,e,f,g,h;
   scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
   if (a<=b && b<=c){
   	f=a;
    } else if (a<=c && c<=b){
   	f=a;
    } else if (b<=c && c<=a){
   	f=b;
    } else if (b<=a && a<=c){
   	f=b;
   	} else if (c=<a && a<=b){
   	f=c;
   	} else if (c<=b && b<=a){
   	f=c;
   	}
   	if(d<e){
   		g=d;
   	} else if(e<d){
   		g=e;
   	}
    h=f+g-50;
    printf("%d\n",h);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:22: error: expected expression before '<' token
   14 |         } else if (c=<a && a<=b){
      |                      ^
Language: C

#include<stdio.h>
int main(void)
{
int a,b,c,d,e,f,g,h,i,j,k;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
scanf("%d",&e);
f=a+d-50;
g=a+e-50;
h=b+d-50;
i=b+e-50;
j=c+d-50;
k=c+e-50;
if(f<g&&f<h&&f<i&&f<j&&f<k){
printf("%d\n",f);
break;
}
else if(g<f&&g<h&&g<i&&g<j&&g<k){
printf("%d\n",g);
break;
}
else if(h<f&&h<g&&h<i&&h<j&&h<k){
printf("%d\n",h);
break;
}
else if(i<f&&i<h&&i<g&&i<j&&i<k){
printf("%d\n",i);
break;
}
else if(j<f&&j<h&&j<i&&j<g&&j<k){
printf("%d\n",j);
break;
}
else if(k<f&&k<h&&k<i&&k<j&&k<g){
printf("%d\n",k);
break;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:1: error: break statement not within loop or switch
   18 | break;
      | ^~~~~
main.c:22:1: error: break statement not within loop or switch
   22 | break;
      | ^~~~~
main.c:26:1: error: break statement not within loop or switch
   26 | break;
      | ^~~~~
main.c:30:1: error: break statement not within loop or switch
   30 | break;
      | ^~~~~
main.c:34:1: error: break statement not within loop or switch
   34 | break;
      | ^~~~~
main.c:38:1: error: break statement not within loop or switch
   38 | break;
      | ^~~~~
Language: C

#include<stdio.h>
int main(void)
{
int game,n,i,j,team[100];
int a,b,c,d,ban[100];
scanf("%d",&n);
for(i=0;i<n;i++){
team[i]=0;
ban[i]=1;
}
game=n*(n-1)/2;
for(i=0;i<game;i++){
scanf("%d %d %d %d",&a,&b,&c,&d);
if(c>d){
team[a-1]+=3;
}
else if(c==d){
team[a-1]+=1; team[b-1]+=1;
else{
team[b-1]+=3;
}
for(i=0;i<n;i++){
for(j=0;j<n;j++){
if(team[i]<team[j]){
ban[i]++;
}
printf("%d\n",ban[i]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:1: error: expected '}' before 'else'
   19 | else{
      | ^~~~
main.c:30:1: error: expected declaration or statement at end of input
   30 | }
      | ^
main.c:30:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
int main(void)
{
int game,n,i,j,team[100];
int a,b,c,d,ban[100];
scanf("%d",&n);
for(i=0;i<n;i++){
team[i]=0;
ban[i]=1;
}
game=n*(n-1)/2;
for(i=0;i<game;i++){
scanf("%d %d %d %d",&a,&b,&c,&d);
if(c>d){
team[a-1]+=3;
}
else if(c==d){
team[a-1]+1; 
team[b-1]+1;
else{
team[b-1]+3;
}
for(i=0;i<n;i++){
for(j=0;j<n;j++){
if(team[i]<team[j]){
ban[i]++;
}
printf("%d\n",ban[i]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:1: error: expected '}' before 'else'
   20 | else{
      | ^~~~
main.c:31:1: error: expected declaration or statement at end of input
   31 | }
      | ^
main.c:31:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
#include<stdlib.h>

int main(){
	int a[3],b[2],Ans=0,amin=0,bmin=0;
	
	scanf("%d",&a[0]);
	amin=a[0];
	scanf("%d",&a[1]);
	if(amin>a[1])amin=a[1];
	scanf("%d",&a[2]);
	if(amin>a[2])amin=a[2];
	scanf("%d",&b[0]);
	scanf("%d",&b[1]);
	bmin=min(b[0],b[1]);
	Ans=amin+bmin-50;
	printf("%d\n",Ans);
	return 0;
} 

Compiler output:
main.c: In function 'main':
main.c:15:14: error: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration]
   15 |         bmin=min(b[0],b[1]);
      |              ^~~
      |              main
Language: C

#include<stdio.h>
#include<stdlib.h>

int main(){
	int a[3],b[2],Ans=0,amin=0,bmin=0;
	
	scanf("%d",&a[08]);
	amin=a[0];
	scanf("%d",&a[1]);
	if(amin>a[1])amin=a[1];
	scanf("%d",&a[2]);
	if(amin>a[2])amin=a[2];
	scanf("%d",&b[0]);
	scanf("%d",&b[1]);
	bmin=min(b[0],b[1]);
	Ans=amin+bmin-50;
	printf("%d\n",Ans);
	return 0;
} 

Compiler output:
main.c: In function 'main':
main.c:7:23: error: invalid digit "8" in octal constant
    7 |         scanf("%d",&a[08]);
      |                       ^~
main.c:15:14: error: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration]
   15 |         bmin=min(b[0],b[1]);
      |              ^~~
      |              main
Language: C

#include <stdio.h>

int main(void)
{
    int pasta[3];
    int juice[2];
    int minPasta;
    int minJuice;
    int i;

    pastaMin = 2001;
    for (i = 0; i < 3; i++){
        scanf("%d", &pasta[i]);
        if (pastaMin < pasta[i]){
            pastaMin = pasta[i];
        }
    }

    juiceMin = 2001;
    for (i = 0; i < 2; i++){
        scanf("%d", &juice[i]);
        if (juiceMin < juice[i]){
            juiceMin = juice[i];
        }
    }

    printf("%d\n", pastaMin + juiceMin - 50);

    return (0);
}

Compiler output:
main.c: In function 'main':
main.c:11:5: error: 'pastaMin' undeclared (first use in this function); did you mean 'pasta'?
   11 |     pastaMin = 2001;
      |     ^~~~~~~~
      |     pasta
main.c:11:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:5: error: 'juiceMin' undeclared (first use in this function); did you mean 'juice'?
   19 |     juiceMin = 2001;
      |     ^~~~~~~~
      |     juice
Language: C

#include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;

vector<int> read(int n)
{
	vector<int> v(n);
	for (int i = 0; i < n; ++i)
		scanf("%d\n", &v[i]);
	sort(v.begin(), v.end());
	return v;
}

int main()
{
	const vector<int> pasta = read(3);
	const vector<int> juice = read(2);
	const int res = pasta[0] + juice[0] - 50;
	printf("%d\n", res);
	return 0;
}

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

#include <stdio.h>

int main ()
{
	int pa,pb,pc; //入力されたパスタ価格三つ
	int ja,jb;	//入力された飲料価格二つ
	int pm,jm;	//求めた最小値二つ

	scanf ("%d%d%d%d%d",&pa,&pb,&pc,&ja,&jb);
			//入力の読み込み

	if ( pa >= pb && pc >= pb )　//パスタの最小
			pm = pb;
		else if ( pb >= pc || pa >= pc )
			pm = pc;
		else 
			pm = pa;

	if ( ja >= jb )　//飲料の最小値を算出
			jm = ja;
		else 
			jm = jb;

	printf("%d", pm + jm );　//出力

	return (0);

}

//end

Compiler output:
main.c: In function 'main':
main.c:12:36: error: stray '\343' in program
   12 |         if ( pa >= pb && pc >= pb )<U+3000>//<U+30D1><U+30B9><U+30BF><U+306E><U+6700><U+5C0F>
      |                                    ^~~~~~~~
main.c:19:24: error: stray '\343' in program
   19 |         if ( ja >= jb )<U+3000>//<U+98F2><U+6599><U+306E><U+6700><U+5C0F><U+5024><U+3092><U+7B97><U+51FA>
      |                        ^~~~~~~~
main.c:24:32: error: stray '\343' in program
   24 |         printf("%d", pm + jm );<U+3000>//<U+51FA><U+529B>
      |                                ^~~~~~~~
Language: C

#include <stdio.h>

int main ()
{
	int pa,pb,pc;
	int ja,jb;	
	int pm,jm;

	scanf ("%d%d%d%d%d",&pa,&pb,&pc,&ja,&jb);
			

	if ( pa >= pb && pc >= pb ){
			pm = pb;
		}else if ( pb >= pc || pa >= pc ){
			pm = pc;
		}else 
			pm = pa;
                          }

	if ( ja >= jb ){
			jm = ja;
		}else 
			jm = jb;
                          }

	printf("%d", pm + jm );

	return (0);

}

Compiler output:
main.c:20:9: error: expected identifier or '(' before 'if'
   20 |         if ( ja >= jb ){
      |         ^~
main.c:22:18: error: expected identifier or '(' before 'else'
   22 |                 }else
      |                  ^~~~
main.c:24:27: error: expected identifier or '(' before '}' token
   24 |                           }
      |                           ^
main.c:26:16: error: expected declaration specifiers or '...' before string constant
   26 |         printf("%d", pm + jm );
      |                ^~~~
main.c:26:22: error: unknown type name 'pm'
   26 |         printf("%d", pm + jm );
      |                      ^~
main.c:28:9: error: expected identifier or '(' before 'return'
   28 |         return (0);
      |         ^~~~~~
main.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^