Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a[5];

    vector <int> min;
    for(int i=0;i<5;i++)
    {
        cin>>a[i];
        min.push_back(a[i]%10);
    }

    sort(min.bigin(),min.end(),greater<int>);

    int counter=0;

    for(int i=0;i<5;i++)
    {
        if(i!=4)
        {
        if(a[0]%10=min[i])
        {
            counter+=a[0];
            int Temp1;
            Temp1=10-(a[0]%10);
            counter+=Temp1;
        }
        else if(a[1]%10=min[i])
        {
            counter+=a[1];
            int Temp1;
            Temp1=10-(a[1]%10);
            counter+=Temp1;
        }else if(a[2]%10=min[i])
        {
            counter+=a[2];
            int Temp1;
            Temp1=10-(a[2]%10);
            counter+=Temp1;
        }else if(a[3]%10=min[i])
        {
            counter+=a[3];
            int Temp1;
            Temp1=10-(a[3]%10);
            counter+=Temp1;
        }else if(a[4]%10=min[i])
        {
            counter+=a[4];
            int Temp1;
            Temp1=10-(a[4]%10);
            counter+=Temp1;
        }
        }

        else
        {
            if(a[0]%10=min[i])
        {
            counter+=a[0];
            
        }
        else if(a[1]%10=min[i])
        {
            counter+=a[1];
            
        }else if(a[2]%10=min[i])
        {
            counter+=a[2];
            
        }else if(a[3]%10=min[i])
        {
            counter+=a[3];
            
        }else if(a[4]%10=min[i])
        {
            counter+=a[4];
            
        }
        }
        
        
    }
}

cout<<counter;

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: 'class std::vector<int>' has no member named 'bigin'; did you mean 'begin'?
   14 |     sort(min.bigin(),min.end(),greater<int>);
      |              ^~~~~
      |              begin
a.cc:14:44: error: expected primary-expression before ')' token
   14 |     sort(min.bigin(),min.end(),greater<int>);
      |                                            ^
a.cc:22:16: error: lvalue required as left operand of assignment
   22 |         if(a[0]%10=min[i])
      |            ~~~~^~~
a.cc:29:21: error: lvalue required as left operand of assignment
   29 |         else if(a[1]%10=min[i])
      |                 ~~~~^~~
a.cc:35:22: error: lvalue required as left operand of assignment
   35 |         }else if(a[2]%10=min[i])
      |                  ~~~~^~~
a.cc:41:22: error: lvalue required as left operand of assignment
   41 |         }else if(a[3]%10=min[i])
      |                  ~~~~^~~
a.cc:47:22: error: lvalue required as left operand of assignment
   47 |         }else if(a[4]%10=min[i])
      |                  ~~~~^~~
a.cc:58:20: error: lvalue required as left operand of assignment
   58 |             if(a[0]%10=min[i])
      |                ~~~~^~~
a.cc:63:21: error: lvalue required as left operand of assignment
   63 |         else if(a[1]%10=min[i])
      |                 ~~~~^~~
a.cc:67:22: error: lvalue required as left operand of assignment
   67 |         }else if(a[2]%10=min[i])
      |                  ~~~~^~~
a.cc:71:22: error: lvalue required as left operand of assignment
   71 |         }else if(a[3]%10=min[i])
      |                  ~~~~^~~
a.cc:75:22: error: lvalue required as left operand of assignment
   75 |         }else if(a[4]%10=min[i])
      |                  ~~~~^~~
a.cc: At global scope:
a.cc:86:1: error: 'cout' does not name a type
   86 | cout<<counter;
      | ^~~~