criyle/codenet-compile-errors huggingface dataset:
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 = 5;
  
  vector<int> Time = [a, b, c, d, e];
  vector<int> nextTime(N);
  for (int i = 0; i < N; i++) {
    nextTime[i] = (Time[i] + 9) / 10 * 10;
  }
  
  int BestTime = 9999999999;
  
  for (int i = 0; i < N; i++) {
    int Sumtime = 0;
    for (int j = 0; j < N; j++){
      if (i == j) {
        SumTime += nextTime[j];
      }else {
        SumTime += nextTime[j];
      }
    }
    BestTime = min(BestTime, SumTime);
  }
  cout << BestTime << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'vector' was not declared in this scope
   10 |   vector<int> Time = [a, b, c, d, e];
      |   ^~~~~~
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:10:10: error: expected primary-expression before 'int'
   10 |   vector<int> Time = [a, b, c, d, e];
      |          ^~~
a.cc:11:10: error: expected primary-expression before 'int'
   11 |   vector<int> nextTime(N);
      |          ^~~
a.cc:13:5: error: 'nextTime' was not declared in this scope
   13 |     nextTime[i] = (Time[i] + 9) / 10 * 10;
      |     ^~~~~~~~
a.cc:13:20: error: 'Time' was not declared in this scope; did you mean 'time'?
   13 |     nextTime[i] = (Time[i] + 9) / 10 * 10;
      |                    ^~~~
      |                    time
a.cc:16:18: warning: overflow in conversion from 'long int' to 'int' changes value from '9999999999' to '1410065407' [-Woverflow]
   16 |   int BestTime = 9999999999;
      |                  ^~~~~~~~~~
a.cc:22:9: error: 'SumTime' was not declared in this scope; did you mean 'Sumtime'?
   22 |         SumTime += nextTime[j];
      |         ^~~~~~~
      |         Sumtime
a.cc:22:20: error: 'nextTime' was not declared in this scope; did you mean 'BestTime'?
   22 |         SumTime += nextTime[j];
      |                    ^~~~~~~~
      |                    BestTime
a.cc:24:9: error: 'SumTime' was not declared in this scope; did you mean 'Sumtime'?
   24 |         SumTime += nextTime[j];
      |         ^~~~~~~
      |         Sumtime
a.cc:24:20: error: 'nextTime' was not declared in this scope; did you mean 'BestTime'?
   24 |         SumTime += nextTime[j];
      |                    ^~~~~~~~
      |                    BestTime
a.cc:27:30: error: 'SumTime' was not declared in this scope; did you mean 'Sumtime'?
   27 |     BestTime = min(BestTime, SumTime);
      |                              ^~~~~~~
      |                              Sumtime
a.cc:29:28: error: expected '}' at end of input
   29 |   cout << BestTime << endl;
      |                            ^
a.cc:5:13: note: to match this '{'
    5 | int main () {
      |             ^
Language: C

#include<stdio.h>
int main(void){
  int a[5];
  int num[5];
  int i;
  int max = 0;
  int sum = 0;
  
  scanf("%d %d %d %d %d", &a[0], &a[1], &a[2], &a[3], &a[4]);
  
  for(i = 0; i < 5; i++){
    num[i] = (130 - a[i]) % 10);
    if(max < num[i]){
      max = i;
    }
  }
  
  for(i = 0; i < 5; i++){
    if(i == max){
      continue;
    }
    sum += num[i] + a[i];
  }
  
  printf("%d\n", sum);
  return 0;
}
  
  
  
  

Compiler output:
main.c: In function 'main':
main.c:12:31: error: expected ';' before ')' token
   12 |     num[i] = (130 - a[i]) % 10);
      |                               ^
      |                               ;
