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

#include <bits/stdc++.h>

using namespace std;

int solve(int p, int q, int r) {
    return min({p+q, p+r, r+q});
}

int main(int argc, char const *argv[])
{
    int p = 0, q = 0, r = 0;


    cin >> p >> q >> r;

    auto ans = solve(p, q, r);

    cout << ans << '\n';

    return 0;
}


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

#include <bits/stdc++.h>

using namespace std;

int solve(int p, int q, int r) {
    return min({p+q, p+r, r+q});
}

int main(int argc, char const *argv[])
{
    int p = 0, q = 0, r = 0;


    cin >> p >> q >> r;

    auto ans = solve(p, q, r);

    cout << ans << endl;

    return 0;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    6 |   ans = a+b+c - max(a,max(b,c));
      |   ^~~
      |   abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main () {
  vector<ll> a+
    rep(i, 3) cin >> a.at(i);
  sort(a.begin(), a.end());
  cout << a.at(0) + a.at(1) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected initializer before '+' token
    6 |   vector<ll> a+
      |               ^
a.cc:7:9: error: 'i' was not declared in this scope
    7 |     rep(i, 3) cin >> a.at(i);
      |         ^
a.cc:3:35: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                   ^
a.cc:8:8: error: 'a' was not declared in this scope
    8 |   sort(a.begin(), a.end());
      |        ^
Language: C++

#include<bits/stdc++.h>
#include<cstring>

#define ll long long

using namespace std;
long long power(ll  x, ll n){
    if(n==0)return 1;
    ll temp=power(x,n/2);
    if(n%2==0)return temp*temp;
    else return x*temp*temp;

}
ll max(ll a,ll b){
    return a>b?a:b;

}

ll max(ll a,ll b,ll c){
    return max(max(a,b),c);
}
ll min(ll x,ll  y){
    return x+y-max(x,y);
}
ll min(ll x,ll y,ll z){
    return min(min(x,y),z);

}



void swap(int* a, int* b)
{
    int t = *a;
    *a = *b;
    *b = t;
}

bool f(ll x,ll y){
    return x>y;


}







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

































Compiler output:
a.cc: In function 'int main()':
a.cc:4:12: error: expected unqualified-id before 'long'
    4 | #define ll long long
      |            ^~~~
a.cc:52:6: note: in expansion of macro 'll'
   52 | ll a,ll b, ll c;
      |      ^~
a.cc:53:11: error: 'b' was not declared in this scope
   53 |   cin>>a>>b>>c;
      |           ^
a.cc:53:14: error: 'c' was not declared in this scope
   53 |   cin>>a>>b>>c;
      |              ^
Language: C++

#include <iostream>
#include <list>
#include <windows.h>
using namespace std;

const int N = 100;
int main() {
    int i, j;
    list<int> a(N-1);
    auto itr = a.begin();

    i = 2;
    for (itr = a.begin(); itr != a.end();itr++) {*itr = i; i++;}
    for (i = 2;(i * i) < N;i++)
        for (j = 2;(i * j) <= N;j++)
            for (itr = a.begin(); itr != a.end();itr++)
                if (*itr == (i * j)) {a.erase(itr); break;}

    for (itr = a.begin(); itr != a.end(); itr++)
        cout << *itr << " ";
    cout << endl;
}

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

#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
using ll = long long;
const ll MOD = 1e9+7; int INF=INT_MAX; ll LLINF = 1LL << 60;
const vector<int> d8x = {1, 0, -1, 0, 1, -1, -1, 1}; vector<int> d8y = {0, 1, 0, -1, 1, 1, -1, -1};
const vector<int> d4x = {1, 0, -1, 0}; vector<int> d4y = {0, 1, 0, -1};

//

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:17:20:   required from here
   17 |     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<string>
#include<algorithm>
#include<vector>
using namespace std;

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


Compiler output:
a.cc:12:2: error: expected declaration before '}' token
   12 |  }
      |  ^
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, << en})dl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: expected primary-expression before '<<' token
    7 |   cout << P + Q + R - max({P,Q, << en})dl;
      |                                 ^~
