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

#include<stdio.h>
void min(int x,int y){
    return (x < y) x : y;
int main(void){
    int a,b,c,d,e;
    scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
    printf("%d\n",min(a,min(b,c))+min(d,e)-50);
    return 0;
}
    

Compiler output:
main.c: In function 'min':
main.c:3:15: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
    3 |     return (x < y) x : y;
      |            ~~~^~~~
main.c:2:6: note: declared here
    2 | void min(int x,int y){
      |      ^~~
main.c:3:19: error: expected ';' before 'x'
    3 |     return (x < y) x : y;
      |                   ^~
      |                   ;
main.c: In function 'main':
main.c:7:25: error: invalid use of void expression
    7 |     printf("%d\n",min(a,min(b,c))+min(d,e)-50);
      |                         ^~~~~~~~
main.c:7:35: error: void value not ignored as it ought to be
    7 |     printf("%d\n",min(a,min(b,c))+min(d,e)-50);
      |                                   ^~~~~~~~
main.c: In function 'min':
main.c:9:1: error: expected declaration or statement at end of input
    9 | }
      | ^
Language: C

#include<stdio.h>
void min(int x,int y){
    return (x < y) ? x : y;
}
int main(void){
    int a,b,c,d,e;
    scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
    printf("%d\n",min(a,min(b,c))+min(d,e)-50);
    return 0;
} 

Compiler output:
main.c: In function 'min':
main.c:3:24: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
    3 |     return (x < y) ? x : y;
      |            ~~~~~~~~~~~~^~~
main.c:2:6: note: declared here
    2 | void min(int x,int y){
      |      ^~~
main.c: In function 'main':
main.c:8:25: error: invalid use of void expression
    8 |     printf("%d\n",min(a,min(b,c))+min(d,e)-50);
      |                         ^~~~~~~~
main.c:8:35: error: void value not ignored as it ought to be
    8 |     printf("%d\n",min(a,min(b,c))+min(d,e)-50);
      |                                   ^~~~~~~~
Language: C

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

}

Compiler output:
main.c:2:1: error: unknown type name 'iny'; did you mean 'int'?
    2 | iny main(void){
      | ^~~
      | int
main.c: In function 'main':
main.c:25:18: error: expected ')' before 'a'
   25 |     printf("%d\n"a[0]+b[0]-50);
      |           ~      ^
      |                  )
Language: C

#include<stdio.h>
int main(){
int p[3],j[2],minp,minj;
scanf("%d",p[0]);
minp=p[0];
scanf("%d",p[1]);
if(minp>p[1])minp=p[1];
scanf("%d",p[2]);
if(minp>p[2])minp=p[2];

scanf("%d",j[0]);
minj=j[0];
scanf("%d",j[1]);
if(minj>j[1])minj=j[1];

printf("%d\n"minp+minj-50);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:14: error: expected ')' before 'minp'
   16 | printf("%d\n"minp+minj-50);
      |       ~      ^~~~
      |              )
Language: C

#include<stdio.h> int main(){ int p[3],j[2],minp,minj; scanf("%d",p[0]); minp=p[0]; scanf("%d",p[1]); if(minp>p[1])minp=p[1]; scanf("%d",p[2]); if(minp>p[2])minp=p[2];   scanf("%d",j[0]); minj=j[0]; scanf("%d",j[1]); if(minj>j[1])minj=j[1];   printf("%d\n",minp+minj-50); return 0; } 

Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include<stdio.h> int main(){ int p[3],j[2],minp,minj; scanf("%d",p[0]); minp=p[0]; scanf("%d",p[1]); if(minp>p[1])minp=p[1]; scanf("%d",p[2]); if(minp>p[2])minp=p[2];   scanf("%d",j[0]); minj=j[0]; scanf("%d",j[1]); if(minj>j[1])minj=j[1];   printf("%d\n",minp+minj-50); return 0; }
      |                   ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<stdio.h>
int main(void)
{
	int a,b,c,d,e,m,n,ans;
	scanf("%d %d %d %d %d",&a,&b,&c,&d,&e);
	if(a<=b&&a<=){
		m=a-25;
	}
	else if(b<=a&&b<=c){
		m=b-25;
	}
	else{
		m=c-25;
	}
	if(d<=e){
		n=d-25;
	}
	else{
		n=e-25;
	}
	ans=m+n;
	printf("%d\n",ans);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected primary-expression before ')' token
    6 |         if(a<=b&&a<=){
      |                     ^
Language: C++

#include <iostream>
#include <vector>

int main(){
int buffer;
int pasta_min,juice_min;
std::vector<int> pasta;
std::vector<int> juice;

for(int i=0;i<3;i++){
  std::cin >> buffer;
  pasta.push_back(buffer);
}
for(i=0;i<2;i++){
  std::cin >> buffer;
  juice.push_back(buffer);
}
pasta_min = *std::min_element(pasta.begin(), pasta.end());
juice_min = *std::min_element(juice.begin(), juice.end());
std::cout << pasta_min+juice_min-50 << std::endl;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'i' was not declared in this scope
   14 | for(i=0;i<2;i++){
      |     ^
a.cc:18:19: error: 'min_element' is not a member of 'std'; did you mean 'tuple_element'?
   18 | pasta_min = *std::min_element(pasta.begin(), pasta.end());
      |                   ^~~~~~~~~~~
      |                   tuple_element
a.cc:19:19: error: 'min_element' is not a member of 'std'; did you mean 'tuple_element'?
   19 | juice_min = *std::min_element(juice.begin(), juice.end());
      |                   ^~~~~~~~~~~
      |                   tuple_element
Language: C++

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

int main(){
int buffer;
int pasta_min,juice_min;
std::vector<int> pasta;
std::vector<int> juice;

for(int i=0;i<3;i++){
  std::cin >> buffer;
  pasta.push_back(buffer);
}
for(i=0;i<2;i++){
  std::cin >> buffer;
  juice.push_back(buffer);
}
pasta_min = *std::min_element(pasta.begin(), pasta.end());
juice_min = *std::min_element(juice.begin(), juice.end());
std::cout << pasta_min+juice_min-50 << std::endl;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'i' was not declared in this scope
   15 | for(i=0;i<2;i++){
      |     ^
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:
a.cc: In function 'int main()':
a.cc:24:7: error: 'f' was not declared in this scope
   24 | int h=f+g-50;
      |       ^
a.cc:24:9: error: 'g' was not declared in this scope
   24 | int h=f+g-50;
      |         ^
Language: C++

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

int main(){
    int a[3];
    int b[2];
    Int m=10000;
    for(int i=0;i<3;i++){
        cin>>a[i];
    }
    for(int i=0;i<2;i++){
        cin>>b[i];
    }
    for(int i=0;i<3;i++){
        for(int j=0;j<2;j++){
            m=min(m,a[i]+b[j]-50);
        }
    }
    cout<<m<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'Int' was not declared in this scope; did you mean 'int'?
    7 |     Int m=10000;
      |     ^~~
      |     int
a.cc:16:13: error: 'm' was not declared in this scope
   16 |             m=min(m,a[i]+b[j]-50);
      |             ^
a.cc:19:11: error: 'm' was not declared in this scope
   19 |     cout<<m<<endl;
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a,b,c,d,e;
int MAX_p,MAX_q;

cin>>a>>b>>c>>d>>e;

if(a>=b&&a>=c)
{
MAX_p=a;
}
else if(b>=a&&b>=c)
{
MAX_p=b;
}
else
{
MAX_p=c;
}

if(d>=e)
{
MAX_q=d;
}
else
{
MAX_q=e;
}


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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Collections;
import java.util.LinkedList;


public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.lunchMinimumValueCalculation();
		return;
	}
	
	//昼食の代金の最小値を求める
	private void lunchMinimumValueCalculation() {
		
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); //標準入力
		
		LinkedList<Integer> pastaPriceList = new LinkedList<Integer>();
		LinkedList<Integer> juicePriceList = new LinkedList<Integer>();
		
		try {
			
			for (int i = 0; i < 3; i++) {
				String inputStr = bufferedReader.readLine();
				pastaPriceList.add(Integer.parseInt(inputStr));
			}
			
			for (int i = 0; i < 2; i++) {
				String inputStr = bufferedReader.readLine();
				juicePriceList.add(Integer.parseInt(inputStr));
			}
			
			Collections.sort(pastaPriceList);
			Collections.sort(juicePriceList);
			
			int pastaPriceNum = pastaPriceList.get(0);
			int juicePriceNum = juicePriceList.get(0);
			
			System.out.println((pastaPriceNum + juicePriceNum) - 50);
			
		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
		
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
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.IOException;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.Collections;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.util.LinkedList;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: expected unqualified-id before 'public'
    8 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
#include <Algorithm>

using namespace std;

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

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

#include<iostream>
using namespace std;

int main(){
	
	int pasta[3], juice[2];
	
	for(int i=0; i<3; i++){
		cin >> pasta[i];
	}
	for(int i=0; i<2; i++){
		cin >> juice[i];
	}
	
	sort(pasta, pasta+3);
	sort(juice, juice+2);
	
	cout << pasta[0] + juice[0] - 50 << endl;
	
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   15 |         sort(pasta, pasta+3);
      |         ^~~~
      |         short
Language: C++

/*
JOI テ」ツδ妥」ツつケテ」ツつソテ・ツコツ療」ツ?ァテ」ツ?ッテッツシツ古」ツδゥテ」ツδウテ」ツδ?」ツ?ョテ」ツ?甘」ツ?凖」ツ?凖」ツつ?」ツδ妥」ツつケテ」ツつソテ」ツ?ィテヲツ青セテ」ツつ甘」ツ?淌」ツ?ヲテ」ツつクテ」ツδ・テ」ツδシテ」ツつケテ」ツ?ョテ」ツつサテ」ツδε」ツδ暗」ツδ。テ」ツδ凝」ツδ・テ」ツδシテ」ツ?古・ツ・ツスティツゥツ陛」ツ?ァテ」ツ?づ」ツつ凝ッツシツ偲」ツ?禿」ツ?ョテ」ツつサテ」ツδε」ツδ暗」ツδ。テ」ツδ凝」ツδ・テ」ツδシテ」ツつ津ヲツウツィテヲツ鳴?」ツ?凖」ツつ凝」ツ?ィテ」ツ?催」ツ?ッテッツシツ古」ツ?敕」ツ?ョテヲツ猟・テ」ツ?ョ 3 テァツィツョテゥツ。ツ榲」ツ?ョテ」ツδ妥」ツつケテ」ツつソテ」ツ?ィ 2 テァツィツョテゥツ。ツ榲」ツ?ョテ」ツつクテ」ツδ・テ」ツδシテ」ツつケテ」ツ?凝」ツつ?1 テ」ツ?、テ」ツ?堙」ツ?、テゥツ?クテ」ツ?カテッツシツ偲」ツδ妥」ツつケテ」ツつソテ」ツ?ィテ」ツつクテ」ツδ・テ」ツδシテ」ツつケテ」ツ?ョテ・ツ?、テヲツョツオテ」ツ?ョテ・ツ青暗ィツィツ暗」ツ?凝」ツつ?50 テ・ツ??」ツつ津・ツシツ陛」ツ??」ツ?淌ゥツ?妥ゥツ。ツ催」ツ?古、ツサツ」テゥツ?妥」ツ?ィテ」ツ?ェテ」ツつ凝ッツシツ?
テ」ツ?づ」ツつ凝ヲツ猟・テ」ツ?ョテ」ツδ妥」ツつケテ」ツつソテ」ツ?ィテ」ツつクテ」ツδ・テ」ツδシテ」ツつケテ」ツ?ョテ・ツ?、テヲツョツオテ」ツ?古、ツクツ偲」ツ?暗」ツつ嘉」ツつ古」ツ?淌」ツ?ィテ」ツ?催ッツシツ古」ツ?敕」ツ?ョテヲツ猟・テ」ツ?ョテ」ツつサテ」ツδε」ツδ暗」ツδ。テ」ツδ凝」ツδ・テ」ツδシテ」ツ?ョテ、ツサツ」テゥツ?妥」ツ?ョテヲツ慊?・ツーツ湘・ツ?、テ」ツつ津ヲツアツづ」ツつ?」ツつ凝」ツδ療」ツδュテ」ツつーテ」ツδゥテ」ツδ?」ツつ津、ツスツ愿ヲツ按静」ツ?崚」ツつ暗ッツシツ?
*/

#include <stdio.h>

int main(void){
	int pasta = 2000, juice = 2000, input;

	// テ」ツδ妥」ツつケテ」ツつソテ」ツ?ョテ・ツ?・テ・ツ環?
	for (int i = 0; i < 3; i++){
		scanf_s("%d", &input);
		if (input < pasta){
			pasta = input;
		}
	}

	// テ」ツつクテ」ツδ・テ」ツδシテ」ツつケテ」ツ?ョテ・ツ?・テ・ツ環?
	for (int i = 0; i < 2; i++){
		scanf_s("%d", &input);
		if (input < juice){
			juice = input;
		}
	}

	// テ・ツ?コテ・ツ環?
	printf("%d\n", pasta + juice - 50);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   13 |                 scanf_s("%d", &input);
      |                 ^~~~~~~
      |                 scanf
a.cc:21:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   21 |                 scanf_s("%d", &input);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <stack>
#include <queue>

using namespace std;

int main()
{
	int a,b,c,d,e,f,g,h;
	cin>>a;
	cin>>b;
	cin>>c;
	cin>>d;
	cin>>e;
	if(e<d)
	{
		f=e-50;
		if(a<b)
		{
			if(a<c){cout<<a+f<<endl;}
			else{cout<<c+f<<endl;}
		}
		else
		{
			if(b<c){cout<<b+f<<endl;}
			else{cout<<c+f<<endl;}
		}
	}
	else
	{
		f=d-50;
		if(a<b)
		{
			if(a<c){cout<<a+f<<endl;}
			else{cout<<c+f<<endl;}
		}
		else
		{
			if(b<c){cout<<b+f<<endl;}
			else{cout<<c+f<<endl;}
		}
		
	}
    getchar 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:12: error: expected ';' before numeric constant
   46 |     getchar 0;
      |            ^~
      |            ;
Language: C++


#include<iostream>

using namespace std;

int main(){
	
	
	cin >> a >> b >> c >> d >>e;
	    if (99<a<1000)
        if (99<b<1000)
		if (99<c<1000)
		if (99<d<1000)	
        if (99<e<1000)

					
	if (a<b<c)
	{ 
		cout <<a+min(d,e)-50<<endl;
	}
	else if (a<c<b)
	{
		cout <<a+min(d,e)-50<<endl;
	}
	else if (b<a<c )
	{
		cout <<b+min(d,e)-50<<endl;
	}
	else if (b<c<a )
	{
		cout <<b+min(d,e)-50<<endl;
	}
	else if (c<a<b )
	{
		cout <<c+min(d,e)-50<<endl;
	}
	
	else  if(c<b<a)
	{
		cout <<c+min(d,e)-50<<endl;
	}
		
	else if (a=b<c)
	{
		cout <<a+min(d,e)-50<<endl;

	}
	else if (a=b>c)
	{
		cout <<c+min(d,e)-50<<endl;

	}	
	else if (a=c<b)
	{
		cout <<a+min(d,e)-50<<endl;

	}	
	else if (a=c>b)
	{
		cout <<b+min(d,e)-50<<endl;

	}	
	else if (b=c<a)
	{
		cout <<b+min (d,e)-50<<endl;
	}
	else if (b=c>a)
	{
		cout <<a+min(d,e)-50<<endl;
	}
	else if (a=b=c)
	{
		cout <<a+min(d,e)<<endl;
	}
                 
		
	
	
 
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'a' was not declared in this scope
    9 |         cin >> a >> b >> c >> d >>e;
      |                ^
a.cc:9:21: error: 'b' was not declared in this scope
    9 |         cin >> a >> b >> c >> d >>e;
      |                     ^
a.cc:9:26: error: 'c' was not declared in this scope
    9 |         cin >> a >> b >> c >> d >>e;
      |                          ^
a.cc:9:31: error: 'd' was not declared in this scope
    9 |         cin >> a >> b >> c >> d >>e;
      |                               ^
a.cc:9:35: error: 'e' was not declared in this scope
    9 |         cin >> a >> b >> c >> d >>e;
      |                                   ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int a,b,c,d,e,f.g;
cin>>a>>b>>c>>d>>e;
if(a>b){
if(b>c){
f=c;
}
if(b<c){
f=b;
}
}
else{
if(a<c){
f=a;
}
if(a>c){
f=c;
}
}

if(d<e){
g=d;
}

if(d>e){
g=e;
}
cout<<f+g-50;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: expected initializer before '.' token
    5 | int a,b,c,d,e,f.g;
      |                ^
a.cc:9:1: error: 'f' was not declared in this scope
    9 | f=c;
      | ^
a.cc:12:1: error: 'f' was not declared in this scope
   12 | f=b;
      | ^
a.cc:17:1: error: 'f' was not declared in this scope
   17 | f=a;
      | ^
a.cc:20:1: error: 'f' was not declared in this scope
   20 | f=c;
      | ^
a.cc:25:1: error: 'g' was not declared in this scope
   25 | g=d;
      | ^
a.cc:29:1: error: 'g' was not declared in this scope
   29 | g=e;
      | ^
a.cc:31:7: error: 'f' was not declared in this scope
   31 | cout<<f+g-50;
      |       ^
a.cc:31:9: error: 'g' was not declared in this scope
   31 | cout<<f+g-50;
      |         ^
Language: C++

#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
	int pa, pb, pc, ja jb;
	int pm, jm;
	scanf("%d%d%d%d%d", &pa, &pb, &pc, &ja, &jb);
	pm = min(pa,pb,pc);
	jm = min(ja,jb);
	printf("%d\n", pm+jm-50);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: error: expected initializer before 'jb'
    6 |         int pa, pb, pc, ja jb;
      |                            ^~
a.cc:8:45: error: 'ja' was not declared in this scope; did you mean 'jm'?
    8 |         scanf("%d%d%d%d%d", &pa, &pb, &pc, &ja, &jb);
      |                                             ^~
      |                                             jm
a.cc:8:50: error: 'jb' was not declared in this scope; did you mean 'jm'?
    8 |         scanf("%d%d%d%d%d", &pa, &pb, &pc, &ja, &jb);
      |                                                  ^~
      |                                                  jm
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: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:9:10:   required from here
    9 |         pm = min(pa,pb,pc);
      |              ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<math.h>
#include<stdlib.h>
#include<cstdlib>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: warning: ignoring return value of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]', declared with attribute 'nodiscard' [-Wunused-result]
   12 |   cout << (min((min(a, b), c) + min(d, e) - 50) << 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: declared here
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:12:15: error: no matching function for call to 'min(int)'
   12 |   cout << (min((min(a, b), c) + min(d, e) - 50) << 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
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   template argument deduction/substitution failed:
a.cc:12:15: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   12 |   cout << (min((min(a, b), c) + min(d, e) - 50) << endl;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   candidate expects 2 arguments, 1 provided
a.cc:12:56: error: expected ')' before ';' token
   12 |   cout << (min((min(a, b), c) + min(d, e) - 50) << endl;
      |           ~                                            ^
      |                                                        )
Language: C++

#include<iostream>
int main() {
	int pasta[3];
	int juise[2];
	int min1=INFINITY, min2=INFINITY;
	for (int i = 0; i < 3; ++i){
		std::cin >> pasta[i];
		if (pasta[i] < min1)min1 = pasta[i];
	}
	for (int i = 0; i < 2; ++i) { std::cin >> juise[i]; if (juise[i] < min2)min2 = juise[i]; }
	std::cout << min1 + min2-50 << std::endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: 'INFINITY' was not declared in this scope
    5 |         int min1=INFINITY, min2=INFINITY;
      |                  ^~~~~~~~
a.cc:10:76: error: 'min2' was not declared in this scope; did you mean 'min1'?
   10 |         for (int i = 0; i < 2; ++i) { std::cin >> juise[i]; if (juise[i] < min2)min2 = juise[i]; }
      |                                                                            ^~~~
      |                                                                            min1
a.cc:11:29: error: 'min2' was not declared in this scope; did you mean 'min1'?
   11 |         std::cout << min1 + min2-50 << std::endl;
      |                             ^~~~
      |                             min1
Language: C++

#include<stdio.h>
int main()
{
	int a, a_min =2001, b, b_min = 2001;
	for (int i = 1; i <= 3; i++) {
		scanf("%d", &a);
		if (a < a_min) {
			a_min = a;
		}
	}
	for(int i=1;i<=2;i++){
		scanf("%d", &b);
		if (b < b_min) {
			b_min = b;
		}

	}
	printf("%d\n", a_min + b_min-50;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:40: error: expected ')' before ';' token
   18 |         printf("%d\n", a_min + b_min-50;
      |               ~                        ^
      |                                        )
Language: C++

#include<iostream>
using namespace std;
int main(void){
	int a[5000], b, c, g = 0, h = 0, i, g1[5000]={0}, g2[5000]={0};
	for(i=0;i<3;i++){	
		cin >> a[i];
	}
	cin >> b >> c;
	for(i=0;i<3;i++){	
		g1[i] = a[i] + b - 50;
		g2[i] = a[i] + c - 50;
	}
	if(g1[0] < g1[1]){
		 g = g1[0];
	}	
	else{
		 g = g1[1];
	}
	if(g > g1[2]){
		 g = g1[2];
	}	
	if(g2[0] < g2[1]) h = g2[0];	
	}
	else{
		 h = g2[1];
	}
	if(h > g2[2]){
		 h = g2[2];
	}
	if(g < h){
		 cout << g;
	}
	else{
		 cout << h << endl;
 	}
	return 0;
}

Compiler output:
a.cc:24:9: error: expected unqualified-id before 'else'
   24 |         else{
      |         ^~~~
a.cc:27:9: error: expected unqualified-id before 'if'
   27 |         if(h > g2[2]){
      |         ^~
a.cc:30:9: error: expected unqualified-id before 'if'
   30 |         if(g < h){
      |         ^~
a.cc:33:9: error: expected unqualified-id before 'else'
   33 |         else{
      |         ^~~~
a.cc:36:9: error: expected unqualified-id before 'return'
   36 |         return 0;
      |         ^~~~~~
a.cc:37:1: error: expected declaration before '}' token
   37 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

int main(){
	int p1;
	int p2;
	int p3;
	int j1;
	int j2;
	cin >> p1 >> p2 >> p3 >> j1 >> j2;
	int p = min({ p1, p2, p3 });
	int j = min({ j1, j2 });
	cout << p + j - 50<< endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   12 |         int p = min({ p1, p2, p3 });
      |                 ~~~^~~~~~~~~~~~~~~~
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:13:20: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   13 |         int j = min({ j1, j2 });
      |                 ~~~^~~~~~~~~~~~
/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>


using namespace std;

int main(){
	int p1;
	int p2;
	int p3;
	int j1;
	int j2;
	cin >> p1 >> p2 >> p3 >> j1 >> j2;
	int p = min({ p1, p2, p3 });
	int j = min({ j1, j2 });
	cout << p + j - 50<< endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   13 |         int p = min({ p1, p2, p3 });
      |                 ~~~^~~~~~~~~~~~~~~~
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:14:20: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   14 |         int j = min({ j1, j2 });
      |                 ~~~^~~~~~~~~~~~
/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>


using namespace std;

int main(){
	int p1;
	int p2;
	int p3;
	int j1;
	int j2;
	cin >> p1 >> p2 >> p3 >> j1 >> j2;
	int p = min({ p1, min(p2, p3) });
	int j = min({ j1, j2 });
	cout << p + j - 50<< endl;
	getchar();
	getchar();
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   13 |         int p = min({ p1, min(p2, p3) });
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~
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:14:20: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   14 |         int j = min({ j1, j2 });
      |                 ~~~^~~~~~~~~~~~
/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>


using namespace std;

int main(){
	int p1;
	int p2;
	int p3;
	int j1;
	int j2;
	cin >> p1 >> p2 >> p3 >> j1 >> j2;
	int p = min({ p1, min(p2, p3) });
	int j = min({ j1, j2 });
	cout << p + j - 50<< endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   13 |         int p = min({ p1, min(p2, p3) });
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~
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:14:20: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   14 |         int j = min({ j1, j2 });
      |                 ~~~^~~~~~~~~~~~
/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 <bits/stdc++.h>
using namespace std;
int main()
{
  int data;
  int minv;
  int sum = 0;
  for(int i = 0;i < 3;i++) {
    minv = INT_MIN;
    cin >> data;
    minv = min(data,minv);
  }
  sum += minv;
  int a,b;
  cin >> a >> b;
  if(a < b)cout << minv + a - 50 << endl;
  else cout << minv + b - 50 << endl;]
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:17:38: error: expected primary-expression before ']' token
   17 |   else cout << minv + b - 50 << endl;]
      |                                      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int data;
  int minv;
  for(int i = 0;i < 3;i++) {
    minv = INT_MAX;
    cin >> data;
    minv = min(data,minv);
  }
  int a,b;
  cin >> a >> b;
  if(a < b)cout << minv + a - 50 << endl;
  else cout << minv + b - 50 << endl;]
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:15:38: error: expected primary-expression before ']' token
   15 |   else cout << minv + b - 50 << endl;]
      |                                      ^
Language: C++

#include<iostream>
using namespace std;
int p1, p2, p3, j1, j2;
int main(){
cin >> p1 >> p2 >> p3 >> j1 >> j2;
cout << min(min(p1, p2), p3) + min(j1, j2) - 50 << endl;
return ;
}

Compiler output:
a.cc:3:17: warning: built-in function 'j1' declared as non-function [-Wbuiltin-declaration-mismatch]
    3 | int p1, p2, p3, j1, j2;
      |                 ^~
a.cc: In function 'int main()':
a.cc:7:1: error: return-statement with no value, in function returning 'int' [-fpermissive]
    7 | return ;
      | ^~~~~~
Language: C++

#include <stdio.h>
int main(){
int a,b,temp;
scanf("%d",&a);
scanf("%d",&temp):
if(temp<a)a=temp;
scanf("%d",&temp):
if(temp<a)a=temp;
b=a;
scanf("%d",&a);
scanf("%d",&temp):
if(temp<a)a=temp;
printf("%d\n",a+b-50);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: expected ';' before ':' token
    5 | scanf("%d",&temp):
      |                  ^
      |                  ;
a.cc:7:18: error: expected ';' before ':' token
    7 | scanf("%d",&temp):
      |                  ^
      |                  ;
a.cc:11:18: error: expected ';' before ':' token
   11 | scanf("%d",&temp):
      |                  ^
      |                  ;
Language: C++

#include<iostream>
using namespace std;
int p1,p2,p3,j1,j2;
int main(){
    cin>>p1>>p2>>p3>>j1>>j2>>;
    cout<<min(min(p1,p2),p3)+ min(j1,j2) - 50<<endl;
    return 0;
}

Compiler output:
a.cc:3:14: warning: built-in function 'j1' declared as non-function [-Wbuiltin-declaration-mismatch]
    3 | int p1,p2,p3,j1,j2;
      |              ^~
a.cc: In function 'int main()':
a.cc:5:30: error: expected primary-expression before ';' token
    5 |     cin>>p1>>p2>>p3>>j1>>j2>>;
      |                              ^
Language: C++

#include<iostream>
using namespace std;
int i, n, pA, pB, ta= 0, tB= 0;
int main(){
    while(cin >> n) {
        if(n == 0) {break; }
        for (i=1; i<=n; i++) {
            cin >> pA>>pB;
            if (pA >pB) {
                tA += pA +pB;
            } else {
                if (pA<pB) {
                    tB += pA +pB;
                } else {
                    tA += pA;
                    tB += pB;
                }
            }
         }
         cout << tA << " "<< tB << endl;
         tA = 0; tB = 0;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'tA' was not declared in this scope; did you mean 'ta'?
   10 |                 tA += pA +pB;
      |                 ^~
      |                 ta
a.cc:15:21: error: 'tA' was not declared in this scope; did you mean 'ta'?
   15 |                     tA += pA;
      |                     ^~
      |                     ta
a.cc:20:18: error: 'tA' was not declared in this scope; did you mean 'ta'?
   20 |          cout << tA << " "<< tB << endl;
      |                  ^~
      |                  ta
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
    int A,B,C,D,E;
    cin>>A>>B>>C>>D>>E;
    cout<<(min({A,B,C})+min(D,E)-50)<<endl;
}a

Compiler output:
a.cc:8:2: error: 'a' does not name a type
    8 | }a
      |  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:23: error: expected primary-expression before '>' token
   23 |         cout<<A<<endl;>
      |                       ^
a.cc:24:9: error: expected primary-expression before 'return'
   24 |         return 0;
      |         ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int a, b, c, d, e;
    cin>>a>>b>>c>>d>>e;
    
    if(a > b) swap(a,b)
    if(b > c) swap(b,c)
    if(a > b) swap(a,b)
    if(d > e) swap(d,e)
    
    cout<<a+d-50<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected ';' before 'if'
    7 |     if(a > b) swap(a,b)
      |                        ^
      |                        ;
    8 |     if(b > c) swap(b,c)
      |     ~~
Language: C++

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

int main(){
 int x;
 int y;
 int z;
 int a;
 int b;
 cin>>x>>y>>z>>a>>b;

 int p = x+a-50;
 int q = x+b-50;
 int r = y+a-50;
 int s = y+b-50;
 int t = z+a-50;
 int u = z+b-50;
   int min;
   int k={p,q,r,s,t,u};
   for(int i=0;i<k;i++){
    min = min(min,k[i]);
   }
 cout<<min<<endl;
 return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:19:8: error: scalar object 'k' requires one element in initializer
   19 |    int k={p,q,r,s,t,u};
      |        ^
a.cc:21:23: error: 'min' cannot be used as a function
   21 |     min = min(min,k[i]);
      |                       ^
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <string>
#include <cstring>
#include <cctype>
#include <cmath>
#include <stack>
#include <queue>
#include <vector>
#include <set>
#include <map>
#include <list>
#include <stdio.h>
#include <string.h>
#include <cstdlib>
#include <math.h>
#include <bitset>
#define INF 2000000000
using namespace std;
int dx[4]={1,0,-1,0},dy[4]={0,1,0,-1};
#define ll long long
#define PL pair<long long, long long>
#define P pair<int,int>
#define mk make_pair
#define en endl;
#define WHITE 0
#define BLACK 2
#define GRAY 1
#define RE return 0;
#define HERE cout<<"    "<<"HERE"<<en

int main(){
  int p1,p2,p3;
  cin>>p1>>p2>>p3;
  int p=min(p1,p2,p3);
  int j1,j2;
  cin>>j1>>j2;
  int j=min(j1,j2);
  cout<<j+p-50<<en
}




Compiler output:
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: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:36:12:   required from here
   36 |   int p=min(p1,p2,p3);
      |         ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <stdio.h>

int main(){
	int a[3], b[2], c[2], answer;
	scanf("%d%d%d%d%d",&a[0],&a[1],&a[2],&b[0],&b[1]);
	if (a[0]>a[1]){
		c[0] = a[1];	
	}
	else{
		c[0] = a[0];
	}

	if (c[0]>a[2]){
		c[0] = a[2];
	}

	if (b[0]>b[1]){
		c[1] = b[1];
	}
	else{
		c[1] = b[0];
	}
	answer = c[0] + c[1] - 50;
	printf("%d\n",answer);
	char i[1000];
	gets(i);
	gets(i);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   26 |         gets(i);
      |         ^~~~
      |         getw
Language: C++

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

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,c,d;main(e){scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);a=!printf("%d\n",d<e?d:e+fmin(a>b?a:b,c));}
      | ^
a.cc:1:13: error: expected constructor, destructor, or type conversion before '(' token
    1 | a,b,c,d;main(e){scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);a=!printf("%d\n",d<e?d:e+fmin(a>b?a:b,c));}
      |             ^
Language: C++

#include <iostream>
using namespace std;

void main(){
	int pa,pb,pc,ja,jb,ans=0;
	
	cin >> pa >> pb >> pc >> ja >> jb;
	
	if(pa < pb){
		ans += (pa < pc) ? pa : pc;
	}else{
		ans += (pb < pc) ? pb : pc;
	}
	
	ans += (ja < jb) ? ja : jb;
	
	cout << ans-50 << endl;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(){
      | ^~~~
Language: C++

#include <stdio.h>

int main(){
int a,b,A=9999,B=9999;
for(int i=0;i<3;i++)scanf("%d",&a),A=min(A,a);
for(int i=0;i<2;i++)scanf("%d",&b),B=min(B,b);
printf("%d\n",A+B-50);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:38: error: 'min' was not declared in this scope; did you mean 'main'?
    5 | for(int i=0;i<3;i++)scanf("%d",&a),A=min(A,a);
      |                                      ^~~
      |                                      main
a.cc:6:38: error: 'min' was not declared in this scope; did you mean 'main'?
    6 | for(int i=0;i<2;i++)scanf("%d",&b),B=min(B,b);
      |                                      ^~~
      |                                      main
Language: C++

#include <stdio.h>
#include <algorithm>

int main(){
int a,b,A=9999,B=9999;
for(int i=0;i<3;i++)scanf("%d",&a),A=min(A,a);
for(int i=0;i<2;i++)scanf("%d",&b),B=min(B,b);
printf("%d\n",A+B-50);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:38: error: 'min' was not declared in this scope; did you mean 'std::min'?
    6 | for(int i=0;i<3;i++)scanf("%d",&a),A=min(A,a);
      |                                      ^~~
      |                                      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:7:38: error: 'min' was not declared in this scope; did you mean 'std::min'?
    7 | for(int i=0;i<2;i++)scanf("%d",&b),B=min(B,b);
      |                                      ^~~
      |                                      std::min
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

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

int main(void){
	int p=10000;
	int ju=10000;
	
	for(int i = 0; i < 3; i++){
		int t;
		scanf("%d", &t);
		p = min(p,t);
	}
	
	for(int i = 0; i < 2; i++){
		int t;
		scanf("%d", &t);
		ju = min(ju,t);
	}
	
	printf("%d\n", ju+p-50);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: 'min' was not declared in this scope; did you mean 'main'?
   11 |                 p = min(p,t);
      |                     ^~~
      |                     main
a.cc:17:22: error: 'min' was not declared in this scope; did you mean 'main'?
   17 |                 ju = min(ju,t);
      |                      ^~~
      |                      main
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);
	int m,n;
	if (a<b)
		if (a>c) m = c;
		else     m = a;
	else
		if (b>c) m = c;
		else	 m = b;
	if (d<e) n = d;
	else	 n = e;
	int S;
	S = m + n - 50;
	printf("%d",S\n");
}

Compiler output:
a.cc:22:22: error: stray '\' in program
   22 |         printf("%d",S\n");
      |                      ^
a.cc:22:24: warning: missing terminating " character
   22 |         printf("%d",S\n");
      |                        ^
a.cc:22:24: error: missing terminating " character
   22 |         printf("%d",S\n");
      |                        ^~~
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:22:22: error: expected ')' before 'n'
   22 |         printf("%d",S\n");
      |               ~      ^~
      |                      )
Language: C++

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

import java.util.Scanner;

public class main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int a[] = new int[100];
		for(int i = 1; i <= n*(n-1)/2; i++){
			int team1 = in.nextInt();
			int team2 = in.nextInt();
			int point1 = in.nextInt();
			int point2 = in.nextInt();
			if(point1 > point2){
				a[team1] += 3;
				continue;
			}else if(point1 < point2){
				a[team2] += 3;
				continue;
			}else if(point1 == point2){
				a[team1] += 1;
				a[team2] += 1;
			}
		}
		for(int j = 1; j <= n; j++){
			int an = n;
			for(int k = 1; k <= n; k++){
				if(j == k){
					continue;
				}else if(a[j] >= a[k]){
					an--;
				}
			}
			System.out.println(an);
		}
	}

}

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

public class soccer {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		int tokuten[] =  new int[N+1];//得点の配列

		for(int i = 0;i<N*(N-1)/2;i++){//Nチームあるときの試合数まで繰り返す
			int a = sc.nextInt();
			int b = sc.nextInt();
			int a1 = sc.nextInt();
		    int b1 = sc.nextInt();
		    
		    if (a1 > b1){//aが勝った場合
		    	tokuten[a] += 3;
		    }else if (a1 < b1){//bが勝った場合
		    tokuten[b] += 3;
		    }else{//同点の場合
		    tokuten[a] += 1;
		    tokuten[b] += 1;
		    }
		}

		for(int i = 1; i < N+1; i++){
			int length = 1;
			for(int j = 0; j < N+1; j++){
				if(tokuten[i] < tokuten[j])
					length += 1;
			}
		    System.out.println(length);
		}
	}
}

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