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

#include<bits/stdc++.h>
using namespace std;
 int main(void) {
   int p,q,r;
   cin >> p >> q >> r;
   int ans = min((p+q,p+r,q+r));
   cout << ans << endl;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: no matching function for call to 'min(int)'
    6 |    int ans = min((p+q,p+r,q+r));
      |              ~~~^~~~~~~~~~~~~~~
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:6:17: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    6 |    int ans = min((p+q,p+r,q+r));
      |              ~~~^~~~~~~~~~~~~~~
/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 namespace std;
 int main(void) {
   int p,q,r;
   cin >> p >> q >> r;
   int ans = min(p+q,p+r,q+r);
   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::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:6:17:   required from here
    6 |    int ans = min(p+q,p+r,q+r);
      |              ~~~^~~~~~~~~~~~~
/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<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<math.h>
#include<iomanip>
#include<set>
#include<numeric>
#include<cstring>
#include<cstdio>
#include<functional>
#include<bitset>
#include<limits.h>
#include<iterator>
#include<complex>
#include<stack>
using namespace std;
using MIte = multimap<vector<long>, Ball_pair>::iterator;

int main() {
	long P, Q, R;
	cin >> P >> Q >> R;

	long a = P + Q + R - max({ P, Q, R });


	cout << a << endl;


	return 0;
}

Compiler output:
a.cc:20:37: error: 'Ball_pair' was not declared in this scope
   20 | using MIte = multimap<vector<long>, Ball_pair>::iterator;
      |                                     ^~~~~~~~~
a.cc:20:46: error: template argument 2 is invalid
   20 | using MIte = multimap<vector<long>, Ball_pair>::iterator;
      |                                              ^
a.cc:20:46: error: template argument 4 is invalid
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int p, q, r;
  cin >> p >> q >> r;
  cout << p+q+r-max(p, q, r) << 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:20:   required from here
    6 |   cout << p+q+r-max(p, q, r) << endl;
      |                 ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <set>
#include <map>
#include <algorithm>


using namespace std;

int n;
long long a, b, c;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:28: error: no matching function for call to 'max(const long long int&)'
   16 |     cout << a + b + c - max(max(a, b, c));
      |                         ~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:5:
/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:
a.cc:16:28: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   16 |     cout << a + b + c - max(max(a, b, c));
      |                         ~~~^~~~~~~~~~~~~~
/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
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = long long int; _Compare = long long int]':
a.cc:16:32:   required from here
   16 |     cout << a + b + c - max(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>
#include <algorithm>
using namespace std;
int main()
{
	int p, q, r;
	cin >> p >> q >> r;
	cout << p + q + r - max(p, q , r);
}

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:8:25:   required from here
    8 |         cout << p + q + r - max(p, q , r);
      |                             ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <map>

#define repd(i,a,b) for(int i=(a);i<(b);++i)
#define rep(i,n)  repd(i,0,n)

using namespace std;

int main(){
    int p, q, r;
    cin >> p >> q >> r;
    int ans = INT_MAX;
    ans = min(p+q, p+r);
    ans = min(q+r, ans);
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: 'INT_MAX' was not declared in this scope
   14 |     int ans = INT_MAX;
      |               ^~~~~~~
a.cc:5:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    4 | #include <map>
  +++ |+#include <climits>
    5 |
Language: C++

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

  int P,Q,R; cin >> P >> Q >> R;
  int a1,a2,a3,maxi;
  
  a1 = P+Q;a2 = Q+R;a3 = P+R;
  maxi = min(a1,a2);
  maxi = min(maxi,a3);
  puts(maxi);
}





Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   13 |   puts(maxi);
      |        ^~~~
      |        |
      |        int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 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/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C++

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

  int P,Q,R; cin >> P >> Q >> R;
  int a1,a2,a3,maxi;
  
  a1 = P+Q;a2 = Q+R;a3 = P+R;
  maxi = min(a1,a2);
  maxi = min(maxi,a3);
  puts(maxi)
}





Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   13 |   puts(maxi)
      |        ^~~~
      |        |
      |        int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 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/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
a.cc:13:13: error: expected ';' before '}' token
   13 |   puts(maxi)
      |             ^
      |             ;
   14 | }
      | ~
Language: C++

#include<cmath>
#include<iostream>
#include<algorithm>
using namespace std; 
int main(){
  int a,b,c;
   char g[6];
    cin >> a>>b>>c;
  cout min({a+b,a+c,b+c});
}

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

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

int main(){
    int p,q,r; cin >> p >> q >> r;

    cout << min(p + q, p + r, q + r) << endl;
    return 0;
}

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

main(){
  int p,q,r;
  cin >> p >> q >> r;
  
  cout << p + q + r - max({p, q, r}) << endl;
}


Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:26: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    8 |   cout << p + q + r - max({p, q, r}) << 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;