main.c:12:31: error: expected statement before ')' token
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main(void){
  int a,b,c,d,e;
  cin >> a >> b >> c >> d >> e;
  
  int at,bt,ct,dt,et;
  at = (a+9)/10*10;
  bt = (b+9)/10*10;
  ct = (c+9)/10*10;
  dt = (d+9)/10*10;
  et = (e+9)/10*10;
  
  int aa,bb,cc,dd,ee;
  aa = a % 10;
  bb = b % 10;
  cc = c % 10;
  dd = d % 10;
  ee = e % 10;
  
  int mi = min{(aa,bb,cc,dd,ee);
  
  cout << at+bt+ct+dt+et-10 + mi << endl;
  
  return 0;
}
#include <iostream>
#include <algorithm>
using namespace std;
int main(void){
  int a,b,c,d,e;
  cin >> a >> b >> c >> d >> e;
  
  int at,bt,ct,dt,et;
  at = (a+9)/10*10;
  bt = (b+9)/10*10;
  ct = (c+9)/10*10;
  dt = (d+9)/10*10;
  et = (e+9)/10*10;
  
  int aa,bb,cc,dd,ee;
  aa = a % 10;
  bb = b % 10;
  cc = c % 10;
  dd = d % 10;
  ee = e % 10;
  
  int mi = min({aa,bb,cc,dd,ee});
  
  cout << at+bt+ct+dt+et-10 + mi << endl;
  
  return 0;
}
提出情報

Compiler output:
a.cc: In function 'int main()':
a.cc:22:12: error: cannot resolve overloaded function 'min' based on conversion to type 'int'
   22 |   int mi = min{(aa,bb,cc,dd,ee);
      |            ^~~
a.cc:31:15: error: a function-definition is not allowed here before '{' token
   31 | int main(void){
      |               ^
a.cc:55:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' was not declared in this scope
   55 | 提出情報
      | ^~~~~~~~
a.cc:55:9: error: expected '}' at end of input
   55 | 提出情報
      |         ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main(void){
  int a,b,c,d,e;
  cin >> a >> b >> c >> d >> e;
  
  int at,bt,ct,dt,et;
  at = (a+9)/10*10;
  bt = (b+9)/10*10;
  ct = (c+9)/10*10;
  dt = (d+9)/10*10;
  et = (e+9)/10*10;
  
  int aa,bb,cc,dd,ee;
  aa = a % 10;
  bb = b % 10;
  cc = c % 10;
  dd = d % 10;
  ee = e % 10;
  
  int mi = min{(aa,bb,cc,dd,ee);
  
  cout << at+bt+ct+dt+et-10 + mi << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:12: error: cannot resolve overloaded function 'min' based on conversion to type 'int'
   22 |   int mi = min{(aa,bb,cc,dd,ee);
      |            ^~~
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main(void){
  int a,b,c,d,e;
  cin >> a >> b >> c >> d >> e;
  
  int at,bt,ct,dt,et;
  at = (a+9)/10*10;
  bt = (b+9)/10*10;
  ct = (c+9)/10*10;
  dt = (d+9)/10*10;
  et = (e+9)/10*10;
  
  cout << at+bt+ct+dt+et-10+min{(a%10,b%10,c%10,d%10,e%10)} << endl;
  
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:15:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator+'
   15 |   cout << at+bt+ct+dt+et-10+min{(a%10,b%10,c%10,d%10,e%10)} << endl;
      |           ~~~~~~~~~~~~~~~~~^~~~
a.cc:15:61: error: expected primary-expression before '<<' token
   15 |   cout << at+bt+ct+dt+et-10+min{(a%10,b%10,c%10,d%10,e%10)} << endl;
      |                                                             ^~
Language: C++

#include <iostrewm>
#include <algorithm>
using namespace std;
int main(void){
  int a,b,c,d,e;
  cin >> a >> b >> c >> d >> e;
  
  int at,bt,ct,dt,et;
  at = (a+9)/10*10;
  bt = (b+9)/10*10;
  ct = (c+9)/10*10;
  dt = (d+9)/10*10;
  et = (e+9)/10*10;
  
  cout << at+bt+ct+dt+et-10+min{(a%10,b%10,c%10,d%10,e%10)} << endl;
  
  return 0;
}
  

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

int maxtime(int x) {
	// Maximum consuming time for x-minute order
	return (x + 9) / 10 * 10;
}
int remtime(int x) {
	// Remained time for x-minute order
	return maxtime(x) - x;
}
int main() {
	int A, B, C, D, E;
	cin >> A >> B >> C >> D >> E;
	int sum = maxtime(A) + maxtime(B) + maxtime(C) + maxtime(D) + maxtime(E);
	sum -= max({ remtime(A), remtime(B), remtime(C), remtime(D), remtime(E) });
	cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope
   11 |         cin >> A >> B >> C >> D >> E;
      |         ^~~
a.cc:13:16: error: 'max' was not declared in this scope
   13 |         sum -= max({ remtime(A), remtime(B), remtime(C), remtime(D), remtime(E) });
      |                ^~~
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout << sum << endl;
      |         ^~~~
a.cc:14:24: error: 'endl' was not declared in this scope
   14 |         cout << sum << endl;
      |                        ^~~~
Language: C++

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

int main(){
vector<int>a(5);
  int b,c;
  b=10;
  c=0;
  for(int i=0;i<5;i++){
  cin>>a[i];
    if(a[i]%10==0){
      c=c+a[i];
        }
    else{
    c=c+(a[i]/10+1)*10;
      b=min(b,a[i]%10)
    }
    }
  
  cout<<c-10+b<<endl;
     }

       cout<<c+1<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: expected ';' before '}' token
   16 |       b=min(b,a[i]%10)
      |                       ^
      |                       ;
   17 |     }
      |     ~                  
a.cc: At global scope:
a.cc:23:8: error: 'cout' does not name a type
   23 |        cout<<c+1<<endl;
      |        ^~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

import numpy as np
A = np.array([int(input()) for _ in range(5)]).reshape(-1,1)
A = np.array(A).reshape(-1,1)
A = np.c_[A, (10 - A) * (A % 10 != 0)]
print(A)
print(sum(A[:,0]+A[:,1])-max(A[:,1]))

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import numpy as np
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
 
int main()
{
  int A, B, C, D, E;
  cin >> A >> B >> C >> D >> E;
  
  vector<int> dish_times = {A, B, C, D, E};
  int max_dish_time = A;
  int max_dish_num = 0;
  for(int i = 1; i < 5; i++){
    if(dish_times[i] > max_dish_time){
      max_dish_time = dish_time[i];
      max_dish_num = i;
    }
  }
  
  int total_time = 0;
  for(int i = 1; i < 5; i++){
    if(i == max_dish_num){
      total_time += dish_time[i];
    }else{
      total_time += (dish_time[i] + (10 - 1)) / 10 * 10;
    }
  }
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: 'dish_time' was not declared in this scope; did you mean 'dish_times'?
   16 |       max_dish_time = dish_time[i];
      |                       ^~~~~~~~~
      |                       dish_times
a.cc:24:21: error: 'dish_time' was not declared in this scope; did you mean 'dish_times'?
   24 |       total_time += dish_time[i];
      |                     ^~~~~~~~~
      |                     dish_times
a.cc:26:22: error: 'dish_time' was not declared in this scope; did you mean 'dish_times'?
   26 |       total_time += (dish_time[i] + (10 - 1)) / 10 * 10;
      |                      ^~~~~~~~~
      |                      dish_times
Language: C++

#include <iostream>
#include <cmath>

using namespace std;

int main() {
    int result = 0, rest_min = 10, food_time;
    for (int i=0; i<5; i++) {
        cin >> food_time; 
        result += (int)ceil((float)food_time/10)*10
        rest_min = min(rest_min, food_time%10)
    }
    result += rest_min

    cout << result << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:52: error: expected ';' before 'rest_min'
   10 |         result += (int)ceil((float)food_time/10)*10
      |                                                    ^
      |                                                    ;
   11 |         rest_min = min(rest_min, food_time%10)
      |         ~~~~~~~~                                    
a.cc:13:23: error: expected ';' before 'cout'
   13 |     result += rest_min
      |                       ^
      |                       ;
   14 | 
   15 |     cout << result << endl;
      |     ~~~~
Language: C++

n = [int(x) for x in input().split()]
minNum = 10
array = 0
for i in range(len(n)):
	num = n[i] % 10
	if(num <= minNum):
		minNum = num
		array = i

arraySum = []
for j in n:
	k = ((j + 9) // 10) * 10
	arraySum.append(k)
	
print(sum(arraySum) + n[array])

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n = [int(x) for x in input().split()]
      | ^
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    int d = sc.nextInt();
    int e = sc.nextInt();
    int mindex = 0;
    int sum = 0;
    int[] alist = {a,b,c,d,e};
	int slist[] = new int[5];
    
    for(int i = 0;i < 5;i++){
            if(alist[mindex] % 10 == 0 || alist[mindex] % 10 > alist[i] % 10 && alist[i] % 10 != 0){
              mindex = i;
            }
    }
    
    for(int i = 0;i < 5;i++){
      if(i = mindex || alist[i] % 10 == 0){
        sum+= alist[i];
      }else{
       	sum+= alist[i] / 10 * 10 +10; 
      }
    }
    
    System.out.println(sum);
  }
}

Compiler output:
Main.java:24: error: bad operand types for binary operator '||'
      if(i = mindex || alist[i] % 10 == 0){
                    ^
  first type:  int
  second type: boolean
Main.java:24: error: incompatible types: int cannot be converted to boolean
      if(i = mindex || alist[i] % 10 == 0){
           ^
2 errors
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    int d = sc.nextInt();
    int e = sc.nextInt();
    int mindex = 0;
    int sum = 0;
    int[] alist = {a,b,c,d,e};
	int[] slist = 5;
    
    for(int i = 0;i < 5;i++){
            if(alist[mindex] % 10 == 0 || alist[mindex] % 10 > alist[i] % 10 && alist[i] % 10 != 0){
              mindex = i;
            }
    }
    
    for(int i = 0;i < 5;i++){
      if(i = mindex || alist[i] % 10 == 0){
        sum+= alist[i];
      }else{
       	sum+= alist[i] / 10 * 10 +10; 
      }
    }
    
    System.out.println(sum);
  }
}

Compiler output:
Main.java:15: error: incompatible types: int cannot be converted to int[]
	int[] slist = 5;
	              ^
Main.java:24: error: bad operand types for binary operator '||'
      if(i = mindex || alist[i] % 10 == 0){
                    ^
  first type:  int
  second type: boolean
Main.java:24: error: incompatible types: int cannot be converted to boolean
      if(i = mindex || alist[i] % 10 == 0){
           ^
3 errors
Language: C++

#include <iostream>
using namespace std;

int main(){
	int a[6];
	a[0]=10;
	cin >> a[1];
	cin >> a[2];
	cin >> a[3];
	cin >> a[4];
	cin >> a[5];
	int c=0;
	int b[5];
	for(int i=1;i<5;i++){
		if(a[c]%10!=0){
			if(a[c]%10>a[i]%10){
				a[c]=a/10*10+10;
				c=i;
				
			}
		}
	}
	cout << a[1]+a[2]+a[3]+a[4]+a[5];
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:39: error: invalid operands of types 'int [6]' and 'int' to binary 'operator/'
   17 |                                 a[c]=a/10*10+10;
      |                                      ~^~~
      |                                      | |
      |                                      | int
      |                                      int [6]
Language: C++

#include <iostream>

int main(){
	int a[5];
	cin >> a[0];
	cin >> a[1];
	cin >> a[2];
	cin >> a[3];
	cin >> a[4];
	int c=0;
	for(int i=1;i<5;i++){
		if(a[c]%10>a[i]%10){
			c=i;
		}
	}
	cout << (a[0]/10+a[1]/10+a[2]/10+a[3]/10+a[4]/10)*10+50-(10-a[c]%10);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> a[0];
      |         ^~~
      |         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:16:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |         cout << (a[0]/10+a[1]/10+a[2]/10+a[3]/10+a[4]/10)*10+50-(10-a[c]%10);
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int roundup(int a){
  if(a%10 != 0){
  	int result = (a + (10-a%10));
  }
  else{
    result = a;
  }
  return result;
}

int main(){
  vector<int> a(5);
  
  for(int i=0;i<5;i++){
  	cin >> a[i];
  }
  
  int result = 0;
  int tmp=10;
  for(int i=0;i<5;i++){
    tmp=min(tmp,a[i]%10);
  	result += roundup(a[i]);
  }
 
  cout << result - (10 - tmp) << endl;;
}
	


Compiler output:
a.cc: In function 'int roundup(int)':
a.cc:10:5: error: 'result' was not declared in this scope
   10 |     result = a;
      |     ^~~~~~
a.cc:12:10: error: 'result' was not declared in this scope
   12 |   return result;
      |          ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int ordinary(int x){
    return (x+9)/10*10;
}
int last(int x){
    return x;
}
int main() {
  int a,b,c,d,e;
  cin >> a>>b>>c>>d>>e;
  vector<int>vec(5)={a,b,c,d,e};
  int min1=9999;
  int sum=0;
  for(int i=0;i<5;i++)
      sum+=ordinary(vec[i]);
  for(int i=0;i<5;i++){
    if(min1>=sum-ordinary(vec[i])+last(vec[i]))
      min1=sum-ordinary(vec[i])+last(vec[i]);
  }
  cout<<min1<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected ',' or ';' before '=' token
   12 |   vector<int>vec(5)={a,b,c,d,e};
      |                    ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:35: error: expected ';' before '}' token
    9 |                         wait+=a[i]
      |                                   ^
      |                                   ;
   10 |                 }
      |                 ~
Language: C++

#include <iostream>

using namespase std;

int main(){
  int a[5]={},sum=0,min=9;
  for(int i=0;i<5;i++){
    cin >> a[i];
  }
  for(int i=0;i<5;i++){
    if(a[i]%10==0){
      sum+=a[i];
    }
    else{
      sum+=(a[i]/10+1)*10;
      if(a[i]%10<min){
        min=a[i]%10;
      }
    }
  }
  sum-=10-min;
  cout << sum << "\n";
}


Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namespase'
    3 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |     cin >> a[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 << "\n";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
#include <array>
using namespace std;
 
int main(){
  	//input
	array<int, 5> A;
  	for(int i=0; i<5; i++){
    	cin >> A[i];
    }
  	
  	//compute
  	int min;
  	int ans = 0;
  	for(int i=0; i < 5; i++){
      	if(i==0){
          	min = A[i];
        }else if(A[i]%10 < min%10){
          	min = A[i];
        }
    }
  	for(int i=0; i<5; i++){
    	if(A[i] == min){
        	ans += A[i];
        }else if(A[i] % 10 == 0){
        	ans += A[i];
        }else{
          	int add = A[i]/10 + 10;
        	ans += add;
        }
    }
  
  	//output
  	cout << ans << endl:;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:28: error: expected ';' before ':' token
   34 |         cout << ans << endl:;
      |                            ^
      |                            ;
Language: C++

#include <iostream>
using namespace std;
 
int main(){
  	//input
	array<int, 5> A;
  	for(int i=0; i<5; i++){
    	cin >> A[i];
    }
  	
  	//compute
  	int min;
  	int ans = 0;
  	for(int i=0; i < 5; i++){
      	if(i==0){
          	min = A[i];
        }else if(A[i]%10 < min%10){
          	min = A[i];
        }
    }
  	for(int i=0; i<5; i++){
    	if(A[i] == min){
        	ans += A[i];
        }else if(A[i] % 10 == 0){
        	ans += A[i];
        }else{
          	int add = A[i]/10 + 10;
        	ans += add;
        }
    }
  
  	//output
  	cout << ans << endl:;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: aggregate 'std::array<int, 5> A' has incomplete type and cannot be defined
    6 |         array<int, 5> A;
      |                       ^
a.cc:2:1: note: 'std::array' is defined in header '<array>'; this is probably fixable by adding '#include <array>'
    1 | #include <iostream>
  +++ |+#include <array>
    2 | using namespace std;
a.cc:33:28: error: expected ';' before ':' token
   33 |         cout << ans << endl:;
      |                            ^
      |                            ;
Language: C++

#include <iostream>
using namespace std;

int main(){
  	//input
	int A;
  	for(int i=0; i<5; i++){
    	cin >> A[i];
    }
  	
  	//compute
  	int min;
  	int ans = 0;
  	for(int i=0; i < 5; i++){
      	if(i==0){
          	min = a;
        }else if(A[i]%10 < min%10){
          	min = A[i];
        }
    }
  	for(int i=0; i<5; i++){
    	if(A[i] == min){
        	ans += A[i];
        }else if(A[i] % 10 == 0){
        	ans += A[i];
        }else{
          	int add = A[i]/10 + 10;
        	ans += add;
        }
    }
  
  	//output
  	cout << ans << endl:;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: invalid types 'int[int]' for array subscript
    8 |         cin >> A[i];
      |                 ^
a.cc:16:23: error: 'a' was not declared in this scope
   16 |                 min = a;
      |                       ^
a.cc:17:19: error: invalid types 'int[int]' for array subscript
   17 |         }else if(A[i]%10 < min%10){
      |                   ^
a.cc:18:24: error: invalid types 'int[int]' for array subscript
   18 |                 min = A[i];
      |                        ^
a.cc:22:13: error: invalid types 'int[int]' for array subscript
   22 |         if(A[i] == min){
      |             ^
a.cc:23:25: error: invalid types 'int[int]' for array subscript
   23 |                 ans += A[i];
      |                         ^
a.cc:24:19: error: invalid types 'int[int]' for array subscript
   24 |         }else if(A[i] % 10 == 0){
      |                   ^
a.cc:25:25: error: invalid types 'int[int]' for array subscript
   25 |                 ans += A[i];
      |                         ^
a.cc:27:28: error: invalid types 'int[int]' for array subscript
   27 |                 int add = A[i]/10 + 10;
      |                            ^
a.cc:33:28: error: expected ';' before ':' token
   33 |         cout << ans << endl:;
      |                            ^
      |                            ;
Language: C++

#include <iostream>

using namespace std;

int main(){
	int time[5];
	int ans = 0;

	for ( int i = 0; i < 5; i++){
		cin >> time[i];
		ans += time[i];
		ans = (ans+9)/10*10
	}

	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:36: error: expected ';' before '}' token
   12 |                 ans = (ans+9)/10*10
      |                                    ^
      |                                    ;
   13 |         }
      |         ~
Language: C++

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

int main(){
  int a=0,ans=0;
  
  for(int i=0; i<5 i++){
    cin >> a;
    ans += (a/10)*10;
  }
  
  cout << ans << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected ';' before 'i'
    7 |   for(int i=0; i<5 i++){
      |                   ^~
      |                   ;
Language: C++

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

int main(){
  int a=0,ans=0;
  
  for(int i=0; i<5 i++){
    cin >> a;
    ans += (a/10)*10
  }
  
  cout << ans << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected ';' before 'i'
    7 |   for(int i=0; i<5 i++){
      |                   ^~
      |                   ;
a.cc:9:21: error: expected ';' before '}' token
    9 |     ans += (a/10)*10
      |                     ^
      |                     ;
   10 |   }
      |   ~
Language: C

#include<stdio.h>

struct record
{
	int a;
	int tag;
};

int amari(int a);
int min(int a,int b);
int main(void)
{
	int i,sum=0,hantei,kp=0;
	struct record a[5];
	for(i=0;i<5;i++) scanf("%d",&a[i].a);
	for(i=0;i<5;i++) a[i].tag = amari(a[i].a);
	for(i=0;i<5;i++)
	{
		if(a[i].tag == 10)
		{
			sum = sum + a.[i].a;
			a[i].tag = 100;
		}
	}

	hantei = min(min(min(min(a[0].tag,a[1].tag),a[2].tag),a[3].tag),a[4].tag);

	for(i=0;i<5;i++)
	{
		if(a[i].tag == hantei) kp = a[i].a;
		else if(a[i].tag < 10) sum = sum + ((a[i].a - a[i].tag)+10);
	}

	sum = sum + kp;
	printf("%d",sum);

	return 0;
}

int amari(int a)
{
	if( (a % 10) == 0) return 10;

	if(a < 10) return a;
	else amari(a);
}

int min(int a,int b)
{
	if(a <= b) return a;
	else return b; 
}

Compiler output:
main.c: In function 'main':
main.c:21:39: error: expected identifier before '[' token
   21 |                         sum = sum + a.[i].a;
      |                                       ^
Language: C

#include<stdio.h>

struct record
{
	int a;
	int tag;
};

int amari(int a);
int min(int a,int b);
int main(void)
{
	int i,sum=0,hantei,kp=0;
	struct record a[5];
	for(i=0;i<5;i++) scanf("%d",&a[i].a);
	for(i=0;i<5;i++) a[i].tag = amari(a[i].a);
	for(i=0;i<5;i++)
	{
		if(a[i].tag == 10)
		{
			sum = sum + a.[i].a;
			a[i].tag = 100;
		}
	}

	hantei = min(min(min(min(a[0].tag,a[1].tag),a.[2].tag),a[3].tag),a[4].tag);

	for(i=0;i<5;i++)
	{
		if(a[i].tag == hantei) kp = a[i].a;
		else if(a[i].tag < 10) sum = sum + ((a[i].a - a[i].tag)+10);
	}

	sum = sum + kp;
	printf("%d",sum);

	return 0;
}

int amari(int a)
{
	if( (a % 10) == 0) return 10;

	if(a < 10) return a;
	else amari(a);
}

int min(int a,int b)
{
	if(a <= b) return a;
	else return b; 
}

Compiler output:
main.c: In function 'main':
main.c:21:39: error: expected identifier before '[' token
   21 |                         sum = sum + a.[i].a;
      |                                       ^
main.c:26:55: error: expected identifier before '[' token
   26 |         hantei = min(min(min(min(a[0].tag,a[1].tag),a.[2].tag),a[3].tag),a[4].tag);
      |                                                       ^
Language: C++

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

int main() {
int A,B,C,D,E,a,b,c,d,e,sum=0,div=10;
  vector<int> num(5);
  vector<int> sumnum(5);
   cin >> A >> B >> C >> D >> E;

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

int main() {
int A,B,C,D,E,a,b,c,d,e,sum=0,div=10;
  vector<int> num(5);
  vector<int> sumnum(5);
   cin >> A >> B >> C >> D >> E;

   a = A % 10;
   b = B % 10;
   c = C % 10;
   d = D % 10;
   e = E % 10;
   num = {a,b,c,d,e};
   sumnum = {A,B,C,D,E};
  for(int i=0;i<5;i++){
   if(num[i] ==0){
    sum = sum +sumnum[i];
   }
   else{
     if( num[i] < div ){
      div = num[i];
          if( sumnum[i] > 10 ){ sum = sum + sumnum[i]-num[i]+10;
          }
          else if(num[i] < 10){
          sum = sum +10;
          }
     }
     else{
      sum = sum +sumnum[i] + 10 -num[i];
     }
   }

  }

 if(div ==10){
  sum = sum ;
 }
 else{

 sum = sum + div -10;
}
 cout << sum << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   13 | int main() {
      |         ^~
a.cc:13:9: note: remove parentheses to default-initialize a variable
   13 | int main() {
      |         ^~
      |         --
a.cc:13:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:13:12: error: a function-definition is not allowed here before '{' token
   13 | int main() {
      |            ^
a.cc:54:2: error: expected '}' at end of input
   54 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
#include <math.h>
using namespace std;
 
int main(){
  int now = 0;
  for(int i = 0; i < 4; i++){
    int time;
    cin >> time;
    
    now += ceil(time / 10) * 10;
  }
  int now;
  cin >> now;
  
  time += now;
  
  cout << time << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: redeclaration of 'int now'
   13 |   int now;
      |       ^~~
a.cc:6:7: note: 'int now' previously declared here
    6 |   int now = 0;
      |       ^~~
a.cc:16:8: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   16 |   time += now;
      |   ~~~~~^~~~~~
a.cc:16:8: error: assignment of read-only location 'time'
Language: C++

#include <iostream>
using namespace std;

int main(){
  int now = 0;
  for(int i = 0; i < 4; i++){
    int time;
    cin >> time;
    
    now += ceil(time / 10) * 10;
  }
  int now;
  cin >> now;
  
  time += now;
  
  cout << time << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'ceil' was not declared in this scope
   10 |     now += ceil(time / 10) * 10;
      |            ^~~~
a.cc:12:7: error: redeclaration of 'int now'
   12 |   int now;
      |       ^~~
a.cc:5:7: note: 'int now' previously declared here
    5 |   int now = 0;
      |       ^~~
a.cc:15:8: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   15 |   time += now;
      |   ~~~~~^~~~~~
a.cc:15:8: error: assignment of read-only location 'time'
Language: C++

#include <iostream>

int main(){
  int now = 0;
  for(int i = 0; i < 4; i++){
    int time;
    cin >> time;
    
    now += ceil(time / 10) * 10;
  }
  int now;
  cin >> now;
  
  time += now;
  
  cout << time << endl;
}

Compiler output:
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 >> time;
      |     ^~~
      |     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:9:12: error: 'ceil' was not declared in this scope
    9 |     now += ceil(time / 10) * 10;
      |            ^~~~
a.cc:11:7: error: redeclaration of 'int now'
   11 |   int now;
      |       ^~~
a.cc:4:7: note: 'int now' previously declared here
    4 |   int now = 0;
      |       ^~~
a.cc:12:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 |   cin >> now;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:14:8: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   14 |   time += now;
      |   ~~~~~^~~~~~
a.cc:14:8: error: assignment of read-only location 'time'
a.cc:16:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   cout << time << 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:16:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |   cout << time << 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: C++

#include <iostream>
#include <math.h>
using namespace std;

int main(){
  double time = 0;
  
  for(int i = 0; i < 5; i++) {
    double dish;
    cin >> dish;
    dish /= 10
    
    time += (i == 4 ? dish : ceil(dish));
  }
  
  cout << (time * 10) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: expected ';' before 'time'
   11 |     dish /= 10
      |               ^
      |               ;
   12 | 
   13 |     time += (i == 4 ? dish : ceil(dish));
      |     ~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  double time = 0;
  
  for(int i = 0; i < 5; i++) {
    double dish;
    
    time += (i == 4 ? dish : ceil(dish));
  }
  
  cout << time * 10 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: 'ceil' was not declared in this scope
   10 |     time += (i == 4 ? dish : ceil(dish));
      |                              ^~~~
Language: C++

#include <iostream>
using namespace std;

void main(){
  double time = 0;
  
  for(int i = 0; i < 5; i++) {
    double dish;
    
    time += (i == 4 ? dish : ceil(dish));
  }
  
  cout << time * 10 << endl;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:30: error: 'ceil' was not declared in this scope
   10 |     time += (i == 4 ? dish : ceil(dish));
      |                              ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a[5];
  for(int i=0;i<5;i++)cin>>a[i];
  int x=9;
  for(int i=0;i<5;i++){
    if(a[i]%10<x&&a[i]%10>0){
      x = a[i];
    }
  }
  int sum=0;
  for (int i=0;i<5;i++){
    if(a[i]%10!=0){
      sum = sum + (a[i]/10+1)*10);
    }
    else
      sum=sum+a[i];
  }
  cout<<sum-(10-x)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:33: error: expected ';' before ')' token
   15 |       sum = sum + (a[i]/10+1)*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 a = A%10;
  int b = B%10;
  int c = C%10;
  int d = D%10;
  int e = E%10;
  int xd = min({a,b,c,d,e});
    
  int A1 = A/10;
  int AA = A1*10+10;
  int B1 = B/10;
  int BB = B1*10+10;
  int C1 = C/10;
  int CC = C1*10+10;
  int D1 = D/10;
  int DD = D1*10+10;
  int E1 = E/10;
  int EE = E1*10+10;
  
  if(xd != 0){
    int ans = AA+BB+CC+DD+EE+xd-10;
    cout << ans <<endl;
  }
  else if(xc !=0){
    int ans = AA+BB+CC+DD+EE+xc-10;
    cout << ans <<endl;
  }
  else if(xb !=0){
    int ans = AA+BB+CC+DD+EE+xb-10;
    cout << ans <<endl;
  }
  else if(xa !=0){
    int ans = AA+BB+CC+DD+EE+xa-10;
    cout << ans <<endl;
  }
  else{
    int ans = A+B+C+D+E;
    cout << ans <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:11: error: 'xc' was not declared in this scope; did you mean 'xd'?
   29 |   else if(xc !=0){
      |           ^~
      |           xd
a.cc:33:11: error: 'xb' was not declared in this scope; did you mean 'xd'?
   33 |   else if(xb !=0){
      |           ^~
      |           xd
a.cc:37:11: error: 'xa' was not declared in this scope; did you mean 'xd'?
   37 |   else if(xa !=0){
      |           ^~
      |           xd
Language: C++

#include<iostream>
using namespace std;
void main(){
  int sum=0;
  int last=10;
  int t;
  for(int i=0;i<5;i++){
    cin>>t;
    if(!t%10){
      sum+=t;
      continue;
    }
    sum+=(t/10+1)*10;
    last=last<t%10? t%10:last;
  }
  cout<<sum-10+last<<endl;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
Language: C++

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

int main(){
  int A, B, C, D, E;
  cin >> A >> B >> C >> D >> E;
  int a = A%10;
  int b = B%10;
  int c = C%10;
  int d = D%10;
  int e = E%10;
  int xd = min(a,b,c,d,e);
    
  int A1 = A/10;
  int AA = A1*10+10;
  int B1 = B/10;
  int BB = B1*10+10;
  int C1 = C/10;
  int CC = C1*10+10;
  int D1 = D/10;
  int DD = D1*10+10;
  int E1 = E/10;
  int EE = E1*10+10;
  
  if(xd != 0){
    int ans = AA+BB+CC+DD+EE+xd-10;
    cout << ans <<endl;
  }
  else if(xc !=0){
    int ans = AA+BB+CC+DD+EE+xc-10;
    cout << ans <<endl;
  }
  else if(xb !=0){
    int ans = AA+BB+CC+DD+EE+xb-10;
    cout << ans <<endl;
  }
  else if(xa !=0){
    int ans = AA+BB+CC+DD+EE+xa-10;
    cout << ans <<endl;
  }
  else{
    int ans = A+B+C+D+E;
    cout << ans <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: no matching function for call to 'min(int&, int&, int&, int&, int&)'
   12 |   int xd = min(a,b,c,d,e);
      |            ~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 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, 5 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, 5 provided
In file included from /usr/include/c++/14/algorithm:61:
/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, 5 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:   candidate expects 2 arguments, 5 provided
a.cc:29:11: error: 'xc' was not declared in this scope; did you mean 'xd'?
   29 |   else if(xc !=0){
      |           ^~
      |           xd
a.cc:33:11: error: 'xb' was not declared in this scope; did you mean 'xd'?
   33 |   else if(xb !=0){
      |           ^~
      |           xd
a.cc:37:11: error: 'xa' was not declared in this scope; did you mean 'xd'?
   37 |   else if(xa !=0){
      |           ^~
      |           xd
Language: Java

import java.util.Scanner;

public class Dishes5 {

   public static void main(String[] args) {
      int[] dish = new int[5];
      boolean[] t = new boolean[5];
      int max = 0;
      int min = 0;
      int time = 0;
      Scanner sc = new Scanner(System.in);
      //최대 최소 인덱스 구함
      for (int i = 0; i < dish.length; i++) {
         dish[i] = sc.nextInt();
         if(dish[i]%10==0)
            continue;
         max = dish[max]%10>dish[i]%10?max:i;
         min = dish[min]%10<dish[i]%10?min:i;
      }
      if(max == min){
         max = 0;
         min = 4;
      }
      t[max] = t[min] = true;
      
      time += (int)Math.ceil((double)dish[max]/10)*10;
      for (int i = 0; i < 5; i++) {
         if(!t[i])
            time += (int)Math.ceil((double)dish[i]/10)*10;
      }
      time += dish[min];
      
      System.out.println(time);
   }

}

Compiler output:
Main.java:3: error: class Dishes5 is public, should be declared in a file named Dishes5.java
public class Dishes5 {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Dishes5 {

	public static void main(String[] args) {
		int[] dish = new int[5];
		boolean[] t = new boolean[5];
		int max = 0;
		int min = 0;
		int time = 0;
		Scanner sc = new Scanner(System.in);
		//최대 최소 인덱스 구함
		for (int i = 0; i < dish.length; i++) {
			dish[i] = sc.nextInt();
			if(dish[i]%10==0)
				continue;
			max = dish[max]%10>dish[i]%10?max:i;
			min = dish[min]%10<dish[i]%10?min:i;
		}
		if(max == min){
			max = 0;
			min = 4;
		}
		t[max] = t[min] = true;
		
		time += (int)Math.ceil((double)dish[max]/10)*10;
		for (int i = 0; i < 5; i++) {
			if(!t[i])
				time += (int)Math.ceil((double)dish[i]/10)*10;
		}
		time += dish[min];
		
		System.out.println(time);
	}

}

Compiler output:
Main.java:3: error: class Dishes5 is public, should be declared in a file named Dishes5.java
public class Dishes5 {
       ^
1 error
Language: Java

import java.util.Scanner;

   public static void main(String[] args) {
      int[] dish = new int[5];
      boolean[] t = new boolean[5];
      int max = 0;
      int min = 0;
      int time = 0;
      Scanner sc = new Scanner(System.in);
      //최대 최소 인덱스 구함
      for (int i = 0; i < dish.length; i++) {
         dish[i] = sc.nextInt();
         if(dish[i]%10==0)
            continue;
         max = dish[max]%10>dish[i]%10?max:i;
         min = dish[min]%10<dish[i]%10?min:i;
      }
      if(max == min){
         max = 0;
         min = 4;
      }
      t[max] = t[min] = true;
      
      time += (int)Math.ceil((double)dish[max]/10)*10;
      for (int i = 0; i < 5; i++) {
         if(!t[i])
            time += (int)Math.ceil((double)dish[i]/10)*10;
      }
      time += dish[min];
      
      System.out.println(time);
   }

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
   public static void main(String[] args) {
                 ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

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

int main(){
  int A, B, C, D, E;
  cin >> A >> B >> C >> D >> E;
  int a = A%10;
  int b = B%10;
  int c = C%10;
  int d = D%10;
  int e = E%10;
  int xa = min(a,b);
  int xb = min(xa,c);
  int xc = min(xb,d);
  int xd = min(xc,e);
    
  int B1 = B/10;
  int BB = B1*10+10;
  int C1 = C/10;
  int CC = C1*10+10;
  int D1 = D/10;
  int DD = D1*10+10;
  int E1 = E/10;
  int EE = E1*10+10;
  int A1 = A/10;
  int AA = A1*10+10;
  
  if(xd != 0){
    int ans = AA+BB+CC+DD+EE+xd-10;
  }
  else if(xc !=0){
    int ans = AA+BB+CC+DD+EE+xc-10;
  }
  else if(xb !=0){
    int ans = AA+BB+CC+DD+EE+xb-10;
  }
  else if(xa !=0){
    int ans = AA+BB+CC+DD+EE+xa-10;
  }
  else{
    int ans = AA+BB+CC+DD+EE;
  }
  
  
  cout << ans <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   45 |   cout << ans <<endl;
      |           ^~~
      |           abs
Language: C++

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

int main(){
  int A, B, C, D, E;
  cin >> A >> B >> C >> D >> E;
  int a = A%10;
  int b = B%10;
  int c = C%10;
  int d = D%10;
  int e = E%10;
  int xa = min(a,b);
  int xb = min(xa,c);
  int xc = min(xb,d);
  int xd = min(xc,e);
  int ans = xd;
    
  int B1 = B/10;
  int BB = B1*10;
  int C1 = C/10;
  int CC = C1*10;
  int D1 = D/10;
  int DD = D1*10;
  int E1 = E/10;
  int EE = E1*10;
  int A1 = A/10;
  int AA = A1*10;
  
  int ans = AA+BB+CC+DD+EE+xd;
  
  cout << ans <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:7: error: redeclaration of 'int ans'
   29 |   int ans = AA+BB+CC+DD+EE+xd;
      |       ^~~
a.cc:16:7: note: 'int ans' previously declared here
   16 |   int ans = xd;
      |       ^~~
Language: C++

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

int main(){
  int A, B, C, D, E;
  cin >> A >> B >> C >> D >> E;
  a = A%10;
  b = B%10;
  c = C%10;
  d = D%10;
  e = E%10;
  int xa = min(a,b);
  int xb = min(xa,c);
  int xc = min(xb,d);
  int xd = min(xc,e);
  int ans = xd;
    
  int B1 = B/10;
  int BB = B1*10;
  int C1 = C/10;
  int CC = C1*10;
  int D1 = D/10;
  int DD = D1*10;
  int E1 = E/10;
  int EE = E1*10;
  int A1 = A/10;
  int AA = A1*10;
  
  int ans = AA+BB+CC+DD+EE+xd;
  
  cout << ans <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'a' was not declared in this scope
    7 |   a = A%10;
      |   ^
a.cc:8:3: error: 'b' was not declared in this scope
    8 |   b = B%10;
      |   ^
a.cc:9:3: error: 'c' was not declared in this scope
    9 |   c = C%10;
      |   ^
a.cc:10:3: error: 'd' was not declared in this scope
   10 |   d = D%10;
      |   ^
a.cc:11:3: error: 'e' was not declared in this scope
   11 |   e = E%10;
      |   ^
a.cc:29:7: error: redeclaration of 'int ans'
   29 |   int ans = AA+BB+CC+DD+EE+xd;
      |       ^~~
a.cc:16:7: note: 'int ans' previously declared here
   16 |   int ans = xd;
      |       ^~~
Language: C++

#!/usr/bin/env python
# coding: utf-8
l = list(map(int, input().split()))
lr = list(map(lambda x: x%10, l))
lr = [e for e in lr if e != 0]
sum(l) + sum(list(map(lambda x: 10-x, lr[1:])))


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python
      |  ^
a.cc:2:3: error: invalid preprocessing directive #coding
    2 | # coding: utf-8
      |   ^~~~~~
a.cc:3:1: error: 'l' does not name a type
    3 | l = list(map(int, input().split()))
      | ^
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
  int a = sc.nextInt();
  int b = sc.nextInt();
  int c = sc.nextInt();
  int d = sc.nextInt();
  int e = sc.nextInt();
  int ans = a +  ((b-1)/10)*10 + ((c-1)/10)*10 + ((d-1)/10)*10 + ((e-1)/10)*10;
  ans = Math.min(ans, int ans = b +  ((a-1)/10)*10 + ((c-1)/10)*10 + ((d-1)/10)*10 + ((e-1)/10)*10);
  ans = Math.min(ans, int ans = c +  ((a-1)/10)*10 + ((b-1)/10)*10 + ((d-1)/10)*10 + ((e-1)/10)*10);
  ans = Math.min(ans, int ans = d +  ((a-1)/10)*10 + ((c-1)/10)*10 + ((b-1)/10)*10 + ((e-1)/10)*10);
  ans = Math.min(ans, int ans = e +  ((a-1)/10)*10 + ((c-1)/10)*10 + ((d-1)/10)*10 + ((b-1)/10)*10);
  System.out.println(ans);
}}


Compiler output:
Main.java:11: error: '.class' expected
  ans = Math.min(ans, int ans = b +  ((a-1)/10)*10 + ((c-1)/10)*10 + ((d-1)/10)*10 + ((e-1)/10)*10);
                          ^
Main.java:11: error: ';' expected
  ans = Math.min(ans, int ans = b +  ((a-1)/10)*10 + ((c-1)/10)*10 + ((d-1)/10)*10 + ((e-1)/10)*10);
                                                                                                  ^
Main.java:12: error: '.class' expected
  ans = Math.min(ans, int ans = c +  ((a-1)/10)*10 + ((b-1)/10)*10 + ((d-1)/10)*10 + ((e-1)/10)*10);
                          ^
Main.java:12: error: ';' expected
  ans = Math.min(ans, int ans = c +  ((a-1)/10)*10 + ((b-1)/10)*10 + ((d-1)/10)*10 + ((e-1)/10)*10);
                                                                                                  ^
Main.java:13: error: '.class' expected
  ans = Math.min(ans, int ans = d +  ((a-1)/10)*10 + ((c-1)/10)*10 + ((b-1)/10)*10 + ((e-1)/10)*10);
                          ^
Main.java:13: error: ';' expected
  ans = Math.min(ans, int ans = d +  ((a-1)/10)*10 + ((c-1)/10)*10 + ((b-1)/10)*10 + ((e-1)/10)*10);
                                                                                                  ^
Main.java:14: error: '.class' expected
  ans = Math.min(ans, int ans = e +  ((a-1)/10)*10 + ((c-1)/10)*10 + ((d-1)/10)*10 + ((b-1)/10)*10);
                          ^
Main.java:14: error: ';' expected
  ans = Math.min(ans, int ans = e +  ((a-1)/10)*10 + ((c-1)/10)*10 + ((d-1)/10)*10 + ((b-1)/10)*10);
                                                                                                  ^
8 errors