Language: C++

#include <iostream>
#include <string>
#include <cmath>

using namespace std;

int main() {
    int a,b,c,d,e;
    cin >> a >> b >> c >> d >> e;
    int t = 0;
    int last = 0;
    
    int a1=a%10;
    int b1=b%10;
    int c1=c%10;
    int d1=d%10;
    int e1=e%10;
    
    if (a%10 == 0){
        a1 = a1+10;
    }
    if (b%10 == 0){
        b1 = b1+10;
    }
    if (c%10 == 0){
        c1 = c1+10;
    }
    if (d%10 == 0){
        d1 = d1+10;
    }
    if (e%10 == 0){
        e1 = e1+10;
    }
    
    if (min({a1, b1, c1, d1, e1}) == a1){
        last = a;
        a=0;
    }
    else if (min({a1, b1, c1, d1, e1}) == b1){
        last = b;
        b=0;
    }
    else if (min({a1, b1, c1, d1, e1}) == c1){
        last = c;
        c=0;
    }
    else if (min({a1, b1, c1, d1, e1}) == d1){
        last = d;
        d=0;
    }
    else if (min({a1, b1, c1, d1, e1}) == e1){
        last = e;
        e=0;
    }
    
    a = ceil(double(a)/10.0)*10;
    b = ceil(double(b)/10.0)*10;
    c = ceil(double(c)/10.0)*10;
    d = ceil(double(d)/10.0)*10;
    e = ceil(double(e)/10.0)*10;
    t = a + b + c + d + e + last;
    cout << t << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:12: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   35 |     if (min({a1, b1, c1, d1, e1}) == a1){
      |         ~~~^~~~~~~~~~~~~~~~~~~~~~
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
a.cc:39:17: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   39 |     else if (min({a1, b1, c1, d1, e1}) == b1){
      |              ~~~^~~~~~~~~~~~~~~~~~~~~~
/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
a.cc:43:17: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   43 |     else if (min({a1, b1, c1, d1, e1}) == c1){
      |              ~~~^~~~~~~~~~~~~~~~~~~~~~
/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
a.cc:47:17: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   47 |     else if (min({a1, b1, c1, d1, e1}) == d1){
      |              ~~~^~~~~~~~~~~~~~~~~~~~~~
/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
a.cc:51:17: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   51 |     else if (min({a1, b1, c1, d1, e1}) == e1){
      |              ~~~^~~~~~~~~~~~~~~~~~~~~~
/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