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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: no matching function for call to 'sort(std::vector<int>::iterator, <unresolved overloaded function type>)'
   10 |   sort (t.begin(),t.end);
      |   ~~~~~^~~~~~~~~~~~~~~~~
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: 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<int*, vector<int> >]'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:63: note:   no known conversion for argument 2 from '<unresolved overloaded function type>' to '__gnu_cxx::__normal_iterator<int*, std::vector<int> >'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |                                         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/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, 2 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, 2 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, 2 provided
Language: C++

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

using ll = long long;
using ull = unsigned long long;
using ld = long double;
#define FOR(NAME, START, NUM) for (ll NAME = START; NAME < (NUM); NAME++)
#define REP(NAME, NUM) for (ll NAME = 0; NAME < (NUM); NAME++)
#define BREP(NAME, NUM) for (ll NAME = (NUM)-1; NAME >= 0; NAME--)
#define ALL(NAME) (NAME).begin(), (NAME).end()
const ll INF =1000000000000000;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:27: error: expected ')' before ';' token
   16 |   ans=p+q+r-max(p,max(q,r);
      |                ~          ^
      |                           )
Language: C++

#include <stdio.h>
#include <stdlib.h>

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

Compiler output:
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:10:9: error: 'min' was not declared in this scope; did you mean 'main'?
   10 |   ans = min(p+q,q+r,r+p);
      |         ^~~
      |         main
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << ans << endl;
      |   ^~~~
a.cc:12:18: error: 'endl' was not declared in this scope
   12 |   cout << ans << endl;
      |                  ^~~~
Language: Java




import java.util.Scanner;

/**
 * @program: leetcode
 * @description:
 * @author: wangtengke
 * @create: 2019-06-16
 **/
public class A {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();
        int max = Math.max(a, Math.max(b, c));
        System.out.println(a+b+c-max);
    }
   

}


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

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

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

