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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:37: error: expected '}' at end of input
    6 |   cout<<a+b+c-max(max(a,b),c)<<endl;
      |                                     ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
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:
a.cc: In function 'int main()':
a.cc:6:17: error: found ':' in nested-name-specifier, expected '::'
    6 |     cin>>a>>b>>c:
      |                 ^
      |                 ::
a.cc:6:16: error: 'c' is not a class, namespace, or enumeration
    6 |     cin>>a>>b>>c:
      |                ^
Language: C++

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

            }
      
    
  


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

#ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>

#if __cplusplus >= 201103L
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
#endif

// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>

#if __cplusplus >= 201103L
#include <array>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#endif
using namespace std;

typedef long long ll;
//typedef pair<int,int> Pint;
typedef pair<ll, ll> P;
//typedef pair<int, pair<int, int>> P;
//typedef tuple<int,int,int> T;
typedef vector<ll> vec;
typedef vector<vec> mat;
#define rep(i, n) for(ll i = 0; i < n; i++)
#define revrep(i, n) for(ll i = n-1; i >= 0; i--)
ll max(ll a, ll b){return (a > b) ? a : b;}
ll min(ll a, ll b){return (a < b) ? a : b;}
ll Mypow(ll x, ll k){
  ll res = 1;
  while(k > 0){
    if(k % 2) res *= x;
    x *= x;
    k /= 2;
  }
  return res;
}

ll INFL = 1000000000000000010;//10^18 = 2^60
int INF = 1000000000;//10^9
ll MOD  = 1000000007;
//vector<int> dy = {0,0,1,-1};
//vector<int> dx = {1,-1,0,0};

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/bits/specfun.h:43,
                 from /usr/include/c++/14/cmath:3906,
                 from a.cc:10:
/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:118:26:   required from here
  118 |   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>
