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

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

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


Compiler output:
main.c: In function 'main':
main.c:13:19: error: expected '(' before '{' token
   13 |         } else if {
      |                   ^
      |                   (
main.c:14:43: error: expected ';' before '{' token
   14 |             ((b+c)<=(a+b) && (b+c)<=(a+c)){
      |                                           ^
      |                                           ;
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
main.c:24:1: error: expected declaration or statement at end of input
Language: C++

#include <iostream>
#include <fstream>
#include <cstdio>
#include <cassert>
#include <complex>
#include <cmath>
#include <algorithm>
#include <vector>
#include <string>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <numeric>
#include <sstream>
#include <ctime>
#include <cctype>
#include <set>
#include <map>
#include <queue>
#include <bitset>
#include <deque>
#include <stack>
#include <memory.h>
using namespace std;
#define ll long long 
ll exp_mod(int a,int b,int p) {
  ll ans=1;
  ll cur=a;
  while (b>0){
    if (b%2==1)
      ans=(ans*cur) % p;
    cur=(cur*cur) % p;
    b/=2;
  }
  return ans;
}
 
int main(int argc,char **argv) {
  int n,x,y;
  cin>>n;
  map<int,int> h;
  for (int i=0; i < n+1; ++i) {
    int k;
    cin>>k;
    map<int,int> it=h.find(k);
    if (it != h.end()) {
      x=it->second;
      y=i+1;
    }
    else
      h[k]=i+1;
  }
  const int P=1000000007;
  ll a=1;
  ll b=1;
  int exp=1;
  for (int k=1;k<= n+1; ++k) {
    int w=exp_mod(k,P-2,P);
    a=(a*(n+2-k))%P;
    a=(a*w)%P;
 
    if (k>=2) {
      b=(b*(n+x-y-k+2))%P;
      b=(b*prev_exp)%P;
    }
    exp=w;
    int c=(a-b)%P;
    if (c<0)c+=P;
    cout<<c;
  }
  return 0;
}

Compiler output:
a.cc:37:1: error: extended character   is not valid in an identifier
   37 |  
      | ^
a.cc:61:1: error: extended character   is not valid in an identifier
   61 |  
      | ^
a.cc:37:1: error: '\U000000a0' does not name a type
   37 |  
      | ^
Language: C

#include <stdio.h>

int main(void){
   
   int a, b, c, min;

   scanf("%d %d %d", &a, &b, &c);
   
   if(a < 1 || 10000 < a || b < 1 || 10000 < b || c < 1 || 10000 < c){
     return 1;
   }
   
   min = 0;
   
   int min = a+b;
   
     if(a+c > min){
       min = a+c;
     }
     if(b+c > min){
       min = b+c;
     }
     
   printf("%d\n", min);
   
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:8: error: redeclaration of 'min' with no linkage
   15 |    int min = a+b;
      |        ^~~
main.c:5:17: note: previous declaration of 'min' with type 'int'
    5 |    int a, b, c, min;
      |                 ^~~
Language: Java

import java.util.Scanner;
import java.util.Random;
import java.util.Arrays;

class Main {
	
	public static void main(String[] args) {
		
		int a = new int[3];
        for (int i = 0; i < 3; i++) {
        	a[i] = sc.nextInt();
        }
        Arrays.sort(a);
        System.out.println(a[0] + a[1]);
        
  
    
    
}
}

Compiler output:
Main.java:9: error: incompatible types: int[] cannot be converted to int
		int a = new int[3];
		        ^
Main.java:11: error: array required, but int found
        	a[i] = sc.nextInt();
        	 ^
Main.java:11: error: cannot find symbol
        	a[i] = sc.nextInt();
        	       ^
  symbol:   variable sc
  location: class Main
Main.java:13: error: no suitable method found for sort(int)
        Arrays.sort(a);
              ^
    method Arrays.sort(int[]) is not applicable
      (argument mismatch; int cannot be converted to int[])
    method Arrays.sort(long[]) is not applicable
      (argument mismatch; int cannot be converted to long[])
    method Arrays.sort(short[]) is not applicable
      (argument mismatch; int cannot be converted to short[])
    method Arrays.sort(char[]) is not applicable
      (argument mismatch; int cannot be converted to char[])
    method Arrays.sort(byte[]) is not applicable
      (argument mismatch; int cannot be converted to byte[])
    method Arrays.sort(float[]) is not applicable
      (argument mismatch; int cannot be converted to float[])
    method Arrays.sort(double[]) is not applicable
      (argument mismatch; int cannot be converted to double[])
    method Arrays.sort(Object[]) is not applicable
      (argument mismatch; int cannot be converted to Object[])
    method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable
      (cannot infer type-variable(s) T#1
        (actual and formal argument lists differ in length))
    method Arrays.<T#2>sort(T#2[],int,int,Comparator<? super T#2>) is not applicable
      (cannot infer type-variable(s) T#2
        (actual and formal argument lists differ in length))
  where T#1,T#2 are type-variables:
    T#1 extends Object declared in method <T#1>sort(T#1[],Comparator<? super T#1>)
    T#2 extends Object declared in method <T#2>sort(T#2[],int,int,Comparator<? super T#2>)
Main.java:14: error: array required, but int found
        System.out.println(a[0] + a[1]);
                            ^
Main.java:14: error: array required, but int found
        System.out.println(a[0] + a[1]);
                                   ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
6 errors
Language: Java

import java.util.Scanner;
import java.util.Random;
import java.util.Arrays;

class Main {
	
	public static void main(String[] args) {
		
		int a = new int[3];
        for (int i = 0; i < 3; i++) {
        	int a[i] = sc.nextInt();
        }
        Arrays.sort(a);
        System.out.println(a[0] + a[1]);
        
  
    
    
}
}

Compiler output:
Main.java:11: error: ']' expected
        	int a[i] = sc.nextInt();
        	      ^
Main.java:11: error: ';' expected
        	int a[i] = sc.nextInt();
        	       ^
2 errors
Language: Java

package ans_20170701;

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int ans = 0;

		// 最安値の合計
		if(a <= b){
			ans = a;
		}else{
			ans = b;
		}

		if(b <= c){
			ans = ans + b;
		}else{
			ans = ans + c;
		}


// 出力
		System.out.println(ans));

		sc.close();
	}
}

Compiler output:
Main.java:29: error: ';' expected
		System.out.println(ans));
		                       ^