#include<bits/stdc++.h>
using namespace std;
vector<int>vec;
int main()
{

   int a,b,c;
   int a1,a2,a3,a4,a5,a6;
   cin>>a>>b>>c;
   a1=a+b;
   vec.push_back(a1);
   a2=a+c;
   vec.push_back(a2);
   a3=b+c;
   vec.push_back(a3);
   sort(vec.begin(),vec.end(a));
   cout<<vec[0]<<"\n";


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:28: error: no matching function for call to 'std::vector<int>::end(int&)'
   16 |    sort(vec.begin(),vec.end(a));
      |                     ~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:893:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::end() [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::vector<int>::iterator]'
  893 |       end() _GLIBCXX_NOEXCEPT
      |       ^~~
/usr/include/c++/14/bits/stl_vector.h:893:7: note:   candidate expects 0 arguments, 1 provided
/usr/include/c++/14/bits/stl_vector.h:903:7: note: candidate: 'std::vector<_Tp, _Alloc>::const_iterator std::vector<_Tp, _Alloc>::end() const [with _Tp = int; _Alloc = std::allocator<int>; const_iterator = std::vector<int>::const_iterator]'
  903 |       end() const _GLIBCXX_NOEXCEPT
      |       ^~~
/usr/include/c++/14/bits/stl_vector.h:903:7: note:   candidate expects 0 arguments, 1 provided
Language: C++

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

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

Compiler output:
a.cc: In lambda function:
a.cc:7:29: error: expected '{' before ';' token
    7 |   vector<int>leng =[a, b, c];
      |                             ^
a.cc: In function 'int main()':
a.cc:7:20: error: conversion from 'main()::<lambda()>' to non-scalar type 'std::vector<int>' requested
    7 |   vector<int>leng =[a, b, c];
      |                    ^~~~~~~~~
Language: Java

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

public class Main
{
  	int p, q, r;
  
    Main(Scanner in, PrintWriter out)
    {
    	p = in.nextInt();
      	q = in.nextInt();
      	r = in.nextInt();
      	out.println(Math.min(p+q, Math.min(q+r, r+p));
    }
	
	public static void main(String[] args)
	{
		Scanner in = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		new	Main(in, out);
		out.close();
	} 
}

Compiler output:
Main.java:13: error: ')' or ',' expected
      	out.println(Math.min(p+q, Math.min(q+r, r+p));
      	                                             ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  long int a,b,c;
  vector<long int>v;
  cin>>a>>b>>c;
  v.push_back(a+b);
  v.push_back(b+c);
  v.push_back(a+c);
  auto min=minimum_element(v.begin(),v.end());
  cout<<(*min)<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'minimum_element' was not declared in this scope
   11 |   auto min=minimum_element(v.begin(),v.end());
      |            ^~~~~~~~~~~~~~~
Language: C++

#include "pch.h"
#include <stdio.h>
#include <stdlib.h>

int main()
{
	int P, Q, R;
	int min;

	scanf_s("%d %d %d", &P, &Q, &R);
	min = P + Q;
	min = min > P + R ? P + R : min;
	min = min > Q + R ? Q + R : min;
	printf("%d", min);

	return 0;
}

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

#include <bits/stdc++.h>

int main(void){
  int P,Q,R;
  cin >> P >> Q >> R;
  
  int result = P + Q + R - max(P,max(Q,R));
  
  cout << result << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> P >> Q >> R;
      |   ^~~
      |   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:34: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |   int result = P + Q + R - max(P,max(Q,R));
      |                                  ^~~
      |                                  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:7:28: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |   int result = P + Q + R - max(P,max(Q,R));
      |                            ^~~
      |                            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:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << result << 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:9:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << result << 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 <stdio.h>

int main(void) {
	int p=0, q=0, r=0;
	int sum[3];

	scanf_s("%d", &p);
	scanf_s("%d", &q);
	scanf_s("%d", &r);

	sum[0] = p + q;
	sum[1] = p + r;
	sum[2] = q + r;
	 
	int min = sum[0];

	for (int i = 0; i < 3; i++) {
		if (min > sum[i]) {
			min = sum[i];
		}
	}

	printf("%d", min);
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scanf_s("%d", &p);
      |         ^~~~~~~
      |         scanf
Language: C++

using namespace std;

int main()
{
  int a,b,c,r;
  scanf("%d %d %d",&a,&b,&c);
  cout << a << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'scanf' was not declared in this scope
    6 |   scanf("%d %d %d",&a,&b,&c);
      |   ^~~~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << a << endl;
      |   ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:16: error: 'endl' was not declared in this scope
    7 |   cout << a << endl;
      |                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C

#using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RockController : MonoBehaviour
{
    float fallSpeed;
    float rotSpeed;

    // Start is called before the first frame update
    void Start()
    {
        this.fallSpeed = 0.5f + 1.5f * Random.value;
        this.rotSpeed = 5f + 3f * Random.value;
    }

    // Update is called once per frame
    void Update()
    {
        transform.Translate(0, 0, -fallSpeed, Space.World);
        transform.Rotate(0, 0, rotSpeed);

        if (transform.position.y < -5.5f)
        {
            Destroy(gameObject);
        }
    }
    private void OnCollisionEnter(Collision collision)
    {
        Destroy(gameObject);
    }

}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #using
    1 | #using System.Collections;
      |  ^~~~~
main.c:2:1: error: unknown type name 'using'
    2 | using System.Collections.Generic;
      | ^~~~~
main.c:2:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | using System.Collections.Generic;
      |             ^
main.c:3:1: error: unknown type name 'using'
    3 | using UnityEngine;
      | ^~~~~
main.c:5:1: error: unknown type name 'public'
    5 | public class RockController : MonoBehaviour
      | ^~~~~~
main.c:5:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'RockController'
    5 | public class RockController : MonoBehaviour
      |              ^~~~~~~~~~~~~~
main.c:14:25: error: invalid suffix "f" on integer constant
   14 |         this.rotSpeed = 5f + 3f * Random.value;
      |                         ^~
main.c:14:30: error: invalid suffix "f" on integer constant
   14 |         this.rotSpeed = 5f + 3f * Random.value;
      |                              ^~
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] arts){
    Scanner scan = new Scanner(System.in);
    int p = scan.nextInt();
    int q = scan.nextInt();
    int r = scan.nextInt();
    int con = p + q + r - Math.max(p,q,r);
    
    System.out.println(con);
  }
}

Compiler output:
Main.java:9: error: no suitable method found for max(int,int,int)
    int con = p + q + r - Math.max(p,q,r);
                              ^
    method Math.max(int,int) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(long,long) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(float,float) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(double,double) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] arts){
    Scanner scan = new Scanner(System.in);
    int p = scan.nextInt();
    int q = scan.nextInt();
    int r = scan.nextInt();
    
    System.out.println(p + q + r - Math.max(p,q,r));
  }
}

