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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: no matching function for call to 'max()'
   10 |         cout<<a+b+c-max()<<endl;
      |                     ~~~^~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: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, 0 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, 0 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/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:   candidate expects 1 argument, 0 provided
/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, 0 provided
Language: C++

#include<iostream>
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:9:24: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    9 |         cout<<a+b+c-max({a,b,c})<<endl;
      |                     ~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: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<stdio.h>
#include<stdlib.h>
#include<string.h>
//絶対値
long long int change_plus(long long int a) {
	if (a < 0) { return -a; }
	if (a >= 0) { return a; }
}
//大小比較(大)
long long int big(long long int a, long long int b) {
	if (a >= b) {
		return a;
	}
	else {
		return b;
	}
}

//大小比較(小)
long long int small(long long int a, long long int b) {
	if (a >= b) {
		return b;
	}
	else {
		return a;
	}
}

main() {
	long long int n, m, k = 0;
	char str[5];
	scanf("%lld%lld%lld",&n,&m&k);
	 printf("%lld",n+m+k-big(big(n,m),k));
	
	

}

Compiler output:
main.c:29:1: error: return type defaults to 'int' [-Wimplicit-int]
   29 | main() {
      | ^~~~
main.c: In function 'main':
main.c:32:35: error: invalid operands to binary & (have 'long long int *' and 'long long int')
   32 |         scanf("%lld%lld%lld",&n,&m&k);
      |                                 ~~^
      |                                 |
      |                                 long long int *
Language: C

#include<stdio.h>

int main(void){
	int A, B, C;
	if (scanf_s("%d %d %d", &A, &B, &C) == 1);
	if (A >= 1 && B >= 1 && C >= 1 && A <= 10000 && B <= 10000 && C <= 10000){
		if (A + B<A + C){
			if (A + B<B + C)
				printf("%d", A + B);
			else
				printf("%d", B + C);
		}
		else{
			if (A + C<B + C)
				printf("%d", A + C);
			else
				printf("%d", B + C);
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         if (scanf_s("%d %d %d", &A, &B, &C) == 1);
      |             ^~~~~~~
      |             scanf
Language: C

#include<stdio.h>
 
int main(void){
  int A,B,C;
  if(scanf("%x %x %x",&A,&B,&C) == 1);
  if(A >=1 && B >=1 && C >=1 && A <= 10000 && B <= 10000 && C <= 10000){
    if (A+B<A+C){
      if (A+B<B+C)
        printf("%d",A+B);
      else
        printf("%d",B+C);
    }
    else{
      if(A+C<B+C)
        printf("%d",A+C);
      else
        printf("%d",B+C);
    }
  return 0;
}

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

#include<stdio.h>
 
int main(void){
  int A,B,C;
  if(scanf("%x %x %x",&A,&B,&C)) == 1);
  if(A >=1 && B >=1 && C >=1 && A <= 10000 && B <= 10000 && C <= 10000){
    if (A+B<A+C){
      if (A+B<B+C)
        printf("%d",A+B);
      else
        printf("%d",B+C);
    }
    else{
      if(A+C<B+C)
        printf("%d",A+C);
      else
        printf("%d",B+C);
    }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:34: error: expected expression before '==' token
    5 |   if(scanf("%x %x %x",&A,&B,&C)) == 1);
      |                                  ^~
main.c:5:38: error: expected statement before ')' token
    5 |   if(scanf("%x %x %x",&A,&B,&C)) == 1);
      |                                      ^
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

#include<stdio.h>

int main(){
  int i, j, a[3];
  
  for (i = 0; i < 3; i++){
    scanf("%d", &a[i]);
  }
  
  for (i = 0; i < 3; i++){
    for (j = i; j < 3; j++){
      if(a[i] > a[j]){
        c = a[i];
        a[i] = a[j];
        a[j] = c;
      }
    }
  }
  
  printf("%d\n", a[0] + a[1]);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: 'c' undeclared (first use in this function)
   13 |         c = a[i];
      |         ^
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
  int i, a[3];
  
  for (i = 0; i < 3; i++){
    scanf("%d", &a[i]);
  }
  
  for (i = 0; i < 3; i++){
    for (j = i; j < 3; j++){
      if(a[i] > a[j]){
        c = a[i];
        a[i] = a[j];
        a[j] = c;
      }
    }
  }
  
  printf("%d\n", a[0] + a[1]);
  
  return 0;
}

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

#include<iostream> #include<cmath> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int m=max(a,b); int ma=max(m,c); cout<<a+b+c-ma<<"n¥"; }


Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include<iostream> #include<cmath> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int m=max(a,b); int ma=max(m,c); cout<<a+b+c-ma<<"n¥"; }
      |                    ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:2:24: error: 'a' undeclared (first use in this function)
    2 |             int main(){a+b;
      |                        ^
main.c:2:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:2:26: error: 'b' undeclared (first use in this function)
    2 |             int main(){a+b;
      |                          ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:2:20: error: 'a' undeclared (first use in this function)
    2 |         int main(){a+b;
      |                    ^
main.c:2:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:2:22: error: 'b' undeclared (first use in this function)
    2 |         int main(){a+b;
      |                      ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:2:16: error: 'a' undeclared (first use in this function)
    2 |     int main(){a+b;
      |                ^
main.c:2:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:2:18: error: 'b' undeclared (first use in this function)
    2 |     int main(){a+b;
      |                  ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:28: error: expected ';' before 'printf'
    9 |         if(min>a+c) min=a+c printf("%d",min);
      |                            ^~~~~~~
      |                            ;
main.c:11:28: error: expected ';' before 'printf'
   11 |         if(min>b+c) min=b+c printf("%d",min);
      |                            ^~~~~~~
      |                            ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:5: error: 'else' without a previous 'if'
   10 |     else
      |     ^~~~
main.c:12:5: error: 'else' without a previous 'if'
   12 |     else
      |     ^~~~
Language: C

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

int min;
min a+b;

if(min>a+c) min=a+c; printf("%d",&min);
else 
if(min>b+c) min=b+c; printf("%d",&min);
else
printf("%d",&min);


return 0;  
}

Compiler output:
main.c: In function 'main':
main.c:7:4: error: expected ';' before 'a'
    7 | min a+b;
      |    ^~
      |    ;
main.c:10:1: error: 'else' without a previous 'if'
   10 | else
      | ^~~~
main.c:12:1: error: 'else' without a previous 'if'
   12 | else
      | ^~~~
Language: C

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

int min;
min a+b;

if(min>a+c) min=a+c;
else 
if(min>b+c) min=b+c;

printf("%d",&min);


return 0;  
}

Compiler output:
main.c: In function 'main':
main.c:7:4: error: expected ';' before 'a'
    7 | min a+b;
      |    ^~
      |    ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'C' was not declared in this scope
   10 |     cout << a+C << endl;
      |               ^
Language: C++

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

int main(){
  int a,b,c;
  cin>>a>>b>>c;
  int k=max(a,b,c);
  cout<<a+b+c-k<<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:12:   required from here
    7 |   int k=max(a,b,c);
      |         ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

int main(){
  int a,b,c;
  cin>>a>>b>>c;
  cout<<a+b+c-max(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:18:   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

main(a,b,c){scanf("%d%d%d",&a,&b,&c);int max;a<b?b<c?max=c:max=b:a<c?max=c:max=a;printf("%d",a+b+c-max);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c);int max;a<b?b<c?max=c:max=b:a<c?max=c:max=a;printf("%d",a+b+c-max);}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:13: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c);int max;a<b?b<c?max=c:max=b:a<c?max=c:max=a;printf("%d",a+b+c-max);}
      |             ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c);int max;a<b?b<c?max=c:max=b:a<c?max=c:max=a;printf("%d",a+b+c-max);}
main.c:1:13: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c);int max;a<b?b<c?max=c:max=b:a<c?max=c:max=a;printf("%d",a+b+c-max);}
      |             ^~~~~
main.c:1:13: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:63: error: lvalue required as left operand of assignment
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c);int max;a<b?b<c?max=c:max=b:a<c?max=c:max=a;printf("%d",a+b+c-max);}
      |                                                               ^
main.c:1:82: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c);int max;a<b?b<c?max=c:max=b:a<c?max=c:max=a;printf("%d",a+b+c-max);}
      |                                                                                  ^~~~~~
