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

import java.util.*;
public class Main{
  public static void main(String[] args){
   	Scanner sc = new Scanner(System.in);
 
    int Na = sc.nextInt();
    int Nb = sc.nextInt();
    int Nc = sc.nextInt();
    int Nd = sc.nextInt();
    int Ne = sc.nextInt();
    
    int count = 0;
    int[] N1 = new int[5];
    N1[0] = Na%10;
    N1[1] = Nb%10;
    N1[2] = Nc%10;
    N1[3] = Nd%10;
    N1[4] = Ne%10;
    
    int sum = Na-N1[0]+Nb-N1[1]+Nc-N1[2]+Nd-N1[3]+Ne-N1[4]+40;
    
    Arrays.sort(N1);
    int min = 9;
    for(int i = 0; i<5;i++)
    {
    	if(N1[i] == 0) count++;
      	else 
        {
          min = Ni[i];
          break;
        }
    }
   	System.out.println(sum - 10 * count +min);
 }
}

Compiler output:
Main.java:29: error: cannot find symbol
          min = Ni[i];
                ^
  symbol:   variable Ni
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
   	Scanner sc = new Scanner(System.in);
 
    int Na = sc.nextInt();
    int Nb = sc.nextInt();
    int Nc = sc.nextInt();
    int Nd = sc.nextInt();
    int Ne = sc.nextInt();
    
    int count = 0;
    int[] N1 = new int[5];
    N1[0] = Na%10;
    N1[1] = Nb%10;
    N1[2] = Nc%10;
    N1[3] = Nd%10;
    N1[4] = Ne%10;
    
    int sum = Na-N1[0]+Nb-N1[1]+Nc-N1[2]+Nd-N1[3]+Ne-N1[4]+40;
    
    Arrays.sort(N1);
    int min = 9;
    for(int i = 0; i<5;i++)
    {
    	if(N1[i] == 0) count++;
      	else 
        {
          min = N[i];
          break;
        }
    }
   	System.out.println(sum - 10 * count +min);
 }
}

Compiler output:
Main.java:29: error: cannot find symbol
          min = N[i];
                ^
  symbol:   variable N
  location: class Main
1 error
Language: Java

import java.util.Scanner;

/**
 *
 * @author c0117321c5
 */
public class ABC123b {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        double a = sc.nextInt();
        double b = sc.nextInt();
        double c = sc.nextInt();
        double d = sc.nextInt();
        double e = sc.nextInt();
        double min = 0;
        double a1 = a / 10;
        a1 = Math.ceil(a1);
        double b1 = b / 10;
        b1 = Math.ceil(b1);
        double c1 = c / 10;
        c1 = Math.ceil(c1);
        double d1 = d / 10;
        d1 = Math.ceil(d1);
        double e1 = e / 10;
        e1 = Math.ceil(e1);
        double sum = a1 + b1 + c1 + d1 + e1;
        min = a % 10;
        if (min > b % 10 && b % 10 != 0) {
            min = b % 10;
        }
        if (min > c % 10 && c % 10 != 0) {
            min = c % 10;
        }
        if (min > d % 10 && d % 10 != 0) {
            min = d % 10;
        }
        if (min > e % 10 && e % 10 != 0) {
            min = e % 10;
        }
        sum = (sum * 10) - 10 + min;
        System.out.println((int) sum);
    }

}


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

#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define RREP(i, n) for (int i = (n); i >= 0; i--)
#define FOR(i, m, n) for (int i = (m); i < (n); i++)
#define ALL(obj) begin(obj), end(obj)
using namespace std;
using ll = long long;

