Language: C++

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

using namespace std;

// int min(int a, int b, int c, int d, int e){
//     int min;
//     if(a<=b && a<=c && a<=d && a<=e){
//         min = a;
//     }
//     else if(b<=a && b<=c && b<=d && b<=e){
//         min = b;
//     }
//     else if(c<=a && c<=b && c<=d && c<=e){
//         min = c;
//     }
//     else if(d<=a && d<=b && d<=c && d<=e){
//         min = d;
//     }
//     else if(e<=a && e<=b && e<=c && e<=d){
//         min = e;
//     }
//     return min;
// }

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:55:12: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   55 |     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:59:17: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   59 |     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:63:17: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   63 |     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:67:17: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   67 |     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:71:17: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   71 |     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