criyle/codenet-compile-errors huggingface dataset:
Language: C

#include<stdio.h>
int main(){
    int a[5],x[5],i,j,b,ans,num,c;
    for(i=0;i<5;i++){
        scanf("%d",&a[i]);
    }
    for(i=0;i<5;i++){
        x[i]=a[i]%10;
        if(x[i]!=0){
            c=10-x[i];
            a[i]+=c;
        }
    }
    for(i=0;i<5;i++){
        printf("%d\n",a[i]);
    }
    for(i=0;i<4;i++){
        for(j=i+1;j<5;j++){
            if(x[i]>x[j]){
                b=x[i];
                x[i]=x[j];
                x[j]=b;
            }
        }
    }
     for(i=0;i<5;i++){
        printf("%d\n",x[i]);
    }
    for(i=0;i<5;i++){
        num+=a[i];
    }
    printf("%d\n",num);
    ans=num;
    i=0;
    while(ans=num){
        ans-=x[i];
        i++:
    }
    printf("%d",ans);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:37:12: error: expected ';' before ':' token
   37 |         i++:
      |            ^
      |            ;
Language: C++

                #include<iostream>
                #include<string>
                #include<vector>
                #include<math.h>
                #include<cmath>
                #include<stack>
                #include <algorithm>
                #include <functional>
                //#include<stdlib.h>
                using namespace std;
                int main()
                {
                	short i[5]; int a=0,m[2]=0;
                	for (int k = 0; k < 5; k++)
                	{
                		cin >> i[k];
                      if(i[k]>m[0]){m[0]=i[k];m[1]=10-(i[k]%10);}
                      if(i[k]%10!=0&&k!=4){i[k]+=10-(i[k]%10);} a += i[k];
                	}
                  a-=m[1];
                	cout << a;
                	return 0;
                }

Compiler output:
a.cc: In function 'int main()':
a.cc:13:50: error: array must be initialized with a brace-enclosed initializer
   13 |                         short i[5]; int a=0,m[2]=0;
      |                                                  ^
Language: C++

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

int main() {
	vector<int> K(5);
	for(int i = 0 ; i < 5 ; i++){
		cin >> K[i];
	}
	vector<double> k(5);
	for(int i = 0 ; i < 5 ; i++){
		k[i] = K[i]
	}
	for(int i = 0 ; i < 5 ; i++){
		k[i] = ceil(k[i]/10)*10;
	}
	int n=20;
	for(int i = 0 ; i < 5 ; i++){
		n = min(n,K[i]%10);
	}
	int ans = 0;
	for(int i = 0 ; i < 5 ; i++){
		ans += k[i]
	}
	cout << ans + n -10 << endl; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: expected ';' before '}' token
   11 |                 k[i] = K[i]
      |                            ^
      |                            ;
   12 |         }
      |         ~                   
a.cc:22:28: error: expected ';' before '}' token
   22 |                 ans += k[i]
      |                            ^
      |                            ;
   23 |         }
      |         ~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
int a,b,c,d,e;
  cin>>a>>b>>c>>d>>e;
  int n;
	int t=min({(a-1)%10,(b-1)%10,(c-1)%10,(d-1)%10,(e-1)%10});
  if((a-1)%10==t){n=a+2*b+2*c+2*d+2*e-b%10-c%10-d%10-e%10}else
  if((b-1)%10==t){n=2*a+b+2*c+2*d+2*e-a%10-c%10-d%10-e%10}else
  if((c-1)%10==t){n=2*a+2*b+c+2*d+2*e-b%10-a%10-d%10-e%10}else
  if((d-1)%10==t){n=2*a+2*b+2*c+d+2*e-b%10-c%10-a%10-e%10}else
  if((e-1)%10==t){n=2*a+2*b+2*c+2*d+e-b%10-c%10-d%10-a%10}
  cout<<n<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:58: error: expected ';' before '}' token
    9 |   if((a-1)%10==t){n=a+2*b+2*c+2*d+2*e-b%10-c%10-d%10-e%10}else
      |                                                          ^
      |                                                          ;
a.cc:10:58: error: expected ';' before '}' token
   10 |   if((b-1)%10==t){n=2*a+b+2*c+2*d+2*e-a%10-c%10-d%10-e%10}else
      |                                                          ^
      |                                                          ;
a.cc:11:58: error: expected ';' before '}' token
   11 |   if((c-1)%10==t){n=2*a+2*b+c+2*d+2*e-b%10-a%10-d%10-e%10}else
      |                                                          ^
      |                                                          ;
a.cc:12:58: error: expected ';' before '}' token
   12 |   if((d-1)%10==t){n=2*a+2*b+2*c+d+2*e-b%10-c%10-a%10-e%10}else
      |                                                          ^
      |                                                          ;
a.cc:13:58: error: expected ';' before '}' token
   13 |   if((e-1)%10==t){n=2*a+2*b+2*c+2*d+e-b%10-c%10-d%10-a%10}
      |                                                          ^
      |                                                          ;
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
int a,b,c,d,e;
  cin>>a>>b>>c>>d>>e;
  int n;
	int t=min({(a-1)%10,(b-1)%10,(c-1)%10,(d-1)%10,(e-1)%10});
  if((a-1)%10==t){n=a+2*b+2*c+2*d+2*e-b%10-c%10-d%10-e%10}else
  if((b-1)%10==t){n=2*a+b+2*c+2*d+2*e-a%10-c%10-d%10-e%10}
  if((c-1)%10==t){n=2*a+2*b+c+2*d+2*e-b%10-a%10-d%10-e%10}
  if((d-1)%10==t){n=2*a+2*b+2*c+d+2*e-b%10-c%10-a%10-e%10}
  if((e-1)%10==t){n=2*a+2*b+2*c+2*d+e-b%10-c%10-d%10-a%10}
  cout<<n<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:58: error: expected ';' before '}' token
    9 |   if((a-1)%10==t){n=a+2*b+2*c+2*d+2*e-b%10-c%10-d%10-e%10}else
      |                                                          ^
      |                                                          ;