a.cc:7:36: error: 'en' was not declared in this scope; did you mean 'yn'?
    7 |   cout << P + Q + R - max({P,Q, << en})dl;
      |                                    ^~
      |                                    yn
a.cc:7:26: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    7 |   cout << P + Q + R - max({P,Q, << en})dl;
      |                       ~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
    7 |   cout << P + Q + R - max{(P,Q,R)} << endl;
      |           ~~~~~~~~~~^~~~~
a.cc:7:36: error: expected primary-expression before '<<' token
    7 |   cout << P + Q + R - max{(P,Q,R)} << endl;
      |                                    ^~
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:7:26:   required from here
    7 |   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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before 'max'
    7 |   cout << P + Q + R max(P,Q,R) << endl;
      |                    ^~~~
      |                    ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n)for(int i=0;i<(n);i++)
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define pb push_back
using ll = long long;
using P = pair<int, int>;
using Graph = vector<vector<int>>;

int main(){
    int p,q,r; cin >> p >> q >> r;
    int 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:13:18:   required from here
   13 |     int 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;
#define FOR(i,l,r) for(long long i=(l);i<(r);++i)
#define REP(i,n) FOR(i,0,n)
#define int long long

signed 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 = long long int; _Compare = long long int]':
a.cc:10:20:   required from here
   10 |     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 d[3];

    for(int i=0; i<3; i++){
        cin >> d[i];
    }

    sort(d, d+3);
    
    cout << d[0]+d[1] << endl;

    return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: expected ';' before '}' token
   15 |     return 0
      |             ^
      |             ;
   16 | }
      | ~
Language: C++

