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

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

int main() {
  int a, b, c;
  cin >> a >> b >> c;

  cout << a + b + c - max(a, b, c) << endl;
  return 0;
}

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:10:26:   required from here
   10 |   cout << a + b + c - max(a, b, c) << endl;
      |                       ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

Compiler output:
a.cc:4:1: error: 'ina' does not name a type; did you mean 'int'?
    4 | ina main(){
      | ^~~
      | int
Language: C++

#include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i, s, n) for (int i = (s); i < (n); ++i)
#define rrep(i, n, g) for (int i = (n)-1; i >= (g); --i)
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define len(x) (int)(x).size()
#define dup(x, y) (((x) + (y)-1) / (y))
#define pb push_back
#define Field(T) vector<vector<T>>
using namespace std;
using ll = long long;
using P = pair<int, int>;

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

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:19:26:   required from here
   19 |   cout << a + b + c - max(a, b, c) << endl;
      |                       ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{

int a,b,c,x,y,z;
cin>>a>>b>>;
x=a+b;
y=a+c;
z=c+b;
if(x<y&&x<z)
       cout<<x;
else if(y<x&&y<z)
       cout<<y;
else if(z<x&&z<y)
       cout<<z;
else
       cout<<x;




    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected primary-expression before ';' token
    9 | cin>>a>>b>>;
      |            ^
Language: C++

#include <iostream>

using namespace std;

int main()
{

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

if(a+b<<a+c&&a+b<<c+b)
       cout<<a+b;
else if(a+c<<a+b&&a+c<<c+b)
       cout<<a+c;
else if(b+c<<a+b&&c+b<<a+c)
       cout<<c+b;
else
if(a+b==a+c&&a+b==z&&a+c==b+c)
       cout<<a+b;




    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: 'z' was not declared in this scope
   18 | if(a+b==a+c&&a+b==z&&a+c==b+c)
      |                   ^
Language: C++

#include <iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<cmath>
#include<set>

using namespace std;

int main()
{
	int a, b, c;
	cin >> a >> b >> c;

	int ans1 = a + b;
	int ans2 = a + c;
	int ans3 = b + c;

	cout << sort({ ans1,ans2,ans3 }) << endl;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: no matching function for call to 'sort(<brace-enclosed initializer list>)'
   19 |         cout << sort({ ans1,ans2,ans3 }) << endl;
      |                 ~~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 1 provided
Language: C++

/*
  Contest 066
  A - ringring
  Rakesh Kumar --> 01/09/2020
 */

#include <bits/stdc++.h>

int main() {
    std::ios_base::sync_with_stdio(false);
    std::cin.tie(0); std::cout.tie(0);

    int a = 0, b = 0, c = 0;
    std::cint >> a >> b >> c;
    std::cout << std::min(a + b, std::min(b + c, a + c)) << std::endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: 'cint' is not a member of 'std'; did you mean 'rint'?
   14 |     std::cint >> a >> b >> c;
      |          ^~~~
      |          rint
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:21:5: error: expected declaration or statement at end of input
   21 |     return 0;
      |     ^~~~~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
using namesapce 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];
}

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'namesapce'
    4 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int>v(3);
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int>v(3);
      |          ^~~
a.cc:9:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |         cin>>v[i];
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:14: error: 'v' was not declared in this scope
    9 |         cin>>v[i];
      |              ^
a.cc:11:8: error: 'v' was not declared in this scope
   11 |   sort(v.begin(),v.end());
      |        ^
a.cc:11:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
   11 |   sort(v.begin(),v.end());
      |   ^~~~
      |   std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:3:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
a.cc:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout<<v[0]+v[1];
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main() {
  int a , b ,c;
  vector<int>  A(3);
  for ( int i=0 ; i<3 ; i++){
  cin >> A.at(i);
  }
  
  sort ( A.begin() , A.end() )
    cout << A.at(0)+A.at(1) << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: expected ';' before 'cout'
   11 |   sort ( A.begin() , A.end() )
      |                               ^
      |                               ;
   12 |     cout << A.at(0)+A.at(1) << endl;
      |     ~~~~
Language: C++

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

int main() {
  int a , b ,c;
  int A[3];
  for ( int i=0 ; i<3 ; i++){
  cin >> A[i];
  }
  
  sort ( A.begin() , A.end() )
    cout << A[0]+A[1] << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: request for member 'begin' in 'A', which is of non-class type 'int [3]'
   11 |   sort ( A.begin() , A.end() )
      |            ^~~~~
a.cc:11:24: error: request for member 'end' in 'A', which is of non-class type 'int [3]'
   11 |   sort ( A.begin() , A.end() )
      |                        ^~~
Language: C++

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

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:6:14:   required from here
    6 |   cout << min(A + B, B + C, C + A) << endl;
      |           ~~~^~~~~~~~~~~~~~~~~~~~~
/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(void)
{
  int a,b,c,max,s;
  scanf("%d%d%d",&a,&b,&c);
  s=a+b+c;
  if(a>b && b>c)max=a
  else if(a<b && a>c)max=b;
  else max=c;
  printf("%d",s-max);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:22: error: expected ';' before 'else'
    8 |   if(a>b && b>c)max=a
      |                      ^
      |                      ;
    9 |   else if(a<b && a>c)max=b;
      |   ~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
    7 |   cout<<a+b+c-min{(a,b,c)}<<endl;
      |         ~~~~~^~~~
a.cc:7:27: error: expected primary-expression before '<<' token
    7 |   cout<<a+b+c-min{(a,b,c)}<<endl;
      |                           ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
    7 |   cout<<a+b+c-min{(a,b,c)}<<endl;
      |         ~~~~~^~~~
a.cc:7:27: error: expected primary-expression before '<<' token
    7 |   cout<<a+b+c-min{(a,b,c)}<<endl;
      |                           ^~
a.cc:7:34: error: expected '}' at end of input
    7 |   cout<<a+b+c-min{(a,b,c)}<<endl;
      |                                  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main() {
  vector<int> a.(3);
  for (int i=0; i<3; i++) {
    cin >> a.(i);
  }
  sort(a.begin(),a.end());
  cout << a.at(0)+a.at(1) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected initializer before '.' token
    8 |   vector<int> a.(3);
      |                ^
a.cc:10:12: error: 'a' was not declared in this scope
   10 |     cin >> a.(i);
      |            ^
a.cc:10:14: error: expected unqualified-id before '(' token
   10 |     cin >> a.(i);
      |              ^
a.cc:12:8: error: 'a' was not declared in this scope
   12 |   sort(a.begin(),a.end());
      |        ^
Language: C++

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

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


Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:10:16:   required from here
   10 |   ans=a+b+c-max(a,b,c);
      |             ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

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

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include bits/stdc++.h>
      |          ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include bits/stdc++.h>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << a+b+c-max(max(a,b),c) << endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:21: error: 'max' was not declared in this scope
    7 |   cout << a+b+c-max(max(a,b),c) << endl;
      |                     ^~~
a.cc:7:17: error: 'max' was not declared in this scope
    7 |   cout << a+b+c-max(max(a,b),c) << endl;
      |                 ^~~
a.cc:7:36: error: 'endl' was not declared in this scope
    7 |   cout << a+b+c-max(max(a,b),c) << endl;
      |                                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include bits/stdc++.h>
Language: Java

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

public class MAin {
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split(" ");
			int a = Integer.parseInt(chr[0]);
			int b = Integer.parseInt(chr[1]);
			int c = Integer.parseInt(chr[2]);
			System.out.println(a+b+c-(Math.max(a, Math.max(b, c))));

		}
	}
}


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

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, c) for (int i = 0; i < (int)c; i++)
#define all(v) v.begin(), v.end()
using ll = long long;
using P = pair<int, int>;
//const int inf = 1e9; //1(1倍)e(指数)9(10^9)
//const ll MX = 1e18; //1(1倍)e(指数)18(10^18)
//const ll MOD = 1e9 + 7; //1000000007で割った余りを聞かれたら使う
//加算代入演算子は+=
//int 2^31 10^9まで
//intは10桁、long longは18桁、doubleは308桁、long double は4932桁
//10^10くらいまででdoubleは誤差が発生しちゃう。なるべく整数にすること
//doubleからlong longにキャストするときは、+0.5で切り捨ての誤差を調整
//__int128()で128bit対応の整数（多倍長整数）
//||は片方が成り立つとき
int main()
{
    int a, b, c;
    scanf("%d %d %d", &a, &b, &c);
    
    printf("%d\n", min(min(a, b) + c, a + b))
    return 0;
}

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

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, c) for (int i = 0; i < (int)c; i++)
#define all(v) v.begin(), v.end()
using ll = long long;
using P = pair<int, int>;
//const int inf = 1e9; //1(1倍)e(指数)9(10^9)
//const ll MX = 1e18; //1(1倍)e(指数)18(10^18)
//const ll MOD = 1e9 + 7; //1000000007で割った余りを聞かれたら使う
//加算代入演算子は+=
//int 2^31 10^9まで
//intは10桁、long longは18桁、doubleは308桁、long double は4932桁
//10^10くらいまででdoubleは誤差が発生しちゃう。なるべく整数にすること
//doubleからlong longにキャストするときは、+0.5で切り捨ての誤差を調整
//__int128()で128bit対応の整数（多倍長整数）
//||は片方が成り立つとき
int main()
{
    int a, b, c;
    scanf("%d %d %d", &a, &b, &c);
    
    printf("%d\n", min(a, b) + c, a + b)
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:41: error: expected ';' before 'return'
   23 |     printf("%d\n", min(a, b) + c, a + b)
      |                                         ^
      |                                         ;
   24 |     return 0;
      |     ~~~~~~
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
	    Integer A = scanner.nextInt();
	    Integer B = scanner.nextInt();
	    Integer C = scanner.nextInt();

	    Integer res1 = A + B;
	    Integer res2 = A + C;
	    Integer res3 = B + C;

	    if(res1<res2) {
	    	if(res1<res3) {
	    		System.out.println(res1);
	    	}else {
	    		System.out.println(res3);
	    	}
	    }else if (res2<res3) {
			System.out.println(res2);
		}else {
			System.out.println(res3S);
		}

	}

}

Compiler output:
Main.java:25: error: cannot find symbol
			System.out.println(res3S);
			                   ^
  symbol:   variable res3S
  location: class Main
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: 'n' was not declared in this scope
   17 |  sort(a,a+n);
      |           ^
Language: C++

#include <bits/stdc++.h>
#include <vector>

using namespace std;

int main(){

 int a,b,c;

 cin>>s>>b>>c;

 int a[3];
 a[0] = s;
 a[1] = b;
 a[2] = c;

 sort(a,a+n);

 cout<<a[0]+a[1]<<endl;


 return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 's' was not declared in this scope
   10 |  cin>>s>>b>>c;
      |       ^
a.cc:12:6: error: conflicting declaration 'int a [3]'
   12 |  int a[3];
      |      ^
a.cc:8:6: note: previous declaration as 'int a'
    8 |  int a,b,c;
      |      ^
a.cc:13:3: error: invalid types 'int[int]' for array subscript
   13 |  a[0] = s;
      |   ^
a.cc:14:3: error: invalid types 'int[int]' for array subscript
   14 |  a[1] = b;
      |   ^
a.cc:15:3: error: invalid types 'int[int]' for array subscript
   15 |  a[2] = c;
      |   ^
a.cc:17:11: error: 'n' was not declared in this scope
   17 |  sort(a,a+n);
      |           ^
a.cc:19:9: error: invalid types 'int[int]' for array subscript
   19 |  cout<<a[0]+a[1]<<endl;
      |         ^
a.cc:19:14: error: invalid types 'int[int]' for array subscript
   19 |  cout<<a[0]+a[1]<<endl;
      |              ^
Language: C++

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

#ifndef ONLINE_JUDGE
  #include "debug.h"
#endif

int main() {
  ios::sync_with_stdio(false), cin.tie(0);
  vector<int> a(3);
  cin >> a[0] >> a[1] >> a[2];
  sort(begin(a), end(a));
  cout << a[0] + a[1] << '\n';
  return 0;
}

Compiler output:
a.cc:5:12: fatal error: debug.h: No such file or directory
    5 |   #include "debug.h"
      |            ^~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <vector>

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

    return 0;
}

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

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


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

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

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

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

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:7:21:   required from here
    7 |     cout <<a+b+c-max(a,b,c)<<endl;
      |                  ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

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

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:7:21:   required from here
    7 |     cout <<a+b+c-min(a,b,c)<<endl;
      |                  ~~~^~~~~~~
/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<bits/stdc++.h>
using namespace std;
int main () {
    int a, b, c;
    cin >> a >> b >> c;
    cout << min(a + b, b + c, c + a);
}

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:6:16:   required from here
    6 |     cout << 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 <bits/stdc++.h>
using namespace std;

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



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

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

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



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

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

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



Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:7:14:   required from here
    7 |   cout << min(a+b,b+c,c+a) << endl;
      |           ~~~^~~~~~~~~~~~~
/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 <bits/stdc++.h>
using namespace std;

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



Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected ';' before '}' token
    7 |   cout << min(a+b,b+c,c+a)
      |                           ^
      |                           ;
    8 | }
      | ~                          
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:7:14:   required from here
    7 |   cout << 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 <bits/stdc++.h>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   int ans=a+b+c-max({a,b,c})<<endl;
      |           ~~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected unqualified-id before ',' token
    8 |     int ,a,b,c;
      |         ^
Language: C

#include<stdio.h>
int main(){
int a,b,c,p1,p2,p3;
scanf("%d %d %d",&a,&b,&c);
p1=a+b;
p2=a+c;
p3=b+c;
if(p1<p2 && p1<p3){
    printf("Buying any two bells costs %dyen.",p1);
}
else if(p2<p1 && p2<p3){
    printf("Buying any two bells costs %dyen.",p2);
}
else{
    printf("Buying any two bells costs %dyen.",p3);
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:17:1: error: expected declaration or statement at end of input
   17 | return 0;
      | ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int arr[3],i;
     for( i = 0 ; i < 3 ; i++ ){
        cin >> arr[i];
     }

    sort(arr, arr+3);


        cout <<"Buying any two bells costs "<< arr[0]+arr[1] << " yen.";

    return 0;
}


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

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

    else if(b<a && b<c){
        if(a<c){
            d=b+a;
        }
        else d=b+c;
    }

    else if(c<a && c<b){
        if(a<b){
            d=c+a;
        }
        else d=c+b;
    }

    else if(c==a && c==b){
        d=a+b;

    }


    else if(a==b && a!=c){

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

    else if(b==c && a!=b){

        if(a<b){
            d=a+b;
        }
        else d=c+b;
    }
    else if(a==c && a!=b){

        if(a<b){
            d=a+c;
        }
        else d=a00+b;
    }

    printf("Buying any two bells costs %d yen.\n",d);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:53:16: error: 'a00' undeclared (first use in this function)
   53 |         else d=a00+b;
      |                ^~~
main.c:53:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
 
    vector<int> x(3);
    cin>>x.at(0)>>x.at(1)>>x.at(2);

    sort(x.begin(),x.end());
    cout<<x.at(0)+x.at(a)<<endl;

    return 0;
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: 'a' was not declared in this scope
   11 |     cout<<x.at(0)+x.at(a)<<endl;
      |                        ^
Language: Java

import java.util.*; 
public class Main{
 public static void main(String ...string){
  Scanner sc = new Scanner(System.in); 
   System.out.println(Math.max(a+b,Math.max(a+c,c+b))); 
 }
   
}

Compiler output:
Main.java:5: error: cannot find symbol
   System.out.println(Math.max(a+b,Math.max(a+c,c+b))); 
                               ^
  symbol:   variable a
  location: class Main
Main.java:5: error: cannot find symbol
   System.out.println(Math.max(a+b,Math.max(a+c,c+b))); 
                                 ^
  symbol:   variable b
  location: class Main
Main.java:5: error: cannot find symbol
   System.out.println(Math.max(a+b,Math.max(a+c,c+b))); 
                                            ^
  symbol:   variable a
  location: class Main
Main.java:5: error: cannot find symbol
   System.out.println(Math.max(a+b,Math.max(a+c,c+b))); 
                                              ^
  symbol:   variable c
  location: class Main
Main.java:5: error: cannot find symbol
   System.out.println(Math.max(a+b,Math.max(a+c,c+b))); 
                                                ^
  symbol:   variable c
  location: class Main
Main.java:5: error: cannot find symbol
   System.out.println(Math.max(a+b,Math.max(a+c,c+b))); 
                                                  ^
  symbol:   variable b
  location: class Main
6 errors
Language: C++

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

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

Compiler output:
a.cc: In function 'int my_min(int, int, int)':
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
a.cc: In function 'int main()':
a.cc:12:29: error: expected primary-expression before ',' token
   12 |   cout<<my_min(a+b,b+c,c+a)<,endl;
      |                             ^
Language: C++

#include<iostream>
#include<algorithm

using namespace std;

int main() {
	int a, b, c;
	cin >> a >> b >> c;

	int kingaku[3];

	kingaku[0] = a + b;
	kingaku[1] = a + c;
	kingaku[2] = b + c;

	int ans = min({ kingaku[0],kingaku[1],kingaku[2] });
}

Compiler output:
a.cc:2:19: error: missing terminating > character
    2 | #include<algorithm
      |                   ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < n; i++)
#include <vector>
using namespace std;
int main(){
  int a,b,c;
  cin >> a >> b >> c;
  int sum = a + b + c;
  cout << sum - max(a, b, c) << endl;
  return 0;
}

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:9:20:   required from here
    9 |   cout << sum - max(a, b, c) << endl;
      |                 ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
int main(){
int a,b,c;
  cin>>a>>b>>c;
  cout<<min({a+b,a+c,c+b})<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>a>>b>>c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<min({a+b,a+c,c+b})<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:9: error: 'min' was not declared in this scope; did you mean 'std::min'?
    6 |   cout<<min({a+b,a+c,c+b})<<endl;
      |         ^~~
      |         std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:6:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<min({a+b,a+c,c+b})<<endl;
      |                             ^~~~
      |                             std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#nclude<iostream>
#include<algorithm>
int main(){
int a,b,c;
  cin>>a>>b>>c;
  cout<<min({a+b,a+c,c+b})<<ensl;
  return 0;

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #nclude; did you mean #include?
    1 | #nclude<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>a>>b>>c;
      |   ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<min({a+b,a+c,c+b})<<ensl;
      |   ^~~~
a.cc:6:9: error: 'min' was not declared in this scope; did you mean 'std::min'?
    6 |   cout<<min({a+b,a+c,c+b})<<ensl;
      |         ^~~
      |         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:6:29: error: 'ensl' was not declared in this scope
    6 |   cout<<min({a+b,a+c,c+b})<<ensl;
      |                             ^~~~
a.cc:7:12: error: expected '}' at end of input
    7 |   return 0;
      |            ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
	int a[3];
	cin>>a[0]>>a[1]>>a[2];
	sort(a,a+3);
	cout<<a[0]+a[1]<<endl;
	return 0;
}

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

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

int main(){
  vector<int> a(3);
  for(int i=0; i<3; i++) cin>>a[i];
  sort(a.begin(),a.end());
  cout<<a[0]+a[1];

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected '}' at end of input
    8 |   cout<<a[0]+a[1];
      |                   ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

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

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintStream out = new PrintStream(System.out);
        int a. b, c, min;

        a = sc.nextInt();
        b = sc.nextInt();
        c = sc.nextInt();

        min = a + b;
        if (min > a + c) {
            min = a + c;
        }
        if (min > b + c) {
            min = b + c;
        }
        
        out.println(min);
        sc.close();
    }
}

Compiler output:
Main.java:9: error: ';' expected
        int a. b, c, min;
             ^
Main.java:9: error: not a statement
        int a. b, c, min;
               ^
Main.java:9: error: ';' expected
        int a. b, c, min;
                ^
Main.java:9: error: not a statement
        int a. b, c, min;
                  ^
Main.java:9: error: ';' expected
        int a. b, c, min;
                   ^
Main.java:9: error: not a statement
        int a. b, c, min;
                     ^
6 errors
Language: Java

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

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintStream out = new PrintStream(System.out);
        int a. b, c, min;

        a = sc.nextInt();
        b = sc.nextInt();
        c = sc.nextInt();

        min = a + b;
        if (min > a + c) {
            min = a + c;
        }
        if (min > b + c) {
            min = b + c;
        }
        
        
        sc.close();
    }
}

