Language: C++

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

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected '}' before ')' token
    7 |   int anko = max({a,b,c)};
      |                  ~     ^
a.cc:7:25: error: expected ',' or ';' before '}' token
    7 |   int anko = max({a,b,c)};
      |                         ^
a.cc: At global scope:
a.cc:8:17: error: 'a' was not declared in this scope
    8 |   int maojini = a+b+c - anko - min({a,b,c});
      |                 ^
a.cc:8:19: error: 'b' was not declared in this scope
    8 |   int maojini = a+b+c - anko - min({a,b,c});
      |                   ^
a.cc:8:21: error: 'c' was not declared in this scope
    8 |   int maojini = a+b+c - anko - min({a,b,c});
      |                     ^
a.cc:8:25: error: 'anko' was not declared in this scope
    8 |   int maojini = a+b+c - anko - min({a,b,c});
      |                         ^~~~
a.cc:8:37: error: 'a' was not declared in this scope
    8 |   int maojini = a+b+c - anko - min({a,b,c});
      |                                     ^
a.cc:8:39: error: 'b' was not declared in this scope
    8 |   int maojini = a+b+c - anko - min({a,b,c});
      |                                       ^
a.cc:8:41: error: 'c' was not declared in this scope
    8 |   int maojini = a+b+c - anko - min({a,b,c});
      |                                         ^
a.cc:8:35: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
    8 |   int maojini = a+b+c - anko - min({a,b,c});
      |                                ~~~^~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   candidate expects 2 arguments, 1 provided
a.cc:10:3: error: 'cout' does not name a type
   10 |   cout << anko + maojini << endl;
      |   ^~~~
a.cc:12:3: error: expected unqualified-id before 'return'
   12 |   return 0;
      |   ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^