#define ll long long
#define INF 99999999
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#include<bits/stdc++.h>
using namespace std;
int main(){
    int p,q,r;
    cin >> p>>q>>r;
    int ans = p+q+r-max(p,q,r);
    cout << ans<<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:4:
/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:9:24:   required from here
    9 |     int ans = 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++

p, q, r = map(int, input().split())
if p > q and p > r:
    print(q + r)
elif q > p and q > r:
    print(p + r)
else:
    print(p + q)

Compiler output:
a.cc:1:1: error: 'p' does not name a type
    1 | p, q, r = map(int, input().split())
      | ^
Language: C++

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

int main() {
  int p,q,r;
  cin >> p >> q >> r;
  int sum = p+q+r;
  int p1 = sum - p;
  int p2 = sum - q;
  int p3 = sum - r;
  cout << min(p1,min(q1,r1));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: 'q1' was not declared in this scope; did you mean 'p1'?
   12 |   cout << min(p1,min(q1,r1));
      |                      ^~
      |                      p1
a.cc:12:25: error: 'r1' was not declared in this scope; did you mean 'p1'?
   12 |   cout << min(p1,min(q1,r1));
      |                         ^~
      |                         p1
Language: C++

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

int main() {
  nt p,q,r;
  cin >> p >> q >> r;
  int sum = p+q+r;
  int p1 = sum - p;
  int p2 = sum - q;
  int p3 = sum - r;
  cout << min(p1,min(q1,r1));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'nt' was not declared in this scope; did you mean 'int'?
    6 |   nt p,q,r;
      |   ^~
      |   int
a.cc:7:10: error: 'p' was not declared in this scope
    7 |   cin >> p >> q >> r;
      |          ^
a.cc:7:15: error: 'q' was not declared in this scope
    7 |   cin >> p >> q >> r;
      |               ^
a.cc:7:20: error: 'r' was not declared in this scope
    7 |   cin >> p >> q >> r;
      |                    ^
a.cc:12:22: error: 'q1' was not declared in this scope; did you mean 'p1'?
   12 |   cout << min(p1,min(q1,r1));
      |                      ^~
      |                      p1
a.cc:12:25: error: 'r1' was not declared in this scope; did you mean 'p1'?
   12 |   cout << min(p1,min(q1,r1));
      |                         ^~
      |                         p1
Language: C++

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

int main(){
  int p,q,r,mini = 1000;
  cin >> p >> q >> r;
  mini = min(mini,p + q);
  mini = min(mini,p + r);
  mini = min(mini,q + r);
  cout << mini << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
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:7:10: error: 'min' was not declared in this scope; did you mean 'mini'?
    7 |   mini = min(mini,p + q);
      |          ^~~
      |          mini
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << mini << endl;
      |   ^~~~
a.cc:10:19: error: 'endl' was not declared in this scope
   10 |   cout << mini << endl;
      |                   ^~~~
Language: C++

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

int main() {
  int answer=min(3,4,5);
  
    cout<<answer<<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:5:17:   required from here
    5 |   int answer=min(3,4,5);
      |              ~~~^~~~~~~
/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() {
    cout<<min(3,4,5)<<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:5:14:   required from here
    5 |     cout<<min(3,4,5)<<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;
   a = max(p,q);
   b = max(a,r);
   cout << p+q+r-b << endl;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: 'a' was not declared in this scope
    6 |    a = max(p,q);
      |    ^
a.cc:7:4: error: 'b' was not declared in this scope
    7 |    b = max(a,r);
      |    ^
Language: C++

for(int j = 1; j <= m; j++) {
	pos = 0;
	for(int i = 1; i <= n; i++) {
		if(s[i][j] == '.') {
			res[i][j] += vec2[j][pos + 1] - vec2[j][pos] - 1; //相邻两个#之间.的个数
		}
		else pos++;
	}
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'for'
    1 | for(int j = 1; j <= m; j++) {
      | ^~~
a.cc:1:16: error: 'j' does not name a type
    1 | for(int j = 1; j <= m; j++) {
      |                ^
a.cc:1:24: error: 'j' does not name a type
    1 | for(int j = 1; j <= m; j++) {
      |                        ^
Language: C++

for(int i = 1; i <= n; i++) {
	pos = 0;
	for(int j = 1; j <= m; j++) {
		if(s[i][j] == '.') {
			res[i][j] += vec1[i][pos + 1] - vec1[i][pos] - 1; //相邻两个#之间.的个数
		}
		else pos++;
	}
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'for'
    1 | for(int i = 1; i <= n; i++) {
      | ^~~
a.cc:1:16: error: 'i' does not name a type
    1 | for(int i = 1; i <= n; i++) {
      |                ^
a.cc:1:24: error: 'i' does not name a type
    1 | for(int i = 1; i <= n; i++) {
      |                        ^
Language: C++

for(int i = 0; i <= n + 1; i++) {
	for(int j = 0; j <= m + 1; j++) {
		if(s[i][j] == '#') {
			vec1[i].push_back(j);
			vec2[j].push_back(i);
		}
	}
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'for'
    1 | for(int i = 0; i <= n + 1; i++) {
      | ^~~
a.cc:1:16: error: 'i' does not name a type
    1 | for(int i = 0; i <= n + 1; i++) {
      |                ^
a.cc:1:28: error: 'i' does not name a type
    1 | for(int i = 0; i <= n + 1; i++) {
      |                            ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:35: error: expected ',' or ';' before ')' token
    7 |   int x = min(P+Q , min (Q+R,P+R)));
      |                                   ^
Language: C

#include  <stdio.h>
int main(){
  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",d);
  }
  else if(e>d && e>f){
    printf("%d",e);
  }
  else{
    printf("%d",f);
  return 0;
}

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

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


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

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


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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: request for member 'begin' in 'tim', which is of non-class type 'int [3]'
    7 | sort(tim.begin(), tim.end());
      |          ^~~~~
a.cc:7:23: error: request for member 'end' in 'tim', which is of non-class type 'int [3]'
    7 | sort(tim.begin(), tim.end());
      |                       ^~~
a.cc:8:15: error: request for member 'begin' in 'tim', which is of non-class type 'int [3]'
    8 |   reverse(tim.begin(), tim.end());
      |               ^~~~~
a.cc:8:28: error: request for member 'end' in 'tim', which is of non-class type 'int [3]'
    8 |   reverse(tim.begin(), tim.end());
      |                            ^~~
a.cc:10:16: error: expected primary-expression before ',' token
   10 |   cout << ans <, endl;
      |                ^
Language: C++

#include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
typedef long long ll;
#define all(x) (x).begin(), (x).end()  // sortなどの引数を省略
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define max3(x, y, z) max(x, max(y, z))

#ifdef _MSC_FULL_VER  //デバッグ出力
#define dout cout
#define debug() if (true)
#define check(x) std::cout << "★" << #x << "の値:" << (x) << endl
#define pass(x) std::cout << "☆" << x << endl
#else
#define dout \
  if (false) cout
#define debug() if (false)
#define check(x) \
  if (false) cout << "★" << #x << "の値:" << (x) << endl
#define pass(x) \
  if (false) cout << "☆" << x << endl
#endif
using namespace std;
int main() {
  int a,b,c;
  cin >> a >> b >> c;
  cout << min(a+b,b+c,c+a);
}
/*
//よく使うやつ
int N;
cin >> N;
vector<int> list(N);
for (int i = 0; i < N; i++) {
  cin >> list[i];
}
// for文
for (int i = 0; i < N; i++) {
}
//配列
vector<int> list;
list.at(i)
vector<vector<int>> list(10, vector<int>(10));
sort(all(list));
sort(all(list), greater<int>());
    //配列の内容表示
dout << "====listの内容====\n";
for (int i = 0; i < N; i++) dout << list[i] << endl;
dout << "====ここまで====\n";
*/


Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 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:29:14:   required from here
   29 |   cout << min(a+b,b+c,c+a);
      |           ~~~^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

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


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

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

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


Compiler output:
a.cc:7:22: error: extended character 　 is not valid in an identifier
    7 |   cout << P + Q + R -　max({P , Q , R}) << endl;
      |                      ^
a.cc: In function 'int main()':
a.cc:7:22: error: '\U00003000max' was not declared in this scope
    7 |   cout << P + Q + R -　max({P , Q , R}) << endl;
      |                      ^~~~~
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<iostream>
#include<algorithm>
using namesapce std;
int main(){
  int a,b,c;cin >> a >> b >> c;
  cout << a+b+c-max({a,b,c}) << endl;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namesapce'
    3 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   int a,b,c;cin >> a >> b >> c;
      |             ^~~
      |             std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << a+b+c-max({a,b,c}) << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:17: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |   cout << a+b+c-max({a,b,c}) << endl;
      |                 ^~~
      |                 std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:6:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << a+b+c-max({a,b,c}) << endl;
      |                                 ^~~~
      |                                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: cannot resolve overloaded function 'min' based on conversion to type 'int'
    7 |   m = min{a, b, c};
      |       ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
    7 |   cout << a + b + c - min{a, b, c} << endl;
      |           ~~~~~~~~~~^~~~~
a.cc:7:36: error: expected primary-expression before '<<' token
    7 |   cout << a + b + c - min{a, b, c} << endl;
      |                                    ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'a' was not declared in this scope
    5 |   cin >> a >> b >> c;
      |          ^
a.cc:5:15: error: 'b' was not declared in this scope
    5 |   cin >> a >> b >> c;
      |               ^
a.cc:5:20: error: 'c' was not declared in this scope
    5 |   cin >> a >> b >> c;
      |                    ^
a.cc:6:36: error: expected primary-expression before '<<' token
    6 |   cout << a + b + c - min{a, b, c} << endl;
      |                                    ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define intput(i) cout << i << endl
#define ll long long
#define stringput(s) cout << (string)(s) << endl

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: 'max' cannot be used as a function
   12 |   int max = max(max(p,q),r);
      |                 ~~~^~~~~
a.cc:12:16: error: 'max' cannot be used as a function
   12 |   int max = max(max(p,q),r);
      |             ~~~^~~~~~~~~~~~
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

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

	int a = P + Q;
	int b = Q + R;
	int c = R + P;

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

	return 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:14:13:   required from here
   14 |         cout << min(a, b, c) << endl;
      |                 ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
Language: C++

// Airplane
#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:
a.cc: In function 'int main()':
a.cc:9:10: error: expected '}' at end of input
    9 | return 0;
      |          ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected unqualified-id before '(' token
    9 |     cout<<vec.(1)+vec.at(0)<<endl;
      |               ^
Language: C++

P,Q,R=map(int,input().split())
A=P+Q
B=Q+R
C=R+P
list=[A,B,C]
print(min(list))

Compiler output:
a.cc:1:1: error: 'P' does not name a type
    1 | P,Q,R=map(int,input().split())
      | ^
Language: C++

P,Q,R=list(map(int,input().split()))
A=P+Q
B=Q+R
C=R+P
list=[A,B,C]
print(min(list))

Compiler output:
a.cc:1:1: error: 'P' does not name a type
    1 | P,Q,R=list(map(int,input().split()))
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define de cout<<"debuglandınız\n";
#define N 1048576

set<ll int>sett;
set<ll int> :: iterator itr;

ll int n,k,t,mx,x,flag,b[1000005],a[1000005];
ll int c[1000005],d[1000005];
ll int vt1[N+N],vt2[N+N];

ll int bs(ll int sayi){
	ll int l=1,r=sett.size();
	while(l!=r){
		if(a[(l+r)/2]<sayi){
			l=(l+r)/2+1;
		}
		else{
			r=(l+r)/2;
		}
	}
	return l;
}

void update(ll int x){
	ll int a=bs(x);
	x=a+N-1;
	while(x){
		vt1[x]++;
		vt2[x]++;
		x/=2;
	}
	return;
}

ll int toplam(ll int node, ll int list, ll int rist, ll int l, ll int r){
	if(rist<l or list>r)return 0;
	if(l>=list and r<=rist){
		return vt[node];
	}
	return toplam(node*2,list,rist,l,(l+r)/2) + toplam(node*2+1,list,rist,(l+r)/2+1,r);
}

int main(){
	//freopen("input.txt","r",stdin);
	//freopen("output.txt","w",stdout);
	cin>>n;
	for(i=1;i<=n;i++){
		cin>>b[i];
		sett.insert(b[i]);
	}
	i=1;
	for(itr=sett.begin();itr!=sett.end();itr++){
		a[i]=*itr;
		i++;
	}
}

Compiler output:
a.cc: In function 'long long int toplam(long long int, long long int, long long int, long long int, long long int)':
a.cc:41:24: error: 'vt' was not declared in this scope; did you mean 'vt2'?
   41 |                 return vt[node];
      |                        ^~
      |                        vt2
a.cc: In function 'int main()':
a.cc:50:13: error: 'i' was not declared in this scope
   50 |         for(i=1;i<=n;i++){
      |             ^
a.cc:54:9: error: 'i' was not declared in this scope
   54 |         i=1;
      |         ^
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
  int P, Q, R;
  cin >> P >> Q >> R;
  int sum = P+Q+R;
  cout << min(sum-R, min(sum-P, smu-Q)) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: 'smu' was not declared in this scope; did you mean 'sum'?
    9 |   cout << min(sum-R, min(sum-P, smu-Q)) << endl;
      |                                 ^~~
      |                                 sum
Language: C++

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

int main(){
  vector<int> v(3);
  cin >> v[0] >> v[1] >> v[2];

  sort(v.begin(), v.end());
  int ans = v[0] + v[1];

  cout << ans << endl;

  return 0;
}

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

#include <bits/stdc++.h>

int main()
{
   int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  int x[3]={a,b,c};
  sort(x,x+3);
  printf("%d",x[0]+x[1]);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    8 |   sort(x,x+3);
      |   ^~~~
      |   std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
Language: C++


using namespace std;

int main() {
    int a, b,c;
    cin>>a>>b>>c;
  
    int q=a+b;
    int w=a+c;
    int e=b+c;
    if(q<w&&q<e){
        cout<<q;
    }
     if(w<q&&w<e){
        cout<<w;
    }
     if(e<w&&e<q){
        cout<<e;
    }
    else {
       cout<<q;
   }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>a>>b>>c;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout<<q;
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout<<w;
      |         ^~~~
a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout<<e;
      |         ^~~~
a.cc:18:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:8: error: 'cout' was not declared in this scope
   21 |        cout<<q;
      |        ^~~~
a.cc:21:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
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:
a.cc: In function 'int main()':
a.cc:9:38: error: expected '}' at end of input
    9 |   cout << min({P*Q,Q*R,R*P}) << endl;
      |                                      ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
  int P,Q,R;
  cin >> P >> Q >> R;
  
  int T =min(P*Q,Q*R,R*P);
  cout << T << 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:13:   required from here
    9 |   int T =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 <stdio.h>



int main(void){

   int N,i,j,s1=0,s=0,min,x;
  scanf("%d",&N);
   int a[N];
   
  for(i=0;i<N;i++){
   scanf("%d",&a[i]);
   s=s+a[i]; //wの和
  }
  min=s;
  
  for(j=0;j<N;j++){
    int n[j];
   s1=s1+a[j];
    n[j]=abs(s-2*s1);　//Jの時の絶対値の大きさ
    if(min>n[j])
      min=n[j];
      x=j;
  }
  printf("%d",x);
}
			

Compiler output:
main.c: In function 'main':
main.c:20:10: error: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
   20 |     n[j]=abs(s-2*s1);　//Jの時の絶対値の大きさ
      |          ^~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:20:22: error: stray '\343' in program
   20 |     n[j]=abs(s-2*s1);<U+3000>//J<U+306E><U+6642><U+306E><U+7D76><U+5BFE><U+5024><U+306E><U+5927><U+304D><U+3055>
      |                      ^~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:7: error: 'ans' undeclared (first use in this function)
   13 |       ans=t3;
      |       ^~~
main.c:13:7: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.*;

class Main {
    //
    static final long MOD = 1_000_000_007; // 10^9+7
    static final int MAX = 2_147_483_646; // intの最大値
    static final int INF = 1_000_000_000; // 10^9

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

Compiler output:
Main.java:13: error: ';' expected
            a[i] = sc.nextInt()
                               ^
1 error
Language: C++

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

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int P,Q,R;
  vector<int> time(3)={P,Q,R};
  cin >>P>>Q>>R;
  sort(time.begin(),time.end());
  cout<<P+Q+R-time.at(2)<<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ',' or ';' before '=' token
    9 |   vector<int> time(3)={P,Q,R};
      |                      ^
Language: C++

#include <iostream>
#include <algorithm>
#include <cassret>
#include <functional>
#define rep(i, n) for(int i = 0; i < n; i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;

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


Compiler output:
a.cc:3:10: fatal error: cassret: No such file or directory
    3 | #include <cassret>
      |          ^~~~~~~~~
compilation terminated.
Language: C++

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

int main()
{
	int p, q, r; cin >> p >> q >> r;	
			
	int ans;
	
	ans = p + q;
	ans = min(ans, p + r);
	ans = mn(ans, q + r);

	cout << ans << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'mn' was not declared in this scope; did you mean 'yn'?
   12 |         ans = mn(ans, q + r);
      |               ^~
      |               yn
Language: C++

#include<bits/stdc++.h>
int main(void){
  	int a[3];
  	scanf("%d%d%d",&a[0],&a[1],&a[2]);
  sort(a,a+3);
  printf("%d",a[0]+a[1]);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    5 |   sort(a,a+3);
      |   ^~~~
      |   std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
Language: C++

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

 int main() {
   int P, Q, R;
     cin >> P >> Q >> R;
     int res;
     res = P + Q + R - max({P, Q, R})

   cout << res << '\n';
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:8:38: error: expected ';' before 'cout'
    8 |      res = P + Q + R - max({P, Q, R})
      |                                      ^
      |                                      ;
    9 | 
   10 |    cout << res << '\n';
      |    ~~~~
Language: C++

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


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

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


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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: 'min' cannot be used as a function
   12 |   a=min(min[0],min(min[1],min[2]));
      |                ~~~^~~~~~~~~~~~~~~
a.cc:12:34: error: 'min' cannot be used as a function
   12 |   a=min(min[0],min(min[1],min[2]));
      |                                  ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: 'min' cannot be used as a function
   11 |   min(min[0],min(min[1],min[2]));
      |              ~~~^~~~~~~~~~~~~~~
a.cc:11:32: error: 'min' cannot be used as a function
   11 |   min(min[0],min(min[1],min[2]));
      |                                ^
Language: C++

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


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