1 error
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>a>>b>>c;
      |         ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout<<min(a+b,min(b+c,a+c));
      |         ^~~~
a.cc:7:23: error: 'min' was not declared in this scope; did you mean 'main'?
    7 |         cout<<min(a+b,min(b+c,a+c));
      |                       ^~~
      |                       main
a.cc:7:15: error: 'min' was not declared in this scope; did you mean 'main'?
    7 |         cout<<min(a+b,min(b+c,a+c));
      |               ^~~
      |               main
Language: C++

# include < stdio .h >

 int main () {
 int a, b, c;
cin>>a>>b>>c;
 int max =a;
 if(b> max ) max =b;
 if(c> max ) max =c;
 cout<< a+b+c-max ;
 return 0;
 }

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

#include<bits/stdc++.h>
using namespace std;
int main(){
vector<int>v(3);
for(int i=0; i<3:i++)cin>>v[i];
sort(v.begin(),v.end());
cout<<v[0]+v[1]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
    5 | for(int i=0; i<3:i++)cin>>v[i];
      |              ^
a.cc:5:17: error: expected ';' before ':' token
    5 | for(int i=0; i<3:i++)cin>>v[i];
      |                 ^
      |                 ;
a.cc:6:5: error: could not convert 'std::sort<__gnu_cxx::__normal_iterator<int*, vector<int> > >(v.std::vector<int>::begin(), v.std::vector<int>::end())' from 'void' to 'bool'
    6 | sort(v.begin(),v.end());
      | ~~~~^~~~~~~~~~~~~~~~~~~
      |     |
      |     void
a.cc:7:22: error: expected ')' before ';' token
    7 | cout<<v[0]+v[1]<<endl;
      |                      ^
      |                      )
a.cc:5:4: note: to match this '('
    5 | for(int i=0; i<3:i++)cin>>v[i];
      |    ^
Language: Java

import java.util.*;
public class B4 {
	public static void main(String[]args){
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		int [] a = new int [n];
		for(int i=0;i<n;i++){
			a[i] = stdIn.nextInt();
		}
		int [] b = new int [n];
		int [] c = new int [n];
		
		for(int i=1;i<=n;i++){
			b[i-1] = a[i-1];
			for(int j=0;j<i;j++){
				c[j] = b[i-j-1];
			}
			for(int j=0;j<i;j++){
				b[j] = c[j];
			}
		}
		
		for(int i=0;i<n;i++){
			System.out.print(b[i]+" ");
		}
	}
	
}


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

#include <stdio.h>

int main(void)
{
	int a[3];
	int min =10000000;
	scanf("%d %d %d",&a[0],&a[1],&a[2]);
	for(int i=0;i<3;i++){
		for(j=0;j<3;j++){
			if(i!=j){
				if(a[i]+a[j]<min){
					min = a[i]+a[j];
				}
			}	
		}
	}
	printf("%d\n",min);
}

