Language: C++

//#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main()
{
  int a,b,c,d,e;
  cin >>a>>b>>c>>d>>e;
  int a1,b1,c1,d1,e1;
  int a2,b2,c2,d2,e2;
  a1=a%10;
  a2=a/10;
  if(a1!=0)a2++;
  b1=b%10;
  b2=b/10;
  if(b1!=0)b2++;
  c1=c%10;
  c2=c/10;
  if(c1!=0)c2++;
  d1=d%10;
  d2=d/10;
  if(d1!=0)d2++;
  e1=e%10;
  e2=e/10;
  if(e1!=0)e2++;
  int hasuu;
  int kotae;
  if(a1+b1+c1+d1+e1==0){
    hasuu=0;
    kotae=(a2+b2+c2+d2+e2)*10;
    cout<<kotae<<endl;
    return 0;
  }else{
    if(a1==0)a1=INT_MAX;
    if(b1==0)a1=INT_MAX;
    if(c1==0)a1=INT_MAX;
    if(d1==0)a1=INT_MAX;
    if(e1==0)a1=INT_MAX;
    hasuu=min({a1,b1,c1,d1,e1});
    kotae=(a2+b2+c2+d2+e2)*10+hasuu-10;
    cout<<kotae<<endl;
    return 0;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >>a>>b>>c>>d>>e;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | //#include <bits/stdc++.h>
a.cc:31:5: error: 'cout' was not declared in this scope
   31 |     cout<<kotae<<endl;
      |     ^~~~
a.cc:31:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:31:18: error: 'endl' was not declared in this scope
   31 |     cout<<kotae<<endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | //#include <bits/stdc++.h>
a.cc:34:17: error: 'INT_MAX' was not declared in this scope
   34 |     if(a1==0)a1=INT_MAX;
      |                 ^~~~~~~
a.cc:1:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
  +++ |+#include <climits>
    1 | //#include <bits/stdc++.h>
a.cc:35:17: error: 'INT_MAX' was not declared in this scope
   35 |     if(b1==0)a1=INT_MAX;
      |                 ^~~~~~~
a.cc:35:17: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
a.cc:36:17: error: 'INT_MAX' was not declared in this scope
   36 |     if(c1==0)a1=INT_MAX;
      |                 ^~~~~~~
a.cc:36:17: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
a.cc:37:17: error: 'INT_MAX' was not declared in this scope
   37 |     if(d1==0)a1=INT_MAX;
      |                 ^~~~~~~
a.cc:37:17: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
a.cc:38:17: error: 'INT_MAX' was not declared in this scope
   38 |     if(e1==0)a1=INT_MAX;
      |                 ^~~~~~~
a.cc:38:17: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
a.cc:39:11: error: 'min' was not declared in this scope; did you mean 'main'?
   39 |     hasuu=min({a1,b1,c1,d1,e1});
      |           ^~~
      |           main
a.cc:41:5: error: 'cout' was not declared in this scope
   41 |     cout<<kotae<<endl;
      |     ^~~~
a.cc:41:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:41:18: error: 'endl' was not declared in this scope
   41 |     cout<<kotae<<endl;
      |                  ^~~~
a.cc:41:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'