main.c:1:82: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:82: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:82: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  int x=a+b,y=b+c,z=c+a;
cout<<min({min({x,y})},z})<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: expected ')' before '}' token
    8 | cout<<min({min({x,y})},z})<<endl;
      |          ~              ^
      |                         )
a.cc: At global scope:
a.cc:8:26: error: expected unqualified-id before ')' token
    8 | cout<<min({min({x,y})},z})<<endl;
      |                          ^
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  int x=a+b,y=b+c,z=c+a;
  cout<<min({min(x,y)},z)<<endl;
}

Compiler output:
In file included from /usr/include/c++/14/bits/stl_algobase.h:71,
                 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/predefined_ops.h: In instantiation of 'constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = const int*; _Iterator2 = const int*; _Compare = int]':
/usr/include/c++/14/bits/stl_algo.h:5562:12:   required from 'constexpr _ForwardIterator std::__min_element(_ForwardIterator, _ForwardIterator, _Compare) [with _ForwardIterator = const int*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<int>]'
 5562 |         if (__comp(__first, __result))
      |             ~~~~~~^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:5699:44:   required from 'constexpr _Tp std::min(initializer_list<_Tp>, _Compare) [with _Tp = int; _Compare = int]'
 5699 |       return *_GLIBCXX_STD_A::__min_element(__l.begin(), __l.end(),
      |                                            ^
a.cc:8:12:   required from here
    8 |   cout<<min({min(x,y)},z)<<endl;
      |         ~~~^~~~~~~~~~~~~~
/usr/include/c++/14/bits/predefined_ops.h:158:30: error: expression cannot be used as a function
  158 |         { return bool(_M_comp(*__it1, *__it2)); }
      |                       ~~~~~~~^~~~~~~~~~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:37: error: 'N' was not declared in this scope
    5 |         cout<<(a+b+c)-max({a,b,c})<<N<<endl;
      |                                     ^
Language: C++

#include "iostream"
#include <algorithm>
#include <stdlib.h>
#include <string>
#include <cctype>
#include <stack>
#include <vector>
#include <list>
#include <queue>
using namespace std;
using ll=long long;
#define mod  1000000007

int main(int argc, char const *argv[]) {
  int a,b,c;
  std::cin >> a >> b >> c;

  std::cout << min(a+b,b+c,c+a) << '\n';
  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:18:19:   required from here
   18 |   std::cout << min(a+b,b+c,c+a) << '\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++

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 ans = Math.min(Math.min(a+b,b+c),a+c);
        System.out.println(ans);
    }
}
 

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:11: error: expected ':' before 'static'
    4 |     public static void main(String[] args){
      |           ^~~~~~~
      |           :
a.cc:4:29: error: 'String' has not been declared
    4 |     public static void main(String[] args){
      |                             ^~~~~~
a.cc:4:38: error: expected ',' or '...' before 'args'
    4 |     public static void main(String[] args){
      |                                      ^~~~
a.cc:12:2: error: expected ';' after class definition
   12 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:9: error: 'Scanner' was not declared in this scope
    5 |         Scanner sc = new Scanner(System.in);
      |         ^~~~~~~
a.cc:6:17: error: 'sc' was not declared in this scope
    6 |         int a = sc.nextInt();
      |                 ^~
a.cc:9:19: error: 'Math' was not declared in this scope
    9 |         int ans = Math.min(Math.min(a+b,b+c),a+c);
      |                   ^~~~
a.cc:10:9: error: 'System' was not declared in this scope
   10 |         System.out.println(ans);
      |         ^~~~~~
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin>>a>>b>>c;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout<<(a+b+c)-max(a,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:6:25: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |     cout<<(a+b+c)-max(a,max(b,c))<<endl;
      |                         ^~~
      |                         std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:6:19: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |     cout<<(a+b+c)-max(a,max(b,c))<<endl;
      |                   ^~~
      |                   std::max
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:6:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout<<(a+b+c)-max(a,max(b,c))<<endl;
      |                                    ^~~~
      |                                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/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 namesapce std;
int a,b,c;//定义三种价格
int main(){
    cin>>a>>b>>c;//输入价格
    cout<<(a+b+c)-max(a,max(b,c))<<endl;//按照思(tao)路输出
    return 0;//完美结束
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin>>a>>b>>c;//输入价格
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout<<(a+b+c)-max(a,max(b,c))<<endl;//按照思(tao)路输出
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:25: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |     cout<<(a+b+c)-max(a,max(b,c))<<endl;//按照思(tao)路输出
      |                         ^~~
      |                         std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:6:19: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |     cout<<(a+b+c)-max(a,max(b,c))<<endl;//按照思(tao)路输出
      |                   ^~~
      |                   std::max
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:6:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout<<(a+b+c)-max(a,max(b,c))<<endl;//按照思(tao)路输出
      |                                    ^~~~
      |                                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/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;
int main()
{   
    int a,b,c;
    cin>>a>>b>>c;
    cout<<min(a+b,min(a+c,min(b+c)));
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: no matching function for call to 'min(int)'
    7 |     cout<<min(a+b,min(a+c,min(b+c)));
      |                           ~~~^~~~~
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:7:30: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    7 |     cout<<min(a+b,min(a+c,min(b+c)));
      |                           ~~~^~~~~
/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 <bits/stdc++.h>
using namesapce std;
int a, b, c;
int main() {
    cin >> a >> b >> c;
    cout << max(a + b, max(b + c, a + c)) << endl;
    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> a >> b >> c;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << max(a + b, max(b + c, a + 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:6:24: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |     cout << max(a + b, max(b + c, a + c)) << endl;
      |                        ^~~
      |                        std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:6:13: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |     cout << max(a + b, max(b + c, a + c)) << endl;
      |             ^~~
      |             std::max
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:6:46: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout << max(a + b, max(b + c, a + c)) << endl;
      |                                              ^~~~
      |                                              std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<cstdio>
using namespace std;
int main()
{
    int a[4];
    scanf("%d%d%d",&a[1],&a[2],&a[3]);
    sort(a+1,a+4);
    if(a[3]>=a[2])printf("%d\n",a[1]+a[2]);
    else printf("%d\n",a[2]+a[3]);
    return 0;
}

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

#include<bits/stdc++.h>
using namesapce std;
int main()
{
    int a,b,c;
    cin>>a>>b>>c;
    cout<<min(a+b,min(a+c,b+c))<<'\n';
    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>a>>b>>c;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<min(a+b,min(a+c,b+c))<<'\n';
      |     ^~~~
      |     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: 'min' was not declared in this scope; did you mean 'std::min'?
    7 |     cout<<min(a+b,min(a+c,b+c))<<'\n';
      |                   ^~~
      |                   std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:7:11: error: 'min' was not declared in this scope; did you mean 'std::min'?
    7 |     cout<<min(a+b,min(a+c,b+c))<<'\n';
      |           ^~~
      |           std::min
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc:4:1: error: expected initializer before 'int'
    4 | int main(){
      | ^~~
Language: C++

#include <cstdio>
#include <cmath>
#include <iostream>
#include <cstdlib>
#include <string>
#include <iomanip>
#include <ctime>
#include <set>
#include <sstream>
#include <map>
#include <cstring>
#include <algorithm>
using namespace std;
typedef long long ll;
int i,a[5];
int main(){
//	freopen(".in","r",stdin);
//	freopen(".out","w",stdout);
	cin>>a[1]>>a[2]>>a[3];
	sort(a+1,a+1+n);
	printf("%d\n",a[1]+a[2]);
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:20:22: error: 'n' was not declared in this scope; did you mean 'yn'?
   20 |         sort(a+1,a+1+n);
      |                      ^
      |                      yn
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,c,nga,ga,ans;
	cin>>a>>b>>c;
	nga=(a>b)? a:b;
	ga=(nga>c)? nga:c;
	ans=a+b+c-ga<<endl;
	cout<<ans;
	return 0;
} 

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: no matching function for call to 'min(int)'
    9 |   cout << min(a+b,min(a+c,min(b+c))) << endl;
      |                           ~~~^~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/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:9:30: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    9 |   cout << min(a+b,min(a+c,min(b+c))) << endl;
      |                           ~~~^~~~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include <iostream>
using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'b' was not declared in this scope
    9 |     cout<<a+b<<endl;
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int a,b,c;
int d[3];

int main(){
  cin>>a>>b>>c;
  d[3]={a+b,b+c,c+a};
  sort(d,d+3);
  cout<<d[0]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment
    8 |   d[3]={a+b,b+c,c+a};
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int a,b,c,d[10];

int main(){
  cin>>a>>b>>c;
  d[10]={a+b,b+c,c+a};
  sort(d,d+3);
  cout<<d[0]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment
    7 |   d[10]={a+b,b+c,c+a};
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int a,b,c,d[3];

int main(){
  cin>>a>>b>>c;
  d[3]={a+b,b+c,c+a};
  sort(d,d+3);
  cout<<d[0]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment
    7 |   d[3]={a+b,b+c,c+a};
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'else' without a previous 'if'
    7 |         else if(c<=a&&b<=a)
      |         ^~~~
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,b,c,m; 
  cin >> a >> b >> c; 
  m = max(a, b, c); 
  cout << a+b+c-m << 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:10:   required from here
    7 |   m = 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 << a+b+c-max({a,b,c}) << endl;
}

Compiler output:
a.cc: In function 'int main()':
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/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'else' without a previous 'if'
    7 |     else if(a<=b&&c<=b)cout<<a+c<<endl;
      |     ^~~~
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin>>a>>b>>c;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:13: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |     d=max(a,max(b,c));
      |             ^~~
      |             std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:6:7: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |     d=max(a,max(b,c));
      |       ^~~
      |       std::max
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<(a+b+c)-d<<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:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     cout<<(a+b+c)-d<<endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/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;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  vector<int> vec(3) = {a, b, c};
  sort(vec.begin(), vec.end());
  cout << vec[0] + vec[1] << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expected ',' or ';' before '=' token
    6 |   vector<int> vec(3) = {a, b, c};
      |                      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  int vec[3] = {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:12: error: request for member 'begin' in 'vec', which is of non-class type 'int [3]'
    7 |   sort(vec.begin(), vec.end());
      |            ^~~~~
a.cc:7:25: error: request for member 'end' in 'vec', which is of non-class type 'int [3]'
    7 |   sort(vec.begin(), vec.end());
      |                         ^~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vec' was not declared in this scope
    6 |   vec[3] = {a, b, c};
      |   ^~~
Language: C++

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


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