const int INF = 200000000;
const int MOD = 1e9 + 7;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    vector<int> dish(5);
    REP(i, 5) {
        int a;
        cin >> a;
        dish[i] = a;
    }

    int min_r = 10;
    int min_index = 0;
    REP(i, 5) {
        if (dish[i] % 10 < min_r && dish[i] % 10 != 0) {
            min_r = dish[i] % 10;
            min_index = i;
        }
    }
    int sum = 0;
    REP(i, 5) {
        sum += dish[i];
        if (dish[i] % 10 != 0) {
            sum += 10 - (dish[i] % 10);
        }
    }
    if (min_index[min_index] % 10 != 0) {
        sum -= (10 - (dish[min_index] % 10));
    }

    cout << sum << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:18: error: invalid types 'int[int]' for array subscript
   38 |     if (min_index[min_index] % 10 != 0) {
      |                  ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define RREP(i, n) for (int i = (n); i >= 0; i--)
#define FOR(i, m, n) for (int i = (m); i < (n); i++)
#define ALL(obj) begin(obj), end(obj)
using namespace std;
using ll = long long;

const int INF = 200000000;
const int MOD = 1e9 + 7;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    vector<int> dish(5);
    REP(i, 5) {
        int a;
        cin >> a;
        dish[i] = a;
    }

    int min_r = 10;
    int min_index = 0;
    REP(i, 5) {
        if (dish[i] % 10 < min_r && dish[i] % 10 != 0) {
            min_r = dish[i] % 10;
            min_index = i;
        }
    }
    int sum = 0;
    REP(i, 5) {
        sum += dish[i];
        if (dish[i] % 10 != 0) {
            sum += 10 - (dish[i] % 10);
        }
    }
    if (min_index[i] % 10 != 0) {
        sum -= (10 - (dish[min_index] % 10));
    }

    cout << sum << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:19: error: 'i' was not declared in this scope
   38 |     if (min_index[i] % 10 != 0) {
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int maxtime(int x) {
    //１の位を切り上げる
    return(x + 9) / 10 * 10;
}
int remitime(int x) {
    //ロスする時間
    return(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) - max({remitime(a),remitime(b),remitime(c),remitime(d),remitime(e)});

    cout << sum << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: expected unqualified-id before ';' token
   12 |     int a,b,c,d,e,;
      |                   ^
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int[] time = new int[5];
    int min = 10;
    int n = 0;
    for(int i = 0;i < 5;i ++){
      time[i] = Integer.parseInt(scan.nextLine());
      if((time[i] - 1) % 10 < min){
        min = (time[i] - 1) % 10;
        n = i;
      }
    }
    int sum = 0;
    for(int i = 0;i < 5;i ++){
      if(i != n) sum += (time[i] / 10 + 1) * 10;
    }
    System.out.println(sum + a[n]);
  }
}

Compiler output:
Main.java:20: error: cannot find symbol
    System.out.println(sum + a[n]);
                             ^
  symbol:   variable a
  location: class Main
1 error
Language: Java

#include<iostream>
using namespace std;

int main(){
  int a[5];
  cin>>a[0]>>a[1]>>a[2]>>as[3]>>a[4];
  int min = 10;
  int n = 0;
  for(int i = 0;i < 5;i ++){
    if((a[i] - 1) % 10 < min){
      min = a[i] % 10;
      n = i;
    }
  }
  int sum = 0;
  for(int i = 0;i < 5;i ++){
    if(i != n) sum += (a[i] / 10 + 1) * 10;
  }
  sum += a[n];
  cout << sum << endl;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include<iostream>
        ^
Main.java:6: error: not a statement
  cin>>a[0]>>a[1]>>a[2]>>as[3]>>a[4];
                              ^
Main.java:20: error: not a statement
  cout << sum << endl;
              ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: ']' expected
  int a[5];
        ^
6 errors
Language: C++

#include<iostream>
using namespace std;

int main(){
  int[] a;
  cin>>a[0]>>a[1]>>a[2]>>as[3]>>a[4];
  int min = 10;
  int n = 0;
  for(int i = 0;i < 5;i ++){
    if((a[i] - 1) % 10 < min){
      min = a[i] % 10;
      n = i;
    }
  }
  int sum = 0;
  for(int i = 0;i < 5;i ++){
    if(i != n) sum += (a[i] / 10 + 1) * 10;
  }
  sum += a[n];
  cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: structured binding declaration cannot have type 'int'
    5 |   int[] a;
      |      ^~
a.cc:5:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:5:6: error: empty structured binding declaration
a.cc:5:9: error: expected initializer before 'a'
    5 |   int[] a;
      |         ^
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin>>a[0]>>a[1]>>a[2]>>as[3]>>a[4];
      |        ^
a.cc:6:26: error: 'as' was not declared in this scope; did you mean 'abs'?
    6 |   cin>>a[0]>>a[1]>>a[2]>>as[3]>>a[4];
      |                          ^~
      |                          abs
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
  vector<int> a(5);
  int sum=0;
  for(int i=0;i<5;i++){
    cin >> a[i];
    sum+=a[i];
    a[i] %= 10;
  }
  sort(a.rbegin(),a.rend());
  for(int i=0;i<4;i++){
    if(a[i]!=0){
      sum+=10-a[i];
  }
  cout << sum << endl;
}


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

#include<bits/stdc++.h>
#define rep(i,a) for(int i=0;i<a;i++)
using namespace std;
int test(int a){
    return (((a-1)/10+1)*10);
}
int main()
{
    vector<int> v;
    int minm=643;
    rep(i,5){
        int enter;
        cin>>enter;
        v.push_back(enter);
    }
    sort(v.begin(),v.end());
    do{
        minm=min(minn,test(v[0])+test(v[1])+test(v[2])+test(v[3])+v[4]);
    }while(next_permutation(v.begin(),v.end()));
  cout<<minm<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: 'minn' was not declared in this scope; did you mean 'minm'?
   18 |         minm=min(minn,test(v[0])+test(v[1])+test(v[2])+test(v[3])+v[4]);
      |                  ^~~~
      |                  minm
Language: C++

#include<bits/stdc++.h>
#define rep(i,a) for(int i=0;i<a;i++)
using namespace std;
int test(int a){
    return (((a-1)/10+1)*10);
}
int main()
{
    vector<int> v;
    int minm=643;
    rep(i,5){
        int enter;
        cin>>enter;
        v.push_back(enter);
    }
    sort(v.begin(),v.end());
    do{
        minn=min(minn,test(v[0])+test(v[1])+test(v[2])+test(v[3])+v[4]);
    }while(next_permutation(v.begin(),v.end()));
  cout<<minn<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'minn' was not declared in this scope; did you mean 'minm'?
   18 |         minn=min(minn,test(v[0])+test(v[1])+test(v[2])+test(v[3])+v[4]);
      |         ^~~~
      |         minm
a.cc:20:9: error: 'minn' was not declared in this scope; did you mean 'minm'?
   20 |   cout<<minn<<endl;
      |         ^~~~
      |         minm
Language: C++

#include <bits/stdc++.h>

#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
const int INF = 1e9;

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 << ans << endl;
  return 0;
}

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

#include<bits/stdc++.h>
#include<iostream>
#include<cstdio>
#include<vector>
#include<string>
#include<algorithm>
#include<map>
using namespace std;
#define rep(i,x) for(int i = 0; i < x; i++)
#define pb push_back
#define mp make_pair
typedef long long ll;
typedef long double ld;
typedef pair<int,int> P;
typedef pair<ll,ll> Pll;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef vector<vector<vector<int>>> vvvi;
const ll MOD = 1e9+7;
const int n_max = 1e5+10;


int main(){
    vector<int> price(5)
    rep(i,5)cin >> price[i];
    int res = INT_MAX;
    sort(price.begin(), price.end());
    do{
        int temp = 0;
        rep(i,4){
            temp = price[i];
            temp = ceil(temp / 10.0) * 10;
        }
        temp += price[5];
        res = min(res, temp);
    }while(next_permutation(price.begin(), price.end()));
    cout << res << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ',' or ';' before 'for'
    9 | #define rep(i,x) for(int i = 0; i < x; i++)
      |                  ^~~
a.cc:25:5: note: in expansion of macro 'rep'
   25 |     rep(i,5)cin >> price[i];
      |     ^~~
a.cc:25:9: error: 'i' was not declared in this scope; did you mean 'vi'?
   25 |     rep(i,5)cin >> price[i];
      |         ^
a.cc:9:33: note: in definition of macro 'rep'
    9 | #define rep(i,x) for(int i = 0; i < x; i++)
      |                                 ^
Language: C++

#include <bits/stdc++.h>
#include <algorithm>
using namespace std;
int main() {

int a,b,c,d[10],e,f;
  cin >> a;
  cin >> b;
  cin >> c;
  cin >> e;
  cin >> f;
  
  if(a%10 != 0){
  d[0] = (a/10+1)*10 -a;
  }
  else if(a%10 ==0) {
    d[0] = 0;
  }
  
   else if(b%10 != 0){
  d[1] = (b/10+1)*10 -b;
  }
  else if(b%10 ==0){
    d[1] = 0;
  }
  
  else if(c%10 != 0){
  d[2] = (c/10+1)*10 -c;
  }
  else if(c%10 == 0){
    d[2] = 0;
  } 
  
  else if(e%10 != 0){
  d[3] = (d/10+1)*10 -d;
  }
  else if(e%10 == 0){
    d[3] = 0;
  } 
  else if(f%10 != 0){
  d[4] = (f/10+1)*10 -f;
  }
  else if(f%10 == 0){
    d[4] = 0;
  } 
  
  sort(d,d+5,greater<int>());
  
  cout << d[1]+d[2]+d[3]+d[4]+(a+b+c+e+f) << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:35:12: error: invalid operands of types 'int [10]' and 'int' to binary 'operator/'
   35 |   d[3] = (d/10+1)*10 -d;
      |           ~^~~
      |           | |
      |           | int
      |           int [10]
Language: C++

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

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


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

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

int main(){
    vector <int> A(5);
    rep(i,5) cin >> A[i];
    
    int num=0;
    int ans=0;
    int min=10;
    rep(i,5){
        if (min>A[i]%10){
            min=A[i]%10;
            num=i;
        }
    }
    
    rep(i,num){
        if (A[i]%10==0) ans+=A[i];
        else{
            ans+={10-(A[i]%10) + A[i]};
        }    
    }
    for (int i=num+1; i<5; i++){
        if (A[i]%10==0) ans+=A[i];
        else{
            ans=ans+10-(A[i]%10) + A[i];
        }    
    }
    ans+=A[num];
    cout << ans;
    
    
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:38: error: invalid use of brace-enclosed initializer list
   22 |             ans+={10-(A[i]%10) + A[i]};
      |                                      ^
Language: C++

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

int main(){
    vector <int> A(5);
    rep(i,5) cin >> A[i];
    
    int num=0;
    int ans=0;
    int min=10;
    rep(i,5){
        if (min>A[i]%10){
            min=A[i]%10;
            num=i;
        }
    }
    
    rep(i,num){
        if (A[i]%10==0) ans+=A[i];
        else{
            ans+={10-(A[i]%10) + A[i]};
        }    
    }
    for (int i=num+1; i<5; i++){
        if (A[i]%10==0) ans+=A[i];
        else{
            ans+={10-(A[i]%10) + A[i]};
        }    
    }
    ans+=A[num];
    cout << ans;
    
    
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:38: error: invalid use of brace-enclosed initializer list
   22 |             ans+={10-(A[i]%10) + A[i]};
      |                                      ^
a.cc:28:38: error: invalid use of brace-enclosed initializer list
   28 |             ans+={10-(A[i]%10) + A[i]};
      |                                      ^
Language: C++

int main() {
    vector<int> A(5);
    cin >> A[0] >> A[1] >> A[2] >> A[3] >> A[4];
    vector<int> P = {0, 1, 2, 3, 4};
    int final_answer = INF;
    do {
        int ans = 0;
        for (int i = 0; i < 5; ++i){ // 注文時刻の10の倍数まで1を追加していく
            while (ans % 10 != 0) ans += 1; // 注文時刻以外のとき
            ans += A[P[i]];
        }
        final_answer = min(final_answer, ans);
    } while (next_permutation(P.begin(), P.end()));
    cout << final_answer << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:5: error: 'vector' was not declared in this scope
    2 |     vector<int> A(5);
      |     ^~~~~~
a.cc:2:12: error: expected primary-expression before 'int'
    2 |     vector<int> A(5);
      |            ^~~
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> A[0] >> A[1] >> A[2] >> A[3] >> A[4];
      |     ^~~
a.cc:3:12: error: 'A' was not declared in this scope
    3 |     cin >> A[0] >> A[1] >> A[2] >> A[3] >> A[4];
      |            ^
a.cc:4:12: error: expected primary-expression before 'int'
    4 |     vector<int> P = {0, 1, 2, 3, 4};
      |            ^~~
a.cc:5:24: error: 'INF' was not declared in this scope
    5 |     int final_answer = INF;
      |                        ^~~
a.cc:10:22: error: 'P' was not declared in this scope
   10 |             ans += A[P[i]];
      |                      ^
a.cc:12:24: error: 'min' was not declared in this scope; did you mean 'main'?
   12 |         final_answer = min(final_answer, ans);
      |                        ^~~
      |                        main
a.cc:13:31: error: 'P' was not declared in this scope
   13 |     } while (next_permutation(P.begin(), P.end()));
      |                               ^
a.cc:13:14: error: 'next_permutation' was not declared in this scope
   13 |     } while (next_permutation(P.begin(), P.end()));
      |              ^~~~~~~~~~~~~~~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << final_answer << endl;
      |     ^~~~
a.cc:14:29: error: 'endl' was not declared in this scope
   14 |     cout << final_answer << endl;
      |                             ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int A,B,C,D,E;
  cin>>A>>B>>C>>D>>E;
  int A1,B1,C1,D1,E1;
  A1=A%10;
  B1=B%10;
  C1=C%10;
  D1=D%10;
  E1=E%10;
  int tmp=min({A1,B1,C1,D1,E1});
  int A2,B2,C2,D2,E2;
  A2=(A+9)/10*10;
  B2=(B+9)/10*10;
  C2=(C+9)/10*10;
  D2=(D+9)/10*10;
  E2=(E+9)/10*10;
  int ans=A2+B2+C2+D2+E2;
  
  cout<<ans-tmp<<endl;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   12 |   int tmp=min({A1,B1,C1,D1,E1});
      |           ~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
Language: C++

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

int f(int i){
  if(i%10!=0)
    return i%10;
  else
    return 10;
}

int main(){
  int a,b,c,d,e,m,s=0,t,u;
  cin >> a >> b >> c >> d >> e;
  vector<int> r(5);
  r[0]=a;
  r[1]=b;
  r[2]=c;
  r[3]=d;
  r[4]=e;
  m=f(a[0]);
  for(int i=1;i<5;i++)
    m=min(m,f(a[i]));
  if(m==10){
    for(int i=0;i<5;i++)
      s+=r[i];
  }else{
   for(int i=0;i<5;i++){
     if(a[i]%10==m){
       t=a[i];
       u=i;
       break;
     }
   }
    for(int j=0;j<5;j++){
      if(j==u)
        continue;
      else if(a[j]%10!=0)
        s=s+a[j]+10-a[j]%10;
      else
        s+=a[j];
    }
    s+=t;
  }
  cout << s;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:8: error: invalid types 'int[int]' for array subscript
   20 |   m=f(a[0]);
      |        ^
a.cc:22:16: error: invalid types 'int[int]' for array subscript
   22 |     m=min(m,f(a[i]));
      |                ^
a.cc:28:10: error: invalid types 'int[int]' for array subscript
   28 |      if(a[i]%10==m){
      |          ^
a.cc:29:11: error: invalid types 'int[int]' for array subscript
   29 |        t=a[i];
      |           ^
a.cc:37:16: error: invalid types 'int[int]' for array subscript
   37 |       else if(a[j]%10!=0)
      |                ^
a.cc:38:14: error: invalid types 'int[int]' for array subscript
   38 |         s=s+a[j]+10-a[j]%10;
      |              ^
a.cc:38:22: error: invalid types 'int[int]' for array subscript
   38 |         s=s+a[j]+10-a[j]%10;
      |                      ^
a.cc:40:13: error: invalid types 'int[int]' for array subscript
   40 |         s+=a[j];
      |             ^
Language: C++

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

int main() {
	int a, b, c, d, e;
	cin >> a >> b >> c >> d >> e;
	int n;
	vector<int> time = {a, b, c, d, e};
	vector<int> index = {0, 1, 2, 3, 4};
	int bestTime = 1e9;
	do {
		int nowTime = 0;
		for (int i = 0; i < n; i++) {
			while (nowTime % 10 != 0) nowTime++;
			nowTime += time[index[i]];
		}
		bestTime = min(bestTime, nowTime);q
	} while (next_permutation(index.begin(), index.end()));

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:51: error: 'q' was not declared in this scope
   17 |                 bestTime = min(bestTime, nowTime);q
      |                                                   ^
Language: C++

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

int main() {
	int a, b, c, d, e;
	cin >> a >> b >> c >> d >> e;
	int n;
	vector<int> time = [a, b, c, d, e];
	vector<int> index = [0, 1, 2, 3, 4];
	int bestTime = 1e9;
	do {
		int nowTime = 0;
		for (int i = 0; i < n; i++) {
			while (nowTime % 10 != 0) nowTime++;
			nowTime += time[index[i]];
		}
		bestTime = min(bestTime, nowTime);q
	} while (next_permutation(index.begin(), index.end()));

	return 0;

}

Compiler output:
a.cc: In lambda function:
a.cc:8:43: error: expected '{' before ';' token
    8 |         vector<int> time = [a, b, c, d, e];
      |                                           ^
a.cc: In function 'int main()':
a.cc:8:28: error: conversion from 'main()::<lambda()>' to non-scalar type 'std::vector<int>' requested
    8 |         vector<int> time = [a, b, c, d, e];
      |                            ^~~~~~~~~~~~~~~
a.cc:9:30: error: expected identifier before numeric constant
    9 |         vector<int> index = [0, 1, 2, 3, 4];
      |                              ^
a.cc:9:31: error: expected ']' before ',' token
    9 |         vector<int> index = [0, 1, 2, 3, 4];
      |                               ^
      |                               ]
a.cc: In lambda function:
a.cc:9:31: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:9:29: error: conversion from 'main()::<lambda()>' to non-scalar type 'std::vector<int>' requested
    9 |         vector<int> index = [0, 1, 2, 3, 4];
      |                             ^~
a.cc:9:33: error: expected unqualified-id before numeric constant
    9 |         vector<int> index = [0, 1, 2, 3, 4];
      |                                 ^
a.cc:17:51: error: 'q' was not declared in this scope
   17 |                 bestTime = min(bestTime, nowTime);q
      |                                                   ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
using namespace std;
int main() {
    int a[5],b[5],ans=0;
    rep(i,n) {
        cin>>a[i];
        b[i]=a[i]%10;
        ans+=a[i];
    }
    sort(b.begin(),b.end());
    bool mini=1
    for(int i=0;mini==1;i++) {
        if(b[i]!=0) {
            ans-=(10-b[i]);
            mini=0;
        }
    }
    cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'n' was not declared in this scope
    6 |     rep(i,n) {
      |           ^
a.cc:2:38: note: in definition of macro 'rep'
    2 | #define rep(i,n) for(int i=0;i<(int)(n);i++)
      |                                      ^
a.cc:11:12: error: request for member 'begin' in 'b', which is of non-class type 'int [5]'
   11 |     sort(b.begin(),b.end());
      |            ^~~~~
a.cc:11:22: error: request for member 'end' in 'b', which is of non-class type 'int [5]'
   11 |     sort(b.begin(),b.end());
      |                      ^~~
a.cc:13:5: error: expected ',' or ';' before 'for'
   13 |     for(int i=0;mini==1;i++) {
      |     ^~~
a.cc:13:25: error: 'i' was not declared in this scope
   13 |     for(int i=0;mini==1;i++) {
      |                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define SORT(c) sort((c).begin(),(c).end())
#define REVERSE(c) reverse((c).begin(), (c).end());
const long long MOD = 10e9 + 7;
typedef long long ll;

int main(){
	int sum = 0;
	vector<pair<int,int>> D(5);
	rep(i, 5){
		cin >> D.at(i).second;
		D.at(i).first = S.at(i).second % 10;
	}
	SORT(D);
	REVERSE(D);
	rep(i, 4){
		D.at(i + 1).second /= 10;
		D.at(i + 1).second *= 10;
	}
	rep(i, 5) sum += D.at(i).second;
	cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:33: error: 'S' was not declared in this scope
   14 |                 D.at(i).first = S.at(i).second % 10;
      |                                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define SORT(c) sort((c).begin(),(c).end())
#define REVERSE(c) reverse((c).begin(), (c).end());
const long long MOD = 10e9 + 7;
typedef long long ll;

int main(){
	int sum = 0;
	vector<pair<int,int>> D(5);
	rep(i, 5){
		cin >> D.at(i).second;
		D.at(i).first = S.at(i).second % 10;
	}
	SORT(D);
	rep(i, 4){
		D.at(i + 1).second /= 10;
		D.at(i + 1).second *= 10;
	}
	rep(i, 5) sum += D.at(i).second;
	cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:33: error: 'S' was not declared in this scope
   14 |                 D.at(i).first = S.at(i).second % 10;
      |                                 ^
Language: C++

#include<algorithm>//sort(all(変数),greater<型名>())　で降順に
#include<cmath>//切り上げceil(値)
#include<deque>
#include<iomanip>//setprecision(数字)
#include<iostream>
#include<list>
#include<map>
#include<numeric> //xとyの最大公約数は__gcd(x,y),xとyの最小公倍数は(x*y)/__gcd
#include<queue>
#include<set>
#include<stack>
#include<string>
#include<vector>

#include<bits/stdc++.h>
#include<cstdio>
#include<cstdlib>
#include<tuple>
#include<utility>
#define rep(i,n) for(ll i=0; i<n; i++)
#define vll vector<ll>
#define vi vector<int>
#define all(x) (x).begin(),(x).end()
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define mod 1000000007
using ll = long long;
using namespace std;

int main(){
  int x(5);
  rep(i,5){
    cin >> x[i];
  }
  int max = 0, ans = 0;
  rep(i,5){
    ans += ceil(x[i]);
    if(max < x[i]%10){
      max = x[i]%10;
    }
  }
  cout << ans-max;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:13: error: invalid types 'int[ll {aka long long int}]' for array subscript
   35 |     cin >> x[i];
      |             ^
a.cc:39:18: error: invalid types 'int[ll {aka long long int}]' for array subscript
   39 |     ans += ceil(x[i]);
      |                  ^
a.cc:40:15: error: invalid types 'int[ll {aka long long int}]' for array subscript
   40 |     if(max < x[i]%10){
      |               ^
a.cc:41:14: error: invalid types 'int[ll {aka long long int}]' for array subscript
   41 |       max = x[i]%10;
      |              ^
Language: C++

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

int main(){
  int a[5];
  int time=0;
  int amari_min=9;
  rep(i,5){
    cin >> a[i];
    time += (a[i] + 9) / 10;
    int amari;
    amari = a[i] % 10;
    if (amari != 0){
      if (amari < amari_min) amari_min = amari;
    }
  }
  time = (time-1) * 10 + amari;
  cout << time;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:18:26: error: 'amari' was not declared in this scope
   18 |   time = (time-1) * 10 + amari;
      |                          ^~~~~
Language: C++

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

int main(){
  int a[5];
  int time=0;
  int amari=9;
  rep(i,n){
    cin >> a[i];
    time += (a[i] + 9) / 10;
    if (a[i] % 10 < amari) amari = a[i] % 10;
  }
  time = (time-1) * 10 + amari;
  cout << time;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'n' was not declared in this scope
    9 |   rep(i,n){
      |         ^
a.cc:2:34: note: in definition of macro 'rep'
    2 | #define rep(i,n) for (int i=0;i<(n);++i)
      |                                  ^
Language: C++

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

int maxtime(int x) {
	return (x + 9) / 10 * 10;
}
int retime(int x) {
	return maxtime(x) - x;
}

int main() {
	int a, b, c, d, e;
	cin >> a >> b >> c >> d >> e ;
	int A = maxtime(a) + maxtime(b) + maxtime(c) + maxtime(d) + maxtime(e);
	int B = A - max(retime(a), retime(b), retime(c), retime(d), retime(e));
	cout << B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:24: error: no matching function for call to 'max(int, int, int, int, int)'
   16 |         int B = A - max(retime(a), retime(b), retime(c), retime(d), retime(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:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 5 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303: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:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 5 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 5 provided
Language: C++

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

int main() {
	vector<int> a(5);
	cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4];
	vector<int> s = { 0, 1, 2, 3, 4 };
	int fans= 999999;
	do {
		int ans = 0;
		for (int i = 0; i < 5; ++i) {
			while (ans % 10 != 0) ans += 1;
			ans += a[s[i]];
		}
		fans= min(fans, ans);
	} while (next_permutation(P.begin(), P.end()));
	cout << fans<< endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:35: error: 'P' was not declared in this scope
   16 |         } while (next_permutation(P.begin(), P.end()));
      |                                   ^
Language: C++

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

int main() {
	vector<int> a(5);
	cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4];
	vector<int> s = { 0, 1, 2, 3, 4 };
	int fans= 999999;
	do {
		int ans = 0;
		for (int i = 0; i < 5; ++i) {
			while (ans % 10 != 0) ans += 1;
			ans += a[s[i]];
		}
		fans= min(fans, ans);
	} while (next_permutation(P.begin(), P.end()));
	cout << fans<< endl;
	return 0;
}


Compiler output:
a.cc:1:9: fatal error: bit/stdc++.h: No such file or directory
    1 | #include<bit/stdc++.h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>

int main(){
	int dishes[5];
	for(int i=0; i<5; i++){
		scanf("%d", &dishes[i]);
	}
	int max=0;
	for(int i=0; i<5; i++){
		if(dishes[i]%10 > max){
			max= dishes[i]%10;
	}
	int time=0;
	for(int i=0; i<5; i++){
		time += (dishes[i]/10)*10*10;
	}
	time -= max;
	printf("%d",time);
	
	return 0;
}

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

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

int main() {
  vector<int>vec;
  vector<int>amari;
  int ans;
  rep(i,5){
    cin >> vec[i];
    ans+=(vec[i]+10-vec[i]%10);
    amari[i]=vec[i]%10;
  }
  sort(amari.begin(),amari.end());
  
  cout << ans-10+amari[i];
}
  
    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:16:24: error: 'i' was not declared in this scope
   16 |   cout << ans-10+amari[i];
      |                        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef vector<ll> vl;
typedef vector<pair<ll,ll>> vp;
#define rep(i,n) for(ll i = 0; i < ll(n); i++)
#define all(v) v.begin() , v.end()
#define inputv(v,n) rep(i,n){\
    ll x;\
    cin>>x;\
    v.push_back(x);\
    }
const ll INF=99999999999999;
const ll MOD=1000000007;
 
int main() {
  ll a,b,c,d,e;
  cin >> a >> b >> c >> d >> e;
  ll ra,rb,rc,rd,re;
  ra = ((a+9)/10)*10-a;
  rb = ((b+9)/10)*10-b;
  rc = ((c+9)/10)*10-c;
  rd = ((d+9)/10)*10-d;
  re = ((e+9)/10)*10-e;
  ll num;
  num = max(ra,(max(rb,max(rc,max(rd,max(re))))));
  cout << ((a+9)/10)*10+((b+9)/10)*10+((c+9)/10)*10+((d+9)/10)*10+((e+9)/10)*10-num;

  
  
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:41: error: no matching function for call to 'max(ll&)'
   26 |   num = max(ra,(max(rb,max(rc,max(rd,max(re))))));
      |                                      ~~~^~~~
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:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
a.cc:26:41: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   26 |   num = max(ra,(max(rb,max(rc,max(rd,max(re))))));
      |                                      ~~~^~~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: Java

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class CF {

    private static final long M = 998_244_353;

    // 13:29-
    public static void main(String[] args) throws Exception {
        try (BufferedInputStream in = new BufferedInputStream(System.in);
             PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {

            Scanner sc = new Scanner(in);

            int[] times = new int[5];
            int[] actual = new int[5];
            int maxDiff = Integer.MIN_VALUE;
            int diffPos = -1;
            for (int i = 0; i < 5; i++) {
                int x = sc.nextInt();
                actual[i] = x;
                int sum = 0;
                sum += x / 10 * 10;
                if (x % 10 > 0) sum += 10;
                times[i] = sum;
                int diff = sum - x;
                if (diff > maxDiff) {
                    maxDiff = diff;
                    diffPos = i;
                }
            }

            int total = 0;
            for (int i = 0; i < times.length; i++) if (i != diffPos) total += times[i];

            out.println(total + actual[diffPos]);
        }
    }
}


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

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<math.h>
using namespace std;
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;
    return 0;
}

int maxtime(int x){
    return (x + 9) / 10 * 10;
}

int remtime(int x){
    return maxtime(x) - x;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'maxtime' was not declared in this scope; did you mean 'mktime'?
   10 |     int sum=maxtime(a)+maxtime(b)+maxtime(c)+maxtime(d)+maxtime(e);
      |             ^~~~~~~
      |             mktime
a.cc:11:15: error: 'remtime' was not declared in this scope; did you mean 'gmtime'?
   11 |     sum-=max({remtime(a),remtime(b),remtime(c),remtime(d),remtime(e)});
      |               ^~~~~~~
      |               gmtime
a.cc:11:13: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   11 |     sum-=max({remtime(a),remtime(b),remtime(c),remtime(d),remtime(e)});
      |          ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(int i = 0;i<n;i++)
using namespace std;
int z(int x){
  return (x-1)-(x-1)%10+10;
}
int main(){
  int a,b,c,d,e;
  cin>>a>>b>>c>>d>>e;
  int m=min((a-1)%10,min((min((b-1)%10,(c-1)%10),(min((d-1)%10,(e-1)%10))))+1;  
  cout<<z(a)+z(b)+z(c)+z(d)+z(e)-10+m<<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: warning: ignoring return value of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]', declared with attribute 'nodiscard' [-Wunused-result]
   10 |   int m=min((a-1)%10,min((min((b-1)%10,(c-1)%10),(min((d-1)%10,(e-1)%10))))+1;
      |                           ~~~^~~~~~~~~~~~~~~~~~~
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: declared here
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:10:25: error: no matching function for call to 'min(const int&)'
   10 |   int m=min((a-1)%10,min((min((b-1)%10,(c-1)%10),(min((d-1)%10,(e-1)%10))))+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
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:   template argument deduction/substitution failed:
a.cc:10:25: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   10 |   int m=min((a-1)%10,min((min((b-1)%10,(c-1)%10),(min((d-1)%10,(e-1)%10))))+1;
      |                      ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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, 1 provided
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(int i = 0;i<n;i++)
using namespace std;
int z(int x){
  return (x-1)-(x-1)%10+10;
}
int main(){
  int a,b,c,d,e;
  cin>>a>>b>>c>>d>>e;
  int m=min((a-1)%10,min((min((b-1)%10,(c-1)%10),(min((d-1)%10,(e-1)%10)))+1;  
  cout<<z(a)+z(b)+z(c)+z(d)+z(e)-10+m<<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: warning: ignoring return value of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]', declared with attribute 'nodiscard' [-Wunused-result]
   10 |   int m=min((a-1)%10,min((min((b-1)%10,(c-1)%10),(min((d-1)%10,(e-1)%10)))+1;
      |                           ~~~^~~~~~~~~~~~~~~~~~~
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: declared here
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:10:77: error: expected ')' before ';' token
   10 |   int m=min((a-1)%10,min((min((b-1)%10,(c-1)%10),(min((d-1)%10,(e-1)%10)))+1;
      |                         ~                                                   ^
      |                                                                             )
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(int i = 0;i<n;i++)
using namespace std;
int z(int x){
  return (x-1)-(x-1)%10+10;
}
int main(){
  int a,b,c,d,e;
  cin>>a>>b>>c>>d>>e;
  int m=min((a-1)%10,min((min((b-1)%10,(c-1)%10),(min((d-1)%10,(e-1)%10))))+1;  )
  cout<<z(a)+z(b)+z(c)+z(d)+z(e)-10+m<<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: warning: ignoring return value of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]', declared with attribute 'nodiscard' [-Wunused-result]
   10 |   int m=min((a-1)%10,min((min((b-1)%10,(c-1)%10),(min((d-1)%10,(e-1)%10))))+1;  )
      |                           ~~~^~~~~~~~~~~~~~~~~~~
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: declared here
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:10:25: error: no matching function for call to 'min(const int&)'
   10 |   int m=min((a-1)%10,min((min((b-1)%10,(c-1)%10),(min((d-1)%10,(e-1)%10))))+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
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:   template argument deduction/substitution failed:
a.cc:10:25: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   10 |   int m=min((a-1)%10,min((min((b-1)%10,(c-1)%10),(min((d-1)%10,(e-1)%10))))+1;  )
      |                      ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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, 1 provided
a.cc:10:81: error: expected primary-expression before ')' token
   10 |   int m=min((a-1)%10,min((min((b-1)%10,(c-1)%10),(min((d-1)%10,(e-1)%10))))+1;  )
      |                                                                                 ^