Compiler output:
Main.java:9: error: ';' expected
        int a. b, c, min;
             ^
Main.java:9: error: not a statement
        int a. b, c, min;
               ^
Main.java:9: error: ';' expected
        int a. b, c, min;
                ^
Main.java:9: error: not a statement
        int a. b, c, min;
                  ^
Main.java:9: error: ';' expected
        int a. b, c, min;
                   ^
Main.java:9: error: not a statement
        int a. b, c, min;
                     ^
6 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c;
    int all,biggest,ans;
    cin>>a>>b>>c;
    all=a+b+c;
    biggest=max(a,max(b,c));
    ans=all-biggest;
    cout<<ans<<endl;
    retirn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'retirn' was not declared in this scope
   12 |     retirn 0;
      |     ^~~~~~
Language: C++

#include<iostream>
#include<queue>
using namespace std;
struct Node{
    int x;
    bool operator < (const Node & a) const{
        return x>a.x;
    }
};
priority_queue <Node> q;
int main(){
    int t=3;
    while(t--){
        int i;
        cin>>i;
        Node now;
        now.x=i
        q.push(now);
    }
    int ans=0;
    ans+=q.top();
    q.pop();
    ans+=q.top();
    cout<<ans;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: expected ';' before 'q'
   17 |         now.x=i
      |                ^
      |                ;
   18 |         q.push(now);
      |         ~       
a.cc:21:8: error: no match for 'operator+=' (operand types are 'int' and 'const __gnu_cxx::__alloc_traits<std::allocator<Node>, Node>::value_type' {aka 'const Node'})
   21 |     ans+=q.top();
      |     ~~~^~~~~~~~~
a.cc:23:8: error: no match for 'operator+=' (operand types are 'int' and 'const __gnu_cxx::__alloc_traits<std::allocator<Node>, Node>::value_type' {aka 'const Node'})
   23 |     ans+=q.top();
      |     ~~~^~~~~~~~~
Language: C++

#include<iostream>
#include<queue>
using namespace std;
struct Node{
    int x;
    bool operator < (const Node & a) const{
        return x>a.x;
    }
}
priority_queue <Node> q;
int main(){
    int t=3;
    while(t--){
        int i;
        cin>>i;
        Node now;
        now.x=i
        q.push(now);
    }
    int ans=0;
    ans+=q.top();
    q.pop();
    ans+=q.top();
    cout<<ans;
    return 0;
}

Compiler output:
a.cc:10:23: error: invalid declarator before 'q'
   10 | priority_queue <Node> q;
      |                       ^
a.cc: In function 'int main()':
a.cc:17:16: error: expected ';' before 'q'
   17 |         now.x=i
      |                ^
      |                ;
   18 |         q.push(now);
      |         ~       
a.cc:21:10: error: 'q' was not declared in this scope
   21 |     ans+=q.top();
      |          ^
Language: C++

#include <iostream>
#include <cstdio>

using namespace std;

int main(){
    
    
    int a[3];
    for(int i = 0; i < 3; i++) sacnf("%d", &a[i]);
    
    sort(a, a + 3);
    
    printf("%d", a[0] + a[1]);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: 'sacnf' was not declared in this scope; did you mean 'scanf'?
   10 |     for(int i = 0; i < 3; i++) sacnf("%d", &a[i]);
      |                                ^~~~~
      |                                scanf
a.cc:12:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 |     sort(a, a + 3);
      |     ^~~~
      |     short
Language: Java

import java.util.Scanner;
 
public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
 
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    int c = scanner.nextInt();
    int sum = a+ b ;
    if(sum < a+c){
      sum = a+c;
    }
    if(sum < b+c){
      sum = b + c:
    }
    System.out.println(sum);
  }
}