#include<string>
#include<vector>
using namespace std;
int main(){
    int a,b,c;
    cin >> a >> b >> c;
    int max = max(a,max(b,c));
    cout << a+b+c-max << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: 'max' cannot be used as a function
    9 |     int max = max(a,max(b,c));
      |                     ~~~^~~~~
a.cc:9:29: error: 'max' cannot be used as a function
    9 |     int max = max(a,max(b,c));
      |                             ^
Language: C++

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

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

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::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:10:7:   required from here
   10 |         x=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<iostream>
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:5:12: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
    5 |   cout<<min({(a+b),(b+c),(c+a)});
      |         ~~~^~~~~~~~~~~~~~~~~~~~~
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 <iostream>
#include <string>
#include <cmath>
#include <sstream>
#include <iomanip>

using namespace std;

int main(int argc, char* argv[])
{

	int a,b,c;

	cin >> a >> b >> c;

	cout << min(a+b,min(b+c,a+c) << endl;


	return 0;

}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:17:38: error: invalid operands of types 'const int' and '<unresolved overloaded function type>' to binary 'operator<<'
   17 |         cout << min(a+b,min(b+c,a+c) << endl;
      |                         ~~~~~~~~~~~~~^~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before 'cout'
    7 |   d = max(a,max(b,c))
      |                      ^
      |                      ;
    8 |     cout << a+b+c-d << endl;
      |     ~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int a,b,c,max,sum;
    cin >> a >> b >> c;
    sum = a+b+c;
    max = (a>b && a>c)? a: (b>c? b :c);
    cout << sum - man << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'man' was not declared in this scope; did you mean 'max'?
    8 |     cout << sum - man << endl;
      |                   ^~~
      |                   max
Language: C++

#include<iostream>
using namespace std;
int main(){
    int a,b,c,max,sum;
    cin >> a >> b >> c;
    sum = a+b+c;
    max = a>b && a>c? a: b>c? b :c;
    cout << sum - man << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'man' was not declared in this scope; did you mean 'max'?
    8 |     cout << sum - man << endl;
      |                   ^~~
      |                   max
Language: C++

#include<iostream>
using namespace std;
int main(){
    int a,b,c,max,sum;
    cin >> a >> b >> c;
    sum = a+b+c;
    max = a>b && a>c? a: b>c? b :c;
    cout << sum - min << endl;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected primary-expression before '<' token
   10 |     int max = <int>max({a, b, c});
      |               ^
a.cc:10:16: error: expected primary-expression before 'int'
   10 |     int max = <int>max({a, b, c});
      |                ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected primary-expression before 'int'
   10 |     int max = max<int>({a, b, c});
      |                   ^~~
Language: C++

#include <iostream>
#include <algorithm>
#include <math.h>
#include <stdio.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;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: 'max' cannot be used as a function
   10 |     int max = max({a, b, c});
      |               ~~~^~~~~~~~~~~
Language: C++

import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    a,b,c = f()
    print(a+b+c - max(a,b,c))

solve()


Compiler output:
a.cc:4:4: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    4 | if 'local' in os.environ :
      |    ^~~~~~~
a.cc:5:22: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
    5 |     sys.stdin = open('./input.txt', 'r')
      |                      ^~~~~~~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys, os
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include "bits/stdc++.h"
using namespace std;
int main(){
  int a,b,c;
  cin >> a >> b >> c;
  vector<int> vec;
  vec.push_back(a,b,c);
  sort(vec.begin(),vec.end());
  cout << vec[0] + vec[1] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: no matching function for call to 'std::vector<int>::push_back(int&, int&, int&)'
    7 |   vec.push_back(a,b,c);
      |   ~~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; value_type = int]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:7: note:   candidate expects 1 argument, 3 provided
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; value_type = int]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note:   candidate expects 1 argument, 3 provided
Language: C++

#include<iostream>
#include<numeric>
using namespace std;
int main(){
  int m[3];
  cin>>m[0]>>m[1]>>m[2];
  cout<<accumulate(m,m+3,0)-max(m.begin(),m.end());
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:35: error: request for member 'begin' in 'm', which is of non-class type 'int [3]'
    7 |   cout<<accumulate(m,m+3,0)-max(m.begin(),m.end());
      |                                   ^~~~~
a.cc:7:45: error: request for member 'end' in 'm', which is of non-class type 'int [3]'
    7 |   cout<<accumulate(m,m+3,0)-max(m.begin(),m.end());
      |                                             ^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int m[3];
  cin>>m[0]>>m[1]>>m[2];
  cout<<accumulate(m,m+3,0)-max(m.begin(),m.end());
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'accumulate' was not declared in this scope
    6 |   cout<<accumulate(m,m+3,0)-max(m.begin(),m.end());
      |         ^~~~~~~~~~
a.cc:6:35: error: request for member 'begin' in 'm', which is of non-class type 'int [3]'
    6 |   cout<<accumulate(m,m+3,0)-max(m.begin(),m.end());
      |                                   ^~~~~
a.cc:6:45: error: request for member 'end' in 'm', which is of non-class type 'int [3]'
    6 |   cout<<accumulate(m,m+3,0)-max(m.begin(),m.end());
      |                                             ^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int m[3];
  cin>>m[0]>>m[1]>>m[2];
  cout<<accumulate(m.begin(),m.end(),0)-max(m.begin(),m.end());
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: request for member 'begin' in 'm', which is of non-class type 'int [3]'
    6 |   cout<<accumulate(m.begin(),m.end(),0)-max(m.begin(),m.end());
      |                      ^~~~~
a.cc:6:32: error: request for member 'end' in 'm', which is of non-class type 'int [3]'
    6 |   cout<<accumulate(m.begin(),m.end(),0)-max(m.begin(),m.end());
      |                                ^~~
a.cc:6:9: error: 'accumulate' was not declared in this scope
    6 |   cout<<accumulate(m.begin(),m.end(),0)-max(m.begin(),m.end());
      |         ^~~~~~~~~~
a.cc:6:47: error: request for member 'begin' in 'm', which is of non-class type 'int [3]'
    6 |   cout<<accumulate(m.begin(),m.end(),0)-max(m.begin(),m.end());
      |                                               ^~~~~
a.cc:6:57: error: request for member 'end' in 'm', which is of non-class type 'int [3]'
    6 |   cout<<accumulate(m.begin(),m.end(),0)-max(m.begin(),m.end());
      |                                                         ^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int m[3];
  cin>>m[0]>>m[1]>>m[2];
  cout<<accumulate(m,m+m.size(),0)-max(m.begin(),m.end());
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: request for member 'size' in 'm', which is of non-class type 'int [3]'
    6 |   cout<<accumulate(m,m+m.size(),0)-max(m.begin(),m.end());
      |                          ^~~~
a.cc:6:9: error: 'accumulate' was not declared in this scope
    6 |   cout<<accumulate(m,m+m.size(),0)-max(m.begin(),m.end());
      |         ^~~~~~~~~~
a.cc:6:42: error: request for member 'begin' in 'm', which is of non-class type 'int [3]'
    6 |   cout<<accumulate(m,m+m.size(),0)-max(m.begin(),m.end());
      |                                          ^~~~~
a.cc:6:52: error: request for member 'end' in 'm', which is of non-class type 'int [3]'
    6 |   cout<<accumulate(m,m+m.size(),0)-max(m.begin(),m.end());
      |                                                    ^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int m[3];
  cin>>m[0]>>m[1]>>m[2];
  cout<<sum(m)-max(m);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'sum' was not declared in this scope
    6 |   cout<<sum(m)-max(m);
      |         ^~~
a.cc:6:19: error: no matching function for call to 'max(int [3])'
    6 |   cout<<sum(m)-max(m);
      |                ~~~^~~
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 <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B,C;
  cin>>A>>B>>C;
  cout<<min(A+B,min(B+C,A+C))<<endl
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:36: error: expected ';' before '}' token
    7 |   cout<<min(A+B,min(B+C,A+C))<<endl
      |                                    ^
      |                                    ;
    8 | }
      | ~
Language: C++

#include<iostream>
#include<stdio.h>
#include<string.h>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<set>
#include<iomanip>



#define REP(i,n) for (int i = 0; (i) < (n); ++ (i))

using namespace std;
int a,b;

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



Compiler output:
a.cc: In function 'int main()':
a.cc:19:20: error: 'c' was not declared in this scope
   19 |   cin >> a >> b >> c;
      |                    ^
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected ',' before '+' token
    9 |   cout<<min([a+b,a+c,b+c])<<endl;
      |               ^
      |               ,
a.cc:9:15: error: expected identifier before '+' token
a.cc:9:17: error: expected ']' before ',' token
    9 |   cout<<min([a+b,a+c,b+c])<<endl;
      |                 ^
      |                 ]
a.cc: In lambda function:
a.cc:9:17: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:9:25: error: expected ')' before ']' token
    9 |   cout<<min([a+b,a+c,b+c])<<endl;
      |            ~            ^
      |                         )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected ';' at end of input
    7 |   cout << min(min(a+b,b+c),a+c)
      |                                ^
      |                                ;
a.cc:7:32: error: expected '}' at end of input
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before 'if'
    7 | e=max(a,max(c,d))
      |                  ^
      |                  ;
    8 |      if(a==e){
      |      ~~           
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else if(c==e){
      |   ^~~~
Language: Java

import java.util.*;
public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for(int i = 0; i < n; i++){
            a[i] = sc.nextInt();
        }
        
        if(n%2 == 0){
            for(int i = n-1; i < n; i-=2){
                System.out.print(a[i]+" ");
            }
            for(int i = 0; i < n; i+=2){
                System.out.print(a[i]+" ");
            }
        }else{
            for(int i=n-1; i>=0; i-=2){
                System.out.print(a[i]+" ");
            }
            for(int i=1; i<n; i+=2){
                System.out.print(a[i]+" ");
            }
        }
}

Compiler output:
Main.java:26: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner();
        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:5: error: no suitable constructor found for Scanner(no arguments)
        Scanner sc = new Scanner();
                     ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.*;

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

Compiler output:
Main.java:7: error: not a statement
        for(int = i; i<3; i++) a[i] = sc.nextInt();
            ^
Main.java:7: error: ';' expected
        for(int = i; i<3; i++) a[i] = sc.nextInt();
               ^
Main.java:7: error: illegal start of expression
        for(int = i; i<3; i++) a[i] = sc.nextInt();
                ^
Main.java:7: error: not a statement
        for(int = i; i<3; i++) a[i] = sc.nextInt();
                      ^
Main.java:7: error: ')' expected
        for(int = i; i<3; i++) a[i] = sc.nextInt();
                        ^
Main.java:7: error: ';' expected
        for(int = i; i<3; i++) a[i] = sc.nextInt();
                             ^
6 errors
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a[3];
for(int i=0;i<3;i++)
    cin >> a[i];
    sort(a,a+3);
    cout << a[0]+a[1] << endl;   
    return 0;
}

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

#include <iostream>
using namespace std;
typedef long long unsigned int ll;
 
int main() {
 
  vector<int> a(3);
  cin >> a[0];
  cin >>a[1];
  cin >>a[2];
  sort(a.begin(),a.end());
  cout << a[0]+a[1] <<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int> a(3);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> a(3);
      |          ^~~
a.cc:8:10: error: 'a' was not declared in this scope
    8 |   cin >> a[0];
      |          ^
a.cc:11:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   11 |   sort(a.begin(),a.end());
      |   ^~~~
      |   short
Language: C++

#include<iostream>
#include <algorithm>
#include <string>
#include<math.h>
#define rep(i,n)for(int i=0;i<n;i++)
using namespace std;
int main() {
    int a, b, c;
    cin >> a >> b >> c;
    int d = a + b;
    int e = b + c;
    int f = c + a;
    int ans = min(d, e, f);
    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:13:18:   required from here
   13 |     int ans = min(d, e, f);
      |               ~~~^~~~~~~~~
/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;
  vector<int> v{ a, b, c };
  v.sort( v.begin(), v.end() );
  cout << v[0] + v[1] << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'class std::vector<int>' has no member named 'sort'
    9 |   v.sort( v.begin(), v.end() );
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: no match for call to '(std::vector<int>) (int)'
   11 |         int sum = value(0) + value(1);
      |                   ~~~~~^~~
a.cc:11:35: error: no match for call to '(std::vector<int>) (int)'
   11 |         int sum = value(0) + value(1);
      |                              ~~~~~^~~
Language: C++

#include<iostream>
#include<string>
#include <algorithm>
using namespace std;
int main()
{
    int a, b, c;
    int sm[3];
    cin >> a >> b >> c;

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

    cout << *min_element(sm.begin(), sm.end()) << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:29: error: request for member 'begin' in 'sm', which is of non-class type 'int [3]'
   15 |     cout << *min_element(sm.begin(), sm.end()) << endl;
      |                             ^~~~~
a.cc:15:41: error: request for member 'end' in 'sm', which is of non-class type 'int [3]'
   15 |     cout << *min_element(sm.begin(), sm.end()) << endl;
      |                                         ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:35: error: 'miv' was not declared in this scope; did you mean 'minv'?
    9 |         maxv=max(maxv,c);minv=min(miv,c);
      |                                   ^~~
      |                                   minv
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: 'N' was not declared in this scope
    5 |   for(int i = 0; i < N; i++) {
      |                      ^
Language: C++

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

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


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

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

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

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

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

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:8:14:   required from here
    8 |   cout << min((a+b),(a+c),(b+c)) ;
      |           ~~~^~~~~~~~~~~~~~~~~~~
/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;
 
itn main () {
  int a,b,c;
  cin >> a >> b >> c;
  
  cout << min((a+b),(a+c),(b+c)) ;
}

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

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

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:8:14:   required from here
    8 |   cout << min(a+b,a+c,b+c) ;
      |           ~~~^~~~~~~~~~~~~
/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;

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

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

#include <iostream>
#include <vector>
using namespace std;
int a, b, c;
vector<int> vec(3);
int main() {
    for (int i=0;i<3;i++) cin >> vec[i];
    sort(vec.begin(), vec.end());
    cout << vec[0]+vec[1] << endl;
}

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

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

int main() {

  int a;
  int b;
  int c;

  std::cin >> a >> b >> c;
  std::vector<int> bell{a, b, c};

  std::sort(bell.begin(), bell.end());
  std::cout << bell[0] + bell[1] << std::endl;

  return 0;
}

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #inclide; did you mean #include?
    3 | #inclide <algorithm>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:14:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   14 |   std::sort(bell.begin(), bell.end());
      |        ^~~~
      |        qsort
Language: C++

#include <iostream>
#include <vector>

int main() {

  int a;
  int b;
  int c;

  std::cin >> a >> b >> c;
  std::vector<int> bell{a, b, c};

  std::sort(bell.begin(), bell.end());
  std::cout << bell[0] + bell[1] << std::endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   13 |   std::sort(bell.begin(), bell.end());
      |        ^~~~
      |        qsort
Language: C++

#include <iostream>
#include <vector>

int main() {

  int a;
  int b;
  int c;

  std::cin >> a >> b >> c;
  std::vector<int> bell{a, b, c};

  // 並べ替える
  std::sort(bell.begin(), bell.end());

  std::cout << bell[0] + bell[1] << std::endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   14 |   std::sort(bell.begin(), bell.end());
      |        ^~~~
      |        qsort
Language: C++

#include <bits/stdc++.h>
#define FOR(i, n) for(int i = 0;i <n;i++)
#define RFOR(i, n) for(int i = n;i >= 0;i--)
#define REP(i, m, n) for(int i = m;i < n;i++)
#define RREP(i, m, n) for(int i = m;i >= n;i--)
#define INF 999999999

using namespace std;
int main(int argc, char const *argv[])
{
  int n[3],a,b,c;
  cin>>a>>b>>c;
  cout<<min((a+b),(a+c),(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:13:12:   required from here
   13 |   cout<<min((a+b),(a+c),(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>
#define FOR(i, n) for(int i = 0;i <n;i++)
#define RFOR(i, n) for(int i = n;i >= 0;i--)
#define REP(i, m, n) for(int i = m;i < n;i++)
#define RREP(i, m, n) for(int i = m;i >= n;i--)
#define INF 999999999

using namespace std;
int main(int argc, char const *argv[])
{
  int n[3],a,b,c;
  cin>>a>>b>>c;
  n[0] = a+b;
  n[1] = a+c;
  n[2] = b+c;
  int m;
  m = min(n[0],n[1],n[2])
  cout<<m<<endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:17:26: error: expected ';' before 'cout'
   17 |   m = min(n[0],n[1],n[2])
      |                          ^
      |                          ;
   18 |   cout<<m<<endl;
      |   ~~~~                    
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:17:10:   required from here
   17 |   m = min(n[0],n[1],n[2])
      |       ~~~^~~~~~~~~~~~~~~~
/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>
#define FOR(i, n) for(int i = 0;i <n;i++)
#define RFOR(i, n) for(int i = n;i >= 0;i--)
#define REP(i, m, n) for(int i = m;i < n;i++)
#define RREP(i, m, n) for(int i = m;i >= n;i--)
#define INF 999999999

using namespace std;
int main(int argc, char const *argv[])
{
  int n[3],a,b,c;
  cin>>a>>b>>c;
  n[0] = a+b;
  n[1] = a+c;
  n[2] = b+c;
  int m;
  m = max{n[0],n[1],n[2]}
  cout<<m<<endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:17:7: error: cannot resolve overloaded function 'max' based on conversion to type 'int'
   17 |   m = max{n[0],n[1],n[2]}
      |       ^~~
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:4:38: error: expected ',' before '+' token
    4 |   int a,b,c;cin>>a>>b>>c;cout<<min([a+b,b+c,c+a]);}
      |                                      ^
      |                                      ,
a.cc:4:38: error: expected identifier before '+' token
a.cc:4:40: error: expected ']' before ',' token
    4 |   int a,b,c;cin>>a>>b>>c;cout<<min([a+b,b+c,c+a]);}
      |                                        ^
      |                                        ]
a.cc: In lambda function:
a.cc:4:40: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:4:48: error: expected ')' before ']' token
    4 |   int a,b,c;cin>>a>>b>>c;cout<<min([a+b,b+c,c+a]);}
      |                                   ~            ^
      |                                                )
Language: C

#include <bits/stdc++.h>

using namespace std;

#define rep(i, n) for(int i = 0; i < n; i++)
#define repi(i, start, end) for(int i = start; i < end; i++)
#define all(x) (x).begin(), (x).end()
#define debug(x) cout << (x) << endl;
#define INF (1e9)

int dx[] = {0, 1, 0, -1};
int dy[] = {-1, 0, 1, 0};

typedef long long ll;

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

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

    cout << min(a + b, min(a + c, b + c)) << endl;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

package main

import "fmt"

func main() {
	var a, b, c int
	fmt.Scan(&a, &b, &c)

	s := []int{a+b, b+c, c+a}
	min := s[0]
	for _, i := range s {
		if i < min {
			min = i
		}
	}
	fmt.Println(min)
}

Compiler output:
Main.java:1: error: ';' expected
package main
            ^
Main.java:3: error: <identifier> expected
import "fmt"
      ^
2 errors
Language: C++

#include <iostream>
#include <string>
#include <utility>
#include <algorithm>
#include <map>
#include <vector>
#include <cmath>
#include <cstdlib>
#include <queue>
#include <stack>

using namespace std;

#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = n;i >= m;i--)
#define REPO(i, n) for(int i = 1;i <= n;i++)
#define ll long long
#define INF 1999999999
#define MINF -1999999999
#define ALL(n) n.begin(),n.end()

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

Compiler output:
a.cc: In function 'int main()':
a.cc:27:55: error: expected '}' at end of input
   27 |         cout << min(a + b, min(a + c, b + c)) << endl;
      |                                                       ^
a.cc:24:11: note: to match this '{'
   24 | int main(){
      |           ^
Language: Java

import java.util.*;
 
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 x = Math.max(a,b);
        int y = Math.max(x,c)
        int z = a+b+c;
       
       System.out.print(z-y);
      
    }
}

Compiler output:
Main.java:11: error: ';' expected
        int y = Math.max(x,c)
                             ^
1 error
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'min_total' was not declared in this scope
    7 |     min_total = 100000
      |     ^~~~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
    int a,b,c;
    cin >> a >> b >> c;
    int min=a;
    if(max<b)max=b;
    if(max<c)max=c;
    cout << a+b+c-max;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: parse error in template argument list
   15 |     if(max<b)max=b;
      |        ^~~~~
a.cc:15:13: error: cannot resolve overloaded function 'max' based on conversion to type 'bool'
   15 |     if(max<b)max=b;
      |             ^
a.cc:15:18: error: overloaded function with no contextual type information
   15 |     if(max<b)max=b;
      |                  ^
a.cc:16:8: error: parse error in template argument list
   16 |     if(max<c)max=c;
      |        ^~~~~
a.cc:16:13: error: cannot resolve overloaded function 'max' based on conversion to type 'bool'
   16 |     if(max<c)max=c;
      |             ^
a.cc:16:18: error: overloaded function with no contextual type information
   16 |     if(max<c)max=c;
      |                  ^
a.cc:17:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
   17 |     cout << a+b+c-max;
      |             ~~~~~^~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
    int a,b,c;
    cin >> a >> b >> c;
    int min=a;
    if(max<b)min=b;
    if(max<c)min=c;
    cout << a+b+c-max;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: parse error in template argument list
   15 |     if(max<b)min=b;
      |        ^~~~~
a.cc:15:13: error: cannot resolve overloaded function 'max' based on conversion to type 'bool'
   15 |     if(max<b)min=b;
      |             ^
a.cc:16:8: error: parse error in template argument list
   16 |     if(max<c)min=c;
      |        ^~~~~
a.cc:16:13: error: cannot resolve overloaded function 'max' based on conversion to type 'bool'
   16 |     if(max<c)min=c;
      |             ^
a.cc:17:18: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
   17 |     cout << a+b+c-max;
      |             ~~~~~^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'p' was not declared in this scope
   12 |   cout<<p.at(0)+P.at(1)<<endl;
      |         ^
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Atcoder
{
    class Atcoderrrrrrr
    {
        static void Main(string[] args)
        {
            int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();

            Console.WriteLine(input[0] + input[1] + input[2] - input.Max());
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:17:6: error: expected ';' after class definition
   17 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void Atcoder::Atcoderrrrrrr::Main(int*)':
a.cc:13:16: error: structured binding declaration cannot have type 'int'
   13 |             int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
      |                ^~
a.cc:13:16: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:13:16: error: empty structured binding declaration
a.cc:13:19: error: expected initializer before 'input'
   13 |             int[] input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
      |                   ^~~~~
a.cc:15:13: error: 'Console' was not declared in this scope
   15 |             Console.WriteLine(input[0] + input[1] + input[2] - input.Max());
      |             ^~~~~~~
a.cc:15:31: error: 'input' was not declared in this scope; did you mean 'int'?
   15 |             Console.WriteLine(input[0] + input[1] + input[2] - input.Max());
      |                               ^~~~~
      |                               int