a.cc:10:58: error: expected ';' before '}' token
   10 |   if((b-1)%10==t){n=2*a+b+2*c+2*d+2*e-a%10-c%10-d%10-e%10}
      |                                                          ^
      |                                                          ;
a.cc:11:58: error: expected ';' before '}' token
   11 |   if((c-1)%10==t){n=2*a+2*b+c+2*d+2*e-b%10-a%10-d%10-e%10}
      |                                                          ^
      |                                                          ;
a.cc:12:58: error: expected ';' before '}' token
   12 |   if((d-1)%10==t){n=2*a+2*b+2*c+d+2*e-b%10-c%10-a%10-e%10}
      |                                                          ^
      |                                                          ;
a.cc:13:58: error: expected ';' before '}' token
   13 |   if((e-1)%10==t){n=2*a+2*b+2*c+2*d+e-b%10-c%10-d%10-a%10}
      |                                                          ^
      |                                                          ;
Language: C

#include<stdio.h>

int main()
{
  int A,B,C,D,E;
  scanf("%d",&A);
  scanf("%d",&B);
  scanf("%d",&C);
  scanf("%d",&D);
  scanf("%d",&E);
  
  int a,b,c,d,e,min;
  a = A%10;
  b = B%10;
  c = C%10;
  d = D%10;
  e = E%10;
  
  min=a;
  if(b<min) min=b;
  if(c<min) min=c;
  if(d<min) min=d;
  if(d<min) min=e;
  
  if(min==a){ printf("%d",B+C+D+E-(b+c+d+e)+40+A);
            }else if(min==b){printf("%d",A+C+D+E-(a+c+d+e)+40+B);
            }else if(min==c){printf("%d",A+C+D+E-(a+b+d+e)+40+C);
            }else if(min==d){printf("%d",A+B+C+E-(a+b+c+e)+40+D);
            }else if(min==e){printf("%d",A+B+C+D-(a+b+c+d+)40+E);
   }
  
  return 0;
  
}


