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

#include<bits/stdc++.h>
using namespace std;
int a,b,c,ab,ac,bc;
int main()
{
    cin>>a>>b>>c;
    ab=a+b;
    ac=a+c;
    ba=b+c;
    cout<<min(ab,min(ac,bc))<<endl;
    return 0;
} 

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

#include<bits/stdc++.h>
using namespace std;
int a,b,c;
int main()
{
    
    cin>>a>>b>>c;
    if((a<=b&&b<=c)||b<=a&&a<=c))cout<<a+b;
    else if((a<=b&&c<=b)||(c<=a&&a<=b))cout<<a+c;
    else cout<<c+b;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: expected primary-expression before ')' token
    8 |     if((a<=b&&b<=c)||b<=a&&a<=c))cout<<a+b;
      |                                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  string S;
  cin >> S;
  if(S.length()==4){
    cout<<2<<endl:
    return 0;
  }
  
  for(int i=2;i<S.length()+1;i=i+2){
    S=S.erase(S.length()-2);
    if(S.substr(S.length()/2)==S.substr(0,S.length()/2)){
      cout<<S.length()<<endl;
      return 0;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before ':' token
    8 |     cout<<2<<endl:
      |                  ^
      |                  ;
Language: C++

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


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



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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:36: error: expected '}' at end of input
    8 |   if(a<c&&b<c){cout<<a+b;return 0;}
      |                                    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'n' was not declared in this scope
    7 |     cin >> n >> m;
      |            ^
a.cc:7:17: error: 'm' was not declared in this scope
    7 |     cin >> n >> m;
      |                 ^
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:16:   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,a+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::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:8:11:   required from here
    8 |         cout<<min(a+b,b+c,a+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;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
typedef long long ll;

int main(){
  int d[3] = {0};
  rep(i,3){
    cin >> d[i];
  }
  sort(d.begin(),d.end());
  cout << d[0]+d[1] << endl;
}


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

#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
typedef long long ll;

int main(){
  int d[3] = {0};
  rep(i,3){
    cin >> d[i];
  }
  sort(d.bign(),d.end());
  cout << d[0]+d[1] << endl;
}


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

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



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

#include <iostream>
#include <vector>

using namespace std;

int main(void){
  vector<int> a(3);
  cin >> a[0] >> a[1] >> 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:10:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 |   sort(a.begin(), a.end());
      |   ^~~~
      |   short
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) << 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 <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define repe(i, n) for (int i = 0; i <= (n); ++i)
#define all(x) (x).begin(),(x).end()
using namespace std;
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; }
typedef long long ll;
const int INF = 1e9;
const ll mod = 1000000007;
int gcd(int a,int b){return b?gcd(b,a%b):a;}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: expected ')' before 'a'
   16 |     cout << min(a+b, min(b+c a+c)) << "\n";
      |                         ~   ^~
      |                             )
a.cc:16:25: error: no matching function for call to 'min(int)'
   16 |     cout << min(a+b, min(b+c a+c)) << "\n";
      |                      ~~~^~~~~~
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:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   template argument deduction/substitution failed:
a.cc:16:25: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   16 |     cout << min(a+b, min(b+c a+c)) << "\n";
      |                      ~~~^~~~~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
    int input [3];
    int x = 0;
    int n = 0;
    int m = 0;
    //ringring -- work
    for (int i = 0; i< 3; i++){
        cin>> input[i];
    }
    //find greatest
    for (int i = 0; i< 3; i++){
        if (input[i]>=n){
            n = input[i];
            m = i;
        }
    }
    //add other two
    for (int i = 0; i< 3; i++){
        if (i == m){
            continue;
        }
        else {
            x+= input[i];
        }
    }
    cout << x;

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:28:15: error: expected '}' at end of input
   28 |     cout << x;
      |               ^
a.cc:3:41: note: to match this '{'
    3 | int main(int argc, const char * argv[]) {
      |                                         ^
Language: C++

using ll=long long;
 
 
 
void solve(){
    vector<int > a(3);
    for(int i=0; i<3; i++)cin>>a[i];
    sort(a.begin(), a.end());
    cout<<a[0]+a[1]<<endl;
}
 
signed main(){
    //while(1)
    solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:6:5: error: 'vector' was not declared in this scope
    6 |     vector<int > a(3);
      |     ^~~~~~
a.cc:6:12: error: expected primary-expression before 'int'
    6 |     vector<int > a(3);
      |            ^~~
a.cc:7:27: error: 'cin' was not declared in this scope
    7 |     for(int i=0; i<3; i++)cin>>a[i];
      |                           ^~~
a.cc:7:32: error: 'a' was not declared in this scope
    7 |     for(int i=0; i<3; i++)cin>>a[i];
      |                                ^
a.cc:8:10: error: 'a' was not declared in this scope
    8 |     sort(a.begin(), a.end());
      |          ^
a.cc:8:5: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |     sort(a.begin(), a.end());
      |     ^~~~
      |     short
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<a[0]+a[1]<<endl;
      |     ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |     cout<<a[0]+a[1]<<endl;
      |                      ^~~~
Language: C++

#include<iostream>

using namespace std;
int main()

{

int a,b,c;

cin>>a>>b>>c;

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

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

else if(b<=a&&a<=c){
    cout<<b1+a<<endl;
}




return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:11: error: 'b1' was not declared in this scope; did you mean 'b'?
   24 |     cout<<b1+a<<endl;
      |           ^~
      |           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({A,B,C} << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:34: error: expected ')' before '<<' token
    7 |   cout << A + B + C - max({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-max({A,B,C}) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << (A+B+C-max({A,B,C}) << endl;
      |            ~~~~~~~~~~~~~~~~~~~^~~~~~~
a.cc:7:38: error: expected ')' before ';' token
    7 |   cout << (A+B+C-max({A,B,C}) << endl;
      |           ~                          ^
      |                                      )
Language: C++

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

Compiler output:
a.cc:2:1: error: 'usingnamespace' does not name a type
    2 | usingnamespace std;
      | ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<a+b+c-max(max(a,b),max(b,c))<<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:7:19: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |   cout<<a+b+c-max(max(a,b),max(b,c))<<endl;
      |                   ^~~
      |                   std::max
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:
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: 'std::max' declared here
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:7:15: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |   cout<<a+b+c-max(max(a,b),max(b,c))<<endl;
      |               ^~~
      |               std::max
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: 'std::max' declared here
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:7:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout<<a+b+c-max(max(a,b),max(b,c))<<endl;
      |                                       ^~~~
      |                                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(),(x).end()
#define Sort(x) sort((x).begin(), (x).end())
#define Reverse(x) reverse((x).begin(), (x).end())
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define REP(i, m, n) for(int i = m; i < n; i++)
#define INF INT_MAX
#define MOD 1000000007
#define fcout cout << fixed << setprecision(15) //15桁まで表示
#define str string
typedef std::pair<int,int> pii;
typedef long long ll;
typedef unsigned long long ull;
typedef unsigned int ui;
typedef pair<ui,ui> puu;
typedef pair<int, int> P;
typedef vector<int> vi;
typedef vector<str> vs;
int gcd(int a,int b){return b?gcd(b,a%b):a;};
int lcm(int a,int b){return a * b / gcd(a, b);};
int floor(int a,int b){return (a+b-1)/b;};
int month[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
template<class T>inline bool chmax(T& a,T b){if(a < b){a=b;return true;}return false;};
template<class T>inline bool chmin(T& a,T b){if(a > b){a=b;return true;}return false;};

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:30:16:   required from here
   30 |     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>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ll long long

using namespace std;

int main(){
  int a,b,c;
  cin>>a>>b>>c;
  
  valarray<int, 3> p = {a+b, b+c, a+c};
  cout<<p.min();

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: wrong number of template arguments (2, should be 1)
   12 |   valarray<int, 3> p = {a+b, b+c, a+c};
      |                  ^
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/range_access.h:111:32: note: provided for 'template<class _Tp> class std::valarray'
  111 |   template<typename _Tp> class valarray;
      |                                ^~~~~~~~
a.cc:12:20: error: scalar object 'p' requires one element in initializer
   12 |   valarray<int, 3> p = {a+b, b+c, a+c};
      |                    ^
Language: C++

#include<bits/stdc++.h>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ll long long

using namespace std;

int main(){
  int a,b,c;
  cin>>a>>b>>c;
  
  array<int, 3> p = {a+b, b+c, a+c};
  cout<<p.min();

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'struct std::array<int, 3>' has no member named 'min'
   13 |   cout<<p.min();
      |           ^~~
Language: C++

#include <stdlib.h>
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
using ll=long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
inline constexpr ll gcd(ll a,ll b){if(!a||!b)return 0;while(b){ll c=b;b=a%b;a=c;}return a;}
inline constexpr ll lcm(ll a,ll b){if(!a||!b)return 0;return a*b/gcd(a,b);}

int main() {
  long long 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:2:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = long long int; _Compare = long long int]':
a.cc:13:12:   required from here
   13 |   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;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define pb push_back
#define lb lower_bound
#define ub upper_bound
typedef long long ll;
const int INF = 100000000;
const long INF64 = 1000000000000000ll;
const ll MOD = 1000000007ll;

int main(){
	std::vector<int> a(3);
	rep(i,3)std::cin >> a[i];
	sort(all(a))
	std::cout << a[0]+a[1] << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: expected ';' before 'std'
   16 |         sort(all(a))
      |                     ^
      |                     ;
   17 |         std::cout << a[0]+a[1] << std::endl;
      |         ~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:10: error: 'o' was not declared in this scope
   19 |   return o;
      |          ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
#include <map>
#include <cstdlib>
using namespace std;
int main()
{
    int a, b, c, ;
    cin >> a >> b >> c;
    cout << a + b + c - min(a, min(b, c)) << endl;

    return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         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 | using namespace std;
a.cc:6:17: error: 'cout' was not declared in this scope
    6 |                 cout << b + c << endl;
      |                 ^~~~
a.cc:6:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:34: error: 'endl' was not declared in this scope
    6 |                 cout << 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 | using namespace std;
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << c + a << endl;
      |                 ^~~~
a.cc:10:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:34: error: 'endl' was not declared in this scope
   10 |                 cout << c + a << endl;
      |                                  ^~~~
a.cc:10:34: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << b + a << endl;
      |                 ^~~~
a.cc:14:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:34: error: 'endl' was not declared in this scope
   14 |                 cout << b + a << endl;
      |                                  ^~~~
a.cc:14:34: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>

using namespace std;

int main(){
  int a, b, c;
  cin >> a >> b >> c;
  
  if(a < b)
    if(b < c)
      cout << a+b;
    else
      cout << a+c;
  else
    if(a < c)
      cout << a+b;
    else
      cout << b+c;
  return 0;

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

#include<iostream>
#define size(array) (sizeof(array) / sizeof(array[0]))
using namespace std;
int main(void){
    int a,b,c;
    cin >> a >> b >> c;
    if(a > b){
      if(a > c){
        cout << b + c;
      }else{
        cout << b + a;
      }
    }else[
      if(b > c){
        cout << a + c;
      }else{
        cout << a + b;
      }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: expected identifier before 'if'
   14 |       if(b > c){
      |       ^~
a.cc:18:8: error: expected ']' before '}' token
   18 |       }
      |        ^
      |        ]
   19 |     }
      |     ~   
a.cc: In lambda function:
a.cc:19:5: error: expected '{' before '}' token
   19 |     }
      |     ^
a.cc: In function 'int main()':
a.cc:18:8: error: expected ';' before '}' token
   18 |       }
      |        ^
      |        ;
   19 |     }
      |     ~   
a.cc: At global scope:
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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

 
int main() {
  vector<int> vec(3)
    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:7:5: error: expected ',' or ';' before 'for'
    7 |     for (int i = 0; i < 3; i++) {
      |     ^~~
a.cc:7:21: error: 'i' was not declared in this scope
    7 |     for (int i = 0; i < 3; i++) {
      |                     ^
Language: C++

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

int main() {
	vector<int> a(3);
	cin >> a.at(0) >> a.at(1) >> a.at(2);
	sort(a.begin(), a.end());
	printf("%d\n", a.at(0) + a.(1));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:36: error: expected unqualified-id before '(' token
    8 |         printf("%d\n", a.at(0) + a.(1));
      |                                    ^
Language: C++

1 #include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); ++i)
typedef long long ll;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1;} return 0;}
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1;} return 0;}
const ll INF = 1LL << 60;

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


Compiler output:
a.cc:1:3: error: stray '#' in program
    1 | 1 #include<bits/stdc++.h>
      |   ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1 #include<bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:10:22: error: 'cin' was not declared in this scope
   10 |         int a, b, c; cin >> a >> b >> c;
      |                      ^~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << a + b + c - max({a, b, c});
      |         ^~~~
a.cc:11:29: error: 'max' was not declared in this scope
   11 |         cout << a + b + c - max({a, b, c});
      |                             ^~~
Language: C++

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

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


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

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

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


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

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

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


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

#include <bits/stdc++.h>

#include <cstdlib>  // abs() for integer 絶対値求めやつ

#include <cmath>    // abs() for float, and fabs()

#include <algorithm>
#include <vector>
#define rep(i,n) for(int i = 0; i< (n);i++)

#define sort(a) sort((a).begin(),(a).end());

#define che(a,string) cout<<string<<":"<<(a)<<endl;

#define ch(a,string) cout<<string<<":"<<(a)<<" ";

using namespace std;

typedef pair<int,int> p;

int main(){
int a,b,c;
cin>> a>>b>>c;
vector<int> A(3);
A[0]=a+b;
A[1]=a+c;
A[2]=b+c;
SORT(A);
cout<<A[0]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:1: error: 'SORT' was not declared in this scope
   28 | SORT(A);
      | ^~~~
Language: C++

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

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

}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   rep(i,3) cin>>v[i];
      |       ^
a.cc:6:3: error: 'rep' was not declared in this scope
    6 |   rep(i,3) cin>>v[i];
      |   ^~~
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}
  sort(v.begin(),v.end());
  cout<<v[0]+v[1]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'sort'
    7 |   sort(v.begin(),v.end());
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  int ans = max(a + b, b + c, c + a);
  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:6:16:   required from here
    6 |   int ans = max(a + b, b + c, c + a);
      |             ~~~^~~~~~~~~~~~~~~~~~~~~
/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 << max (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::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:6:15:   required from here
    6 |   cout << max (a + b, b + c, c + a) << 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 << max(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::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:6:14:   required from here
    6 |   cout << max(a + b, b + c, c + a) << 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;
#define rep(i,n) for(int i=0; i<n; i++)
#define MOD 10e9+7

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:38: error: expected '}' at end of input
    8 |     cout << a + b + c - max({a,b,c});
      |                                      ^
a.cc:6:11: note: to match this '{'
    6 | 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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected ')' before '}' token
    7 |   cout << A+B+C-max((A,B),C}) << endl;
      |                    ~       ^
      |                            )
a.cc: At global scope:
a.cc:7:29: error: expected unqualified-id before ')' token
    7 |   cout << A+B+C-max((A,B),C}) << endl;
      |                             ^
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
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;
}

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:23:   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-max({a,b,c})<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected initializer before '>>' token
    5 |     int a>>b>>c;
      |          ^~
a.cc:6:10: error: 'a' was not declared in this scope
    6 |     cin>>a>>b>>c;
      |          ^
a.cc:6:13: error: 'b' was not declared in this scope
    6 |     cin>>a>>b>>c;
      |             ^
a.cc:6:16: error: 'c' was not declared in this scope
    6 |     cin>>a>>b>>c;
      |                ^
a.cc:7:20: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    7 |     cout<<a+b+c-max({a,b,c})<<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: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
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected initializer before '>>' token
    5 |     int a>>b>>c;
      |          ^~
a.cc:6:11: error: 'a' was not declared in this scope
    6 |     cin >>a>>b>>c;
      |           ^
a.cc:6:14: error: 'b' was not declared in this scope
    6 |     cin >>a>>b>>c;
      |              ^
a.cc:6:17: error: 'c' was not declared in this scope
    6 |     cin >>a>>b>>c;
      |                 ^
a.cc:7:20: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    7 |     cout<<a+b+c-max({a,b,c})<<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: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
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include <cassert>
#include <cstdio>
#include <cmath>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <algorithm>

const int MOD = 1000000007, INF = 1111111111;
using namespace std;
using lint = long long;

template <class T>
ostream &operator<<(ostream &os, const vector<T> &vec) {
	for (int i = 0; i < (int)vec.size(); i++) {
		os << vec[i] << (i + 1 == vec.size() ? "" : " ");
	}
	return os;
}

#ifdef _DEBUG
template <class Head>
void dump(const char* str, Head &&h) { cerr << str << " = " << h << "\n"; };
template <class Head, class... Tail>
void dump(const char* str, Head &&h, Tail &&... t) {
	while (*str != ',') cerr << *str++; cerr << " = " << h << "\n";
	dump(str + 1, t...);
}
#define DMP(...) dump(#__VA_ARGS__, __VA_ARGS__)
#else 
#define DMP(...) ((void)0)
#endif

int main() {

	cin.tie(nullptr);
	ios::sync_with_stdio(false);

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

	cout << a + b + c - min(a, b, c) << "\n";

	return 0;
}

Compiler output:
In file included from /usr/include/c++/14/bits/specfun.h:43,
                 from /usr/include/c++/14/cmath:3906,
                 from a.cc:3:
/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:45:25:   required from here
   45 |         cout << a + b + c - min(a, b, c) << "\n";
      |                             ~~~^~~~~~~~~
/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: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;
  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: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;
  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:7:15:   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 3[a];
  for(auto &i:a) cin >> i;
  sort(a,a+3);
  cout << a[0]+a[1] << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:7: error: expected unqualified-id before numeric constant
    4 |   int 3[a];
      |       ^
a.cc:5:15: error: 'a' was not declared in this scope
    5 |   for(auto &i:a) cin >> i;
      |               ^
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   sort(a,a+3);
      |        ^
Language: C++

package main

import (
	"fmt"
	"sort"
)

func main() {
	var a [3]int
	fmt.Scan(&a[0], &a[1], &a[2])
	sort.Ints(a[:])
	fmt.Println(a[0] + a[1])
}

Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
Language: C++

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

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
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:6:18:   required from here
    6 |   cout<<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<iostream>
main(){
  int a,b,c;
  std::cin>>a>>b>>c;
  std::cout<<a+b+c-max(a,b,c);
}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:20: error: 'max' was not declared in this scope; did you mean 'std::max'?
    5 |   std::cout<<a+b+c-max(a,b,c);
      |                    ^~~
      |                    std::max
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:303:5: note: 'std::max' declared here
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
Language: C++

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

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

#include<iostream>
#include<vector>
#include<map>
#include<algorithm>
#include<math.h>
#include<string>
#include <iomanip>
#include<deque>

typedef long long ll;
typedef unsigned long long ull;
typedef int itn;
const ll LINF = 1e18;
const int INF = 1e8;

using namespace std;


//マクロ定義
#define vvint(vec,n,m,l) vector<vector<int>> vec(n, vector<int>(m,l));	// lで初期化
#define vvll(vec,n,m,l) vector<vector<ll>> vec(n,vector<ll>(m,l));
#define vint vector<int>
#define pint pair<int,int>
#define rep(i,a) for(int i=0;i<(a);i++)
#define all(x) (x).begin(),(x).end()
#define debug system("pause")				//デバッグ用


int main(void)
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	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/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:36:25:   required from here
   36 |         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))
      |           ~~~~~~^~~~~~~~~~