Compiler output:
Main.java:10: error: no suitable method found for max(int,int,int)
    System.out.println(p + q + r - Math.max(p,q,r));
                                       ^
    method Math.max(int,int) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(long,long) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(float,float) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(double,double) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] arts){
    Scanner scan = new Sanner(System.in);
    int p = scan.nextInt();
    int q = scan.nextInt();
    int r = scan.nextInt();
    
    int sum1 = p + q;
    int sum2 = p + r;
    int sum3 = q + r;
    
    if(sum1 <= sum2 && sum1 <= sum3){
      System.out.println(sum1);
    }else if(sum2 <= sum1 && sum2 <= sum3){
      System.out.println(sum2);
    }else{
      System.out.println(sum3);
    }
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    Scanner scan = new Sanner(System.in);
                       ^
  symbol:   class Sanner
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main{
  public class void main(String[] arts){
    Scanner scan = new Sanner(System.in);
    int p = scan.nextInt();
    int q = scan.nextInt();
    int r = scan.nextInt();
    
    int sum1 = p + q;
    int sum2 = p + r;
    int sum3 = q + r;
    
    if(sum1 <= sum2 && sum1 <= sum3){
      System.out.println(sum1);
    }else if(sum2 <= sum1 && sum2 <= sum3){
      System.out.println(sum2);
    }else{
      System.out.println(sum3);
    }
  }
}

Compiler output:
Main.java:4: error: <identifier> expected
  public class void main(String[] arts){
              ^
1 error
Language: C++

#include <iostream>
#include <string>

using namespace std;
typedef long long ll;
const ll mod = 1e9 + 7;

template <typename T>
T modpow(T base, T exp, T mod){
  base %= mod;
  T res = 1;
  while (exp > 0){
	if (exp & 1) res = (res * base) % mod;
    base = (base * base) % mod;
    exp >>= 1;
  }
  return res;
}

int main(){
  string L;
  cin >> L;
  ll res = 0;
  ll w = L.size();
  for (int i=0; i<L.size() - 1; i++){
    if (L[i] == '1'){
      res = (res + (ll)modpow(3, w - i - 1, mod)) % mod;
    }
  }
  if (L.back() == '1'){
    res = (res + 1) % mod;
  }
  cout << res << endl;
  return 0;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:27:30: error: no matching function for call to 'modpow(int, ll, const ll&)'
   27 |       res = (res + (ll)modpow(3, w - i - 1, mod)) % mod;
      |                        ~~~~~~^~~~~~~~~~~~~~~~~~~
a.cc:9:3: note: candidate: 'template<class T> T modpow(T, T, T)'
    9 | T modpow(T base, T exp, T mod){
      |   ^~~~~~
a.cc:9:3: note:   template argument deduction/substitution failed:
a.cc:27:30: note:   deduced conflicting types for parameter 'T' ('int' and 'long long int')
   27 |       res = (res + (ll)modpow(3, w - i - 1, mod)) % mod;
      |                        ~~~~~~^~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

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

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

#include<stdio.h>
int main()
{
  int p, q, r, sum1, sum2, sum3, min;
  scanf("%d %d %d", &p, &q, &r);
  sum1=p+q;
  sum2=p+r;
  sum3=q+r;
  min=sum1;
  if(min>sum2){
    min=sum2;}
  if(min>sum3){
    min=sum3;}
  
  printf("%d", max);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:16: error: 'max' undeclared (first use in this function)
   15 |   printf("%d", max);
      |                ^~~
main.c:15:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main()
{
  int p, q, r, sum1, sum2, sum3, min;
  scanf("%d %d %d", &p, &q, &r);
  sum1=p+q;
  sum2=p+r;
  sum3=q+r;
  min=sum1;
  if(min>sum2){
    min=sum2;};
  if(min>sum3){
    min=sum3;};
  
  printf("%d", max);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:16: error: 'max' undeclared (first use in this function)
   15 |   printf("%d", max);
      |                ^~~
main.c:15:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main()
{
  int p, q, r, sum1, sum2, sum3, max;
  scanf("%d %d %d", &p, &q, &r);
  sum1=p+q;
  sum2=p+r;
  sum3=q+r;
  max=sum1;
  if(sum1<sum2){
    max=sum2};
  if(max<sum3){
    max=sum3};
  
  printf("%d", max);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:13: error: expected ';' before '}' token
   11 |     max=sum2};
      |             ^
      |             ;
main.c:13:13: error: expected ';' before '}' token
   13 |     max=sum3};
      |             ^
      |             ;
Language: C

#include <stdio.h>

int main(void){
  int P,Q,R,b,i;
  scanf("%d%d%d",&P,&Q,&R);
  for (i=0;i<4;i**)
  {
  if(P>Q)
  {
    b = P;P = Q,b=Q;
  }
   if (Q>R){
    b = Q;Q = R; }
  }
  printf("%d",(P+Q);
  return 0;}
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: expected expression before ')' token
    6 |   for (i=0;i<4;i**)
      |                   ^
main.c:15:20: error: expected ')' before ';' token
   15 |   printf("%d",(P+Q);
      |         ~          ^
      |                    )
main.c:16:12: error: expected ';' before '}' token
   16 |   return 0;}
      |            ^
      |            ;
main.c: At top level:
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C

include <stdio.h>

int main(void){
  int P,Q,R,b;
  scanf("%d%d%d",&P,&Q,&R);
  
  if(P>Q)
  {
    b = P;P = Q,b=Q;
  }
   if (Q>R){
    b = Q;Q = R; }
  printf("%d",(P+Q));
  return 0;
}

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

#include <stdio.h>

int main(void)
{
  int P,Q,R,i,b;
  
  scanf("%d%d%d",&P,&Q,&R);
  for (i=0;i<2;i++)
  {
    if (P>Q){
      b = P; P =Q;}
    else if(Q>R){
      b = Q; Q =R;}
    printf("%d",(P+Q));
    return 0;
  }

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

#include <stdio.h>

int main(void){
  int P,Q,R,i,b;
  
  scanf("%d%d%d",&P,&Q,&R);
  for (i=0;i<2;i++){
    if (P>Q){
      b = P; P =Q;}
    else if(Q>R){
      b = Q; Q =R;}
    printf("%d",(P+Q));
    return 0;}

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

#include <stdio.h>

int main(void){
  int P,Q,R,i,b;
  
  scanf("%d%d%d",P,Q,R);
  for (i=0;i<2;i++){
    if (P>Q){
      b = P; P =Q;}
    else if(Q>R){
      b = Q; Q =R;}
    printf("%d",(P+Q));
    return 0;}

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

#include<stdio.h>
#define _CRT_SECURE_NO_WARNINGS
void main(void) {
	int  p, q, r;
	int temp = 0;
	printf("p,q,rを入力してください。\n");
	scanf("%d %d %d", &p, &q, &r);
	
	if (p > q) {
		temp = p;
		p = q;
		q = temp;
	}
	if (q > r) {
		temp = q;
		q = r;
		r = temp;
	}
	printf("最小値は%d時間です。\n", p + q);
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(void) {
      | ^~~~
Language: C++

#include<stdio.h>
void main(void) {
	int  i, p, q, r;
	int temp = 0;
	printf("p,q,rを入力してください。\n");
	scanf_s("%d %d %d", &p, &q, &r);
	
	if (p > q) {
		temp = p;
		p = q;
		q = temp;
	}
	if (q > r) {
		temp = q;
		q = r;
		r = temp;
	}
	printf("最小値は%d時間です。\n", p + q);
}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main(void) {
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%d %d %d", &p, &q, &r);
      |         ^~~~~~~
      |         scanf
Language: C

#include<stdio.h>
void main(void) {
	int  i, p, q, r;
	int temp = 0;
	printf("p,q,rを入力してください。\n");
	scanf_s("%d %d %d", &p, &q, &r);
	
	if (p > q) {
		temp = p;
		p = q;
		q = temp;
	}
	if (q > r) {
		temp = q;
		q = r;
		r = temp;
	}
	printf("最小値は%d時間です。\n", p + q);
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d %d %d", &p, &q, &r);
      |         ^~~~~~~
      |         scanf
Language: C++

#include"bits/stdc++.h"
using namespace std;
#define LL long long
#define PB push_back
#define MP make_pair

int main(){
	int P, Q, R;
	cin >> P >> Q >> R;
	cout << min({ P+Q,O+R,R+P }) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: 'O' was not declared in this scope
   10 |         cout << min({ P+Q,O+R,R+P }) << endl;
      |                           ^
a.cc:10:20: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   10 |         cout << min({ P+Q,O+R,R+P }) << endl;
      |                 ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: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:
/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>

#define ld long double
#define ll long long int
#define ull unsigned long long int
#define vi vector<int>
#define vl vector<ll>
#define vvi vector< vector<int> >
#define vvl vector< vector<ll> >
#define repd(i, a, b) for (int i=(a);i<(b);i++)
#define rep(i, n) repd(i,0,n)
#define ALL(v) v.begin(), v.end()
#define INF 1e9

using namespace std;

/**
 * calculate GCD(greatest common divisor)
 * @param a
 * @param b
 * @return
 */
unsigned euclidean_gcd(unsigned a, unsigned b) {
    if (a < b) return euclidean_gcd(b, a);
    unsigned r;
    while ((r = a % b)) {
        a = b;
        b = r;
    }
    return b;
}

/**
 * change minimum
 * @tparam T
 * @param a
 * @param b
 * @return bool
 */
template<class T>
inline bool changeMinimum(T &a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}

/**
 * change maximum
 * @tparam T
 * @param a
 * @param b
 * @return bool
 */
template<class T>
inline bool changeMaximum(T &a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}

/**
 * output answer
 * @tparam T
 * @param answer
 * @return
 */
template<typename T>
T output(T answer) {
    cout << answer << endl;
    return 0;
}

/** ----from here ---------------------------------------------------------- */

int main() {

    int A, B, C;
    cin >> A >> B >> C;
    int m = max(max(A, B), C);
    int ans = A + B + C - max;
    cout << ans << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:84:25: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
   84 |     int ans = A + B + C - max;
      |               ~~~~~~~~~~^~~~~
Language: C++

#include <bits/stdc++.h>

#define ld long double
#define ll long long int
#define ull unsigned long long int
#define vi vector<int>
#define vl vector<ll>
#define vvi vector< vector<int> >
#define vvl vector< vector<ll> >
#define repd(i, a, b) for (int i=(a);i<(b);i++)
#define rep(i, n) repd(i,0,n)
#define ALL(v) v.begin(), v.end()
#define INF 1e9

using namespace std;

/**
 * calculate GCD(greatest common divisor)
 * @param a
 * @param b
 * @return
 */
unsigned euclidean_gcd(unsigned a, unsigned b) {
    if (a < b) return euclidean_gcd(b, a);
    unsigned r;
    while ((r = a % b)) {
        a = b;
        b = r;
    }
    return b;
}

/**
 * change minimum
 * @tparam T
 * @param a
 * @param b
 * @return bool
 */
template<class T>
inline bool changeMinimum(T &a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}

/**
 * change maximum
 * @tparam T
 * @param a
 * @param b
 * @return bool
 */
template<class T>
inline bool changeMaximum(T &a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}

/**
 * output answer
 * @tparam T
 * @param answer
 * @return
 */
template<typename T>
T output(T answer) {
    cout << answer << endl;
    return 0;
}

/** ----from here ---------------------------------------------------------- */

int main() {

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

}

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

#include<iostream>
using namespace std;
int main() {
	Int p,q,r;
	cin >> p>>q>>r;
	cout << p + q + r - max(p, max(q, r));
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'Int' was not declared in this scope; did you mean 'int'?
    4 |         Int p,q,r;
      |         ^~~
      |         int
a.cc:5:16: error: 'p' was not declared in this scope
    5 |         cin >> p>>q>>r;
      |                ^
a.cc:5:19: error: 'q' was not declared in this scope
    5 |         cin >> p>>q>>r;
      |                   ^
a.cc:5:22: error: 'r' was not declared in this scope
    5 |         cin >> p>>q>>r;
      |                      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'n' was not declared in this scope
    7 |         sort(a,a+n);
      |                  ^
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;
  return 0;
}

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

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

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

int main(){
  int P,Q,R;
  cin >> P >> Q >> R;
  
  cout<<P+Q+R-max(P,Q,R)<<endl;
  return 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:8:18:   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<iostream>
using namespace std;

int main(){
  int P,Q,R;
  int answear;
  cin >> P >> Q >> R;
  
  P=int(P);
  Q=int(Q);
  R=int(R);
  
  answear = P+Q
  if(P+Q>P+R)answear=P+R;
  if(P+R>Q+R)answear=Q+R;
    cout<<answear<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: expected ';' before 'if'
   13 |   answear = P+Q
      |                ^
      |                ;
   14 |   if(P+Q>P+R)answear=P+R;
      |   ~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int P,Q,R;
  int answear;
  cin >> P >> Q >> R;
  
  answear = P+Q
  if(P+Q>P+R)answear=P+R;
  if(P+R>Q+R)answear=Q+R;
    cout<<answear<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected ';' before 'if'
    9 |   answear = P+Q
      |                ^
      |                ;
   10 |   if(P+Q>P+R)answear=P+R;
      |   ~~
Language: C

#include <stdio.h>
 
int main() {
  int p,q,r;
  int a,b,c;
  printf("Pの値:")
  scanf("%d",&p);
  printf("Qの値:") 
  scanf("%d",&q);
  printf("Rの値:") 
  scanf("%d",&r);
  
  a = p+q;
  b = q+r;
  c = r+p;
  
  if(a > b && a >c)
    printf("%d",a);
  if(b > a && b >c)
    printf("%d",b);
  if(c > a && c >b)
    printf("%d",c);
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: expected ';' before 'scanf'
    6 |   printf("Pの値:")
      |                   ^
      |                   ;
    7 |   scanf("%d",&p);
      |   ~~~~~            
main.c:8:19: error: expected ';' before 'scanf'
    8 |   printf("Qの値:")
      |                   ^
      |                   ;
    9 |   scanf("%d",&q);
      |   ~~~~~            
main.c:10:19: error: expected ';' before 'scanf'
   10 |   printf("Rの値:")
      |                   ^
      |                   ;
   11 |   scanf("%d",&r);
      |   ~~~~~
Language: C++

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

using namespace std;

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

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

#include<iostream>
#include<cmath>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  int t = 0;
  for(int i = 0; i < n; i++) {
  	cin >> a[i];
    t += a[i];
  }
  t = ceil(t/a.length);
  int s1 = 0;
  int s2 = 0;
  for(int i = 0; i < n; i++) {
  	if(a[i] <= t) {
    	s1 += 1;
    } else
      s2 += 1;
  }
  cout << abs(s2 - s1);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: request for member 'length' in 'a', which is of non-class type 'int [n]'
   13 |   t = ceil(t/a.length);
      |                ^~~~~~
Language: C

#include<stdio.h>
int main()
{
	int P, Q, R,A;
	scanf("%d%d%d", &P, &Q, &R);
	A = P + Q;
	if (A >P + R)
		A = P + R;
	else if (A > Q + R)
		A = Q + R;
	printf("%d", A);
	
	return 0;

Compiler output:
main.c: In function 'main':
main.c:13:9: error: expected declaration or statement at end of input
   13 |         return 0;
      |         ^~~~~~
Language: Java

    public void solve(String[] args) {
        MyScanner scanner = new MyScanner();

        // ビジネスロジックここから
        int p = scanner.nextInt();
        int q = scanner.nextInt();
        int r = scanner.nextInt();
        int t[] = {p,q,r};
        int max = t[0];
        
        int sum = p + q + r;
        
        for (int i = 1; i < t.length; i++) {
        	max = Math.max(max, t[i]);
        }
       
        int ans = sum - max;

        
        System.out.println(ans);

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
    public void solve(String[] args) {
           ^
  (use --enable-preview to enable unnamed classes)
Main.java:20: error: reached end of file while parsing
        System.out.println(ans);
                                ^
2 errors
Language: Java

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve(args);
    }

    public void solve(String[] args) {
        MyScanner scanner = new MyScanner();

        // ビジネスロジックここから
        int p = scanner.nextInt();
        int q = scanner.nextInt();
        int r = scanner.nextInt();
        int t[] = {p,q,r};
        int max = t[0];
        
        int sum = p + q + r;
        
        for (int i = 1; i < t.length; i++) {
        	max = Math.max(max, t[i]);
        }
       
        int ans = sum - max;

        
        System.out.println(ans);

        
        // ビジネスロジックここまで

    }

    private class MyScanner {
        String[] s;
        int i;
        BufferedReader br;
        String reg = " ";
        MyScanner () {
            s = new String[0];
            i = 0;
            br = new BufferedReader(new InputStreamReader(System.in));
        }
        public String next() {
            try {
                if (i < s.length) return s[i++];
                String line = br.readLine();
                while (line.equals("")) {line = br.readLine();}
                s = line.split(reg, 0);
                i = 0;return s[i++];
            } catch (Exception e) {e.printStackTrace();}
            return null;
        }
        public int nextInt() {
            try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}
            return -1;
        }
        public double nextDouble() {
            try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}
            return -1;
        }
        public long nextLong()  {
            try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}
            return -1;
        }
    }
}

Compiler output:
Main.java:36: error: cannot find symbol
        BufferedReader br;
        ^
  symbol:   class BufferedReader
  location: class Main.MyScanner
Main.java:41: error: cannot find symbol
            br = new BufferedReader(new InputStreamReader(System.in));
                     ^
  symbol:   class BufferedReader
  location: class Main.MyScanner
Main.java:41: error: cannot find symbol
            br = new BufferedReader(new InputStreamReader(System.in));
                                        ^
  symbol:   class InputStreamReader
  location: class Main.MyScanner
3 errors
Language: Java

public class Main {
	public static void main(String[] args) throws Exception {
		String line = readLine();
		String[] str = line.split(" ");
		int[] array = new int[str.length];
		for(int i = 0; i < 3; i++) {
			array[i] = Integer.parseInt(str[i]);
		}
		Arrays.sort(array);
		System.out.println(array[0]+array[1]);
	}


	private static String readLine() throws Exception {
		BufferedReader br = new BufferedReader( new InputStreamReader(System.in));
		return br.readLine();
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
		Arrays.sort(array);
		^
  symbol:   variable Arrays
  location: class Main
Main.java:15: error: cannot find symbol
		BufferedReader br = new BufferedReader( new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:15: error: cannot find symbol
		BufferedReader br = new BufferedReader( new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:15: error: cannot find symbol
		BufferedReader br = new BufferedReader( new InputStreamReader(System.in));
		                                            ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: C++

#include <iostream>
using namespace std;
int main(){
  int P, Q, R;
  int PQ=0, QR=0, PR=0;
  cin >> P >> Q >> R;
  PQ = P+Q;
  QR = Q+R;
  PR = P+R;
  min1 = min(PQ, QR);
  min2 = min(min1, PR);
  cout << min2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'min1' was not declared in this scope
   10 |   min1 = min(PQ, QR);
      |   ^~~~
a.cc:11:3: error: 'min2' was not declared in this scope
   11 |   min2 = min(min1, PR);
      |   ^~~~
Language: C++

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

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

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

int main(){
    vector<int>V;
    int a,b,c;
    cin>>a>>b>>c;
    V.push_back(a);
    V.push_back(b);
    V.push_back(c);
    sort(A.begin(),A.end());
    int r=A[0]+A[1];
    cout<<r<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: 'A' was not declared in this scope
   12 |     sort(A.begin(),A.end());
      |          ^
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);
  return 0;
}


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

class Main {
 
    //https://atcoder.jp/contests/abc129/tasks/abc129_a
    public static void main( String[] args ) {
      try{
        Scanner scanner = new Scanner(System.in);
 
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();
 
        System.out.println(Math.min(a + b, Math.min(b + c, c + a)));
      } catch(Exception e){
      return;
      }
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

class Main {
 
    //https://atcoder.jp/contests/abc129/tasks/abc129_a
    public static void main( String[] args ) {
        Scanner scanner = new Scanner(System.in);
 
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();
 
        System.out.println(Math.min(a + b, Math.min(b + c, c + a)));
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

class Airplane {

    //https://atcoder.jp/contests/abc129/tasks/abc129_a
    public static void main( String[] args ) {
        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();

        System.out.println(Math.min(a + b, Math.min(b + c, c + a)));
    }


}


Compiler output:
Main.java:5: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Airplane
Main.java:5: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Airplane
2 errors
Language: Java

public class Airplane {

    //https://atcoder.jp/contests/abc129/tasks/abc129_a
    public static void main( String[] args ) {
        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();

        System.out.println(Math.min(a + b, Math.min(b + c, c + a)));
    }


}


Compiler output:
Main.java:1: error: class Airplane is public, should be declared in a file named Airplane.java
public class Airplane {
       ^
Main.java:5: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Airplane
Main.java:5: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Airplane
3 errors