Compiler output:
Main.java:15: error: ';' expected
      sum = b + c:
                 ^
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected initializer before 'cin'
    8 |   cin>>a>>b>>c;
      |   ^~~
a.cc:9:23: error: 'c' was not declared in this scope
    9 |   cout<<min(min(a+b,a+c),b+c)<<endl;
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<(n); i++)
#define REP2(i,x,n) for(int i=x; i<(n); i++)
int main()
{
    int a, b, c;
    cin >> a>>b>>c;

    ans = a+b+c;
    ans = min(ans, a+b);
    ans = min(ans, c+b);
    ans = min(ans, a+c);

    cout << ans<< endl;

   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     ans = a+b+c;
      |     ^~~
      |     abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<(n); i++)
#define REP2(i,x,n) for(int i=x; i<(n); i++)
int main()
{
    int A, B, C;
    cin >> A>>B>>C;

    ans = 0;
    ans = min(ans, a+b);
    ans = min(ans, c+b);
    ans = min(ans, a+c);

    cout << ans<< endl;

   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     ans = 0;
      |     ^~~
      |     abs
a.cc:11:20: error: 'a' was not declared in this scope
   11 |     ans = min(ans, a+b);
      |                    ^
a.cc:11:22: error: 'b' was not declared in this scope
   11 |     ans = min(ans, a+b);
      |                      ^
a.cc:12:20: error: 'c' was not declared in this scope
   12 |     ans = min(ans, c+b);
      |                    ^
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",b+c);
	}else if((b>c)&&(b>a)){
		printf("%d",a+c);
	}else{
		printf("%d",a+b);
	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll gcd(ll a, ll b) {
	if (b==0) return a;
    else{
    	return gcd(b,a%b);
    }
}
 
int main() {
	vector<ll> v(3);
  	cin >> v[0] >> v[1] >> v[2];
  	sort(v.begin(), v.end());
  	cout << v[0]+v[1] << endl;
    }
}


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

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

