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

#include <iostream>
using namespace std;

int main()
{
  int dish[5];
  for(int i = 0; i < 5; i++)
  {
    cin >> dish[i];
  }
  
  for(int j = 0; j < 4; j++)
  {
    for(int k = j + 1; k < 5; k++)
    {
      if(dish[k] % 10 == 0)
      {
        int tmp = dish[j];
        dish[j] = dish[k];
        dish[k] = tmp;
      }
    }
  }
  
  for(int l = 0; l < 4; l++)
  {
    for(int m = l + 1; m < 5; m++)
    {
      if(dish[l] % != 0 && dish[l] % 10 < dish[m] % 10)
      {
        int tmp = dish[l];
        dish[l] = dish[m];
        dish[m] = tmp;
      }
    }
  }
  
  int sum = 0;
  for(int a = 0; a < 4; a++)
  {
    if(dish[a] % 10 == 0)
    {
      sum += dish[a];
    }
    else
    {
      sum += dish[a] - dish[a] % 10 + 10;
    }
  }
  sum += dish[4];
  cout << sum << '\n';
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:20: error: expected primary-expression before '!=' token
   29 |       if(dish[l] % != 0 && dish[l] % 10 < dish[m] % 10)
      |                    ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main () {
  int A, B, C, D, E;
  cin >> A >> B >> C >> D >> E;
  int ans =  A + B + C + D + E;
  int number = 9;
  int time = 0;
  if ( A % 10 <= number || A % 10 != '0' ) {
    number = A % 10;
  }
  time += A % 10;
  if ( B % 10 <= number || B % 10 != '0' ) {
    number = B % 10;
  }
  time += B % 10;
  if ( C % 10 <= number || C % 10 != '0' ) {
    number = C % 10;
  }
  time += C % 10;
  if ( D % 10 <= number || D % 10 != '0' ) {
    number = D % 10;
  }
  time += D % 10;
  if ( E % 10 <= number || E % 10 != '0' ) {
    number = E % 10;
  }
  time += E % 10;
  time -= number;
  time = 40 - time;
  ans += time
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:14: error: expected ';' before 'cout'
   32 |   ans += time
      |              ^
      |              ;
   33 |   cout << ans << endl;
      |   ~~~~
Language: C

#inclide <stdio.h>
 
int main(){
  int a,b,c,d,e;
  scanf("%d\n%d\n%d\n%d\n%d",&a,&b,&c,&d,&e);
  
  int max = 0;
  if((a%10) > (b%10){ max = a%10;}
  else{max = b%10;}
  if((c%10) > max){ max = c%10; }
  if((d%10) > max){ max = d%10; }
  if((e%10) > max){max = e%10;}
  int ia,ib,ic,id,ie;
  ia = a - (a%10) + 10;
  ib = b - (b%10) + 10;
  ic = c - (c%10) + 10;
  id = d - (d%10) + 10;
  ie = e - (e%10) + 10;
  
  printf("%d",ia+ib+ic+id+ie+max);
  
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide <stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d\n%d\n%d\n%d\n%d",&a,&b,&c,&d,&e);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inclide <stdio.h>
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d\n%d\n%d\n%d\n%d",&a,&b,&c,&d,&e);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:21: error: expected ')' before '{' token
    8 |   if((a%10) > (b%10){ max = a%10;}
      |     ~               ^
      |                     )
main.c:22:1: error: expected expression before '}' token
   22 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int A,B,C,D,E,a,b,c,d,e,k;
  int i==0;
  cin >>A;
  cin >>B;
  cin >>C;
  cin >>D;
  cin >>E;
  a==A%10;
  b==B%10;
  c==C%10;
  d==D%10;
  e==E%10;
  if(a<=b,a<=c,a<=d,a<=e){
    k==a;
  }
   if(b<=a,b<=c,b<=d,b<=e){
    k==b;
  }
   if(c<=a,c<=b,c<=d,c<=e){
    k==c;
  }
   if(d<=a,d<=b,d<=c,d<=e){
    k==d;
  }
   if(e<=a,e<=b,e<=c,e<=d){
    k==e;
  }
  if(A%10==0){
    i==i+1;
  }
  if(B%10==0){
    i==i+1;
  }
   if(C%10==0){
    i==i+1;
  }
   if(D%10==0){
    i==i+1;
  }
   if(E%10==0){
    i==i+1;
  }
  cout <<A+B+C+D+E+40-a-b-c-d-e-10*i+k<<endl;
}
    
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected initializer before '==' token
    6 |   int i==0;
      |        ^~
a.cc:33:5: error: 'i' was not declared in this scope
   33 |     i==i+1;
      |     ^
a.cc:36:5: error: 'i' was not declared in this scope
   36 |     i==i+1;
      |     ^
a.cc:39:5: error: 'i' was not declared in this scope
   39 |     i==i+1;
      |     ^
a.cc:42:5: error: 'i' was not declared in this scope
   42 |     i==i+1;
      |     ^
a.cc:45:5: error: 'i' was not declared in this scope
   45 |     i==i+1;
      |     ^
a.cc:47:36: error: 'i' was not declared in this scope
   47 |   cout <<A+B+C+D+E+40-a-b-c-d-e-10*i+k<<endl;
      |                                    ^
Language: C

#inclide <stdio.h>

int main(){
  int a,b,c,d,e;
  scanf(%d\n%d\n%d\n%d\n%d,&a,&b,&c,&d,&e);
  
  int max = 0;
  if((a%10) > (b%10){ max = a%10;}
  else{max = b%10;}
  if((c%10) > max){ max = c%10; }
  if((d%10) > max){ max = d%10; }
  if((e%10) > max){max = e%10;}
  int ia,ib,ic,id,ie;
  ia = a - (a%10) + 10;
  ib = b - (b%10) + 10;
  ic = c - (c%10) + 10;
  id = d - (d%10) + 10;
  ie = e - (e%10) + 10;
  
  printf("%d",ia+ib+ic+id+ie+max);
     }
  
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide <stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf(%d\n%d\n%d\n%d\n%d,&a,&b,&c,&d,&e);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inclide <stdio.h>
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf(%d\n%d\n%d\n%d\n%d,&a,&b,&c,&d,&e);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:9: error: expected expression before '%' token
    5 |   scanf(%d\n%d\n%d\n%d\n%d,&a,&b,&c,&d,&e);
      |         ^
main.c:5:11: error: stray '\' in program
    5 |   scanf(%d\n%d\n%d\n%d\n%d,&a,&b,&c,&d,&e);
      |           ^
main.c:5:15: error: stray '\' in program
    5 |   scanf(%d\n%d\n%d\n%d\n%d,&a,&b,&c,&d,&e);
      |               ^
main.c:5:19: error: stray '\' in program
    5 |   scanf(%d\n%d\n%d\n%d\n%d,&a,&b,&c,&d,&e);
      |                   ^
main.c:5:23: error: stray '\' in program
    5 |   scanf(%d\n%d\n%d\n%d\n%d,&a,&b,&c,&d,&e);
      |                       ^
main.c:8:21: error: expected ')' before '{' token
    8 |   if((a%10) > (b%10){ max = a%10;}
      |     ~               ^
      |                     )
main.c:21:6: error: expected expression before '}' token
   21 |      }
      |      ^
main.c: At top level:
main.c:23:1: error: expected identifier or '(' before '}' token
   23 | }
      | ^
Language: Java

package ResolucaoListaEd01;

import java.util.Scanner;

public class Exercicio {
	public static void main (String[]args){
		Scanner teclado = new Scanner (System.in);		
				int A, B, C, D, E;
				A=teclado.nextInt();
				B=teclado.nextInt();
				C=teclado.nextInt();
				D=teclado.nextInt();
				E=teclado.nextInt();
			do {
				if(A % 10!=0) 
					A +=1;
				if(B%10!=0)
					B+=1;
				if(C%10!=0)
					C+=1;
				if(D%10!=0)
					D+=1;
				if(E%10!=0)
					E+=1;
			 
			 }while(A%10!=0 && B%10!=0 && C%10!=0 && D%10!=0 && E%10!=0 );
			 int soma = A+B+C+D+E;
			 System.out.println();
			 }
		}



Compiler output:
Main.java:5: error: class Exercicio is public, should be declared in a file named Exercicio.java
public class Exercicio {
       ^
1 error
Language: C++

int main(){
	int D[5];
	for(int i = 0;i < 5;i++){
		cin >> D[i];
	}
	int S[5] = {};
	for(int i = 0;i < 5;i++){
		S[i] = D[i]%10;
	}
	int t;
	for(int j = 0;j < 5;j++){
		for(int k = j+1;k < 5;k++){
			if(S[j] > S[k]){
				t = S[j];S[j] = S[k];S[k] = t;
			}
		}
	}
	int m;
	for(int i = 0;i < 5;i++){
		if(S[i] != 0){
			m = S[i];
			break;
		}
	} 
	int ex;
	for(int i = 0;i < 5;i++){
		if(D[i]%10 == m){
			ex = D[i];
			D[i] = 0;
			break;
		}
	}
	int ans = 0;
	for(int i = 0;i < 5;i++){
		ans += (D[i]%10 != 0)?10*((D[i]/10)+1):D[i];
	}
	ans += ex;
	cout << ans;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: 'cin' was not declared in this scope
    4 |                 cin >> D[i];
      |                 ^~~
a.cc:38:9: error: 'cout' was not declared in this scope
   38 |         cout << ans;
      |         ^~~~
Language: C

#include<stdio.h>
#include<math.h>

struct record
{
	int a;
	int b;
	int tag;
};

int one(int a);
int main(void)
{
	struct record a[5];
	int e,f,g=0,i,jud=0,b[5],key=0,sum=0,tasi=0,s=0;
	scanf("%d%d%d%d%d",&a[0].a,&a[1].a,&a[2].a,&a[3].a,&a[4].a);

	for(i=0;i<5;i++) a[i].b = a[i].a;

	for(i=0;i<5;i++) a[i].b = one(a[i].a);

	key = min(min(min(min(a[0].b,a[1].b),a[2].b),a[3].b),a[4].b);

	for(i=0;i<5;i++)
	{
		if(a[i].b == key) s = a[i].a;
		else
		{
			if(a[i].b==10) sum = sum + a[i].a;
			tasi = a[i].a-a[i].b+10;
			sum = sum + tasi;
		}
	}
	sum = sum + s;
	
	return 0;
}

int one(int a)
{
	if(a<10) return a;
	else if(a%10==0) return 10;
	
	else 
	{
		while(1)
		{
			a = a % 10;
			if(a<10) return a;
		}
	
	}
}

Compiler output:
main.c: In function 'main':
main.c:22:15: error: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration]
   22 |         key = min(min(min(min(a[0].b,a[1].b),a[2].b),a[3].b),a[4].b);
      |               ^~~
      |               main
Language: C++

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>
#include <cmath>
#include <map>
#include <fstream>
#include <iterator>
using namespace std;
#include "prettyprint.hpp"

typedef long long ll;

int main()
{
    vector<int> dish(5);
    vector<int> flag(5, 0);

    int amari = 9;
    for (int i = 0; i < 5; ++i)
    {
        cin >> dish[i];
        if (dish[i] % 10 == 0)
        {
            flag[i] = 1;
        }
        else
        {
            amari = min(amari, dish[i] % 10);
            dish[i] += (10 - dish[i] % 10);
        }
    }
    // cout << dish << endl;
    // cout << amari << endl;

    int sum = 0;
    for (int i = 0; i < 5; ++i)
    {
        sum += dish[i];
    }

    int ansflag = 0;
    for (int i = 0; i < 5; ++i)
    {
        ansflag += flag[i];
    }

    if (ansflag == 5)
    {
        cout << sum << endl;
    }
    else
    {
        cout << sum - 10 + amari << endl;
    }
}

Compiler output:
a.cc:16:10: fatal error: prettyprint.hpp: No such file or directory
   16 | #include "prettyprint.hpp"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
    int a[5] min, mod10min, ans;
    min = 123;
    mod10min = 9;
    for(int i = 0; i < 5; i++){
        cin >> a[i];
        if(a[i] % 10 != 0){
            if(a[i] % 10 < mod10min){
                min = a[i];
                mod10min = a[i] % 10;
            }
        }
    }
    ans = 0;
    for(int i = 0; i < 5; i++){
        if(a[i] != min) ans += (a[i] / 10 + 1) * 10;
    }
    ans += min;
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected initializer before 'min'
    5 |     int a[5] min, mod10min, ans;
      |              ^~~
a.cc:6:11: error: overloaded function with no contextual type information
    6 |     min = 123;
      |           ^~~
a.cc:7:5: error: 'mod10min' was not declared in this scope
    7 |     mod10min = 9;
      |     ^~~~~~~~
a.cc:9:16: error: 'a' was not declared in this scope
    9 |         cin >> a[i];
      |                ^
a.cc:17:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |     ans = 0;
      |     ^~~
      |     abs
a.cc:19:12: error: 'a' was not declared in this scope
   19 |         if(a[i] != min) ans += (a[i] / 10 + 1) * 10;
      |            ^
Language: C++

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

int main() {
  int a,b,c,d,e,k,l,m,n,;
  cin >> a >> b >> c >> d >> e;
  if (a % 10 != 0){
    while (a % 10 ==0 ){
      a++;
    }
  }
  k = a + b;
  if (k % 10 != 0){
    while (k % 10 == 0){
      k++;
    }
  }
  l += c;
  if (l % 10 != 0){
    while (l % 10 == 0){
      l++;
    }
  }
  m += d;
  if (m % 10 != 0){
    while (m % 10 == 0){
      m++;
    }
  }
  n += e;
  cout << n << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:25: error: expected unqualified-id before ';' token
    5 |   int a,b,c,d,e,k,l,m,n,;
      |                         ^
Language: C++

#include <iostream>                                                                                                     using namespace std;

int main(){
  int input[5], max = 0, maxi = 0, tmp[5];
  int sum = 0;
  for(int i = 0; i < 5; i++){
    cin >> input[i];
    tmp[i] = (input[i] % 10 == 0) ? 0 : 10 - input[i] % 10;
    if(max < tmp[i]){
      max = tmp[i];
      maxi = i;
    }
  }

  for(int i = 0; i < 5; i++){
    sum += input[i];
    if(i != maxi){
      sum += tmp[i];
    }
  }

  cout << sum << endl;

  return 0;
}

Compiler output:
a.cc:1:121: warning: extra tokens at end of #include directive
    1 | #include <iostream>                                                                                                     using namespace std;
      |                                                                                                                         ^~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin >> input[i];
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:22:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |   cout << sum << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:22:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   22 |   cout << sum << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.*;
import static java.lang.Math.*;

public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        int[] time = new int[5];
        for(int i = 0; i < 5; i++){
            time[i] = scan.nextInt();
        }

        int[] time2 = new int[5];
        for(int i = 0; i < 5; i++){
            time2[i] = (int)ceil( (double)(time[i])/10.0 ) * 10;
        }


        int max = 0;
        int count = 0;
        int tmp =0;
        for(int i = 0; i < 5; i++){

            tmp = time2[i]-time[i];
            if(max <= tmp){
                max = tmp;
                count = i;
            }
        }

        int ans = 0;
        for(int i = 0; i < 5; i++) {

            if(i == count){

                ans += time[i];

            }else{

                ans += time2[i];
            }
        }

        System.out.println(ans);
    }


Compiler output:
Main.java:47: error: reached end of file while parsing
    }
     ^
1 error
Language: C

#include <stdio.h>
int amari(int x){
  return x % 10; 
}
 
int min(int x[5]){
  int min = x[0];
  int i, count = 0;
  for(i=1;i<5;i++){
    if(x[i] == 0){
      
      continue;
    }
    else if(min > x[i]) {
      min = x[i]; count=i;
    }
  }
  return count;
}
 
int main(void){
  int A, B, C, D, E, k, l=0;
  int a[5], i;
  scanf("%d",&A);
  scanf("%d",&B);
  scanf("%d",&C);
  scanf("%d",&D);
  scanf("%d",&E);
  a[0] = amari(A);
  a[1] = amari(B);
  a[2] = amari(C);
  a[3] = amari(D);
  a[4] = amari(E);
  k = min(a);
  for(i=0;i<5;i++){
   if(a[i] == 0) l++;
  }
  if(l = 5) l -= 1;
  if(k == 0) {
    printf("%d",A+B+C+D+E+40-l*10-a[1]-a[2]-a[3]-a[4]);
  }
  else if(k == 1) printf("%d",A+B+C+D+E+40-l*10-a[0]-a[2]-a[3]-a[4]);
  else if(k == 2) printf("%d",A+B+C+D+E+40-l*10-a[0]-a[1]-a[3]-a[4]);
  else if(k == 3) printf("%d",A+B+C+D+E+40-l*10-a[0]-a[1]-a[2]-a[4]);
  else printf("%d",A+B+C+D+E+40-l*10-a[0]-a[2]-a[3]-a[1]);
  
  printf("\n");
  return 0;
}
#include <stdio.h>
int amari(int x){
  return x % 10; 
}

int min(int x[5]){
  int min = x[0];
  int i, count = 0;
  for(i=1;i<5;i++){
    if(x[i] == 0){
      
      continue;
    }
    else if(min > x[i]) {
      min = x[i]; count=i;
    }
  }
  return count;
}

int main(void){
  int A, B, C, D, E, k, l=0;
  int a[5], i;
  scanf("%d",&A);
  scanf("%d",&B);
  scanf("%d",&C);
  scanf("%d",&D);
  scanf("%d",&E);
  a[0] = amari(A);
  a[1] = amari(B);
  a[2] = amari(C);
  a[3] = amari(D);
  a[4] = amari(E);
  k = min(a);
  for(i=0;i<5;i++){
   if(a[i] == 0) l++;
  }
  if(l == 5) l -= 1;
  if(k == 0) {
    printf("%d",A+B+C+D+E+40-l*10-a[1]-a[2]-a[3]-a[4]);
  }
  else if(k == 1) printf("%d",A+B+C+D+E+40-l*10-a[0]-a[2]-a[3]-a[4]);
  else if(k == 2) printf("%d",A+B+C+D+E+40-l*10-a[0]-a[1]-a[3]-a[4]);
  else if(k == 3) printf("%d",A+B+C+D+E+40-l*10-a[0]-a[1]-a[2]-a[4]);
  else printf("%d",A+B+C+D+E+40-l*10-a[0]-a[2]-a[3]-a[1]);
  
  printf("\n");
  return 0;
}

Compiler output:
main.c:51:5: error: redefinition of 'amari'
   51 | int amari(int x){
      |     ^~~~~
main.c:2:5: note: previous definition of 'amari' with type 'int(int)'
    2 | int amari(int x){
      |     ^~~~~
main.c:55:5: error: redefinition of 'min'
   55 | int min(int x[5]){
      |     ^~~
main.c:6:5: note: previous definition of 'min' with type 'int(int *)'
    6 | int min(int x[5]){
      |     ^~~
main.c:70:5: error: redefinition of 'main'
   70 | int main(void){
      |     ^~~~
main.c:21:5: note: previous definition of 'main' with type 'int(void)'
   21 | int main(void){
      |     ^~~~
Language: C++

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


int main(){
  vector<int> A(5);
  vector<int> B(5);
  for(int i = 0; i < 5; i++) cin >> A[i];
  for(int i = 0; i < 5; i++) B[i] = (A[i] + 10 - 1) / 10 - A[i];
  vector<pair<int,int>> P(5);
  for(int i = 0; i < 5; i++){
    P[i] = make_pair(B[i],A[i]);
  }
  sort(P.begin(),P.end());
  int ans  = 0;
  for(int i = 0; i < 5; i++){
    ans += P[i].first + P[i].second;
  }
  cout << ans;
}

Compiler output:
a.cc:3:10: fatal error: pair: No such file or directory
    3 | #include <pair>
      |          ^~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;
int a,b,c,d,e=0;
int A,B,C,D,E;
int ans;
int main(){
cin>>A>>B>>C>>D>>E;
  if(A%10==0){
	a++;
    ans+=A;
  }
    if(B%10==0){
ans+=B;b++;
  } 
    if(C%10==0){
ans+=C;c++;
  }
    if(D%10==0){
ans+=D;d++;
  }
    if(E%10==0){
ans+=E;e++;
  }
  if(a==0)ans+=A+10-A%10;
  if(b==0)ans+=B+10-B%10;
  if(c==0)ans+=C+10-C%10;
  if(d==0)ans+=D+10-D%10;
  if(e==0)ans+=E+10-E%10;
  int t=min({(A-1)%10,(B-1)%10,(C-1)%10,(D-1)%10,(E-1)%10});
  if(t==(A-1)%10)ans-=10-A%10;
  if(t==(B-1)%10)ans-=10-B%10;
  if(t==(C-1)%10)ans-=10-C%10;
  if(t==(D-1)%10)ans-=10-D%10;
  if(t==(E-1)%10)ans-=10-E%10;
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:12: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   29 |   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

e<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;
  int min=0;
  int i=0;
  a = A%10;
  b = B%10;
  c = C%10;
  d = D%10;
  e = E%10;
  
  if(a!=0){
  min=a;
  if(b<min & b!=0) min=b;
  if(c<min & c!=0) min=c;
  if(d<min & d!=0) min=d;
  if(e<min & e!=0) min=e;
  }
  if(b!=0){
  min=b;
  if(c<min & b!=0) min=b;
  if(d<min & c!=0) min=c;
  if(e<min & d!=0) min=d;
  if(a<min & e!=0) min=e;
  }  
  if(c!=0){
  min=c;
  if(d<min & b!=0) min=b;
  if(e<min & c!=0) min=c;
  if(a<min & d!=0) min=d;
  if(b<min & e!=0) min=e;
  }
  if(d!=0){
  min=d;
  if(e<min & b!=0) min=b;
  if(a<min & c!=0) min=c;
  if(b<min & d!=0) min=d;
  if(c<min & e!=0) min=e;
  }
  if(e!=0){
  min=e;
  if(a<min & b!=0) min=b;
  if(b<min & c!=0) min=c;
  if(c<min & d!=0) min=d;
  if(d<min & e!=0) min=e;
  }
  
  if(a==0) i++;
  if(b==0) i++;
  if(c==0) i++;
  if(d==0) i++;
  if(e==0) i++;
  
  if(min==a & a!=0){ printf("%d",B+C+D+E-(b+c+d+e)+40+A);
            }else if(min==b & b!=0){printf("%d",A+C+D+E-(a+c+d+e)+40-10*i+B);
            }else if(min==c & c!=0){printf("%d",A+B+D+E-(a+b+d+e)+40-10*i+C);
            }else if(min==d & d!=0){printf("%d",A+B+C+E-(a+b+c+e)+40-10*i+D);
            }else if(min==e & e!=0){printf("%d",A+B+C+D-(a+b+c+d)+40-10*i+E);
   }else if(min==0){printf("%d",A+B+C+D+E);
        }
  
  return 0;
  
}


Compiler output:
main.c:1:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | e<stdio.h>
      |  ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int dish[5];
  for(int i = 0; i < 5; i++)
  {
    cin >> dish[i];
  }
  for(int j = 0; j < 4; j++)
  {
    for(int k = j + 1; k < 5; k++)
    {
      if(dish[j] % 10 < dish[k] % 10 || dish[k] % 10 == 0)
      {
        int tmp = dish[j];
        dish[j] = dish[k];
        dish[k] = tmp;
      }
    }
  }
  int sum = 0;
  for(int a = 0; a < 4; a++)
  {
    if(dish[a] % 10)
    {
      sum += dish[a];
    }
    else
    {
      sum += dish[a] - dish[a] % 10 + 10;
    }
  }
  sum += dish[4]
  cout << sum << '\n';
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:17: error: expected ';' before 'cout'
   35 |   sum += dish[4]
      |                 ^
      |                 ;
   36 |   cout << sum << '\n';
      |   ~~~~
Language: C++

#intmain <iostream>
#intmain <math.h>
using namespace std;
int main(){
  float time[5];
  int ans=0;
  for(int i=0;i<5;i++){
    cin>>time[i];
  }
  for(int i=0;i<5;i++){
    ans=ans+ceil(time[i]/10);
  }
  cout<<ans*10<<endl;
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #intmain
    1 | #intmain <iostream>
      |  ^~~~~~~
a.cc:2:2: error: invalid preprocessing directive #intmain
    2 | #intmain <math.h>
      |  ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin>>time[i];
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #intmain <iostream>
a.cc:11:13: error: 'ceil' was not declared in this scope
   11 |     ans=ans+ceil(time[i]/10);
      |             ^~~~
a.cc:13:3: error: 'cout' was not declared in this scope
   13 |   cout<<ans*10<<endl;
      |   ^~~~
a.cc:13:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:17: error: 'endl' was not declared in this scope
   13 |   cout<<ans*10<<endl;
      |                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #intmain <iostream>
Language: C++

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

int main(){
  int A[6], v, a[6], max_a, max_i = 0;
  for ( int i = 0 ; i < 5; i++){
    cin >> A[i];
    if (A[i] < 10) a[i] = to_string(A[i])[0] - '0';
    else if ( A[i] < 100 ) a[i] = to_string(A[i])[1] - '0';
    else a[i] = to_string(A[i])[2] - '0';
    if (a[i] < a[max_i] && a[i] > 0 ) max_i = i;
  }

  int sum = 0;
  for ( int i = 0; i < 5; i++){
    if ( i == max_i || a[i] == 0 ) sum += A[i];
    else {
      sum += ( A[i] + 10 - a[i] );
    }
  }

  cout << sum << endl;

  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:25:12: error: expected '}' at end of input
   25 |   return 0;
      |            ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

using namespace std;
int main(){
  float time[5];
  int ans=0;
  for(int i=0;i<5;i++){
    cin>>time[i];
  }
  for(int i=0;i<5;i++){
    ans=ans+ceil(time[i]/10);
  }
  cout<<ans*10<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>time[i];
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:9:13: error: 'ceil' was not declared in this scope
    9 |     ans=ans+ceil(time[i]/10);
      |             ^~~~
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout<<ans*10<<endl;
      |   ^~~~
a.cc:11:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:17: error: 'endl' was not declared in this scope
   11 |   cout<<ans*10<<endl;
      |                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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

int main(){
  vector<int> s(5);
  for(int i=0;i<5;i++){
    cin >> s[i];
  }
  int min=10;
  int ans=0;
  for(int i=0;i<5;i++){
    if(min>(s[i]-1)%10){
      min = s[i]%10;
    }
    if(s[i]%10!=0){
      s[i] = (s[i]/10+1)*10;
    }
    ans+=s[i];
  }
  if(ans
  cout << ans + min -10 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: expected ';' before 'cout'
   20 |   if(ans
      |         ^
      |         ;
   21 |   cout << ans + min -10 << endl;
      |   ~~~~   
a.cc:22:1: error: expected primary-expression before '}' token
   22 | }
      | ^
a.cc:21:33: error: expected ')' before '}' token
   21 |   cout << ans + min -10 << endl;
      |                                 ^
      |                                 )
   22 | }
      | ~                                
a.cc:20:5: note: to match this '('
   20 |   if(ans
      |     ^
a.cc:22:1: error: expected primary-expression before '}' token
   22 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  vector<int>vec(5);
  vector<int>cnt;
  int ans;
  bool jug=false;
  for(int i=0;i<5;i++) {
    cin >> vec[i];
    ans+=vec[i];
    if(vec[i]%10!=0){
      ans=ans+10-vec[i]%10;
      cnt.push_back(vec[i]%10);
      jug=true;
    }
  }
  
  if(jug){
  sort(cnt.begin(),cnt.end());
  cout<< ans-10+cnt[0];
  }else{
    cout << ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

class Menu{
  public:
    int time;
  Menu(int t){
    time = t;
  }
  bool operator<(const Menu &another) const
  {
    return time%10 < another.time%10;
  };
};

int main(){
  vector<Menu> menuList;
  int tempT,flag = 0,sum = 0;
  for (int ite=0;ite<5;ite++){
    cin >> tempT;
    menuList.push_back(Menu(tempT));
  }
  sort(menuList.begin(),menuList.end());
  for (int ite=0;ite<5;ite++){
    if(menuList[ite].time%10 == 0){
      sum += menuList[ite].time;
    }else{
      if(flag == 0){
        sum += menuList[ite].time;
        flag++;

        continue;
      }
      menuList[ite].time = menuList[ite].time + 10 - menuList[ite].time%10;
      sum += menuList[ite].time;
    }
  }
  cout << sum << endl;
}

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

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  vector<int>vec(5);
  vector<int>cnt;
  int ans;
  bool jug=false;
  for(int i=0;i<5;i++) {
    cin >> vec[i];
    ans+=vec[i];
    if(vec[i]%10!=0){
      ans=ans+10-vec[i]%10;
      cnt.push_back(vec[i]%10);
      jug=true;
    }
  }
  
  if(jug){
  sort(cnt.begin(),cnt.end());
  cout<< ans-10+cnt[0];
  }else{
    cout << a+b+c+d+e;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:13: error: 'a' was not declared in this scope
   23 |     cout << a+b+c+d+e;
      |             ^
a.cc:23:15: error: 'b' was not declared in this scope
   23 |     cout << a+b+c+d+e;
      |               ^
a.cc:23:17: error: 'c' was not declared in this scope
   23 |     cout << a+b+c+d+e;
      |                 ^
a.cc:23:19: error: 'd' was not declared in this scope
   23 |     cout << a+b+c+d+e;
      |                   ^
a.cc:23:21: error: 'e' was not declared in this scope
   23 |     cout << a+b+c+d+e;
      |                     ^
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main() {
  //入力
  vector<int>abc(5);
  for(int i=0;i<5;i++)
  {
    cin >> abc[i];
  }

  //処理
  int ans=0;
  for(int i=0;i<5;i++)
  {
    ans+=abc[i];
    abc[i]=abc[i]%10
  }
  sort(abc.begin(),abc.end());
  //reverse(abc.begin(),abc.end());
  ans+=40-(abc[0]%10+abc[1]%10+abc[2]%10+abc[3]%10+abc[4]%10)+abc[0];

  cout << ans <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:21: error: expected ';' before '}' token
   17 |     abc[i]=abc[i]%10
      |                     ^
      |                     ;
   18 |   }
      |   ~
Language: C++

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

class Menu{
  public:
    int time;
  Menu(int t){
    time = t;
  }
  bool operator<(const Menu &another) const
  {
    return time%10 < another.time%10;
  };
};

int main(){
  vector<Menu> menuList;
  int tempT,flag = 0,sum = 0;
  for (int ite=0;ite<5;ite++){
    cin >> tempT;
    menuList.push_back(Menu(tempT));
  }
  std::sort(menuList.begin(),menuList.end());
  for (int ite=0;ite<5;ite++){
    if(menuList[ite].time%10 == 0){
      sum += menuList[ite].time;
    }else{
      if(flag == 0){
        sum += menuList[ite].time;
        flag++;

        continue;
      }
      menuList[ite].time = menuList[ite].time + 10 - menuList[ite].time%10;
      sum += menuList[ite].time;
    }
  }
  cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   24 |   std::sort(menuList.begin(),menuList.end());
      |        ^~~~
      |        qsort
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;
  
  if(a!=0){
  min=a;
  if(b<min & b!=0) min=b;
  if(c<min & c!=0) min=c;
  if(d<min & d!=0) min=d;
  if(e<min & e!=0) min=e;
  }
  if(b!=0){
  min=a;
  if(c<min & b!=0) min=b;
  if(d<min & c!=0) min=c;
  if(e<min & d!=0) min=d;
  if(a<min & e!=0) min=e;
  }  
  if(c!=0){
  min=c;
  if(d<min & b!=0) min=b;
  if(e<min & c!=0) min=c;
  if(a<min & d!=0) min=d;
  if(b<min & e!=0) min=e;
  }
  if(d!=0){
  min=d;
  if(e<min & b!=0) min=b;
  if(a<min & c!=0) min=c;
  if(b<min & d!=0) min=d;
  if(c<min & e!=0) min=e;
  }
  if(e!=0){
  min=e;
  if(a<min & b!=0) min=b;
  if(b<min & c!=0) min=c;
  if(c<min & d!=0) min=d;
  if(d<min & e!=0) 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);
   }else{printf("%d",A+B+C+D+E);
  
  return 0;
  
}


Compiler output:
main.c: In function 'main':
main.c:64:1: error: expected declaration or statement at end of input
   64 | }
      | ^
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    
    int[] menu = new int[5];
    for (int i=0; i<menu.length; i++) {
      menu[i] = sc.nextInt();
    }
    
    int max = 0;
    int flag = 0;
    for (int i=0; i<menu.length; i++) {
      int tmp = Integer.parseInt(Math.ceil((double)menu[i]/10)*10);
      if (max < tmp-menu[i]) {
        flag = i;
        max = tmp-menu[i];
      }
    }
    
    int time = 0;
    for (int i=0; i<menu.length; i++) {
      if (i==flag) continue;
      
      time += Integer.parseInt(Math.ceil((double)menu[i]/10)*10);
    }
    
    time += menu[flag];
    
    System.out.println(time);
  }
}


Compiler output:
Main.java:15: error: incompatible types: double cannot be converted to String
      int tmp = Integer.parseInt(Math.ceil((double)menu[i]/10)*10);
                                                              ^
Main.java:26: error: incompatible types: double cannot be converted to String
      time += Integer.parseInt(Math.ceil((double)menu[i]/10)*10);
                                                            ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: C

#include <stdio.h>

int main(void){
  int time[5],i,timest[5],mintime=10,minum,sum=0;
  for(i=0;i<5;i++){
    scanf("%d",&time[i]);
    timest[i] = time[i]%10;
    if(timest[i] < mintime&&timest != 0)
      minum = i;
  }
  for(i=0;i<5;i++){
    if(i != minum && timest[i] != 0){
      time[i] = time[i]/10*10+10;
    }
    sum += time[i];
    
  }
  peintf("%d\n",sum);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:3: error: implicit declaration of function 'peintf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |   peintf("%d\n",sum);
      |   ^~~~~~
      |   printf
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:14:6: error: expected expression before 'if'
   14 |     (if(a[x]%10)!=0) a[x]=a[x]+10-(a[x]%10);
      |      ^~
main.c:14:21: error: expected ';' before 'a'
   14 |     (if(a[x]%10)!=0) a[x]=a[x]+10-(a[x]%10);
      |                     ^~
      |                     ;
Language: C

#include <stdio.h>

int main(void){
  int time[5],i,timest[5],mintime=10,minum,sum=0;
  for(i=0;i<5;i++){
    scanf("%d",&time[i]);
    time1st[i] = time[i]%10;
    if(timest[i] < mintime&&timest != 0)
      minum = i;
  }
  for(i=0;i<5;i++){
    if(i != minum && timest[i] != 0){
      time[i] = time[i]/10*10+10;
    }
    sum += time[i];
    
  }
  peintf("%d\n",sum);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'time1st' undeclared (first use in this function); did you mean 'timest'?
    7 |     time1st[i] = time[i]%10;
      |     ^~~~~~~
      |     timest
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:3: error: implicit declaration of function 'peintf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |   peintf("%d\n",sum);
      |   ^~~~~~
      |   printf
Language: C

#include <stdio.h>
#include <stdlib.h>

int main()
{
   int a[5]={0},i,max,sum,t=0,b[5]={0};
   sum=0;
   for(i=0;i<5;i++)
    scanf("%d",&a[i]);
   for(i=0;i<5;i++)
   {
       if(a[i]%10==0)
        b[i]=0;
       else
       b[i]=10-a[i]%10;
   }
   max=b[0];
   for(i=1;i<5;i++)
   {
       if(b[i]>max)
        max=b[i];
   }
   for(i=0;i<5;i++)
   {
       if(b[i]==max)
       t++;
   }
   for(i=0;i<5;i++)
   {
       if(t==1)
       {
           if(b[i]==max)
            sum=sum+a[i];
           else
            sum=sum+b[i]+a[i];
       }
       else
       {
           sum=sum+b[i]+a[i];
       }
   }
   if(t!=1)
   sum=sum-(6-t)*max;
   printf("%d",sum);


Compiler output:
main.c: In function 'main':
main.c:44:4: error: expected declaration or statement at end of input
   44 |    printf("%d",sum);
      |    ^~~~~~
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    
    int[] menu = new int[5];
    for (int i=0; i<menu.length; i++) {
      menu[i] = sc.nextInt();
    }
    
    int max = 0;
    int flag = 0;
    for (int i=0; i<menu.length; i++) {
      int tmp = Math.ceil((double)menu[i]/10)*10;
      if (max < tmp-menu[i]) {
        flag = i;
        max = tmp-menu[i];
      }
    }
    
    for (int i=0; i<menu.length; i++) {
      if (i==flag) continue;
      
      time += Math.ceil((double)menu[i]/10)*10;
    }
    
    time += menu[flag];
    
    System.out.println(time);
  }
}

Compiler output:
Main.java:15: error: incompatible types: possible lossy conversion from double to int
      int tmp = Math.ceil((double)menu[i]/10)*10;
                                             ^
Main.java:25: error: cannot find symbol
      time += Math.ceil((double)menu[i]/10)*10;
      ^
  symbol:   variable time
  location: class Main
Main.java:28: error: cannot find symbol
    time += menu[flag];
    ^
  symbol:   variable time
  location: class Main
Main.java:30: error: cannot find symbol
    System.out.println(time);
                       ^
  symbol:   variable time
  location: class Main
4 errors
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:14:6: error: expected expression before 'if'
   14 |     (if(a[x]%10)!=0) a[x]+=10-(a[x]%10);
      |      ^~
main.c:14:21: error: expected ';' before 'a'
   14 |     (if(a[x]%10)!=0) a[x]+=10-(a[x]%10);
      |                     ^~
      |                     ;
Language: C++

#include<stdio.h>
int main(){
	int a,b,c,d,e,n,t;
	scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
	n=a%10;
	if(n>b%10){n=b%10;}
	if(n>c%10){n=c%10;}
	if(n>d%10){n=d%10;}
	if(n>e%10){n=e%10;}
	int A=B=C=D=E=1;
	if(a%10==0){A=0;}
	if(b%10==0){B=0;}
	if(c%10==0){C=0;}
	if(d%10==0){D=0;}
	if(e%10==0){E=0;}
	t=(a/10+b/10+c/10+d/10+e/10+A+B+C+D+E-1)*10+n;
	printf("\n%d",t);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'B' was not declared in this scope
   10 |         int A=B=C=D=E=1;
      |               ^
a.cc:10:17: error: 'C' was not declared in this scope
   10 |         int A=B=C=D=E=1;
      |                 ^
a.cc:10:19: error: 'D' was not declared in this scope
   10 |         int A=B=C=D=E=1;
      |                   ^
a.cc:10:21: error: 'E' was not declared in this scope
   10 |         int A=B=C=D=E=1;
      |                     ^
Language: C++

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

int main(){
    int a,b,c,d,e;
    cin>>a>>b>>c>>d>>e;
    int f,g,h,i,j;
    f=a%10;
    g=b%10;
    h=c%10;
    i=d%10;
    j=e%10;
    int m=0;

    if(!(f==0)&&!(g==0)m=min(f,g);
    if(!(h==0))m=min(m,h);
    if(!(i==0))m=(m,i);
    if(!(j==0))m=(j,j);
    int sum=a+b+c+d+e+(40-f-g-h-i-j)+m;
    cout<<sum<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: expected ';' before 'm'
   17 |     if(!(f==0)&&!(g==0)m=min(f,g);
      |                        ^
      |                        ;
a.cc:18:5: error: expected primary-expression before 'if'
   18 |     if(!(h==0))m=min(m,h);
      |     ^~
a.cc:17:35: error: expected ')' before 'if'
   17 |     if(!(f==0)&&!(g==0)m=min(f,g);
      |       ~                           ^
      |                                   )
   18 |     if(!(h==0))m=min(m,h);
      |     ~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:14:19: error: expected ';' before 'a'
   14 |     ((a[x]%10)!=0) a[x]+=10-(a[x]%10);
      |                   ^~
      |                   ;
Language: C++

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

int main() {
  //入力
  vector<int>abc(5);
  for(int i=0;i<5;i++)
  {
    cin >> abc[i];
  }

  //処理
  int ans=abc[0]+abc[1]+abc[2]+abc[3]+abc[4];
  sort(abc.begin(),abc.end());
  reverse(abc.begin(),abc.end());
  ans+=40-(abc[0]%10+abc[1]%10+abc[2]%10+abc[3]%10+abc[4]%10)+abc[0];

  cout << ans <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   15 |   sort(abc.begin(),abc.end());
      |   ^~~~
      |   short
a.cc:16:3: error: 'reverse' was not declared in this scope
   16 |   reverse(abc.begin(),abc.end());
      |   ^~~~~~~
Language: C

#include <stdio.h>

int main(int argc, char const *argv[]) {
  int Time[5],i,max=0,max_i,total=0;

  for (i = 0; i < 5; i++) {
    scanf("%d", &Time[i]);
  }

  for (i = 0; i < 5; i++) {
    if (max < Time[i]) {
      max = Time[i];
      max_i = i;
    }
  }

  for (i = 0; i < 5; i++) {
    if (i == max_i) {
      total += Time[i]
    } else {
      if (Time[i] % 10 != 0) {
        total += Time[i] + (10 - (Time[i] % 10));
      } else {
        total += Time[i];
      }
    }
  }

  printf("%d\n",total);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:19:23: error: expected ';' before '}' token
   19 |       total += Time[i]
      |                       ^
      |                       ;
   20 |     } else {
      |     ~
Language: C++

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

int main() {
  //入力
  vector<int>abc(5);
  for(int i=0;i<5;i++)
  {
    cin >> abc[i];
  }

  //処理
  int ans=a+b+c+d+e;
  sort(abc.begin(),abc.end());
  reverse(abc.begin(),abc.end());
  ans+=40-(abc[0]%10+abc[1]%10+abc[2]%10+abc[3]%10+abc[4]%10)+abc[0];

  cout << ans <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int>abc(5);
      |   ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include<algorithm>
  +++ |+#include <vector>
    3 | using namespace std;
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int>abc(5);
      |          ^~~
a.cc:10:12: error: 'abc' was not declared in this scope; did you mean 'abs'?
   10 |     cin >> abc[i];
      |            ^~~
      |            abs
a.cc:14:11: error: 'a' was not declared in this scope
   14 |   int ans=a+b+c+d+e;
      |           ^
a.cc:14:13: error: 'b' was not declared in this scope
   14 |   int ans=a+b+c+d+e;
      |             ^
a.cc:14:15: error: 'c' was not declared in this scope
   14 |   int ans=a+b+c+d+e;
      |               ^
a.cc:14:17: error: 'd' was not declared in this scope
   14 |   int ans=a+b+c+d+e;
      |                 ^
a.cc:14:19: error: 'e' was not declared in this scope
   14 |   int ans=a+b+c+d+e;
      |                   ^
a.cc:15:8: error: 'abc' was not declared in this scope; did you mean 'abs'?
   15 |   sort(abc.begin(),abc.end());
      |        ^~~
      |        abs
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <string>
#include <queue>
#include <stack>
#include <math.h>

#define MOD 1000000007
#define INF INT_MAX
#define NINF INT_MIN
#define LLINF LLONG_MAX
using ll = long long;
using namespace std;


int main() {
    int a, b, c, d, e, t = 0, k = INF;
    cin >> a >> b >> c >> d >> e;
    t += (a + 9) / 10 * 10;
    t += (b + 9) / 10 * 10;
    t += (c + 9) / 10 * 10;
    t += (d + 9) / 10 * 10;
    t += (e + 9) / 10 * 10;
    if (a % 10 != 0) {
        k = min(k, a % 10);
    }
    if (b % 10 != 0) {
        k = min(k, b % 10);
    }
    if (c % 10 != 0) {
        k = min(k, c % 10);
    }
    if (d % 10 != 0) {
        k = min(k, d % 10);
    }
    if (e % 10 != 0) {
        k = min(k, e % 10);
    }
    if (k != INF) {
        t += k - 10;
    }
    cout << t << endl;
    getchar(); getchar();
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'INT_MAX' was not declared in this scope
   11 | #define INF INT_MAX
      |             ^~~~~~~
a.cc:19:35: note: in expansion of macro 'INF'
   19 |     int a, b, c, d, e, t = 0, k = INF;
      |                                   ^~~
a.cc:9:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    8 | #include <math.h>
  +++ |+#include <climits>
    9 |
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:17: error: expected ';' before 'a'
   14 |     (a[x]%10!=0) a[x]+=10-a[x]%10;
      |                 ^~
      |                 ;
Language: C

#include<stdio.h>

int main(){
  int a,b,c,d,e,aa,bb,cc,dd,ee,t=1;
  scanf("%d", &a);
  scanf("%d", &b);
  scanf("%d", &c);
  scanf("%d", &d);
  scanf("%d", &e);

  aa=a%10; bb=b%10; cc=c%10; dd=d%10; ee=e%10;

  if(aa>0){
    num=a;
  }else if(bb>0){
    num=b;
  }else if(cc>0){
    num=c;
  }else if(dd>0){
    num=d;
  }else if(ee>0){
    num=e;
  }else{
    printf("%d",a+b+c+d+e);
    return 0;
  }

  if(num%10>bb&&bb>0){
    num=bb;
    t=2;
  }
  if(num%10>cc&&cc>0){
    num=cc;
    t=3;
  }
  if(num%10>dd&&dd>0){
    num=dd;
    t=4;
  }
  if(num%10>ee&&ee>0){
    num=ee;
    t=5;
  }

  if(t=1){
    printf("%d",num+b+10-b%10+c+10-c%10+d+10-d%10+e+10-e%10);
  }
  if(t=2){
    printf("%d",num+a+10-a%10+c+10-c%10+d+10-d%10+e+10-e%10);
  }
  if(t=3){
    printf("%d",num+b+10-b%10+a+10-a%10+d+10-d%10+e+10-e%10);
  }
  if(t=4){
    printf("%d",num+b+10-b%10+c+10-c%10+a+10-a%10+e+10-e%10);
  }
  if(t=5){
    printf("%d",num+b+10-b%10+c+10-c%10+d+10-d%10+a+10-a%10);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:5: error: 'num' undeclared (first use in this function)
   14 |     num=a;
      |     ^~~
main.c:14:5: note: each undeclared identifier is reported only once for each function it appears in