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

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

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

#include<iostream>
int main()
{
  int a,b,c;
  std::cin>>a>>b>>c;
  std::cout<<std::min(a+b,b+c,c+a)<<std::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:6:22:   required from here
    6 |   std::cout<<std::min(a+b,b+c,c+a)<<std::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++

use std::io::*;

fn main() {
    let mut n = read_v();
    n.sort();
    println!("{}", n[0] + n[1]);
}

fn read_v() -> Vec<u32> {
    let mut s = String::new();
    stdin().read_line(&mut s).unwrap();
    s.split_whitespace()
        .map(|c| c.parse().ok().unwrap())
        .collect()
}


Compiler output:
a.cc:1:1: error: 'use' does not name a type
    1 | use std::io::*;
      | ^~~
a.cc:3:1: error: 'fn' does not name a type
    3 | fn main() {
      | ^~
a.cc:9:1: error: 'fn' does not name a type
    9 | fn read_v() -> Vec<u32> {
      | ^~
Language: C++

#include <iostream>
#include <sstream>
#include <math.h>
#include <algoritm>
#include <string>
using namespace std;
int main(){
    int a,b,c;
    cin >> a >> b >> c;
    cout<< min({a + b, b+c , c+a}) << endl;
    return 0;

}

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

#include <iostream>
#include <sstream>
#include <math.h>
using namespace std;
int main(){
    int a,b,c;
    cin >> a >> b >> c;
    cout<< std::min({a + b, b+c , c+a}) << endl;
    return 0;

}

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

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

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

#include <iostream>
#include <sstream>
#include <math>
using namespace st;
int main(){
    int a,b,c;
    cin >> a >> b >> c;
    cout<< min(a + b, b+c , c+a) << endl;
    return 0;

}

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

#include <iostream>
using namespace std;


int main()
{x = a;
	if (b > x) { x = b; }
	else if (c > x) { x = c; }
	cout << a + b + c - x;

	return 0;}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:2: error: 'x' was not declared in this scope
    6 | {x = a;
      |  ^
a.cc:6:6: error: 'a' was not declared in this scope
    6 | {x = a;
      |      ^
a.cc:7:13: error: 'b' was not declared in this scope
    7 |         if (b > x) { x = b; }
      |             ^
a.cc:8:18: error: 'c' was not declared in this scope
    8 |         else if (c > x) { x = c; }
      |                  ^
a.cc:9:21: error: 'b' was not declared in this scope
    9 |         cout << a + b + c - x;
      |                     ^
a.cc:9:25: error: 'c' was not declared in this scope
    9 |         cout << a + b + c - x;
      |                         ^
Language: C++

#include <iostream>
using namespace std;

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

	return 0;
}



Compiler output:
a.cc:5:1: error: expected initializer before 'int'
    5 | int main()
      | ^~~
Language: C++

str=input()
nedan=str.split()
max=0
sum=0

for i in range(len(nedan)):
    if int(nedan[i])>max:
        max=i

for i in range(len(nedan)):
    if i!=max:
        sum+=int(nedan[i])

print(sum)

Compiler output:
a.cc:1:1: error: 'str' does not name a type
    1 | str=input()
      | ^~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=1;i<=n;++i)
#define YES cout<<"YES"<<endl
#define NO cout<<"NO"<<endl
using namespace std;

int main(){
  int a[3],max=0,sum=0;
  rep(i,3) cin >> a[i];
  rep(i,3){
    if (max<a[i]) max=a[i];
    sum L= a[i];
  }
  cout << sum-max << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: expected ';' before 'L'
   12 |     sum L= a[i];
      |        ^~
      |        ;
Language: C++

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:20: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    4 |   scanf("%d%d%d",&a&b&c);
      |                  ~~^~
      |                  |  |
      |                  |  int
      |                  int*
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
  int a = sc.nextInt();
  int b = sc.nextInt();
  int c = sc.nextInt();
  if(a+b <= b+c && a+b <= a+c)System.println(a+b);
  else if (b+c <= a+b && b+c <= a+c)System.println(b+c);
  else System.println(a+c);
}
}

Compiler output:
Main.java:8: error: cannot find symbol
  if(a+b <= b+c && a+b <= a+c)System.println(a+b);
                                    ^
  symbol:   method println(int)
  location: class System
Main.java:9: error: cannot find symbol
  else if (b+c <= a+b && b+c <= a+c)System.println(b+c);
                                          ^
  symbol:   method println(int)
  location: class System
Main.java:10: error: cannot find symbol
  else System.println(a+c);
             ^
  symbol:   method println(int)
  location: class System
3 errors
Language: C++

#include<algorithm>
#include<vector>
using namespace std;
int main(){
    vector<int> n(3);
    cin >> n[0] >> n[1] >> n[2];
    sort(n.begin(),n.end());
    cout << n[0] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> n[0] >> n[1] >> n[2];
      |     ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<vector>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << n[0] << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:21: error: 'endl' was not declared in this scope
    8 |     cout << n[0] << endl;
      |                     ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<vector>
  +++ |+#include <ostream>
    3 | using namespace std;
Language: C++

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

string s;

int main(){
cin>>s;
if(s.size()%2==1) s=s.substr(0,s.size()-1);
while(s.size()){
if(s.substr(0,s.size()/2)==s.substr(s.size()/2,s.size()/2){
cout<<s.size()<<endl;
return 0;
}
s=s.substr(0,s.size()-2);
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:59: error: expected ';' before '{' token
   11 | if(s.substr(0,s.size()/2)==s.substr(s.size()/2,s.size()/2){
      |                                                           ^
      |                                                           ;
a.cc:11:26: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   11 | if(s.substr(0,s.size()/2)==s.substr(s.size()/2,s.size()/2){
      |    ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 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/basic_string.h:3755:5: note: declared here
 3755 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
a.cc:15:25: error: expected ')' before ';' token
   15 | s=s.substr(0,s.size()-2);
      |                         ^
      |                         )
a.cc:11:3: note: to match this '('
   11 | if(s.substr(0,s.size()/2)==s.substr(s.size()/2,s.size()/2){
      |   ^
a.cc:15:2: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int](0, (s.std::__cxx11::basic_string<char>::size() - 2)))' from 'std::__cxx11::basic_string<char>' to 'bool'
   15 | s=s.substr(0,s.size()-2);
      | ~^~~~~~~~~~~~~~~~~~~~~~~
      |  |
      |  std::__cxx11::basic_string<char>
Language: C++

#include<iostream>
#include<algorithm>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin>>a>>b>>c;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | cout<<min(min(a+b,a+c),b+c)<<endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:11: error: 'min' was not declared in this scope; did you mean 'std::min'?
    7 | cout<<min(min(a+b,a+c),b+c)<<endl;
      |           ^~~
      |           std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:7:7: error: 'min' was not declared in this scope; did you mean 'std::min'?
    7 | cout<<min(min(a+b,a+c),b+c)<<endl;
      |       ^~~
      |       std::min
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:7:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 | cout<<min(min(a+b,a+c),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<iostream>
#include<algorithm>
using namespace std;

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



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

#include <iostream>
#include <algorithm>
using namespace std;
int main(void){
  int a[3];
  cin >> a[0] >> a[1] >> a[2];
  sort(a, a+n);
  cout << a[0]+a[1] << endl;
  return 0;
}

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

#include<bits/stdc++.h>
const int INF = 1e9;
const int MOD = 1e9+7;
using LL = long long;
const LL LINF = 1e18;
using namespace std;
#define COUT(v) cout<<(v)<<endl
#define CIN(n)  int(n);cin >> (n)
#define SCIN(s) string(s);cin >> (s)
#define YES(n) cout<<((n)? "YES" : "NO")<<endl
#define Yes(n) cout<<((n)? "Yes" : "No")<<endl
#define POSSIBLE(n) cout << ((n) ? "POSSIBLE" : "IMPOSSIBLE"  ) << endl
#define Possible(n) cout << ((n) ? "Possible" : "Impossible"  ) <<endl

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) for(int i=0;i<(n);++i)
#define REPR(i,n) for(int i=n;i>=0;i--)

#define FOREACH(x,a) for(auto& (x) : (a) )

#define ALL(obj) (obj).begin(),(obj).end()

#define P pair<int,int>
#define I vector<int>
#define V vector
#define S set<int>
#define pb(v) push_back(v)
int main(){
    CIN(a);CIN(b);CIN(c);
    COUT(max({a+b,a+c,b+c));
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:26: error: expected '}' before ')' token
   30 |     COUT(max({a+b,a+c,b+c));
      |              ~           ^
a.cc:7:24: note: in definition of macro 'COUT'
    7 | #define COUT(v) cout<<(v)<<endl
      |                        ^
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

int main(){
	int a[3],i,j=0;
	for(i=0;i<3;i++){
      	cin >> a[i];
      	j += a[i];
    }
  	cout << j-max(a);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: no matching function for call to 'max(int [3])'
   10 |         cout << j-max(a);
      |                   ~~~^~~
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++

int main() {
	int a, b, c;
	cin >> a;
	cin >> b;
	cin >> c;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> a;
      |         ^~~
a.cc:9:25: error: 'cout' was not declared in this scope
    9 |                         cout << a + b << endl;
      |                         ^~~~
a.cc:9:42: error: 'endl' was not declared in this scope
    9 |                         cout << a + b << endl;
      |                                          ^~~~
a.cc:14:25: error: 'cout' was not declared in this scope
   14 |                         cout << a + c << endl;
      |                         ^~~~
a.cc:14:42: error: 'endl' was not declared in this scope
   14 |                         cout << a + c << endl;
      |                                          ^~~~
a.cc:17:25: error: 'cout' was not declared in this scope
   17 |                         cout << b + c << endl;
      |                         ^~~~
a.cc:17:42: error: 'endl' was not declared in this scope
   17 |                         cout << b + c << endl;
      |                                          ^~~~
Language: C

#include <stdio.h>

int main(){
    int a,b,c;
    int p1,p2,p3,min;
    
    scanf("%d%d%d",&a,&b,&c);
    
    p1 = a+b;
    p2 = b+c;
    p3 = a+c;

    if(p1<=p2 && p1<=p3){
         min = p1;
    }
    else if(p2<=p1 && p2<=p3){
        min = p2;
    }
    else if(p3<=p1 && p3<==p2){
        min = p3;
    }
   

    printf("%d\n",min);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:27: error: expected expression before '=' token
   19 |     else if(p3<=p1 && p3<==p2){
      |                           ^
Language: C

#include <stdio.h>

int main(){
    int a,b,c;
    int p1,p2,p3,min;


    scanf("%d%d%d",&a,&b,&c);
    
    p1 = a+b;
    p2 = b+c;
    p3 = a+c;

    if(p1<p2){
        if(p1<p3){
            min = p1;
        }
        elif(p3<p1){
            min = p3;
        }
    }
    elif(p2<p1){
        if(p2<p3){
            min = p2;
        }
    }

    printf("%d\n",min);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:9: error: implicit declaration of function 'elif' [-Wimplicit-function-declaration]
   18 |         elif(p3<p1){
      |         ^~~~
main.c:18:20: error: expected ';' before '{' token
   18 |         elif(p3<p1){
      |                    ^
      |                    ;
main.c:22:16: error: expected ';' before '{' token
   22 |     elif(p2<p1){
      |                ^
      |                ;
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
 int a,b,c;
 cin >> a >> b >> c;
 cout << min(a+b,a+c,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:8:13:   required from here
    8 |  cout << min(a+b,a+c,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++

#include<iostream>
using namespace std;
int a[200000], b[200000];
int main()
{
	int n;
	cin >> n;
	if (n < =20000)
	{
		for (int i = 1; i <=n; i++)
			cin >> a[i];
		for (int j = 1; j <=n; j++)
		{
			b[j] = a[j];
			if (j > 1)
			{
				int temp;
				int m = (j + 1) / 2;
				if (j % 2)
				{
					for (int i = 0;; i++)
					{
						temp = b[m + i + 1];
						b[m + i + 1] = b[m - i -1];
						b[m - i -1] = temp;
						if (m - i -1 == 1)
							break;
					}
				}
			    else
				{
					for (int i = 1;; i++)
					{
						temp = b[m + i ];
						b[m + i] = b[m - i + 1];
						b[m - i + 1] = temp;
						if (m - i + 1 == 1)
							break;
					}
				}
			}
		}
	}
	for (int i = 1; i < n; i++)
		cout << b[i] << " ";
	cout << b[n];
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected primary-expression before '=' token
    8 |         if (n < =20000)
      |                 ^
Language: Java

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		
    Scanner in =new Scanner(System.in);
     int a =in.nextInt();
     int b =in.nextInt();
     int c =in.nextInt();
     int d =a+b;
     int e =a+c;
     int f =b+c;
     if(d>=e) {
    	 if(e>=f) {
    		 System.out.println(f);
    		 }
          else {
    			 System.out.println(e);
    			 
    		    }
    	 
     }
     else if(d<e) {
    	 if(d>=f) {
    		 System.out.println(f);
    		 
    	 }
    	 else {
    		 System.out.println(d);
    	 }
     }
     
    	  
      }

Compiler output:
Main.java:34: error: reached end of file while parsing
      }
       ^
1 error
Language: C++

#include <iostream>
using namespace std;

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

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

#include<stdio.h>
main()
{
    int a,b,c,d,e,f;
    printf("Input is given from Standard Input in the following format:\n");
    scanf("%d%d%d",&a,&b,&c);
    d=a+b;e=a+c,f=b+c;
    if(1<=a&&a<10000&&b>=1&&b<=10000&&c>=1&&c<=10000)
    {
        if(b<c&&a<c)
        {
            printf("%d\n",d);
            printf("Buying a %d-yen bell and a %d-yen bell costs %d yen.\n",a,b,d);
            printf("Buying a %d-yen bell and a %d-yen bell costs %d yen.\n",a,c,e);
            printf("Buying a %d-yen bell and a %d-yen bell costs %d yen.\n",b,d,f);
            printf("The minimum among these is %d yen.\n",d);

        }
        if(a<b&&c<b)
        {
            printf("%d\n",e);
            printf("Buying a %d-yen bell and a %d-yen bell costs %d yen.\n",a,b,d);
            printf("Buying a %d-yen bell and a %d-yen bell costs %d yen.\n",a,c,e);
            printf("Buying a %d-yen bell and a %d-yen bell costs %d yen.\n",b,d,f);
            printf("The minimum among these is %d yen.\n",e);
        }
        if(b<a&&c<a)
        {
            printf("%d\n",f);
            printf("Buying a %d-yen bell and a %d-yen bell costs %d yen.\n",a,b,d);
            printf("Buying a %d-yen bell and a %d-yen bell costs %d yen.\n",a,c,e);
            printf("Buying a %d-yen bell and a %d-yen bell costs %d yen.\n",b,d,f);
            printf("The minimum among these is %d yen.\n",f);
        }
        else
        {
            if(a<=c&&b<=c)

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:37:13: error: expected expression at end of input
   37 |             if(a<=c&&b<=c)
      |             ^~
main.c:37:13: error: expected declaration or statement at end of input
main.c:37:13: error: expected declaration or statement at end of input
main.c:37:13: error: expected declaration or statement at end of input
Language: C++

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

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

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

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

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    int Max = a;
    if (b > Max) Max = b;
    if (c > Max) Max = c;

    cou << a + b + c - Max << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'cou' was not declared in this scope; did you mean 'cos'?
   11 |     cou << a + b + c - Max << endl;
      |     ^~~
      |     cos
Language: C++

#include <cstdio>
#include <algorithm>
#include <iostream>
#include <vector>
#include <cmath>
#include <string>
#define pb push_back
#define mod 1000000007
using namespace std;
typedef long long int ll;

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



Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:15:12:   required from here
   15 |   cout<<min(a+b,a+c,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: Java

import java.util.Scanner;
import java.util.Stack;

class Main {

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

    void compute() {
        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);
        System.out.println(a[0] + a[1]);
    }
}


Compiler output:
Main.java:16: error: cannot find symbol
        Arrays.sort(a);
        ^
  symbol:   variable Arrays
  location: class Main
1 error
Language: C++

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


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

#include <iostream>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
if (a >> b && a >> c) cout << b + c << endl;
else if (b >> a && b >> c) cout << a + b << endl;
else cout << a + c << 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:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <isotream>

using namespace std;

int main()
{
	int a, b, c;
	cin >> a >> b >> c;

	if (a > b)
	{
		int t = a; a = b; b = t;
	}
	if (b > c)
	{
		int t = b; b = c; c = t;
	}
	cout << a+b << endl;
}



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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'd' was not declared in this scope
   10 | d = b; b = c; c = d;
      | ^
a.cc:13:1: error: 'd' was not declared in this scope
   13 | d = a; a = b; b = d;
      | ^
a.cc:16:10: error: expected '}' at end of input
   16 | return 0;
      |          ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++


import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String num = br.readLine();
		String[] str = num.split(" ", 0);
		List<Integer> a = new ArrayList<>();
		a.add(Integer.parseInt(str[0],0));
		a.add(Integer.parseInt(str[1],1));
		a.add(Integer.parseInt(str[2],2));
		Collections.sort(a);
		System.out.println((a.get(0)+a.get(1)));
	}
}

Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.ArrayList;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.util.Collections;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
    6 | import java.util.List;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: expected unqualified-id before 'public'
    8 | public class Main {
      | ^~~~~~
Language: C++


import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String num = br.readLine();
		String[] str = num.split(" ", 0);
		List<Integer> a = new ArrayList<>();
		a.add(Integer.parseInt(str[0]));
		a.add(Integer.parseInt(str[1]));
		a.add(Integer.parseInt(str[2]));
		Collections.sort(a);
		System.out.println((a.get(0)+a.get(1)));
	}
}

Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.ArrayList;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.util.Collections;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
    6 | import java.util.List;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: expected unqualified-id before 'public'
    8 | public class Main {
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: 'c' was not declared in this scope
    8 | cin>>n>>a>>b;cout<<a+b+c-max(n,max(a,b))<<endl;
      |                        ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

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

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

#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string>
#include<iostream>
#include<cctype>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include <algorithm>
#include<math.h>
#include<set>
#include<map>
#include <sstream>
#include<iomanip>
#include <ctype.h>

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


using namespace std;



int main() {


Compiler output:
a.cc: In function 'int main()':
a.cc:26:13: error: expected '}' at end of input
   26 | int main() {
      |            ~^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c;cin>>a>>b>>c;
    vector<int>v;
    v.pb(a);
    v.pb(b);
    v.pb(c);
    sort(v.begin(),v.end());
    cout<<v[0]+v[1]<<"\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'class std::vector<int>' has no member named 'pb'
    6 |     v.pb(a);
      |       ^~
a.cc:7:7: error: 'class std::vector<int>' has no member named 'pb'
    7 |     v.pb(b);
      |       ^~
a.cc:8:7: error: 'class std::vector<int>' has no member named 'pb'
    8 |     v.pb(c);
      |       ^~
Language: C++

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

int a, b, c;

scanf("%d %d %d", &a, &b, &c);

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: expected primary-expression before '%' token
   15 | } else if(a >= b <= c %% a >= c) {
      |                        ^
a.cc:18:22: error: expected ';' before '}' token
   18 | printf("&d\n", c + b)
      |                      ^
      |                      ;
   19 | } else if(a == b == c) {
      | ~
Language: C++

abc = list(map(int, input().split()))

m =10**5
for i in range(2):
    m = min(m,abc[i]+abc[i+1])
print(m)


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

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

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

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

Compiler output:
a.cc:1:30: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h>using namespace std;int main(){int a,b,c;cin>>a>>b>>c;cout<<a+b+c-max(a,max(b,c))<<endl;return 0;}
      |                              ^~~~~~~~~
a.cc:1:9: fatal error: bits/stdc++.h>usin: No such file or directory
    1 | #include<bits/stdc++.h>using namespace std;int main(){int a,b,c;cin>>a>>b>>c;cout<<a+b+c-max(a,max(b,c))<<endl;return 0;}
      |         ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:89: error: 'return0' was not declared in this scope
    2 | using namespace std;int main(){int a,b,c;cin>>a>>b>>c;cout<<a+b+c-max(a,max(b,c))<<endl;return0;}
      |                                                                                         ^~~~~~~
Language: C++

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

Compiler output:
a.cc:1:31: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h>using namespace std;int main(){int a,b,c;cin>>a>>b>>c;cout<<a+b+c-max(a,max(b,c))<<endl;return0;}
      |                               ^~~~~~~~~
a.cc:1:10: fatal error: bits/stdc++.h>usin: No such file or directory
    1 | #include <bits/stdc++.h>using namespace std;int main(){int a,b,c;cin>>a>>b>>c;cout<<a+b+c-max(a,max(b,c))<<endl;return0;}
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

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

Compiler output:
a.cc:1:30: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h>using namespace std;int main(){int a,b,c;cin>>a>>b>>c;cout<<a+b+c-max(a,max(b,c))<<endl;return0;}
      |                              ^~~~~~~~~
a.cc:1:9: fatal error: bits/stdc++.h>usin: No such file or directory
    1 | #include<bits/stdc++.h>using namespace std;int main(){int a,b,c;cin>>a>>b>>c;cout<<a+b+c-max(a,max(b,c))<<endl;return0;}
      |         ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc:1:30: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h>using namespace std; const int N = 3;int i;vector<int> afs;int main() {afs.resize(N);for(i = 0; i < N; i++) {cin >> afs[i];}sort(afs.begin(),afs.end());cout << afs[0] + afs[1] << endl;return 0;}
      |                              ^~~~~~~~~
a.cc:1:44: error: extended character   is not valid in an identifier
    1 | #include<bits/stdc++.h>using namespace std; const int N = 3;int i;vector<int> afs;int main() {afs.resize(N);for(i = 0; i < N; i++) {cin >> afs[i];}sort(afs.begin(),afs.end());cout << afs[0] + afs[1] << endl;return 0;}
      |                                            ^
a.cc:1:9: fatal error: bits/stdc++.h>usin: No such file or directory
    1 | #include<bits/stdc++.h>using namespace std; const int N = 3;int i;vector<int> afs;int main() {afs.resize(N);for(i = 0; i < N; i++) {cin >> afs[i];}sort(afs.begin(),afs.end());cout << afs[0] + afs[1] << endl;return 0;}
      |         ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#!/usr/bin
# -*- coding:"utf-8" -*-

a, b, c = map(int, input().split())
if a <= b:
  if c <= b:
    x  = a + c
  else:
    x = a + b
else:
  if c <= a:
    x = b + c
  else:
    x = b + a
print(x)

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin
      |  ^
a.cc:2:3: error: invalid preprocessing directive #-
    2 | # -*- coding:"utf-8" -*-
      |   ^
a.cc:4:1: error: 'a' does not name a type
    4 | a, b, c = map(int, input().split())
      | ^
Language: C

#include<bits/stdc++.h>
using namespace std;
int main()
{
    unsigned long int ball_1, ball_2, ball_3, total_1, total_2, sum_1, sum_2, sum_3;

    scanf("%d%d%d", &ball_1, &ball_2, &ball_3);

    sum_1=ball_1+ball_2;
    sum_2=ball_1+ball_3;
    sum_3=ball_2+ball_3;

    total_1=(sum_1<=sum_2)?sum_1:sum_2;
    total_2=(total_1<=sum_3)?total_1:sum_3;

    printf("Buying any two bells costs %d yen.\n",total_2);

    return 0;
}


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

#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <stack>
#include <iomanip>
#include <queue>
#include <deque>
#include <sstream>
#include <stdio.h>
#include <string>
#include <cmath>
#include <map>
#include <utility>
using namespace std;

#define s(n) scanf("%d",&n)
#define sc(n) scanf("%c",&n)
#define ss(n) scanf("%s",&n)
#define MOD 1000000007
#define ll long long int
#define vi vector<int>
#define vii vector< vector<int> >
#define PI 3.1415926535897932384626433832795


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



Compiler output:
a.cc: In function 'int main()':
a.cc:30:31: error: expected ')' before ';' token
   30 | cout << (a+b+c-max(max(a,b),c);
      |         ~                     ^
      |                               )
Language: C

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

    // 出力
    if((a+b)>(a+c) && (b+c)>(a+c)){
    printf("%d\n",a+c);
    }else if((a+c)>(a+b) && (b+c)>(a+b)){
    printf("%d\n",a+b);
    }else{
    printf("%d\n",B+c);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:19: error: 'B' undeclared (first use in this function)
   13 |     printf("%d\n",B+c);
      |                   ^
main.c:13:19: note: each undeclared identifier is reported only once for each function it appears in