int main(){
  vector<int> vec(N);
  for (int i=0; i<3; i++){
    cin >> vec.at(i);
  }
  sort(vec.begin(),vec.end());
  cout << vec.at(0)+vec.at(1) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: 'N' was not declared in this scope
    5 |   vector<int> vec(N);
      |                   ^
Language: C++

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

using ll = long long;
using ld = long double;
using vi = vector<int>;
using vll = vector<ll>;

const int INF = 1e9;
const ll INFLL = 1e18;
const int MOD = 1e9 + 7;
const int NIL = -1;

#define rep(i,n) for(int i=0; i<(n); ++i)
#define all(n) begin(n),end(n)

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

#define DEBUG

int main()
{
	ios::sync_with_stdio(false); cin.tie(0);
	int a,b,c;
	cin >> a >> b >> c;

	int ab = a + b;
	int bc = b + c;
	int ac = a + c;

	cout << min(ab, bc, ac) << endl;
	return 0;
}

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:32:13:   required from here
   32 |         cout << min(ab, bc, ac) << endl;
      |                 ~~~^~~~~~~~~~~~
/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 <bits/stdc++.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: 'max' cannot be used as a function
    8 |         int max = max({A, B, C});
      |                   ~~~^~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define fuck(n,m) sort(n,m)
#define sb int
#define shi cin
#define shabi cout
#define zhizhang endl
#define shit 0
#define eat return
using namespace std;
sb you[3];
sb main()
{
    shi>>you[0]>>you[1]>>you[2];
    sb* bitch=you+2;
    fuck(you,bitch);
    shabi<<you[0]+you[1]<<zhizhng;
    eat shit;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:27: error: 'zhizhng' was not declared in this scope; did you mean 'zhizhang'?
   16 |     shabi<<you[0]+you[1]<<zhizhng;
      |                           ^~~~~~~
      |                           zhizhang
Language: C++

#include<bits/sdtc++.h>
using namespace std;
int main(){
   int s[4];
   cin>>s[1]>>s[2]>>s[3];
   sort(s+1,s+1+3);
   cout<<s[1]+s[2];
}

Compiler output:
a.cc:1:9: fatal error: bits/sdtc++.h: No such file or directory
    1 | #include<bits/sdtc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.