Compiler output:
main.c: In function 'main':
main.c:29:59: error: expected expression before ')' token
   29 |             }else if(min==e){printf("%d",A+B+C+D-(a+b+c+d+)40+E);
      |                                                           ^
Language: C++

#include <iostream>
using namespace std;


int main()
{
  int a[5],b[5],k,t=643,s,h = 0;
  	for(k=0;k<4;k++)
    {
    cin >> a[k];
    }
  
	for(k=0;k<4;k++)
    {
      if(a[k]%10 == 0)
      {
    b[k] = a[k];
        continue;
      }
      b[k] = a[k] + (10 - (a[k]%10));
    }
  for(k=0;k<4;k++)
  {
  h += b[k];
  }
  
    for(k=0;k<4;k++)
  {
  s=h-b[k]+a[k];
  if(s<t)
  {t=s}
  }
  
  cout << t << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:7: error: expected ';' before '}' token
   31 |   {t=s}
      |       ^
      |       ;
Language: C++

#include <iostream>
using namespace std;


int main()
{
  int a[5],b[5],k,t=643,s,h = 0;
  	for(k=0;k<4;k++)
    {
    cin >> a[k];
    }
  
	for(k=0;k<4;k++)
    {
      if(a[k]%10 == 0)
      {
    b[k] = a[k];
        continue;
      }
      b[k] = a[k] + (10 - a%10);
    }
  for(k=0;k<4;k++)
  {
  h += b[k];
  }
  
    for(k=0;k<4;k++)
  {
  s=h-b[k]+a[k];
  if(s<t)
  {t=s}
  }
  
  cout << t << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:28: error: invalid operands of types 'int [5]' and 'int' to binary 'operator%'
   20 |       b[k] = a[k] + (10 - a%10);
      |                           ~^~~
      |                           | |
      |                           | int
      |                           int [5]
a.cc:31:7: error: expected ';' before '}' token
   31 |   {t=s}
      |       ^
      |       ;
Language: C

#include<stdio.h>

int main()
{
  int A,B,C,D,E;
  scanf("%d",&A);
  scanf("%d",&B);
  scanf("%d",&C);
  scanf("%d",&D);
  scanf("%d",&E);
  
  int a,b,c,d,e,min;
  a = A%10;
  b = B%10;
  c = C%10;
  d = D%10;
  e = E%10;
  
  min=a;
  if(b<min) min=b;
  if(c<min) min=c;
  if(d<min) min=d;
  if(d<min) min=e;
  
  if(min==a){ printf("%d",B+C+D+E-(b+c+d+e)+40+A);
            }elseif(min==b){printf("%d",A+C+D+E-(a+c+d+e)+40+B);
            }elseif(min==c){printf("%d",A+C+D+E-(a+b+d+e)+40+C);
            }elseif(min==d){printf("%d",A+B+C+E-(a+b+c+e)+40+D);
            }elseif(min==e){printf("%d",A+B+C+D-(a+b+c+d+)40+E);
   }
  
  return 0;
  
}


Compiler output:
main.c: In function 'main':
main.c:26:14: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   26 |             }elseif(min==b){printf("%d",A+C+D+E-(a+c+d+e)+40+B);
      |              ^~~~~~
main.c:26:28: error: expected ';' before '{' token
   26 |             }elseif(min==b){printf("%d",A+C+D+E-(a+c+d+e)+40+B);
      |                            ^
      |                            ;
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c,d,e;
  cin>>a;
  cin>>b;
  cin>>c;
  cin>>d;
  cin>>e;
  int n;
	int t=min({(a-1)%10,(b-1)%10,(c-1)%10,(d-1)%10,(e-1)%10});
  if((a-1)%10==t)n=a+2*b+2*c+2*d+2*e-b%10-c%10-d%10-e%10;
  if((b-1)%10==t)n=2*a+b+2*c+2*d+2*e-a%10-c%10-d%10-e%10;
  if((c-1)%10==t)n=2*a+2*b+c+2*d+2*e-b%10-a%10-d%10-e%10;
  if((d-1)%10==t)n=2*a+2*b+2*c+d+2*e-b%10-c%10-a%10-e%10;
  if((e-1)%10==t)n=2*a+2*b+2*c+2*d+e-b%10-c%10-d%10-a%10;
  cout<<n<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   11 |         int t=min({(a-1)%10,(b-1)%10,(c-1)%10,(d-1)%10,(e-1)%10});
      |               ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
Language: C

#include<stdio.h>

int main()
{
  int A,B,C,D,E,min;
  scanf("%d",&A);
  scanf("%d",&B);
  scanf("%d",&C);
  scanf("%d",&D);
  scanf("%d",&E);
  
  int a,b,c,d,e,min;
  a = A%10;
  b = B%10;
  c = C%10;
  d = D%10;
  e = E%10;
  
  min=a;
  if(b<min) min=b;
  if(c<min) min=c;
  if(d<min) min=d;
  if(d<min) min=e;
  
  if(min==a){ printf("%d",B+C+D+E-(b+c+d+e)+40+A);
            }elseif(min==b){printf("%d",A+C+D+E-(a+c+d+e)+40+B);
            }elseif(min==c){printf("%d",A+C+D+E-(a+b+d+e)+40+C);
            }elseif(min==d){printf("%d",A+B+C+E-(a+b+c+e)+40+D);
            }elseif(min==e){printf("%d",A+B+C+D-(a+b+c+d+)40+E);
   }
  
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:12:17: error: redeclaration of 'min' with no linkage
   12 |   int a,b,c,d,e,min;
      |                 ^~~
main.c:5:17: note: previous declaration of 'min' with type 'int'
    5 |   int A,B,C,D,E,min;
      |                 ^~~
main.c:26:14: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   26 |             }elseif(min==b){printf("%d",A+C+D+E-(a+c+d+e)+40+B);
      |              ^~~~~~
main.c:26:28: error: expected ';' before '{' token
   26 |             }elseif(min==b){printf("%d",A+C+D+E-(a+c+d+e)+40+B);
      |                            ^
      |                            ;
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main(){
  int A[5];
  for(int i=0; i<5; i++)  cin>>A[i];
  int resA[5];
  for(int i=0; i<5; i++) resA[i] = A[i]%10;
  //for(int i=0; i<5; i++) resA[i] = abs(10-resA[i]);
  //for(int i=0; i<5; i++) resA[i] = abs(10-A[i]%10)%10;
  
  bool allzeroflag=true;
  int minresindex=0;
  int minresA=10000000;
  for(int i=0; i<5; i++){
    if(resA[i]<minresA && resA[i]!=0){
      minresA=resA[i];
      minresindex=i;
      allzeroflag=false
    }
  }
  if(allzeroflag)minresA=0;

  int totaltime=0;
  for(int i=0; i<5; i++){
    if(resA[i]==0)totaltime+=(A[i]/10)*10;
    else totaltime+=(A[i]/10+1)*10;
  }  
  totaltime = totaltime - (10-minresA);
  cout<<totaltime;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:24: error: expected ';' before '}' token
   19 |       allzeroflag=false
      |                        ^
      |                        ;
   20 |     }
      |     ~
Language: C++

#include <iostream>
#include <string>
#include <cstdlib>

using namespace std;

int main(){
    int a[5];
    cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4];
    int t[5];
    for(int i = 0; i < 5; i++){
        if(a[i] % 10 != 0){
            t[i] = 10 - a[i] % 10;
        }else{
            t[i] = 0;
        }
    }
    int sum = 0;
    for(int i = 0; i < 5; i++){
        sum += a[i];
    }
    sort(t, t + 5);
    int sumt = 0;
    for(int i = 0; i < 4; i++){
        sumt += t[i];
    }
    cout << sum + sumt;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   22 |     sort(t, t + 5);
      |     ^~~~
      |     short
Language: C++

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

using ll=long long;
const int inf=100000000;

int in(){
  int a;
  cin >> a;
  return a;
}//int型関数の受け取り

void forin(int* x,int y){
  for (int i=0;i<y;i++){
    cin >> x[i];
  }
}//(x,y) int型配列x[y]の受け取り

int intpow(int x,int y){
  double a=x,b=y;
  return pow(a,b);
}//(x,y) xをy乗

int intfabs(int x){
  double a=x;
  return fabs(a);
}//(x) xの絶対値

int fact(int x){
  if (x == 1) return 1;
  return x*fact(x-1);
}//(x) x!

int fib(int x){
  if (x <= 2) return x;
  int a[x];
  a[0]=1;
  a[1]=2;
  for (int i=2;i<x;i++){
    a[i]=a[i-1]+a[i-2];
  }
  return a[x-1];
}//(x) フィボナッチ数列のx番目

int div1(ll x){
  return x%1000000007;
}

main(){
  int a[5],n=0,ans=0;
  forin(a,5);
  for (int i=1;i<5;i++){
    int p=a[i]%10;
    if (P==0) p=10;
    if (a[n]%10>p) n=i;
  }
  for (int i=0;i<5;i++){
    if (i=n) continue;
    ans+=10*(n%10+1);
  }
  cout << ans+a[n] << endl;
}


Compiler output:
a.cc:49:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   49 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:54:9: error: 'P' was not declared in this scope
   54 |     if (P==0) p=10;
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(void)
{
  int a[5];
  for(int i=0;i<5;i++){
    cin >> a[i];
  }
  
  int min=9,rec;
  for(int i=0;i<5;i++){
    if(a[i] % 10 == 0){
      continue;
    }
    else if(a[i] % 10 < min){
      min = a[i] % 10;
      rec=i;
    }
  }
  int ans=0;
  for(int i=0;i<5;i++){
    if(a[i] % 10 == 0){
      ans+=a[i];
    }
    else if(a[i] % 10 != 0){
      if(i == rec){
        ans+=a[i];
      }
      else{
        a[i] /= 10;
        a[i]++;
        a[i] *= 10;
        ans+=a[i]
      }
    }
  }
  cout << ans << endl;
  return 0;
}
#include<iostream>
using namespace std;
int main(void)
{
  int a[5];
  for(int i=0;i<5;i++){
    cin >> a[i];
  }
  
  int min=9,rec;
  for(int i=0;i<5;i++){
    if(a[i] % 10 == 0){
      continue;
    }
    else if(a[i] % 10 < min){
      min = a[i] % 10;
      rec=i;
    }
  }
  int ans=0;
  for(int i=0;i<5;i++){
    if(a[i] % 10 == 0){
      ans+=a[i];
    }
    else if(a[i] % 10 != 0){
      if(i == rec){
        ans+=a[i];
      }
      else{
        a[i] /= 10;
        a[i]++;
        a[i] *= 10;
        ans+=a[i];
      }
    }
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:18: error: expected ';' before '}' token
   33 |         ans+=a[i]
      |                  ^
      |                  ;
   34 |       }
      |       ~           
a.cc: At global scope:
a.cc:42:5: error: redefinition of 'int main()'
   42 | int main(void)
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(void)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(void)
{
  int a[5];
  for(int i=0;i<5;i++){
    cin >> a[i];
  }
  
  int min=9,rec;
  for(int i=0;i<5;i++){
    if(a[i] % 10 == 0){
      continue;
    }
    else if(a[i] % 10 < min){
      min = a[i] % 10;
      rec=i;
    }
  }
  int ans=0;
  for(int i=0;i<5;i++){
    if(a[i] % 10 == 0){
      ans+=a[i];
    }
    else if(a[i] % 10 != 0){
      if(i == rec){
        ans+=a[i];
      }
      else{
        a[i] /= 10;
        a[i]++;
        a[i] *= 10;
        ans+=a[i]
      }
    }
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:18: error: expected ';' before '}' token
   33 |         ans+=a[i]
      |                  ^
      |                  ;
   34 |       }
      |       ~
Language: C++

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

int main() {
  vector<int> dur(5);
  vector<int> hasu(5);
  int time = 0;
  for(int i=0; i<5; i++){
    cin >> dur.at(i);
    hasu.at(i) = dur.at(i) % 10;
    if(hasu.at(i) != 0){
      time += (dur.at(i) / 10 + 1) * 10
    }else{
      time += (dur.at(i) / 10) * 10
      hasu.at(i) = 10;
    }
  }
  sort(hasu.begin(), hasu.end());
  time -= (10 - hasu.at(0));
  cout << time << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:40: error: expected ';' before '}' token
   12 |       time += (dur.at(i) / 10 + 1) * 10
      |                                        ^
      |                                        ;
   13 |     }else{
      |     ~                                   
a.cc:14:36: error: expected ';' before 'hasu'
   14 |       time += (dur.at(i) / 10) * 10
      |                                    ^
      |                                    ;
   15 |       hasu.at(i) = 10;
      |       ~~~~
Language: C++

int main(){
	int a,b,c,d,e,k,t;
  	t = 0;
  	cin >> a  >> b >> c >> d >> e ;
	
  	t += a;
  	while(1){
	if(t%10==0){
   	 	t += b;
      	break;
    }else{
    	t++;
    }
    }
  while(1){
	if(t%10==0){
   	 	t += c;

      	break;
    }else{
    	t++;
    }
    }
  while(1){
	if(t%10==0){
   	 	t += d;
      	break;
    }else{
    	t++;
    }
    }
  while(1){
	if(t%10==0){
   	 	t += e;
      	break;
    }else{
    	t++;
    }
    }

  	
printf("%d",t);
          
 
  	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> a  >> b >> c >> d >> e ;
      |         ^~~
a.cc:42:1: error: 'printf' was not declared in this scope
   42 | printf("%d",t);
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;

int main(){
  
  long int S[5],A[5],ans=0;
  int Q=1000000;
  cin>>S[0]>>S[1]>>S[2]>>S[3]>>S[4];
  
  if(S[0]==S[1] && S[1]==S[2] && S[2]==S[3] && S[3]==S[4]){
    if(S[0]%10==0 && S[1]%10==0 && S[2]%10==0 && S[3]%10==0 && S[4]%10==0) ans += 10;
    for(int i=0; i<5; ++i){
    A[i]=(S[i]+9)/10*10;
    ans += A[i]; 
    }
    ans -= 10;
    ans += S[0]%10;
    cout<<ans<<endl;
  }
  
  else{
  if(S[0]%10==0 && S[1]%10==0 && S[2]%10==0 && S[3]%10==0 && S[4]%10==0) ans += 10;
  for(int i=0; i<5; ++i){
    A[i]=(S[i]+9)/10*10;
    ans += A[i];
    Q=min(Q,S[i]%10);
  }
  ans -= 10;
  ans += Q;
  cout<<ans<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:10: error: no matching function for call to 'min(int&, long int)'
   27 |     Q=min(Q,S[i]%10);
      |       ~~~^~~~~~~~~~~
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:   template argument deduction/substitution failed:
a.cc:27:10: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long int')
   27 |     Q=min(Q,S[i]%10);
      |       ~~~^~~~~~~~~~~
/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, 2 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/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:   candidate expects 1 argument, 2 provided
/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:   template argument deduction/substitution failed:
a.cc:27:10: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   27 |     Q=min(Q,S[i]%10);
      |       ~~~^~~~~~~~~~~
Language: C++

int main(){
	int a,b,c,d,e,k,t;
  	t = 0;
  	cin>> a  >> b >> c >> d >> e ;
	
  	t += a;
  	while(1){
	if(t%10==0){
   	 	t += b;
      	break;
    }else{
    	t++;
    }
    }
  while(1){
	if(t%10==0){
   	 	t += c;

      	break;
    }else{
    	t++;
    }
    }
  while(1){
	if(t%10==0){
   	 	t += d;
      	break;
    }else{
    	t++;
    }
    }
  while(1){
	if(t%10==0){
   	 	t += e;
      	break;
    }else{
    	t++;
    }
    }

  	
printf("%d",t);
          
 
  	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin>> a  >> b >> c >> d >> e ;
      |         ^~~
a.cc:42:1: error: 'printf' was not declared in this scope
   42 | printf("%d",t);
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
    int A[5];
    cin >> A[0] >> A[1] >> A[2] >> A[3] >> A[4];

    int aa[5];
    for (int i = 0; i < 5; i++)
    {
        aa[i] = A[i] % 10;
    }
    int min = 0;
    for (int i = 1; i < 10; i++)
    {
        if (aa[0] == i || aa[1] == i || aa[2] == i || aa[3] == i || aa[4] == i)
        {
            min = i;
            break;
        }
    }
    //cout<<min<<endl;
    int sum = 0;
    if (min == 0)
    {
        for (int i = 0; i < 5; i++)
        {
            sum += A[i];
        }
        cout << sum << endl;
        return 0;
    }
    for (int i = 0; i < 5; i++)
    {
        sum += A[i];
        if(aa[i!=0)
        {
            sum += (10 - aa[i]);
        }
    }

    cout << sum - 10 + min << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:19: error: expected ']' before ')' token
   37 |         if(aa[i!=0)
      |                   ^
      |                   ]
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;

int main(){
  
  int S[5],A[5],ans=0;
  int Q=1000000;
  cin>>S[0]>>S[1]>>S[2]>>S[3]>>S[4];
  
  if(S[0]==S[1] && S[1]==S[2] && S[2]==S[3] && S[3]==S[4]){
    if(S[0]%10==0 && S[1]%10==0 && S[2]%10==0 && S[3]%10==0 && S[4]%10==0) ans += 10;
    for(int i=0; i<5; ++i){
    A[i]=(S[i]+9)/10*10;
    ans += A[i]; 
    }
    ans -= 10;
    ans += S[0]%10
    cout<<ans<<endl;
  }
  
  else{
  if(S[0]%10==0 && S[1]%10==0 && S[2]%10==0 && S[3]%10==0 && S[4]%10==0) ans += 10;
  for(int i=0; i<5; ++i){
    A[i]=(S[i]+9)/10*10;
    ans += A[i];
    Q=min(Q,S[i]%10);
  }
  ans -= 10;
  ans += Q;
  cout<<ans<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: expected ';' before 'cout'
   18 |     ans += S[0]%10
      |                   ^
      |                   ;
   19 |     cout<<ans<<endl;
      |     ~~~~
Language: C++

#include<cstdio>
#include<algorithm>
#include<iostream>
using namespace std;
int main(void){
	int all=0;
  	int a=0,b=0,c=10;
    for(int i=0;i<5;i++){
    	cin>>a[i];
	if(a[i]%10!=0){all+=10;}
      	b=a[i]/10;
	all+=b*10;
	if(a[i]-b*10>c&&a[i]%10!=0){c=min(c,a[i]-b*10);}
    }
  	cout<<all<<endl;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: invalid types 'int[int]' for array subscript
    9 |         cin>>a[i];
      |               ^
a.cc:10:13: error: invalid types 'int[int]' for array subscript
   10 |         if(a[i]%10!=0){all+=10;}
      |             ^
a.cc:11:12: error: invalid types 'int[int]' for array subscript
   11 |         b=a[i]/10;
      |            ^
a.cc:13:13: error: invalid types 'int[int]' for array subscript
   13 |         if(a[i]-b*10>c&&a[i]%10!=0){c=min(c,a[i]-b*10);}
      |             ^
a.cc:13:26: error: invalid types 'int[int]' for array subscript
   13 |         if(a[i]-b*10>c&&a[i]%10!=0){c=min(c,a[i]-b*10);}
      |                          ^
a.cc:13:46: error: invalid types 'int[int]' for array subscript
   13 |         if(a[i]-b*10>c&&a[i]%10!=0){c=min(c,a[i]-b*10);}
      |                                              ^
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int[] numbers = new int[5];
      	int lastdish = 0;
      	for(int i=0;i<5;i++){
        	numbers[i] = scan.nextInt();
        }
      	for(int i=0;i<5;i++){
        	if(numbers[i]%10 !=0 && resi(numbers[i]) < resi(numbers[lastdish])){
            	lastdish = i;
            }
        }
      	int time = 0;
      	for(int i = 0;i<5;i++){
        	if(i != lastdish){
            	time += kuriage(numbers[i]);
            }
        }
      	time+= kuriage(numbers[lastdish]);
        System.out.println(time);
    }
  	public int resi(int n){
    	    int r=0;
          	if(n%10 == 0){
            	r = 10;
            } else {
            	r = n%10;
            }
      	return r;
    }
  	public int kuriage(int n){
    	int a = 0;
      	if(n%10 == 0){
        	return n;
        } else {
        	return n + (10-n%10);
        }
    }
  
}

Compiler output:
Main.java:11: error: non-static method resi(int) cannot be referenced from a static context
        	if(numbers[i]%10 !=0 && resi(numbers[i]) < resi(numbers[lastdish])){
        	                        ^
Main.java:11: error: non-static method resi(int) cannot be referenced from a static context
        	if(numbers[i]%10 !=0 && resi(numbers[i]) < resi(numbers[lastdish])){
        	                                           ^
Main.java:18: error: non-static method kuriage(int) cannot be referenced from a static context
            	time += kuriage(numbers[i]);
            	        ^
Main.java:21: error: non-static method kuriage(int) cannot be referenced from a static context
      	time+= kuriage(numbers[lastdish]);
      	       ^
4 errors
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int[] A = new int[5];
      	int[] B = new int[5];
      	for(int i = 0; i < 5; i++){
        	A[i] = scan.nextInt();
          	B[i] = tenth(A[i]);
        }
      	int min = 9;
      	int pointer = 0;
      	int all = 0;
      	int k ;
      	for(int i = 0; i < 5; i++){
        	if(ichi(B[i]) < min){
            	min = A[i];
              	k = B[i];
              	pointer = i;
            }
        }
      	all = B[0] + B[1] + B[2] + B[3] + B[4] - 2 * k;
      	all = all + min;
      	System.out.print(all);
    }
  	public static void tenth(int a){
    	while(a % 10 != 0){
        	a++;
        }
      	return a;
    }
  	public static void ichi(int b){
    	while(b >= 10){
        	b = b - 10;
        }
      	return b;
    }

}

Compiler output:
Main.java:10: error: incompatible types: void cannot be converted to int
          	B[i] = tenth(A[i]);
          	            ^
Main.java:17: error: 'void' type not allowed here
        	if(ichi(B[i]) < min){
        	       ^
Main.java:31: error: incompatible types: unexpected return value
      	return a;
      	       ^
Main.java:37: error: incompatible types: unexpected return value
      	return b;
      	       ^
4 errors
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:20:15: error: expected primary-expression before '=' token
   20 |         if(i!==4)
      |               ^
a.cc: At global scope:
a.cc:86:1: error: 'cout' does not name a type
   86 | cout<<counter;
      | ^~~~
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int[] numbers = new int[5];
      	int lastdish = 0;
      	for(int i=0;i<5;i++){
        	numbers[i] = scan.nextInt();
        }
      	for(int i=0;i<5;i++){
        	if(numbers[i]%10 !=0 && resi(numbers[i]) < resi(numbers[lastdish])){
            	lastdish = i;
            }
        }
      	int time = 0;
      	for(int i = 0;i<5;i++){
        	if(i != lastdish){
            	time += kuriage(numbers[i]);
            }
        }
      	time+= kuriage(numbers[lastdish]);
        System.out.println(time);
    }
  	public class int resi(int n){
    	    int r=0;
          	if(n%10 == 0){
            	r = 10;
            } else {
            	r = n%10;
            }
      	return r;
    }
  	public class int kuriage(int n){
    	int a = 0;
      	if(n%10 == 0){
        	return n;
        } else {
        	return n + (10-n%10);
        }
    }
  
}

Compiler output:
Main.java:24: error: <identifier> expected
  	public class int resi(int n){
  	            ^
Main.java:33: error: <identifier> expected
  	public class int kuriage(int n){
  	            ^
2 errors
Language: C

#include<stdio.h>
int main(){
    int a[5];x[5],i,j,b,ans,num;
    for(i=0;i<5;i++){
        scanf("%d",&a[i]);
    }
    for(i=0;i<5;i++){
        x[i]=a[i]%10;
        if(x[i]!=0){
            a[i]+=(10-x[i]);
        }
    }
    for(i=0;i<4;i++){
        for(j=i+1;j<5;j++){
            if(x[i]>x[j]){
                b=x[i];
                x[i]=x[j];
                x[j]=b;
            }
        }
    }
    for(i=0;i<5;i++){
        num+=a[i];
    }
    ans=num;
    i=0;
    while(ans=num){
        ans-=x[i];
    }
    printf("%d",ans);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:14: error: 'x' undeclared (first use in this function)
    3 |     int a[5];x[5],i,j,b,ans,num;
      |              ^
main.c:3:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:19: error: 'i' undeclared (first use in this function)
    3 |     int a[5];x[5],i,j,b,ans,num;
      |                   ^
main.c:3:21: error: 'j' undeclared (first use in this function)
    3 |     int a[5];x[5],i,j,b,ans,num;
      |                     ^
main.c:3:23: error: 'b' undeclared (first use in this function)
    3 |     int a[5];x[5],i,j,b,ans,num;
      |                       ^
main.c:3:25: error: 'ans' undeclared (first use in this function)
    3 |     int a[5];x[5],i,j,b,ans,num;
      |                         ^~~
main.c:3:29: error: 'num' undeclared (first use in this function)
    3 |     int a[5];x[5],i,j,b,ans,num;
      |                             ^~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>  
#include <vector>
using namespace std;
 
int main(){
  vector<int> time(5,0);
  int sum=0,m=INT_MAX;
  for(int i=0;i<5;i++){
    cin>>time[i];
    sum+=time[i];
    int temp=time[i];
    sum+=10-temp;
    m=min(temp,m);
  }
  sum=sum-(10-m);
  cout<<sum;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'INT_MAX' was not declared in this scope
    9 |   int sum=0,m=INT_MAX;
      |               ^~~~~~~
a.cc:5:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    4 | #include <vector>
  +++ |+#include <climits>
    5 | using namespace std;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,d,e;
  cin>>a>>b>>c>>d>>e;
  vector<int> X={a%10,b%10,c%10,d%10,e%10};
  sort(X.begin(),X.end());
  int W=0;
  for(int k=0;k<5;k++){
    if(X.[i]!=0){
      W=X.[i];
      break;
    }
  vector<int> Y={a,b,c,d,e};
  for(int i=0;i<5;i++){
    if(Y[i]%10==0){
      Y[i]/=10;
    }
    else{
      Y[i]=Y[i]/10+1;
    }
  }
  int Z=0;
  for(int i=0;i<5;i++){
    Z+=Y[i]*10;
  }
  cout<<Z-10+X[0]+W<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected unqualified-id before '[' token
   10 |     if(X.[i]!=0){
      |          ^
a.cc:10:11: error: 'i' was not declared in this scope
   10 |     if(X.[i]!=0){
      |           ^
a.cc:11:11: error: expected unqualified-id before '[' token
   11 |       W=X.[i];
      |           ^
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

    #include<stdio.h>
    #include<string.h>
    int main(void){
    int A,B,C,a,b,c,d,e,k,i,j,cou,v[1000000];
    char S[100000];
    scanf("%d",&a);
    scanf("%d",&b);
    scanf("%d",&c);
    scanf("%d",&d);
    scanf("%d",&e);
      min=a%10;
    if((min>b%10)&&(b%10!=0)){
        min=b%10;
    }
    if((min>c%10)&&(c%10!=0)){
        min=c%10;
    }
    if((min>d%10)&&(d%10!=0)){
        min=d%10;
    }
    if((min>e%10)&&(e%10!=0)){
        min=e%10;
    }
    if((a%10!=0)&&(a%10!=min)){
        a=a/10+1;
        a=a*10;
    }
    if((b%10!=0)&&(b%10!=min)){
        b=b/10+1;
        b=b*10;
    }
    if((c%10!=0)&&(c%10!=min)){
        c=c/10+1;
        c=c*10;
    }
    if((d%10!=0)&&(d%10!=min)){
        d=d/10+1;
        d=d*10;
    }
    if((e%10!=0)&&(e%10!=min)){
        e=e/10+1;
        e=e*10;
    }
    printf("%d",a+b+c+d+e);
    return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:11:7: error: 'min' undeclared (first use in this function); did you mean 'main'?
   11 |       min=a%10;
      |       ^~~
      |       main
main.c:11:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {

    int a,b,c,d,e;
    int sa,sb,sc,sd,se,mins;
    cin >> a >> b >> c >> d >> e;

	sa = a%10; mins = sa;
	sb = b%10; mins = ( sb<mins ? sb : mins )
	sc = c%10; mins = ( sc<mins ? sc : mins )
	sd = d%10; mins = ( sd<mins ? sd : mins )
	se = e%10; mins = ( se<mins ? se : mins )
	a /= 10;
	b /= 10;
	c /= 10;
	d /= 10;
	e /= 10;
	
	cout << (a+b+c+d+e) - (10-mins) << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:50: error: expected ';' before 'sc'
   12 |         sb = b%10; mins = ( sb<mins ? sb : mins )
      |                                                  ^
      |                                                  ;
   13 |         sc = c%10; mins = ( sc<mins ? sc : mins )
      |         ~~                                        
a.cc:13:50: error: expected ';' before 'sd'
   13 |         sc = c%10; mins = ( sc<mins ? sc : mins )
      |                                                  ^
      |                                                  ;
   14 |         sd = d%10; mins = ( sd<mins ? sd : mins )
      |         ~~                                        
a.cc:14:50: error: expected ';' before 'se'
   14 |         sd = d%10; mins = ( sd<mins ? sd : mins )
      |                                                  ^
      |                                                  ;
   15 |         se = e%10; mins = ( se<mins ? se : mins )
      |         ~~                                        
a.cc:15:50: error: expected ';' before 'a'
   15 |         se = e%10; mins = ( se<mins ? se : mins )
      |                                                  ^
      |                                                  ;
   16 |         a /= 10;
      |         ~
Language: C++

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

int main() {
  int a, b, c, d, e, aa, bb, cc, dd, ee, m, n, o, p, i;
  cin >> a >> b >> c >> d >> e;
  
  aa = a % 10;
  bb = b % 10;
  cc = c % 10;
  dd = d % 10;
  ee = e % 10;
  
  if(aa == 0){
    aa += 10;
  }
  
  if(bb == 0){
    bb += 10;
  }
  
  if(cc == 0){
    cc += 10;
  }
  
  if(dd == 0){
    dd += 10;
  }
  
  if(ee == 0){
    ee += 10;
  }
  
  m = min(aa, bb);
  n = min(cc, dd);
  o = min(m, n);
  p = min(o, ee)
  
  for(i = 1; i < 10; i++){
    if(aa == i){
      a += 10 - i;
      break;
    }
  }
  
    for(i = 1; i < 10; i++){
    if(bb == i){
      b += 10 - i;
      break;
    }
  }
  
    for(i = 1; i < 10; i++){
    if(cc == i){
      c += 10 - i;
      break;
    }
  }
  
    for(i = 1; i < 10; i++){
    if(dd == i){
      d += 10 - i;
      break;
    }
  }
  
    for(i = 1; i < 10; i++){
    if(ee == i){
      e += 10 - i;
      break;
    }
  }
  
  cout << a + b + c + d + e - 10 + p << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:17: error: expected ';' before 'for'
   37 |   p = min(o, ee)
      |                 ^
      |                 ;
   38 | 
   39 |   for(i = 1; i < 10; i++){
      |   ~~~            
a.cc:39:25: error: expected ';' before ')' token
   39 |   for(i = 1; i < 10; i++){
      |                         ^
      |                         ;
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<string>

using namespace std;
int main() {
	vector<int>a(5);
	for(auto &e:a)cin>>e;

	int min_=644;
	for(int i=0; i<5; ++i) {
		int ans=0;
		for(int j=0; j<5;++j) {
			if(i==j)continue;
			ans+=ceil((double)a[j]/10.0)*10;
		}
		min_=min(min_, ans+a[i]);
	}
	cout<<min_<<endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:30: error: 'ceil' was not declared in this scope
   16 |                         ans+=ceil((double)a[j]/10.0)*10;
      |                              ^~~~
Language: C++

#include <iostream>
#include <vector>
using namespace std;

int main()
{
  vector<int> v(5);
  for (int i = 0; i < 5; i++) {
    cin >> v[i];
  }
  sort(begin(v), end(v), [](auto a, auto b){return a % 10 < b % 10;});
  int ans = 0;
  int r = 10;
  for (int i = 0; i < 5; i++) {
    if (v[i] % 10 != 0) {
      r = min(r, v[i] % 10);
    }
    ans += (v[i] + 9) / 10 * 10;
  }
  if (r != 10) {
    ans = ans - 10 + r;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   11 |   sort(begin(v), end(v), [](auto a, auto b){return a % 10 < b % 10;});
      |   ^~~~
      |   short
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<string>

using namespace std;
int main() {
	vector<int>a(5);
	for(auto &e:a)cin>>e;

	int min_=644;
	for(int i=0; i<5; ++i) {
		int ans=0;
		for(int j=0; j<5;++j) {
			if(i==j)continue;
			ans+=ceil((double)a[j]/10)*10;
		}
		min_=min(min_, ans+a[i]);
	}
	cout<<min_<<endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:30: error: 'ceil' was not declared in this scope
   16 |                         ans+=ceil((double)a[j]/10)*10;
      |                              ^~~~
Language: C++

#define _overload3(_1,_2,_3,name,...) name
#define _rep(i,n) repi(i,0,n)
#define repi(i,a,b) for(int i=int(a);i<int(b);++i)
#define rep(...) _overload3(__va_args__,repi,_rep,)(__va_args__)
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;

int main(int argc, char* argv[]){
    int a[] = {0, 0, 0, 0, 0};
    rep(i, 5) {
        cin >> a[i];
    }

    int sum = 0;
    rep(i, 5){
        sum += a[i];
        if(a[i] % 10 != 0){
            sum += 10-(a[i] % 10);
        }
    }

    int min = 10;
    int mod;
    rep(i, 5){
        mod = a[i] % 10;
        if(mod != 0){
            min = std::min(min, mod);
        }
    }
    sum -= (10 - min);
    cout << sum << endl;
}




Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:4:53: error: '__va_args__' was not declared in this scope
    4 | #define rep(...) _overload3(__va_args__,repi,_rep,)(__va_args__)
      |                                                     ^~~~~~~~~~~
a.cc:11:5: note: in expansion of macro 'rep'
   11 |     rep(i, 5) {
      |     ^~~
a.cc:16:14: error: expected ';' before '{' token
   16 |     rep(i, 5){
      |              ^
a.cc:25:14: error: expected ';' before '{' token
   25 |     rep(i, 5){
      |              ^
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;

int main() {
    int A, B, C, D, E;
    cin >> A >> B >> C >> D >> E;

    int a, b, c, d, e, ans;

    if (A % 10 != 0) a = 10 - A % 10
    else a = 0
    if (B % 10 != 0) b = 10 - B % 10
    else b = 0
    if (C % 10 != 0) c = 10 - C % 10
    else c = 0
    if (D % 10 != 0) d = 10 - D % 10
    else d = 0
    if (E % 10 != 0) e = 10 - E % 10
    else e = 0

    ans = A + B + C + D + E + a + b + c + d + e - max(a, max(b, max(c, max(d, e))));
   
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:37: error: expected ';' before 'else'
   11 |     if (A % 10 != 0) a = 10 - A % 10
      |                                     ^
      |                                     ;
   12 |     else a = 0
      |     ~~~~
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main(){
  int A[5];
  for(int i=0; i<5; i++)  cin>>A[i];
  int resA[5];
  for(int i=0; i<5; i++) resA[i] = A[i]%10;
  int maxresindex=0;
  int maxresA=0;
  for(int i=0; i<5; i++){
    if(resA[i]>maxresA){
      maxresA=resA[i];
      maxresindex=i;
    }
  }
  int totaltime=0;
  for(int i=0; i<5; i++) totaltime+=(A[i]/10+1)*10;
  totaltime = totaltime - (10-maxresA[]);
  cout<<totaltime;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:39: error: expected primary-expression before ']' token
   19 |   totaltime = totaltime - (10-maxresA[]);
      |                                       ^
Language: C++

#define _overload3(_1,_2,_3,name,...) name
#define _rep(i,n) repi(i,0,n)
#define repi(i,a,b) for(int i=int(a);i<int(b);++i)
#define rep(...) _overload3(__va_args__,repi,_rep,)(__va_args__)
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;

int main(int argc, char* argv[]){
    int a[] = {0, 0, 0, 0, 0};
    rep(i, 5) cin >> a[i];

    int sum = 0;
    rep(i, 5){
        sum += a[i];
        if(a[i] % 10 != 0){
            sum += 10-(a[i] % 10);
        }
    }

    int min = 10;
    int mod;
    rep(i, 5){
        mod = a[i] % 10;
        if(mod != 0){
            min = std::min(min, mod);
        }
    }
    sum -= (10 - min);
    cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:4:53: error: '__va_args__' was not declared in this scope
    4 | #define rep(...) _overload3(__va_args__,repi,_rep,)(__va_args__)
      |                                                     ^~~~~~~~~~~
a.cc:11:5: note: in expansion of macro 'rep'
   11 |     rep(i, 5) cin >> a[i];
      |     ^~~
a.cc:14:14: error: expected ';' before '{' token
   14 |     rep(i, 5){
      |              ^
a.cc:23:14: error: expected ';' before '{' token
   23 |     rep(i, 5){
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  vector<int> data(5);
  for (int i=0; i < 5; i++) cin >> data.at(i);
  int smallest = data.at(0);
  int smallestimdex = 0;
  int answer = 0;
  for (int i=1; i < 5; i++) {
    if (data.at(i)%10 < smallest%10) {
      smallest = data.at(i);
      smallestindex = i;
    }
  }
  answer += data.at(smallestindex);
  for (int i=0; i < 5; i++) {
    data.at(i) = (data.at(i) + 9) / 10;
  }
  for (int i=0; i < 5; i++) {
    answer += data.at(i);
  }
  answer -= data.at(smallestindex);
  cout << answer << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: 'smallestindex' was not declared in this scope; did you mean 'smallestimdex'?
   13 |       smallestindex = i;
      |       ^~~~~~~~~~~~~
      |       smallestimdex
a.cc:16:21: error: 'smallestindex' was not declared in this scope; did you mean 'smallestimdex'?
   16 |   answer += data.at(smallestindex);
      |                     ^~~~~~~~~~~~~
      |                     smallestimdex