Compiler output:
main.c: In function 'main':
main.c:9:21: error: 'j' undeclared (first use in this function)
    9 |                 for(j=0;j<3;j++){
      |                     ^
main.c:9:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

   if
   if(a<=b){
      if(b<=c){
         min = a + b;
      }else{min = a + c;
      }
   }else{if(a<=c){
         min = b + a;
      }else{min = b + c;
      }
   }
   printf("minPrice = %d\n", min);
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:4: error: expected '(' before 'if'
    8 |    if(a<=b){
      |    ^~
      |    (
Language: C++

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

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

import java.util.Scanner;
 
public class Main {
  public static void main(String[] args){
  Scanner scan = new Scanner(System.in);
   
  
  int a = scan.nextInt();
  int b = scan.nextInt();
  int c = scan.nextInt();
  scan.close();
  int p = (a + b);
  int q = (a + c);
  int r = (b + c);
  
  if(p < q && p < r){
    System.out.println(p);
  	}
  else if(q < p && q < r){
  	System.out.println(q); 	
  	}
  else if(r < p && r < q){
  	System.out.println(r);
  	}
  	else if(r = p && r = q){
  	System.out.println(p);
  	}
  }
}

Compiler output:
Main.java:25: error: bad operand types for binary operator '&&'
  	else if(r = p && r = q){
  	              ^
  first type:  int
  second type: int
Main.java:25: error: incompatible types: int cannot be converted to boolean
  	else if(r = p && r = q){
  	          ^
2 errors
Language: Java

import java.util.Scanner;
 
public class Main {
  public static void main(String[] args){
  Scanner scan = new Scanner(System.in);
   
  
  int a = scan.nextInt();
  int b = scan.nextInt();
  int c = scan.nextInt();
  scan.close();
  int p = (a + b);
  int q = (a + c);
  int r = (b + c);
  
  if(p < q && p < r){
    System.out.println(p);
  	}
  else if(q < p && q < r){
  	System.out.println(q); 	
  	}
  else if(r < p && r < q){
  	System.out.println(r);
  	}
  	else if(r = p && r = q)
  	System.out.println(p);
  	}
  }
}

Compiler output:
Main.java:29: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

import java.util.Scanner;
 
public class Main {
  public static void main(String[] args){
  Scanner scan = new Scanner(System.in);
   
  
  int a = scan.nextInt();
  int b = scan.nextInt();
  int c = scan.nextInt();
  scan.close();
  int p = (a + b);
  int q = (a + c);
  int r = (b + c);
  
  if(p < q && p < r){
    System.out.println(p);
  	}
  else if(q < p && q < r){
  	System.out.println(q); 	
  	}
  else if(r < p && r < q){
  	System.out.println(r);
  	}
  	else if(r = p && r = q)
  	System.out.println(p);
  	}
  }
}

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 {
      | ^~~~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

                #include <stdio.h>
                 
                int main(void)
                {
                   int a,b,c;
                   int x,y,z;
                   int min;
                   
                   scanf_s("%d", &a);
                   scanf_s("%d", &b);
                   scanf_s("%d", &c);
                   
                   x = a + b;
                   y = b + c;
                   z = c + a;
                   
                   min = x;
                   if(x>y){
                   min = y;
                    if(y>z){
                    min=z;
                    }
                   }
                   else if(x>z){
                   min = z;
                   }
                   
                   printf("%d\n", min);
                 
                   return 0;
                }
     

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

            #include <stdio.h>
             
            int main(void)
            {
               int a,b,c;
               int x,y,z;
               int min;
               
               scanf_s("%d", &a);
               scanf_s("%d", &b);
               scanf_s("%d", &c);
               
               x = a + b;
               y = b + c;
               z = c + a;
               
               min = x;
               if(x>y){
               min = y;
                if(y>z){
                min=z;
                }
               }
               else if(x>z){
               min = z;
               }
               
               printf("%d\n", min);
             
               return 0;
            }



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

        #include <stdio.h>
         
        int main(void)
        {
           int a,b,c;
           int x,y,z;
           int min;
           
           scanf_s("%d", &a);
           scanf_s("%d", &b);
           scanf_s("%d", &c);
           
           x = a + b;
           y = b + c;
           z = c + a;
           
           min = x;
           if(x>y){
           min = y;
           if(y>z){
           min=z;
           }
           else if(x>z){
           min = z;
           }
           
           printf("%d\n", min);
         
           return 0;
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |            scanf_s("%d", &a);
      |            ^~~~~~~
      |            scanf
a.cc:30:10: error: expected '}' at end of input
   30 |         }
      |          ^
a.cc:4:9: note: to match this '{'
    4 |         {
      |         ^
Language: C++

    #include <stdio.h>
     
    int main(void)
    {
       int a,b,c;
       int x,y,z;
       int min;
       
       scanf_s("%d", &a);
       scanf_s("%d", &b);
       scanf_s("%d", &c);
       
       x = a + b;
       y = b + c;
       z = c + a;
       
       min = x;
       if(x>y){
       min = y;
       if(y>z){
       min=z;
       }
       else if(x>z){
       min = z;
       }
       
       printf("%d\n", min);
     
       return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |        scanf_s("%d", &a);
      |        ^~~~~~~
      |        scanf
a.cc:30:6: error: expected '}' at end of input
   30 |     }
      |      ^
a.cc:4:5: note: to match this '{'
    4 |     {
      |     ^
Language: C++

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

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

#include <stdio.h>

int main(void)
{
   int a,b,c;
   int x,y,z;
   int min;
   
   scanf("%d", a);
   scanf("%d", b);
   scanf("%d", c);
   
   x = a + b;
   y = b + c;
   z = c + a;
   
   min = x;
   if(x>y){
   min = y;
   if(y>z){
   min=z;
   }
   else if(x>z){
   min = z;
   }
   
   printf("%d\n", min);

   return 0;
}

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

#include <stdio.h>

int main(void)
{
   int a,b,c;
   int x,y,z;
   int min;
   
   scanf("%d", a);
   scanf("%d", b);
   scanf("%d", c);
   
   x = a + b;
   y = b + c;
   z = c + a;
   
   min = x;
   if(x>y){
   min = y;
   if(y>z){
   min=z;
   }
   else if(x>z){
   min = z;
   }

   printf("%d\n", min)   

   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:23: error: expected ';' before 'return'
   27 |    printf("%d\n", min)
      |                       ^
      |                       ;
   28 | 
   29 |    return 0;
      |    ~~~~~~              
a.cc:30:2: error: expected '}' at end of input
   30 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <stdio.h>

int main(void)
{
   int a,b,c;
   int x,y,z;
   int min;
   
   scanf("%d", a);
   scanf("%d", b);
   scanf("%d", c);
   
   x = a + b;
   y = b + c;
   z = c + a;
   
   min = x;
   if(x>y){
   min = y;
   if(y>z){
   min=z;
   }
   else if(x>z){
   min = z;
   }
   
   return 0;
}

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

#include <stdio.h>

int main(void)
{
   int a,b,c;
   int x,y,z;
   int min;
   
   scanf_s("%d", a);
   scanf_s("%d", b);
   scanf_s("%d", c);
   
   x = a + b;
   y = b + c;
   Z = c + a;
   
   min = x;
   if(x>y){
   min = y;
   if(y>z){
   min=z;
   }
   else if(x>z){
   min = z;
   }
   
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:4: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |    scanf_s("%d", a);
      |    ^~~~~~~
      |    scanf
a.cc:15:4: error: 'Z' was not declared in this scope
   15 |    Z = c + a;
      |    ^
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <stdio.h>

int main(void)
{
   int a,b,c;
   int x,y,z;
   
   scanf_s("%d", a);
   scanf_s("%d", b);
   scanf_s("%d", c);
   
   x = a + b;
   y = b + c;
   Z = c + a;
   
   min = x;
   if(x>y){
   min = y;
   if(y>z){
   min=z;
   }
   else if(x>z){
   min = z;
   }
   
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    8 |    scanf_s("%d", a);
      |    ^~~~~~~
      |    scanf
a.cc:14:4: error: 'Z' was not declared in this scope
   14 |    Z = c + a;
      |    ^
a.cc:16:4: error: 'min' was not declared in this scope; did you mean 'main'?
   16 |    min = x;
      |    ^~~
      |    main
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
	const size_t NUM = 3;
	int values[NUM];

	for (int i = 0; i < NUM; ++i)
	{
		cin >> values[i];
	}

	int sum;
	int min = numeric_limits<int>::max();

	for (int i = 0; i < NUM - 1; ++i)
	{
		for (int j = i + 1; j < NUM; ++j)
		{
			sum = values[i] + values[j];
			if (sum < min)
			{
				min = sum;
			}
		}
	}

	cout << min << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: 'numeric_limits' was not declared in this scope
   16 |         int min = numeric_limits<int>::max();
      |                   ^~~~~~~~~~~~~~
a.cc:16:34: error: expected primary-expression before 'int'
   16 |         int min = numeric_limits<int>::max();
      |                                  ^~~
Language: C

#include <stdio.h>

int main(void){
  int a;
  int b;
  int c;
  int d;
  int min;
  int min2;
  int goukei;
  
  scanf("%d%d%d",&a,&b,&c);
  if(1<a&&b&&c<10000){
  d = (a + b + c)/3;
  
  if(a>d){
   min = b;
   min2 = c;
  }else if(b>d){
   min = a;
   min2 = c;
  }else if(c>d){
   min = a;
   min2 = b;
  }else{
  min = a;
  min2 = b;
  }
  
  goukei = min + min2;
  printf("%d\n",goukei);
  
  return 0;
  }else{
  return 1;
  
  }
  
  
} 
    
  
  
c

Compiler output:
main.c:44:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   44 | c
      | ^
Language: C++

#include <stdio.h>
#include <stlib.h>
   int main(void){
      int a,b,c;
      scanf("%d%d%d",&a,&b,&c);
      int n,m,k;
      n=a+b;
      m=a+c;
      k=b+c;
      int min = n;
      if(min>m){
         min=m;
         printf("%d",min);
      }else if(min>k){
         min=k;
         printf("%d",min);
      }else{
         printf("%d",min);

   } 

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

#include <stdio.h>

int main(void) {
int n,j;
scanf("%d", &n); 
int a[n];
j
for (int i = 0; i < n; i++) {
   scanf("%d", &a[i]);
   j = 0;
   while (j =! i) { 
     a[j] = a[i-j];
     j++;
   }
}
for (int c = 0; c < n; c++) {
   printf("%d ",a[c]);
}

return 0

    
} 





}

Compiler output:
main.c: In function 'main':
main.c:7:2: error: expected ';' before 'for'
    7 | j
      |  ^
      |  ;
    8 | for (int i = 0; i < n; i++) {
      | ~~~
main.c: At top level:
main.c:29:1: error: expected identifier or '(' before '}' token
   29 | }
      | ^
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: expected ';' before '{' token
   13 |       }else(b<a && b<c){
      |                        ^
      |                        ;
Language: C++

#include <stdio.h>

int main(void){
    int a,b,c;
    sscanf("%d", &a); 
    sscanf("%d", &b); 
    sscanf("%d", &c); 

    int max = a;
  
    if(max < b){
    max = b;
    }
    if(max = c){
    max = c;
    }
    printf("%d\n",a+b+c-max);

    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: cannot convert 'int*' to 'const char*'
    5 |     sscanf("%d", &a);
      |                  ^~
      |                  |
      |                  int*
In file included from a.cc:1:
/usr/include/stdio.h:431:43: note:   initializing argument 2 of 'int sscanf(const char*, const char*, ...)'
  431 |                    const char *__restrict __format, ...) __THROW;
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:6:18: error: cannot convert 'int*' to 'const char*'
    6 |     sscanf("%d", &b);
      |                  ^~
      |                  |
      |                  int*
/usr/include/stdio.h:431:43: note:   initializing argument 2 of 'int sscanf(const char*, const char*, ...)'
  431 |                    const char *__restrict __format, ...) __THROW;
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:7:18: error: cannot convert 'int*' to 'const char*'
    7 |     sscanf("%d", &c);
      |                  ^~
      |                  |
      |                  int*
/usr/include/stdio.h:431:43: note:   initializing argument 2 of 'int sscanf(const char*, const char*, ...)'
  431 |                    const char *__restrict __format, ...) __THROW;
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <stdio.h>

int main(void){
    int a,b,c;
    sscanf("%d", &a); 
    sscanf("%d", &b); 
    sscanf("%d", &c); 

    int max = a;
  
    if(max < b)
    max = b;
  
    if(max = c)
    max = c;

    printf("%d\n",a+b+c-max);

    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: cannot convert 'int*' to 'const char*'
    5 |     sscanf("%d", &a);
      |                  ^~
      |                  |
      |                  int*
In file included from a.cc:1:
/usr/include/stdio.h:431:43: note:   initializing argument 2 of 'int sscanf(const char*, const char*, ...)'
  431 |                    const char *__restrict __format, ...) __THROW;
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:6:18: error: cannot convert 'int*' to 'const char*'
    6 |     sscanf("%d", &b);
      |                  ^~
      |                  |
      |                  int*
/usr/include/stdio.h:431:43: note:   initializing argument 2 of 'int sscanf(const char*, const char*, ...)'
  431 |                    const char *__restrict __format, ...) __THROW;
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:7:18: error: cannot convert 'int*' to 'const char*'
    7 |     sscanf("%d", &c);
      |                  ^~
      |                  |
      |                  int*
/usr/include/stdio.h:431:43: note:   initializing argument 2 of 'int sscanf(const char*, const char*, ...)'
  431 |                    const char *__restrict __format, ...) __THROW;
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <stdio.h>

int main(void){
    int a,b,c;
    sscanf(buf, "%d", &a); 
    sscanf(buf, "%d", &b); 
    sscanf(buf, "%d", &c); 

    int max = a;
  
    if(max < b)
    max = b;
  
    if(max = c)
    max = c;

    printf("%d",a+b+c-max);

    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'buf' was not declared in this scope
    5 |     sscanf(buf, "%d", &a);
      |            ^~~
Language: C++

#include <stdio.h>

int main(void){
    int a,b,c;
    int x;
    
    sscanf(buf, "%d", &a); 
    sscanf(buf, "%d", &b); 
    sscanf(buf, "%d", &c); 

    x = a + b;
  
    if(x > b + c)
    x = b + c; 
  
    if(x > c + a)
    x = c + a;

    printf("一番安いのは %d です。\n",x);

    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'buf' was not declared in this scope
    7 |     sscanf(buf, "%d", &a);
      |            ^~~
Language: C++

#include <stdio.h>

int main(void){
    int a,b,c;
    int x;
    
    sscanf("%d", &a); 
    sscanf("%d", &b); 
    sscanf("%d", &c); 

    x = a + b;
  
    if(x > b + c)
    x = b + c; 
  
    if(x > c + a)
    x = c + a;

    printf("一番安いのは %d です。\n",x);

    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: cannot convert 'int*' to 'const char*'
    7 |     sscanf("%d", &a);
      |                  ^~
      |                  |
      |                  int*
In file included from a.cc:1:
/usr/include/stdio.h:431:43: note:   initializing argument 2 of 'int sscanf(const char*, const char*, ...)'
  431 |                    const char *__restrict __format, ...) __THROW;
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:8:18: error: cannot convert 'int*' to 'const char*'
    8 |     sscanf("%d", &b);
      |                  ^~
      |                  |
      |                  int*
/usr/include/stdio.h:431:43: note:   initializing argument 2 of 'int sscanf(const char*, const char*, ...)'
  431 |                    const char *__restrict __format, ...) __THROW;
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:9:18: error: cannot convert 'int*' to 'const char*'
    9 |     sscanf("%d", &c);
      |                  ^~
      |                  |
      |                  int*
/usr/include/stdio.h:431:43: note:   initializing argument 2 of 'int sscanf(const char*, const char*, ...)'
  431 |                    const char *__restrict __format, ...) __THROW;
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C

#include<stdio.h>

   int main(void){
   int a,b,c;
   printf("数字を3つ入力してください");
   scanf("%d%d%d",&a,&b,&c)
   int max = a;
   if (b>max) max = b;
   if (c>max) max = c;
   printf("合計金額は%d\n", a + b + c - max)
   return (0);
}


Compiler output:
main.c: In function 'main':
main.c:6:28: error: expected ';' before 'int'
    6 |    scanf("%d%d%d",&a,&b,&c)
      |                            ^
      |                            ;
    7 |    int max = a;
      |    ~~~                      
main.c:8:10: error: 'max' undeclared (first use in this function)
    8 |    if (b>max) max = b;
      |          ^~~
main.c:8:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:45: error: expected ';' before 'return'
   10 |    printf("合計金額は%d\n", a + b + c - max)
      |                                             ^
      |                                             ;
   11 |    return (0);
      |    ~~~~~~
Language: C++

#include<stdio.h>

int main()
{
    int a,b,c;
    
    do{
        scanf("%d %d %d",&a,&b,&c);
    }while(!(1<=a && a<=10000 && 1<=b && b<=10000 && 1<=c && c<=10000))
    
    int max;
    max = a;
    if(b > max) max = b;
    if(c > max) max = c;
        
    printf("%d\n",a+b+c-max);
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:72: error: expected ';' before 'int'
    9 |     }while(!(1<=a && a<=10000 && 1<=b && b<=10000 && 1<=c && c<=10000))
      |                                                                        ^
      |                                                                        ;
   10 | 
   11 |     int max;
      |     ~~~
Language: C++

#include<stdio.h>

int main()
{
    int a,b,c;
    
    do{
        scanf("%d %d %d",&a,&b,&c);
    }while(!(1<=a && a<=10000 && 1<=b && b<=10000 && 1<=c && c<=10000))
    
    int max = a;
    if(b > max) max = b;
    if(c > max) max = c;
        
    printf("%d\n",a+b+c-max);
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:72: error: expected ';' before 'int'
    9 |     }while(!(1<=a && a<=10000 && 1<=b && b<=10000 && 1<=c && c<=10000))
      |                                                                        ^
      |                                                                        ;
   10 | 
   11 |     int max = a;
      |     ~~~
Language: C++

int main(){
int a,b,c;
scanf("%d %d %d", &a, &b, &c);
int max = a;
if(b>max) max=b;
if(c>max)max=c;
printf("%d\n",a+b+c-max);
return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'scanf' was not declared in this scope
    3 | scanf("%d %d %d", &a, &b, &c);
      | ^~~~~
a.cc:7:1: error: 'printf' was not declared in this scope
    7 | printf("%d\n",a+b+c-max);
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++



int main(){
int a,b,c;
int max = a;
if (a


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ')' at end of input
    6 | if (a
      |    ~ ^
      |      )
a.cc:6:6: error: expected statement at end of input
a.cc:6:6: error: expected '}' at end of input
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

    #include <stdio.h>
     
    int main(void){
        int a;
        int b;
        int c;
while(1<=a<=10000){
        scanf("%d" , &a);}
while(1<=b<=10000){
        scanf("%d" , &b)};
while(1<=c<=10000){
        scanf("%d" , &c)};
if(a > b && c > b)
{printf("%d",a+c)}
if(a > c && b > c)
{printf("%d",a+b)}
if(b > a && c > a)
{printf("%d",b+c)}




    }

Compiler output:
main.c: In function 'main':
main.c:10:25: error: expected ';' before '}' token
   10 |         scanf("%d" , &b)};
      |                         ^
      |                         ;
main.c:12:25: error: expected ';' before '}' token
   12 |         scanf("%d" , &c)};
      |                         ^
      |                         ;
main.c:14:18: error: expected ';' before '}' token
   14 | {printf("%d",a+c)}
      |                  ^
      |                  ;
main.c:16:18: error: expected ';' before '}' token
   16 | {printf("%d",a+b)}
      |                  ^
      |                  ;
main.c:18:18: error: expected ';' before '}' token
   18 | {printf("%d",b+c)}
      |                  ^
      |                  ;
Language: C

#include <stdio.h>
int main(void){
  char str[201];
  int i,j;
  scanf("%s",str);
  i=0;
  while(str[i]!='\0') i++;
  str[i-1]='\0';

  while(1){
    if(i%2==0){
      str[i-2]='\0';
    }
    i=0;
    while(str[i]!='\0') i++;

    for(j=0;j<i/2;j++){
      if(str[j]!=str[i/2+j]){
        break;
      }
    }
    if(j==i/2){
      printf("%d\n",i);
      break;
    }


    str[i-1]='\0';

    if(i==0){
      break;
    }

  }


Compiler output:
main.c: In function 'main':
main.c:34:3: error: expected declaration or statement at end of input
   34 |   }
      |   ^
Language: Java

Loading subst-jis...done
import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int sum = 0;
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        if (a >= b && a >= c) {
            sum = b + c;
        } else if (b >= a && b >= c) {
            sum = a + c;
        } else {
            sum = a + b;
        }
        System.out.println(sum);
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Loading subst-jis...done
^
Main.java:3: error: class, interface, enum, or record expected
import java.util.*;
^
2 errors
Language: C++

Loading subst-jis...done
import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int sum = 0;
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        if (a >= b && a >= c) {
            sum = b + c;
        } else if (b >= a && b >= c) {
            sum = a + c;
        } else {
            sum = a + b;
        }
        System.out.println(sum);
    }
}

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

#include <cstdio>
#define min(a,b) a>b ? b : a
int main(){
 
int a,b,c;
 
scanf("%d %d %d",&a,&b,&c);
 
int A,B,C;
 
A = a+b;
B = b+c;
C = a+c;
 
int ans = min(A,B);
printf("%d\n",min(ans,C));
 
 return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: expected '}' at end of input
   18 |  return 0;
      |           ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <cstdio>
#define min(a,b) a>b ? b : a;
int main(){

int a,b,c;

scanf("%d %d %d",&a,&b,&c);

int A,B,C;

A = a+b;
B = b+c;
C = a+c;

int ans = min(A,B);
printf("%d\n",min(ans,C));

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:29: error: expected ')' before ';' token
    2 | #define min(a,b) a>b ? b : a;
      |                             ^
a.cc:16:15: note: in expansion of macro 'min'
   16 | printf("%d\n",min(ans,C));
      |               ^~~
a.cc:16:7: note: to match this '('
   16 | printf("%d\n",min(ans,C));
      |       ^
a.cc:16:25: error: expected primary-expression before ')' token
   16 | printf("%d\n",min(ans,C));
      |                         ^
Language: C++

# include < stdio .h >

 int main () {
 int a, b, c;
 scanf ("%d␣%d␣%d", &a, &b, &c);
 int max =a;
 if(b> max ) max =b;
 if(c> max ) max =c;
 printf ("%d\n", a+b+c-max );
 return 0;
}

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

import java.util.*;

public class ringing {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		
		if(a<=b){
			if(b <= c){
				System.out.println(a+b);
			}else{
				System.out.println(a+c);
			}
		}else{
			if(a <= c){
				System.out.println(a+b);
			}else{
				System.out.println(b+c);
			}
		}
	}

}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class abc066 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		String input;
		String[] inputStr;
		long[] num = {0,0,0};
		long tmp, result;
		int i,j;

		try {
			while ((input = br.readLine()) != null) {
				inputStr = input.split(" ");
				num[0] = Long.parseLong(inputStr[0]);
				num[1] = Long.parseLong(inputStr[1]);
				num[2] = Long.parseLong(inputStr[2]);

				for(i=0;i<num.length-1;i++) {
					for(j=1;j<num.length;j++) {
						if(num[i] > num[j]) {
							tmp = num[i];
							num[i] = num[j];
							num[j] = tmp;
							continue;
						}
					}
				}
				result = num[0] + num[1];
				System.out.println(result);
			}
		} catch (IOException e) {
			System.out.println("入出力エラー" + e);
		}

	}

}

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

#include<iostream>
using namespace std;
int main() {
 int a, b, c, sum;
 cin >> a >> b >> c;
 if (a<c && b<c) {
  sum = a + b;
 } else if (a<b && c<b) {
  sum = a + c;
 } else {
  sum = b + c;
 }

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

#include <stdio>
using namespace std;

int max(int a, int b) {
    return a > b ? a : b;
}

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    cout << a + b + c - max(a, max(b, c)) << endl;

    return 0;
}

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

#include <iostream>
#include <stdio.h>
#include <cstring>
#include <math.h>
#include <algorithm>
#include <vector>
#define rep(i,n) for(int i=0;i<n;i++)
#define FOR(i,a,b) for(int i=a;i<b;i++)
using namespace std;
int show (int *,int,int);
int ch (int *,int,int,int);
int zero(int *,int,int);
int sum(int *,int,int);

int main(){
	
	int a,b,c;
	cin>>a>>b>>c;
	int ans=min(a+b,b+c,c+a);
	cout<<ans<<endl;

	return 0;
}

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:19:13:   required from here
   19 |         int ans=min(a+b,b+c,c+a);
      |                 ~~~^~~~~~~~~~~~~
/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, b, c;
	int ans;
	scanf("%d", &a);
	scanf("%d", &b);
	scanf("%d", &c);

	int max;
	
	max = a;
	if (max < b) max = b
	if (max < c) max = c

	printf("%d", a+b+c-max);

	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:29: error: expected ';' before 'if'
   13 |         if (max < b) max = b
      |                             ^
      |                             ;
   14 |         if (max < c) max = c
      |         ~~
Language: C++

#include <cstdio>
#include <iostream>
#include <vector>

using namespace std;

int main() {
  vector<int> tab(3, 0);
  cin >> tab[0] >> tab[1] >> tab[2];
  sort(tab.begin(), tab.end());
  cout << tab[0] + tab[1] << endl;
  return 0;
}

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

#include <iostream>
#include <vector>
// #include <map>
#include <algorithm>
// #include <numeric>
// #include <limits>

using namespace std;

int main() {
	vector<int> data(3);
	cin >> data[0] >> data[1] >> data[2];
	int max_val = *std::max_element(data.begin(), data.end());
	int sum = accumulate(data.begin(), data.end(), 0);
	cout << sum - max_val << endl;
	//std::cout << "\e[38;5;0m\e[48;5;40m --- end ---  \e[m" << std::endl; // debug
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: 'accumulate' was not declared in this scope
   14 |         int sum = accumulate(data.begin(), data.end(), 0);
      |                   ^~~~~~~~~~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collection;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String x = br.readLine();
		String[] cut = x.split(" ");
		int a = Integer.parseInt(cut[0]);
		int b = Integer.parseInt(cut[1]);
		int c = Integer.parseInt(cut[2]);

		ArrayList<Integer> array = new ArrayList<>();
		array.add(a);
		array.add(b);
		array.add(c);

		Collections.sort(array);

		int q = array.get(0);
		int p = array.get(1);

		System.out.println(q + p);

	}
}

Compiler output:
Main.java:21: error: cannot find symbol
		Collections.sort(array);
		^
  symbol:   variable Collections
  location: class Main
1 error
Language: C

#include <stdio.h>

int main(void)
{
  int a,b,c;

  scanf("%d %d %d",&a,&b,&c);

  if( (a >= b)&&(a >= c) )
    {
      printf("%d\n",b + c);
      return 0;
    }
  if( (b >= a)&&(b >= c) )
    {
      printf("%d/n",a + c);
      return 0;
    }
  if( (c>= a)&&(c >= b)
      printf("%d\n",a + b);

  return 0;
}









Compiler output:
main.c: In function 'main':
main.c:19:24: error: expected ')' before 'printf'
   19 |   if( (c>= a)&&(c >= b)
      |     ~                  ^
      |                        )
   20 |       printf("%d\n",a + b);
      |       ~~~~~~            
main.c:23:1: error: expected expression before '}' token
   23 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
    int A,B,C;
int main(){
    cin>>A>>B>>C;
    cout<<A+B+C-max({A,B,C});
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    6 |     cout<<A+B+C-max({A,B,C});
      |                 ~~~^~~~~~~~~
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:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
Language: C++

#include<iostream>
using namespace std;
int main(){
	int n,temp,d,e;
	int a[200000];
	int b[200000];
	
	cin >> n;
	for (int i = 0; i < n; i++) cin >> a[i]; cin;
 
	for (int i = 0; i < n; i++) {
 
		b[i] = a[i];//末尾に追加
		
 
		//bを逆向きに並び替える
		d = 0;
		e = i;
		while(d < e)
		{
			temp = b[d];
			b[d] = b[e];
			b[e] = temp;
			i++;
			e--;
		}
 
 
	}
 
	for (int i = 0; i < n - 1; i++) {
 
		cout << b[i] <<" ";
	
	}
 
	cout << b[n - 1]<<endl;
 
}

Compiler output:
a.cc:10:1: error: extended character   is not valid in an identifier
   10 |  
      | ^
a.cc:12:1: error: extended character   is not valid in an identifier
   12 |  
      | ^
a.cc:15:1: error: extended character   is not valid in an identifier
   15 |  
      | ^
a.cc:27:1: error: extended character   is not valid in an identifier
   27 |  
      | ^
a.cc:28:1: error: extended character   is not valid in an identifier
   28 |  
      | ^
a.cc:30:1: error: extended character   is not valid in an identifier
   30 |  
      | ^
a.cc:32:1: error: extended character   is not valid in an identifier
   32 |  
      | ^
a.cc:36:1: error: extended character   is not valid in an identifier
   36 |  
      | ^
a.cc:38:1: error: extended character   is not valid in an identifier
   38 |  
      | ^
a.cc: In function 'int main()':
a.cc:10:1: error: '\U000000a0' was not declared in this scope
   10 |  
      | ^
a.cc:11:25: error: 'i' was not declared in this scope
   11 |         for (int i = 0; i < n; i++) {
      |                         ^
a.cc:30:2: error: expected ';' before 'for'
   30 |  
      |  ^
      |  ;
   31 |         for (int i = 0; i < n - 1; i++) {
      |         ~~~
a.cc:36:2: error: expected ';' before 'cout'
   36 |  
      |  ^
      |  ;
   37 |         cout << b[n - 1]<<endl;
      |         ~~~~
a.cc:38:2: error: expected ';' before '}' token
   38 |  
      |  ^
      |  ;
   39 | }
      | ~