main(){
  int p,q,r;
  cin >> p >> q >> r;
  
  cout << p + q + r - max({p,q,r}) << endl;
}


Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:26: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    8 |   cout << p + q + r - max({p,q,r}) << 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;

main(){
  int p,q,r;
  cin >> p >> q >> r;
  
  cout << p + q + r - max(p,q,r) << endl;
}


Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
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:8:26:   required from here
    8 |   cout << p + q + r - max(p,q,r) << 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<stdio.h>
int main()
{
    int p,q,r,a,b,c;
    scanf("%d%d%d",&p,&q,&r);
a=p+q;
b=q+r;
c=r+p;
 
 
        if(a<=b && a<=c)
            printf("%d",a);
else if(b<=a && b<=c)
    printf("%d",b);

Compiler output:
main.c: In function 'main':
main.c:14:5: error: expected declaration or statement at end of input
   14 |     printf("%d",b);
      |     ^~~~~~
Language: C

#include <stdio.h>
 
int main(void) {
    int a[3];
    scanf("%d %d %d", &a[0], &a[1], &a[2]);
    int sum[3];
    sum[0] = a[0] + a[1];
    sum[1] = a[0] + a[2];
    sum[2] = a[1] + a[2];
    int min = 300;
    for(int i = 0;i < 3;i++){
        if(sum[i] < min){
            min = sum[i];
        }
    }

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

#include<iostream>
using namespace std;

int main() {
	int P, Q, R;
	cin P >> Q >> R;
	int A = P + Q;
	int B = P + R;
	int C = Q + R;
	if (A <= B && B <= C)cout << A << endl;
	else if (A <= C && C <= B)cout << A << endl;
	else if (B <= A && A <= C)cout << B << endl;
	else if (B <= C && C <= A)cout << B << endl;
	else cout << C << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected ';' before 'P'
    6 |         cin P >> Q >> R;
      |            ^~
      |            ;
Language: Java

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

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

Compiler output:
Main.java:7: error: cannot find symbol
        int[] time = new time[3];
                         ^
  symbol:   class time
  location: class Main
1 error
Language: C++

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

int main() {
  int p, q, r;
  cin >> p >> q >> r;
  
  int maximum = max(max(p, q), r);
  if (maximum == p) {
  	cout << q + r << endl;
  }
  else if (maximun == q) {
  	cout << p + r << endl;
  }
  else {
  	cout << q + r << endl;
  }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude <bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> p >> q >> r;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incude <bits/stdc++.h>
a.cc:8:21: error: 'max' was not declared in this scope
    8 |   int maximum = max(max(p, q), r);
      |                     ^~~
a.cc:8:17: error: 'max' was not declared in this scope
    8 |   int maximum = max(max(p, q), r);
      |                 ^~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << q + r << endl;
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:26: error: 'endl' was not declared in this scope
   10 |         cout << q + r << endl;
      |                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incude <bits/stdc++.h>
a.cc:12:12: error: 'maximun' was not declared in this scope; did you mean 'maximum'?
   12 |   else if (maximun == q) {
      |            ^~~~~~~
      |            maximum
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << p + r << endl;
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:26: error: 'endl' was not declared in this scope
   13 |         cout << p + r << endl;
      |                          ^~~~
a.cc:13:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout << q + r << endl;
      |         ^~~~
a.cc:16:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:26: error: 'endl' was not declared in this scope
   16 |         cout << q + r << endl;
      |                          ^~~~
a.cc:16:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

int main(){
	int P;
	int Q;
	int R;
	cin >> P;
	cin >> Q;
	cin >> R;
	if(P >= Q && P >= R){
		cout << Q + R;
		break;
	}else if(Q >= P && Q >= R){
		cout << P + R;
		break;
	}else if(R >= P && R >= Q){
		cout << P + Q;
		break;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: break statement not within loop or switch
   14 |                 break;
      |                 ^~~~~
a.cc:17:17: error: break statement not within loop or switch
   17 |                 break;
      |                 ^~~~~
a.cc:20:17: error: break statement not within loop or switch
   20 |                 break;
      |                 ^~~~~
Language: C++


#include <bits/stdc++.h>
using namespace std;
  int main () {
  int P , Q , R , X;

  cin >> P >> Q >> R;
    
  X = P + R;  
    
  if (P + Q < P + R )  {
  X = P + Q
  }
  
  if  (Q + R < X)  {
  X = Q + R;
  }
   
  cout << X;  
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected ';' before '}' token
   12 |   X = P + Q
      |            ^
      |            ;
   13 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
  int main () {
  int P , Q , R;

  cin >> P >> Q >> R;
    
  if (P + Q =< P + R && Q + R)  {
  cout << P + Q;
  }
  
  else if  (P + R =< P + Q && Q + R)  {
  cout << P + R;
  }
    
  else if (R + Q =< P + R && Q + P)  {
  cout << R + Q;
  }  
  } 

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected primary-expression before '<' token
    8 |   if (P + Q =< P + R && Q + R)  {
      |              ^
a.cc:12:20: error: expected primary-expression before '<' token
   12 |   else if  (P + R =< P + Q && Q + R)  {
      |                    ^
a.cc:16:19: error: expected primary-expression before '<' token
   16 |   else if (R + Q =< P + R && Q + P)  {
      |                   ^
Language: C++

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


int main(){
    int P, Q, R;
    cin >> P >> Q >> R;

    int m = min(P+Q, Q+R, R+P);

    cout << m <<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::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:11:16:   required from here
   11 |     int m = min(P+Q, Q+R, R+P);
      |             ~~~^~~~~~~~~~~~~~~
/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<iostream>
#include <bits/stdc++.h>
using namespace std;

int main(){
    int P, Q, R;
    cin >> P >> Q >> R;

    int m = min(P+Q, Q+R, R+P);

    cout << m <<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::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:9:16:   required from here
    9 |     int m = min(P+Q, Q+R, R+P);
      |             ~~~^~~~~~~~~~~~~~~
/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<bit/stdc++.h>
using namespace std;
int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  cout<<min(a+b,min(b+c,a+c))<<endl;
  return 0;
}

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

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

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: no matching function for call to 'sort(int [3])'
    7 |   sort(answer);
      |   ~~~~^~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 1 provided
Language: C

#include<stdio.h>
int main(){

   int P,Q,R;
   scanf("%d %d %d",&P,&Q,&R);
   if(P+Q<=Q+R<=R+P){

    printf("%d\n",P+Q);
   }
else if(Q+R<=R+P<=P+Q){
    printf("%d\n",Q+R);
}
else(R+P<=P+Q<=Q+R){
    printf("%d\n",R+P);
}
return 0;
}



Compiler output:
main.c: In function 'main':
main.c:13:20: error: expected ';' before '{' token
   13 | else(R+P<=P+Q<=Q+R){
      |                    ^
      |                    ;
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:19: error: invalid operands to binary & (have 'char *' and 'int')
    5 |   scanf("%d %d %d"&a[0],&a[1],&a[2]);
      |         ~~~~~~~~~~^~~~~
      |         |           |
      |         char *      int
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,b,c;
  cin >>a>>b>>c;
  int D = min(c+a,a+b,b+c);
  cout << D <<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 |   int D = min(c+a,a+b,b+c);
      |           ~~~^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected '}' at end of input
    8 |   cout << D <<endl;
      |                    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:10:14: error: expected expression before '<' token
   10 |     if ((d = < e) && (d = < f))
      |              ^
main.c:10:27: error: expected expression before '<' token
   10 |     if ((d = < e) && (d = < f))
      |                           ^
main.c:14:19: error: expected expression before '<' token
   14 |     else if ((e = < f) && (e = < d))
      |                   ^
main.c:14:32: error: expected expression before '<' token
   14 |     else if ((e = < f) && (e = < d))
      |                                ^
Language: C++

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

int main() {
  int p, q, r;
  cin >> p >> q >> r;
  
  int ans;
  ans = min(p+q, q+r, r+p);
  
  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::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:9:12:   required from here
    9 |   ans = min(p+q, q+r, r+p);
      |         ~~~^~~~~~~~~~~~~~~
/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 p,q,r;
  cin >> p >> q >> r;
  cout << min(p+q,q+r,r+p) << 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(p+q,q+r,r+p) << 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 p,q,r;
  cin >> p >> q >> r;
  cout << min(p+q,q+r, r+p) << 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(p+q,q+r, r+p) << 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++"
#define ll long long
#define FOR(x) for(ll i = 0;i<x;i++)
#define ALL(v) v.begin(),v.end()
using ll = long long;

using namespace std;


int main(){
vector n(3);
FOR(3)cin>>n[i];
sort(ALL(n));
cout<<n[0+n[1]<<endl;
return 0;
}


Compiler output:
a.cc:1:10: fatal error: bits/stdc++: No such file or directory
    1 | #include "bits/stdc++"
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

INT A=MIN(P+Q,Q+R,P+R);
PRINTF(A);


Compiler output:
a.cc:1:1: error: 'INT' does not name a type
    1 | INT A=MIN(P+Q,Q+R,P+R);
      | ^~~
a.cc:2:7: error: expected constructor, destructor, or type conversion before '(' token
    2 | PRINTF(A);
      |       ^
Language: C

#include <stdio.h>

int main(){
    int p,q,r;
    int a,b,c;

    scanf("%d %d %d", &p , &q , &r);
    a = p + q;
    b = q + r;
    c = r + p;

    if(a <= b && a <= c){
        printf("%d\n",a);
    }else if(b <= a && b <= c){
        printf("%d\n",b);
    }else if(c <= a && c <= b)
        printf("%d\n",c);
    }

    
}

Compiler output:
main.c:21:1: error: expected identifier or '(' before '}' token
   21 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int P,Q,R; cin >> P >> Q >> R;
  cout << min(P+Q,Q+R,R+P) << endl;
  return 0;
}

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

import java.util.*;

import sun.tools.java.Scanner;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int[] time = new int[3];
        for(int i = 0; i < 3; i++){
            time[i] = sc.nextInt();
        }
        Arrays.sort(time);

        System.out.println(time[0] + time[1]);
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
import sun.tools.java.Scanner;
                     ^
  symbol:   class Scanner
  location: package sun.tools.java
1 error
Language: Java

import java.util.*;

import sun.tools.java.Scanner;

class Main{
    Scnner sc = new Scanner(System.in);

    int[] time = new int[3];
    for(int i = 0; i < 3; i++){
        time[i] = sc.nextInt();
    }
    Arrays.sort(time);

    Systme.out.println(time[0] + time[1]);
}

Compiler output:
Main.java:9: error: illegal start of type
    for(int i = 0; i < 3; i++){
    ^
Main.java:9: error: illegal start of type
    for(int i = 0; i < 3; i++){
                       ^
Main.java:9: error: <identifier> expected
    for(int i = 0; i < 3; i++){
                           ^
Main.java:12: error: <identifier> expected
    Arrays.sort(time);
               ^
Main.java:12: error: <identifier> expected
    Arrays.sort(time);
                    ^
Main.java:14: error: <identifier> expected
    Systme.out.println(time[0] + time[1]);
                      ^
Main.java:14: error: ']' expected
    Systme.out.println(time[0] + time[1]);
                            ^
7 errors
Language: C++

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

typedef long long int ll;

#define repl(i,a,b) for(int i=(int)a;i<(int)b;i++)
#define rep(i,n) repl(i,0,n)

ll a,b,c;

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


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

#include <iostream>
using namespace std;

int main(int argc, char const *argv[])
{
    int p, q, r;
    cin >> p >> q >> r;
    int sum = p + q + r;
    cout << sum - max({p, q, r}) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:9:22: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    9 |     cout << sum - max({p, q, r}) << 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 argc, char const *argv[])
{
    int p, q, r;
    cin >> p >> q >> r;
    int sum = p + q + r;
    cout << sum - (max({p, q, r})) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:9:23: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    9 |     cout << sum - (max({p, q, r})) << 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>
#include <vector>

using namespace std;

int main(){
  int a,b,c;
  cin >> a >> b >> c;
  vector<int>v;
  v.push_back(a);
  v.push_back(b);
  v.push_back(c);

  sort(v.begin(),v.end());

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

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   14 |   sort(v.begin(),v.end());
      |   ^~~~
      |   short
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:26: 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;
  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:7:26:   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;
	int tot1=a+b;
	int tot2=b+c;
	int tot3=a+c;
	if(tot1<tot2&&tot1<tot3)
	  cout<<tot1;
	else if(tot2<tot1&&tot2<tot3);
	  cout<<tot2;
	else
	  cout<<tot3;
	  
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'else' without a previous 'if'
   14 |         else
      |         ^~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
    int p, q, r;
    cin >> p >> q >> r;
    cout << min({p + q, p + r, q + r}) << endl;
    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
    8 |     cout << min({p + q, p + r, q + r}) << 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 <iostream>
#include <string>
using namespace std;
int main()
{
    int p, q, r;
    cin >> p >> q >> r;
    cout << min({p + q, p + r, q + r}) << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
    8 |     cout << min({p + q, p + r, q + r}) << 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()
{
  vector<int> vec(3);
  for(int i=0,i<3,i++){
      cin >> vec[i];
    }
  sort(vec.begin(),vec.end());
  cout << vec[0]+vec[1]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before '<' token
    6 |   for(int i=0,i<3,i++){
      |                ^
      |                ;
a.cc:6:16: error: expected primary-expression before '<' token
a.cc:6:22: error: expected ';' before ')' token
    6 |   for(int i=0,i<3,i++){
      |                      ^
      |                      ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected ';' before '<' token
    6 |     for(int i=0,i<3,i++){
      |                  ^
      |                  ;
a.cc:6:18: error: expected primary-expression before '<' token
a.cc:6:24: error: expected ';' before ')' token
    6 |     for(int i=0,i<3,i++){
      |                        ^
      |                        ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected ',' or ';' before 'for'
    6 |     for(int i=0,i<3,i++){
      |     ^~~