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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,d,e,k1[5]={};
  cin >> a >> b >> c >> d >> e;
  k1[0]=(a%100)%10;
  k1[1]=(b%100)%10;
  k1[2]=(c%100)%10;
  k1[3]=(d%100)%10;
  k1[4]=(e%100)%10;
  sort(k1,k1+5,greater<int>);
  for(int i=0;i<5;i++){
    if(k1[i]==(a%100)%10)ans+=a+(10-k1[i]);
    if(k1[i]==(b%100)%10)ans+=b+(10-k1[i]);
    if(k1[i]==(c%100)%10)ans+=c+(10-k1[i]);
    if(k1[i]==(d%100)%10)ans+=d+(10-k1[i]);
    if(k1[i]==(e%100)%10)ans+=e+(10-k1[i]);
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: expected primary-expression before ')' token
   11 |   sort(k1,k1+5,greater<int>);
      |                            ^
a.cc:13:26: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |     if(k1[i]==(a%100)%10)ans+=a+(10-k1[i]);
      |                          ^~~
      |                          abs
a.cc:14:26: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |     if(k1[i]==(b%100)%10)ans+=b+(10-k1[i]);
      |                          ^~~
      |                          abs
a.cc:15:26: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |     if(k1[i]==(c%100)%10)ans+=c+(10-k1[i]);
      |                          ^~~
      |                          abs
a.cc:16:26: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |     if(k1[i]==(d%100)%10)ans+=d+(10-k1[i]);
      |                          ^~~
      |                          abs
a.cc:17:26: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |     if(k1[i]==(e%100)%10)ans+=e+(10-k1[i]);
      |                          ^~~
      |                          abs
a.cc:19:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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

int main() {
  int x = 0;
  int A, B, C, D, E;
  int a, b, c, d, e;
  cin >> A >> B >> C >> D >> E;
  a = A;
  b = B;
  c = C;
  d = D;
  e = E;
  A %= 10;
  B %= 10;
  C %= 10;
  D %= 10;
  E %= 10;
  
  if(A<=B&&A<=C&&A<=D&&A<=E) 
    x += b+(10-B)+c+(10-C)+d+(10-D)+e+(10-E)+a;
  else if(B<=A&&B<=C&&B<=D&&B<=E)
    x += a+(10-A)+c+(10-C)+d+(10-D)+e+(10-E)+b;
  else if(C<=A&&C<=B&&C<=D&&C<=E)
    x += a+(10-A)+b+(10-B)+d+(10-D)+e+(10-E)+c;
  else if(D<=A&&D<=B&&D<=C&&D<=E)
    x += a+(10-A)+b+(10-B)+c+(10-C)+e+(10-E)+d;
  else if(E<=A&&E<=B&&E<=C&&E<=D)
    x += a+(10-A)+b+(10-B)+c+(10-C)+d+(10-D)+e;
  
  if {
    if(A==0)
      x -= 10;
    if(B==0)
      x -= 10;
    if(C==0)
      x -= 10;
    if(D==0)
      x -= 10;
    if(E==0)
      x -= 10;
  }
  
  cout << x << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:6: error: expected '(' before '{' token
   31 |   if {
      |      ^
      |      (
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define REP2(i, n) for (int i = 1; i <= (int)(n); i++)
#define FOR(i, m, n) for (int i = m; i<n; i++)
#define SORT(x) sort(x.begin(), x.end())
#define REVE(x) reverse(x.begin(), x.end())
#define ALL(x) (x).begin(), (x).end()
#define SUM(x) accumulate(x.begin(), x.end(),0);
#define vint(v,n) vector<int> v(n); REP(i,n) scanf("%lld", &v[i]);
#define vstr(v,n) vector<string> v(n); REP(i,n) scanf("%lld", &v[i]);
struct initon
{
    initon()
    {
        cin.tie(0);
        ios::sync_with_stdio(false);
    };
};
int k=0,n=0, m=9, l=0,a=0, b=0, c=0, d=0,e=0,ans=0,ans2=0,x=0,y=0;
string s,t,S;
signed main() {
    vint(A, 5);
  bool flag=false;
    REP(i,5){
        if(A[i]%10<m%10&&A[i]%10!=0)m=A[i];
    }
    REP(i,5){
        if(A[i]!=m||flag)while(A[i]%10!=0){
          A[i]++;
        
        }else{
          Aflag=true;
        }
    }
    ans=SUM(A);
    cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:11: error: 'Aflag' was not declared in this scope; did you mean 'flag'?
   34 |           Aflag=true;
      |           ^~~~~
      |           flag
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 aa = a % 10;
		int bb = b % 10;
		int cc = c % 10;
		int dd = d % 10;
		int ee = e % 10;
      
      if(aa == 0){
        aa += 10;
      } if(bb == 0){
        bb += 10;
      }if(cc == 0){
        cc += 10;
      } if(dd == 0){
        dd += 10;
      } if(ee == 0){
        ee += 10;
      }
		int min = 10;
		if(min > aa){
		    min = aa;
		}if(min > bb){
		    min = bb;
		}if(min > cc){
		    min = cc;
		}if(min > dd){
		    min = dd;
		}if(min > ee){
		    min = ee;
		}
      int aaa = 0;
      int bbb = 0;
      int ccc = 0;
      int ddd = 0;
      int eee = 0;
      
      	if(a%10 != 0){
		 aaa =(int)Math.round((a+5) / 10.0))*10;
        }else{
         aaa = a;
        }
      if(b%10 != 0){
		bbb = (int)Math.round((b+5) / 10.0))*10;
        }else{
         bbb = b;
        }
      if(c%10 != 0){
		 ccc = (int)Math.round((c+5) / 10.0))*10;
        }else{
         ccc = c;
        }
      if(d%10 != 0){
		 ddd = (int)Math.round((d+5) / 10.0))*10;
        }else{
         ddd = d;
        }
      if(e%10 != 0){
		 eee = (int)Math.round((e+5) / 10.0))*10;
        }else{
         eee = e;
        }
		double zzz = aaa + bbb + ccc + ddd + eee + min;
		System.out.println(zzz);
	}
}


Compiler output:
Main.java:48: error: ';' expected
		 aaa =(int)Math.round((a+5) / 10.0))*10;
		                                   ^
Main.java:53: error: ';' expected
		bbb = (int)Math.round((b+5) / 10.0))*10;
		                                   ^
Main.java:58: error: ';' expected
		 ccc = (int)Math.round((c+5) / 10.0))*10;
		                                    ^
Main.java:63: error: ';' expected
		 ddd = (int)Math.round((d+5) / 10.0))*10;
		                                    ^
Main.java:68: error: ';' expected
		 eee = (int)Math.round((e+5) / 10.0))*10;
		                                    ^
5 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 aa = a % 10;
		int bb = b % 10;
		int cc = c % 10;
		int dd = d % 10;
		int ee = e % 10;
      
      if(aa == 0){
        aa += 10;
      } if(bb == 0){
        bb += 10;
      }if(cc == 0){
        cc += 10;
      } if(dd == 0){
        dd += 10;
      } if(ee == 0){
        ee += 10;
      }
		int min = 10;
		if(min > aa){
		    min = aa;
		}if(min > bb){
		    min = bb;
		}if(min > cc){
		    min = cc;
		}if(min > dd){
		    min = dd;
		}if(min > ee){
		    min = ee;
		}
      int aaa = 0;
      int bbb = 0;
      int ccc = 0;
      int ddd = 0;
      int eee = 0;
      
      	if(a%10 != 0){
		 aaa =(int)Math.round((a+5) / 10))*10;
        }else{
         aaa = a;
        }
      if(b%10 != 0){
		bbb = (int)Math.round((b+5) / 10))*10;
        }else{
         bbb = b;
        }
      if(c%10 != 0){
		 ccc = (int)Math.round((c+5) / 10))*10;
        }else{
         ccc = c;
        }
      if(d%10 != 0){
		 ddd = (int)Math.round((d+5) / 10))*10;
        }else{
         ddd = d;
        }
      if(e%10 != 0){
		 eee = (int)Math.round((e+5) / 10))*10;
        }else{
         eee = e;
        }
		double zzz = aaa + bbb + ccc + ddd + eee + min;
		System.out.println(zzz);
	}
}


Compiler output:
Main.java:48: error: ';' expected
		 aaa =(int)Math.round((a+5) / 10))*10;
		                                 ^
Main.java:53: error: ';' expected
		bbb = (int)Math.round((b+5) / 10))*10;
		                                 ^
Main.java:58: error: ';' expected
		 ccc = (int)Math.round((c+5) / 10))*10;
		                                  ^
Main.java:63: error: ';' expected
		 ddd = (int)Math.round((d+5) / 10))*10;
		                                  ^
Main.java:68: error: ';' expected
		 eee = (int)Math.round((e+5) / 10))*10;
		                                  ^
5 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 aa = a % 10;
		int bb = b % 10;
		int cc = c % 10;
		int dd = d % 10;
		int ee = e % 10;
		
		int min = 100;
		if(min > aa){
		    min = aa;
		}if(min > bb){
		    min = bb;
		}if(min > cc){
		    min = cc;
		}if(min > dd){
		    min = dd;
		}if(min > ee){
		    min = ee;
		}
      
      	if(a%10 != 0){
		double aaa = (Math.ceil(a / 10))*10;
        }else{
         double aaa = a;
        }
      if(b%10 != 0){
		double bbb = (Math.ceil(b / 10))*10;
        }else{
         double bbb = b;
        }
      if(c%10 != 0){
		double ccc = (Math.ceil(c / 10))*10;
        }else{
         double ccc = c;
        }
      if(d%10 != 0){
		double ddd = (Math.ceil(d / 10))*10;
        }else{
         double ddd = d;
        }
      if(e%10 != 0){
		double eee = (Math.ceil(e / 10))*10;
        }else{
         double eee = e;
        }
      
		double zzz = aaa + bbb + ccc + ddd + eee + min -10;
      	int ans = (int)zzz;
		System.out.println(ans);
	}
}


Compiler output:
Main.java:57: error: cannot find symbol
		double zzz = aaa + bbb + ccc + ddd + eee + min -10;
		             ^
  symbol:   variable aaa
  location: class Main
Main.java:57: error: cannot find symbol
		double zzz = aaa + bbb + ccc + ddd + eee + min -10;
		                   ^
  symbol:   variable bbb
  location: class Main
Main.java:57: error: cannot find symbol
		double zzz = aaa + bbb + ccc + ddd + eee + min -10;
		                         ^
  symbol:   variable ccc
  location: class Main
Main.java:57: error: cannot find symbol
		double zzz = aaa + bbb + ccc + ddd + eee + min -10;
		                               ^
  symbol:   variable ddd
  location: class Main
Main.java:57: error: cannot find symbol
		double zzz = aaa + bbb + ccc + ddd + eee + min -10;
		                                     ^
  symbol:   variable eee
  location: class Main
5 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 aa = a % 10;
		int bb = b % 10;
		int cc = c % 10;
		int dd = d % 10;
		int ee = e % 10;
		
		int min = 100;
		if(min > aa){
		    min = aa;
		}if(min > bb){
		    min = bb;
		}if(min > cc){
		    min = cc;
		}if(min > dd){
		    min = dd;
		}if(min > ee){
		    min = ee;
		}
      
      	if(a%10 != 0){
		double aaa = (Math.ceil(a / 10))*10;
        }else{
          aaa = a;
        }
      if(b%10 != 0){
		double bbb = (Math.ceil(b / 10))*10;
        }else{
          bbb = b;
        }
      if(c%10 != 0){
		double ccc = (Math.ceil(c / 10))*10;
        }else{
          ccc = c;
        }
      if(d%10 != 0){
		double ddd = (Math.ceil(d / 10))*10;
        }else{
          ddd = d;
        }
      if(e%10 != 0){
		double eee = (Math.ceil(e / 10))*10;
        }else{
          eee = e;
        }
      
		double zzz = aaa + bbb + ccc + ddd + eee + min -10;
      	int ans = (int)zzz;
		System.out.println(ans);
	}
}


Compiler output:
Main.java:34: error: cannot find symbol
          aaa = a;
          ^
  symbol:   variable aaa
  location: class Main
Main.java:39: error: cannot find symbol
          bbb = b;
          ^
  symbol:   variable bbb
  location: class Main
Main.java:44: error: cannot find symbol
          ccc = c;
          ^
  symbol:   variable ccc
  location: class Main
Main.java:49: error: cannot find symbol
          ddd = d;
          ^
  symbol:   variable ddd
  location: class Main
Main.java:54: error: cannot find symbol
          eee = e;
          ^
  symbol:   variable eee
  location: class Main
Main.java:57: error: cannot find symbol
		double zzz = aaa + bbb + ccc + ddd + eee + min -10;
		             ^
  symbol:   variable aaa
  location: class Main
Main.java:57: error: cannot find symbol
		double zzz = aaa + bbb + ccc + ddd + eee + min -10;
		                   ^
  symbol:   variable bbb
  location: class Main
Main.java:57: error: cannot find symbol
		double zzz = aaa + bbb + ccc + ddd + eee + min -10;
		                         ^
  symbol:   variable ccc
  location: class Main
Main.java:57: error: cannot find symbol
		double zzz = aaa + bbb + ccc + ddd + eee + min -10;
		                               ^
  symbol:   variable ddd
  location: class Main
Main.java:57: error: cannot find symbol
		double zzz = aaa + bbb + ccc + ddd + eee + min -10;
		                                     ^
  symbol:   variable eee
  location: class Main
10 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 aa = a % 10;
		int bb = b % 10;
		int cc = c % 10;
		int dd = d % 10;
		int ee = e % 10;
		
		int min = 100;
		if(min > aa){
		    min = aa;
		}if(min > bb){
		    min = bb;
		}if(min > cc){
		    min = cc;
		}if(min > dd){
		    min = dd;
		}if(min > ee){
		    min = ee;
		}
		long aaa = (Math.ceil(a / 10))*10;
		long bbb = (Math.ceil(b / 10))*10;
		long ccc = (Math.ceil(c / 10))*10;
		long ddd = (Math.ceil(d / 10))*10;
		long eee = (Math.ceil(e / 10))*10;
		
		long ans = aaa + bbb + ccc + ddd + eee + min - 10;
		System.out.println(ans);
	}
}


Compiler output:
Main.java:30: error: incompatible types: possible lossy conversion from double to long
		long aaa = (Math.ceil(a / 10))*10;
		                              ^
Main.java:31: error: incompatible types: possible lossy conversion from double to long
		long bbb = (Math.ceil(b / 10))*10;
		                              ^
Main.java:32: error: incompatible types: possible lossy conversion from double to long
		long ccc = (Math.ceil(c / 10))*10;
		                              ^
Main.java:33: error: incompatible types: possible lossy conversion from double to long
		long ddd = (Math.ceil(d / 10))*10;
		                              ^
Main.java:34: error: incompatible types: possible lossy conversion from double to long
		long eee = (Math.ceil(e / 10))*10;
		                              ^
5 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 aa = a % 10;
		int bb = b % 10;
		int cc = c % 10;
		int dd = d % 10;
		int ee = e % 10;
		
		int min = 100;
		if(min > aa){
		    min = aa;
		}if(min > bb){
		    min = bb;
		}if(min > cc){
		    min = cc;
		}if(min > dd){
		    min = dd;
		}if(min > ee){
		    min = ee;
		}
		double aaa = (Math.ceil(a / 10))*10;
		double bbb = (Math.ceil(b / 10))*10;
		double ccc = (Math.ceil(c / 10))*10;
		double ddd = (Math.ceil(d / 10))*10;
		double eee = (Math.ceil(e / 10))*10;
		
		long ans = aaa + bbb + ccc + ddd + eee + min -10;
		System.out.println(ans);
	}
}


Compiler output:
Main.java:36: error: incompatible types: possible lossy conversion from double to long
		long ans = aaa + bbb + ccc + ddd + eee + min -10;
		                                             ^
1 error
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 aa = a % 10;
		int bb = b % 10;
		int cc = c % 10;
		int dd = d % 10;
		int ee = e % 10;
		
		int min = 100;
		if(min > aa){
		    min = aa;
		}if(min > bb){
		    min = bb;
		}if(min > cc){
		    min = cc;
		}if(min > dd){
		    min = dd;
		}if(min > ee){
		    min = ee;
		}
		double aaa = (Math.ceil(a / 10))*10;
		double bbb = (Math.ceil(b / 10))*10;
		double ccc = (Math.ceil(c / 10))*10;
		double ddd = (Math.ceil(d / 10))*10;
		double eee = (Math.ceil(e / 10))*10;
		
		int ans = aaa + bbb + ccc + ddd + eee + min-10;
		System.out.println(ans);
	}
}


Compiler output:
Main.java:36: error: incompatible types: possible lossy conversion from double to int
		int ans = aaa + bbb + ccc + ddd + eee + min-10;
		                                           ^
1 error
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 aa = a % 10;
		int bb = b % 10;
		int cc = c % 10;
		int dd = d % 10;
		int ee = e % 10;
		
		int min = 100;
		if(min > aa){
		    min = aa;
		}if(min > bb){
		    min = bb;
		}if(min > cc){
		    min = cc;
		}if(min > dd){
		    min = dd;
		}if(min > ee){
		    min = ee;
		}
		double aaa = (Math.ceil(a / 10))*10;
		double bbb = (Math.ceil(b / 10))*10;
		double ccc = (Math.ceil(c / 10))*10;
		double ddd = (Math.ceil(d / 10))*10;
		double eee = (Math.ceil(e / 10))*10;
		
		int ans = aaa + bbb + ccc + ddd + eee + min - 10;
		System.out.println(ans);
	}
}

Compiler output:
Main.java:36: error: incompatible types: possible lossy conversion from double to int
		int ans = aaa + bbb + ccc + ddd + eee + min - 10;
		                                            ^
1 error
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 aa = a % 10;
		int bb = b % 10;
		int cc = c % 10;
		int dd = d % 10;
		int ee = e % 10;
		
		int min = 100;
		if(min > aa){
		    min = aa;
		}if(min > bb){
		    min = bb;
		}if(min > cc){
		    min = cc;
		}if(min > dd){
		    min = dd;
		}if(min > ee){
		    min = ee;
		}
		double aaa = (Math.ceil(a / 10))*10;
		double bbb = (Math.ceil(b / 10))*10;
		double ccc = (Math.ceil(c / 10))*10;
		double ddd = (Math.ceil(d / 10))*10;
		double eee = (Math.ceil(e / 10))*10;
		
		int ans = aaa + bbb + ccc + ddd + eee + min - 10;
		System.out.println(ans);
	}


Compiler output:
Main.java:38: error: reached end of file while parsing
	}
	 ^
1 error
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 aa = a % 10;
		int bb = b % 10;
		int cc = c % 10;
		int dd = d % 10;
		int ee = e % 10;
		
		int min = 100;
		if(min > aa){
		    min = aa;
		}if(min > bb){
		    min = bb;
		}if(min > cc){
		    min = cc;
		}if(min > dd){
		    min = dd;
		}if(min > ee){
		    min = ee;
		}
		double aaa = (Math.ceil(a / 10))*10;
		double bbb = (Math.ceil(b / 10))*10;
		double ccc = (Math.ceil(c / 10))*10;
		double ddd = (Math.ceil(d / 10))*10;
		double eee = (Math.ceil(e / 10))*10;
		
		int ans = aaa + bbb + ccc + ddd + eee - 10 + min;
		System.out.println(ans);
	}
}

Compiler output:
Main.java:36: error: incompatible types: possible lossy conversion from double to int
		int ans = aaa + bbb + ccc + ddd + eee - 10 + min;
		                                           ^
1 error
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 aa = a % 10;
		int bb = b % 10;
		int cc = c % 10;
		int dd = d % 10;
		int ee = e % 10;
		
		int min = 100;
		if(min > aa){
		    min = aa;
		}if(min > bb){
		    min = bb;
		}if(min > cc){
		    min = cc;
		}if(min > dd){
		    min = dd;
		}if(min > ee){
		    min = ee;
		}
		double aaa = (Math.ceil(a / 10))*10;
		double bbb = (Math.ceil(b / 10))*10;
		double ccc = (Math.ceil(c / 10))*10;
		double ddd = (Math.ceil(d / 10))*10;
		double eee = (Math.ceil(e / 10))*10;
		
		int ans = aaa + bbb + ccc + ddd + eee - 10 + min;
		System.out.println(ans);
	}

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

import java.util.*;
public class Main {
	public static void main(String[] args){
       Scanner sc = new Scanner(System.in);   
      //時間の取得
	  int[] T = new int[5];
      int[] D = new int[5]; 
      for(int i=0;i<5;i++){
        T[i] = sc.nextInt();
      }
      //総時間
      int sum = 0;
         for(int i=0;i<5;i++){
             //あまり時間がないものの注文
             if(T[i]%10==0){
               D[i]=T[i];
             //あまり時間があるものの注文
             }else{
               D[i]=(T[i]/10)+10
             }
          }
  
          //最後の注文のあまり時間はかからない
          int max =0;
          for(int i=0;i<5;i++){
            if((D[i]-T[i])>max) {
               max=D[i]-T[i]; 
            }
             sum=sum+D[i];
          }
      
        System.out.println(sum);
    }
}

Compiler output:
Main.java:19: error: ';' expected
               D[i]=(T[i]/10)+10
                                ^
1 error
Language: Java

import java.util.*;
 
public class Main {
    public static void main(String args[]) {
       //値の取得
       Scanner sc = new Scanner(System.in);
       int[] time = new int[4];
       for(i = 0; i < 5; ++i){
           time[i] = sc.nextInt();
       }
       
       int dish[] = new int[4];
       
       for(i = 0; i < 5; ++i){
           if(time%10==0){
               dish[i] = (time[i]/10)*10;
           }else{
               dish[i] = (time[i]/10)*10 + (time[i]%10);
           }
       }
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
       for(i = 0; i < 5; ++i){
           ^
  symbol:   variable i
  location: class Main
Main.java:8: error: cannot find symbol
       for(i = 0; i < 5; ++i){
                  ^
  symbol:   variable i
  location: class Main
Main.java:8: error: cannot find symbol
       for(i = 0; i < 5; ++i){
                           ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
           time[i] = sc.nextInt();
                ^
  symbol:   variable i
  location: class Main
Main.java:14: error: cannot find symbol
       for(i = 0; i < 5; ++i){
           ^
  symbol:   variable i
  location: class Main
Main.java:14: error: cannot find symbol
       for(i = 0; i < 5; ++i){
                  ^
  symbol:   variable i
  location: class Main
Main.java:14: error: cannot find symbol
       for(i = 0; i < 5; ++i){
                           ^
  symbol:   variable i
  location: class Main
Main.java:15: error: bad operand types for binary operator '%'
           if(time%10==0){
                  ^
  first type:  int[]
  second type: int
Main.java:16: error: cannot find symbol
               dish[i] = (time[i]/10)*10;
                    ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
               dish[i] = (time[i]/10)*10;
                               ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
               dish[i] = (time[i]/10)*10 + (time[i]%10);
                    ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
               dish[i] = (time[i]/10)*10 + (time[i]%10);
                               ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
               dish[i] = (time[i]/10)*10 + (time[i]%10);
                                                 ^
  symbol:   variable i
  location: class Main
13 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        int Menu[] = new int[5];
        int min = 9; 
        int last = 0; 
        int count = 0; 
		// 数の入力
		for(i = 0;i < 5;i++){
          Menu[i] = sc.nextInt();
          if(Menu[i] % 10 <= min && Menu[i] % 10 == 0 ){
            min = Menu[i] % 10;
            last = i;
          }
        }
      	for(i = 0;i < 5;i++){
          if(i != last){
            count = (Menu[i] / 10 + 1) * 10;
          }
        }
		count = count  + Menu[last];
    System.out.println(count);            
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
		for(i = 0;i < 5;i++){
		    ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
		for(i = 0;i < 5;i++){
		          ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
		for(i = 0;i < 5;i++){
		                ^
  symbol:   variable i
  location: class Main
Main.java:11: error: cannot find symbol
          Menu[i] = sc.nextInt();
               ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
          if(Menu[i] % 10 <= min && Menu[i] % 10 == 0 ){
                  ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
          if(Menu[i] % 10 <= min && Menu[i] % 10 == 0 ){
                                         ^
  symbol:   variable i
  location: class Main
Main.java:13: error: cannot find symbol
            min = Menu[i] % 10;
                       ^
  symbol:   variable i
  location: class Main
Main.java:14: error: cannot find symbol
            last = i;
                   ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
      	for(i = 0;i < 5;i++){
      	    ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
      	for(i = 0;i < 5;i++){
      	          ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
      	for(i = 0;i < 5;i++){
      	                ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
          if(i != last){
             ^
  symbol:   variable i
  location: class Main
Main.java:19: error: cannot find symbol
            count = (Menu[i] / 10 + 1) * 10;
                          ^
  symbol:   variable i
  location: class Main
13 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<char> cvec;
typedef vector<double> dvec;
typedef pair<ll, ll> LP;
typedef tuple<ll, ll, ll> LT;
typedef pair<int, int> P;
typedef tuple<int, int, int> T;
#define fs first
#define sc second
int main()	{
  vector<int>t(5),v(5);
  rep(i,5) cin>>t[i];
  rep(i,5){
    if(t[i]%10==0) v[i]=t[i];
    else v[i]=t[i]-t[i]%10+10;
  }
  rep(i,5){
    int sum=0;
    rep(j,5){
      if(i==j) sum+=t[i];
      else sum+=v[j];
    }
    ans=min(ans,sum);
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   31 |     ans=min(ans,sum);
      |     ^~~
      |     abs
a.cc:33:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   33 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

a = [str(input()) for _ in range(5)]

n = 9
cnt = 0
for i in range(len(a)):
	if int(a[i][-1]) < n and int(a[i][-1]) != 0 :
		n = int(a[i][-1])
		cnt = i
for i in range(len(a)):
	if i == cnt:
		a[i] = int(a[i])
	elif int(a[i][-1]) == 0:
		a[i] = int(a[i])
	else:
		a[i] = (int(a[i])//10 + 1)*10
print(sum(a))


Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def i():
      | ^~~
Language: C

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

int main(){
    vector <int> a(5);
    rep(i,5){
        cin >> a[i];
    }

    int ans=0,m=10,m2,m3;
    rep(i,5){
        if(a[i]%10==0){
            ans+=a[i];
        }
        else{
            m2=a[i]%10;
            m=min(m,m2);
            ans+=(a[i]/10+1)*10;
        }
    }

    if(m==10){
        cout << ans << endl;
    }
    else{
    ans+=m-10;
    cout << ans << endl;
    }

    

    return 0;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include "bits/stdc++.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
#include <utility>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define _GLIBCXX_DEBUG
using namespace std;
typedef long long ll;
using P pair<int, int>;

int abc[5];

int main(){
    rep(i, n) cin >> abc[i];
    int n = 5;

    vector<int> nexttime(n);
    rep(i, n) {
        nexttime[i] = (abc[i] + 9) / 10 * 10;
    }
    int besttime = 999999;
    rep(i, n) {
        int sumtime = 0;
        for (int j; j < n; j++) {
            if (i == j) sumtime += abc[i];
            else {
                sumtime += nexttime[i];
            }
        }
        besttime = min(besttime, sumtime);

    }
    cout << besttime << endl;

}
   

Compiler output:
a.cc:12:7: error: expected nested-name-specifier before 'P'
   12 | using P pair<int, int>;
      |       ^
a.cc: In function 'int main()':
a.cc:17:12: error: 'n' was not declared in this scope
   17 |     rep(i, n) cin >> abc[i];
      |            ^
a.cc:8:45: note: in definition of macro 'rep'
    8 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                             ^
Language: C++


    vector<int> nexttime(n);
    rep(i, n) {
        nexttime[i] = (abc[i] + 9) / 10 * 10;
    }
    int besttime = 999999;
    rep(i, n) {
        int sumtime = 0;
        for (int j; j < n; j++) {
            if (i == j) sumtime += abc[i];
            else {
                sumtime += nexttime[i];
            }
        }
        besttime = min(besttime, sumtime);

    }
    cout << besttime << endl;

}
   

Compiler output:
a.cc:2:5: error: 'vector' does not name a type
    2 |     vector<int> nexttime(n);
      |     ^~~~~~
a.cc:3:8: error: expected constructor, destructor, or type conversion before '(' token
    3 |     rep(i, n) {
      |        ^
a.cc:7:8: error: expected constructor, destructor, or type conversion before '(' token
    7 |     rep(i, n) {
      |        ^
a.cc:18:5: error: 'cout' does not name a type
   18 |     cout << besttime << endl;
      |     ^~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())

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

sum = a2+b2+c2+d2+e2
ans = 1e18
ans = min(ans, sum-a2+a)
ans = min(ans, sum-b2+b)
ans = min(ans, sum-c2+c)
ans = min(ans, sum-d2+d)
ans = min(ans, sum-e2+e)

print(ans)

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a = int(input())
      | ^
Language: C++

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

int main() {
	int time=0;
	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++){
	    if(Time[i]%10==0) nextTime[i]=Time[i];
	    else nextTime[i]=Time[i]-Time[i]%10+10;
	}
	int bestTime=(int)1e9;
	for (int i=0; i<N; i++){
	    for (int j=0; j<N; j++){
	        if (i==j) sumTime+=Time[i];
	        else sumTime+=nextTime[i];
	    }
	    bestTime=min(bestTime, sumTime);
	}
	cout << bestTime << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:27: error: 'sumTime' was not declared in this scope
   19 |                 if (i==j) sumTime+=Time[i];
      |                           ^~~~~~~
a.cc:20:22: error: 'sumTime' was not declared in this scope
   20 |                 else sumTime+=nextTime[i];
      |                      ^~~~~~~
a.cc:22:36: error: 'sumTime' was not declared in this scope
   22 |             bestTime=min(bestTime, sumTime);
      |                                    ^~~~~~~
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define uni(e) e.erase(unique(e.begin(),e.end()),e.end())
#define double long double
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
int INF=1e10;
int MOD=1e9+7;
template<class T> void out(T a){cout<<a<<'\n';}
template<class T> void yesno(T b){if(b)out("yes");else out("no");}
template<class T> void YesNo(T b){if(b)out("Yes");else out("No");}
template<class T> void YESNO(T b){if(b)out("YES");else out("NO");}
template<class T> void noyes(T b){if(b)out("no");else out("yes");}
template<class T> void NoYes(T b){if(b)out("No");else out("Yes");}
template<class T> void NOYES(T b){if(b)out("NO");else out("YES");}
int keta(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
}
int kurai(int a,int b){
  int m=pow(10,b),n=pow(10,b-1);
  return (a%m)/n;
}
int ketawa(int a){
  int k=0;
  rep(i,keta(a)){
  k+=kurai(a,i+1);
  }
  return k;
}
int gcd(int a,int b){
  if(a%b==0)
    return b;
  return gcd(b,a%b);
}
int lcm(int a,int b){
    return a/gcd(a,b)*b;
}
int mid(int a,int b,int c){
  vector<int> k(3);
  k[0]=a;k[1]=b;k[2]=c;
  sort(all(k));
  return k[1];
}
bool sosuu(int a){
  bool b=1;
  if(a<=1)
    return 0;
  else{
  rep1(i,sqrt(a)-1){
  if(a%(i+1)==0)
  b=0;
  }
  return b;
  }
}
int modpow(int a,int b,int m=MOD){
 if(!b)return 1; if(b&1)return modpow(a,b-1,m)*a%m;
 int memo = modpow(a,b>>1,m);
 return memo*memo%m;
}
int fact_mod(int n) {
    int f=1; 
for(int i=2;i<n+1;i++) f=f*(i%MOD)% MOD;
    return f;
}
int mod_pow(int x,int n) {
    int res=1;
    while(n>0){
        if(n&1) res=(res*x)%MOD; 
        x=(x*x)%MOD;        
n>>=1; 
    }
    return res;
}
int c_mod(int n, int r) {
    if(r>n-r) r=n-r;
    if(r==0) return 1;
    int a=1;
    rep(i,r) 
a=a*((n-i)%MOD)%MOD;
    int b=mod_pow(fact_mod(r), MOD-2);
    return (a%MOD)*(b%MOD)%MOD;
}
signed main(){
  vector<double> a(5);
  rep(i,5)
    cin>>a[i];
  int b=0;
  rep(i,5){
  a[i]/=10;
    b+=ceil(a[i])*10;
    a[i]*=10;
  }
  int c=0; 
  rep(i,5){
  int a[i]=a[i];
  }
  rep(i,5){
  if(!(a[i]%10==0))
    c=min(c,a[i]%10);
  }
  b+=c;
  out(b);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:107:15: error: array must be initialized with a brace-enclosed initializer
  107 |   int a[i]=a[i];
      |            ~~~^
a.cc:110:12: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<long double>, long double>::value_type' {aka 'long double'} and 'int' to binary 'operator%'
  110 |   if(!(a[i]%10==0))
a.cc:111:17: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<long double>, long double>::value_type' {aka 'long double'} and 'int' to binary 'operator%'
  111 |     c=min(c,a[i]%10);
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define uni(e) e.erase(unique(e.begin(),e.end()),e.end())
#define double long double
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
int INF=1e10;
int MOD=1e9+7;
template<class T> void out(T a){cout<<a<<'\n';}
template<class T> void yesno(T b){if(b)out("yes");else out("no");}
template<class T> void YesNo(T b){if(b)out("Yes");else out("No");}
template<class T> void YESNO(T b){if(b)out("YES");else out("NO");}
template<class T> void noyes(T b){if(b)out("no");else out("yes");}
template<class T> void NoYes(T b){if(b)out("No");else out("Yes");}
template<class T> void NOYES(T b){if(b)out("NO");else out("YES");}
int keta(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
}
int kurai(int a,int b){
  int m=pow(10,b),n=pow(10,b-1);
  return (a%m)/n;
}
int ketawa(int a){
  int k=0;
  rep(i,keta(a)){
  k+=kurai(a,i+1);
  }
  return k;
}
int gcd(int a,int b){
  if(a%b==0)
    return b;
  return gcd(b,a%b);
}
int lcm(int a,int b){
    return a/gcd(a,b)*b;
}
int mid(int a,int b,int c){
  vector<int> k(3);
  k[0]=a;k[1]=b;k[2]=c;
  sort(all(k));
  return k[1];
}
bool sosuu(int a){
  bool b=1;
  if(a<=1)
    return 0;
  else{
  rep1(i,sqrt(a)-1){
  if(a%(i+1)==0)
  b=0;
  }
  return b;
  }
}
int modpow(int a,int b,int m=MOD){
 if(!b)return 1; if(b&1)return modpow(a,b-1,m)*a%m;
 int memo = modpow(a,b>>1,m);
 return memo*memo%m;
}
int fact_mod(int n) {
    int f=1; 
for(int i=2;i<n+1;i++) f=f*(i%MOD)% MOD;
    return f;
}
int mod_pow(int x,int n) {
    int res=1;
    while(n>0){
        if(n&1) res=(res*x)%MOD; 
        x=(x*x)%MOD;        
n>>=1; 
    }
    return res;
}
int c_mod(int n, int r) {
    if(r>n-r) r=n-r;
    if(r==0) return 1;
    int a=1;
    rep(i,r) 
a=a*((n-i)%MOD)%MOD;
    int b=mod_pow(fact_mod(r), MOD-2);
    return (a%MOD)*(b%MOD)%MOD;
}
signed main(){
  vector<double> a(5);
  rep(i,5)
    cin>>a[i];
  int b=0;
  rep(i,5){
  a[i]/=10;
    b+=ceil(a[i])*10;
    a[i]*=10;
  }
  int c=0;
  rep(i,5){
  if(!(a[i]%10==0))
    c=min(c,a[i]%10);
  }
  b+=c;
  out(b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:107:12: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<long double>, long double>::value_type' {aka 'long double'} and 'int' to binary 'operator%'
  107 |   if(!(a[i]%10==0))
a.cc:108:17: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<long double>, long double>::value_type' {aka 'long double'} and 'int' to binary 'operator%'
  108 |     c=min(c,a[i]%10);
Language: C++

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

void chmin(int&a, int b) {
  if (a > b) a = b;
}

int main() {
  int A[5];

  for (int i = 0; i < 5; i++) {
    cin >> A[i];
  }
  
  int mod_min = 10;
  for (int i = 0; i < 5; i++) {
    if (A[i] % 10) {
      chmin(mod_min, A[i] % 10);
    }
  }
  
  int ans = 0;
  if (mod_min == 10) {
    ans += A[i];
  } else {
    for (int i = 0; i < 5; i++) {
      if (A[i] % 10) {
        ans += A[i] + (10-(A[i]%10));
    } else {
        ans += A[i];
      }
    } 
  }
  
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:14: error: 'i' was not declared in this scope
   24 |     ans += A[i];
      |              ^
Language: C++

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

#define FAST ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);

#define MAXX 100005

#define PI 3.14159265358979323846264338327950

#define ll signed long long int
int main()
{
	int a,b,c,d,e,k=0,s,a1,b1,c1,d1,e1,z[5];
	cin>>a>>b>>c>>d>>e;
	if (a%10==0)
	k=k+a;
	else
	{
		a1=a%10;
		a=a/10;
		a=(a+1)*10;
		k=k+a;
	}
	if (b%10==0)
	k=k+b;
	else
	{
		b1=b%10;
		b=b/10;
		b=(b+1)*10;
		k=k+b;
	}
	if (c%10==0)
	k=k+c;
	else
	{
		c1=c%10;
		c=c/10;
		c=(c+1)*10;
		k=k+c;
	}
	if (d%10==0)
	k=k+d;
	else
	{
		d1=d%10;
		d=d/10;
		d=(d+1)*10;
		k=k+d;
	}
	if (e%10==0)
	k=k+e;
	else
	{
		e1=e%10;
		e=e/10;
		e=(e+1)*10;
		k=k+e;
	}
	if (a1!=0)
	z[0]=a1;
	else
	z[0]=10;
	if (b1!=0)
	z[1]=b1;
	else
	z[1]=10;
	if (c1!=0)
	z[2]=c1;
	else
	z[2]=10;
	if (d1!=0)
	z[3]=d1;
	else
	z[3]=10;
	if (e1!=0)
	z[4]=e1;
	else
	z[4]=10;
	sort(z,z+5)
	s=z[0];
	cout<<k-10+s;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:80:20: error: expected ';' before 's'
   80 |         sort(z,z+5)
      |                    ^
      |                    ;
   81 |         s=z[0];
      |         ~
Language: C

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

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

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



int main() {
int dish[5];
for(int i = 0; i < 5; i++){
    cin >> dish[i];
}
int time = 0;
int mi = 9;
int last = 0;
for(int i = 0; i < 5; i++){
  int hika = dish[i] % 10;
  if(hika < mi　&& hika != 0){
last = i;
mi = hika;
  }
}

for(int i = 0; i < 5; i++){
if(dish[i] % 10 == 0 || i == last)time += dish[i];
else time += ((dish[i]/10)+1)*10;

}
cout << time << endl;

}

Compiler output:
a.cc:17:13: error: extended character 　 is not valid in an identifier
   17 |   if(hika < mi　&& hika != 0){
      |             ^
a.cc: In function 'int main()':
a.cc:17:13: error: 'mi\U00003000' was not declared in this scope
   17 |   if(hika < mi　&& hika != 0){
      |             ^~~~
Language: C++

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

#define rep(i,a,b)      for(int i=a;i<=b;i++)
#define revp(i,b,a)     for(int i=b;i>=a;i--)

int temp,sum=0,arr[5];
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(NULL);
    
    {
        cin>>temp;
        sum+=temp+(10-temp%10);
        arr[i]=10-temp%10;
    }
    temp=max({arr[1],arr[2],arr[3],arr[4],arr[5]});
    sum-=temp;
    cout<<sum;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: 'i' was not declared in this scope
   16 |         arr[i]=10-temp%10;
      |             ^
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 ans = a+b+c+d+e;
        int A =10-a%10;if(A==10){A==0;}
        int B =10-b%10;if(B==10){B==0;}
        int C =10-c%10;if(C==10){C==0;}
        int D =10-d%10;if(D==10){D==0;}
        int E =10-e%10;if(E==10){E==0;}
        ans+=A+B+C+D+E;
        ans-=Math.max(A,Math.max(b,Math.max(c,Math.max(d,e))));
		System.out.println(ans);
  }
}

Compiler output:
Main.java:11: error: not a statement
        int A =10-a%10;if(A==10){A==0;}
                                  ^
Main.java:12: error: not a statement
        int B =10-b%10;if(B==10){B==0;}
                                  ^
Main.java:13: error: not a statement
        int C =10-c%10;if(C==10){C==0;}
                                  ^
Main.java:14: error: not a statement
        int D =10-d%10;if(D==10){D==0;}
                                  ^
Main.java:15: error: not a statement
        int E =10-e%10;if(E==10){E==0;}
                                  ^
5 errors
Language: C++

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

int main(){
  int a,b,c,d,e;
  cin >> a >> b >> c >> d >> e;
  
  vector<int> d(5)={a,b,c,d,e};
  
  int k=10;
  
  for(int i=0;i<5;i++)
    k=min(k,d.at(i)%10);
  
  int l=0;
  
  for(int i=0;i<5;i++)
    l+=(d.at(i)-1)/1;
  
  cout < l*10+k << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: conflicting declaration 'std::vector<int> d'
    8 |   vector<int> d(5)={a,b,c,d,e};
      |               ^
a.cc:5:13: note: previous declaration as 'int d'
    5 |   int a,b,c,d,e;
      |             ^
a.cc:13:15: error: request for member 'at' in 'd', which is of non-class type 'int'
   13 |     k=min(k,d.at(i)%10);
      |               ^~
a.cc:18:11: error: request for member 'at' in 'd', which is of non-class type 'int'
   18 |     l+=(d.at(i)-1)/1;
      |           ^~
a.cc:20:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   20 |   cout < l*10+k << endl;
      |          ~~~~~~~^~~~~~~
Language: C++

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

int main(){
 int n=5;
  vector<int> a(n);
  rep(i,n) cin>>a[i];
  int f=10;
  rep(i,n){
    if(a[i]%10!=0){
      int b=a[i]%10;
      f=min(f,b);
    }
    
  }
  if(f==10){
    f=0;
  }
  int ans=0;
  rep(i,n){
    if(a[i]%==0){
      ans+=a[i];
    }
    else{
      ans+=(a[i]/10)*10+10;
    }
  }
  if(f==0){
    cout<<ans<<endl;
     
  }
  else{
    cout<<ans+10-f<<endl;
  }
  
  
 
  

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:14: error: expected primary-expression before '=' token
   25 |     if(a[i]%==0){
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep0(i, n) for (long long i = 0; i < (long long)(n); i++)
#define rep1(i,n) for(long long i=1;i<=(long long)(n);i++)
#define all(v) v.begin(),v.end()
#define Sort(v) sort(all(v))
#define Reverse(v) reverse(all(v))
#define Rsort(v) sort(all(v),greater)
#define pub(v) push_back(v)
#define pob(v) pop_back(v)
typedef long long ll;
typedef vector<ll> vel;
typedef vector<vector<ll>> vel2d;
typedef string str;
typedef pair<ll,ll> pal;
typedef vector<str> ves;
typedef vector<char> vech;


int main() {
    vel a(5); rep0(i,5){cin>>a[i];}
    vel data(5);
    rep0(i,5){if(a[i]%10==0){data[i]=(a[i]/10)*10-a[i];} else{data[i]=(a[i]/10+1)*10-a[i];}}
    sort(all(data));
    ll ans=0;
    rep0(i,4){ans+=a[i]+data[i];//cout<<ans<<endl;}
    ans+=a[4];
    cout<<ans<<endl;
}


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

#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
  int sum = 0;
  int max_lost = 0;
  for (int i = 0; i < 5; i++) {
    int order;
    cin >> order;
    sum += order;
    int lost = 10 - order%10;
    if (lsot == 10) lost = 0;
    
    sum += lost;
  	max_lost = max(max_lost, lost);
  }
  sum -= max_lost;
  cout << sum << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'lsot' was not declared in this scope; did you mean 'lost'?
   13 |     if (lsot == 10) lost = 0;
      |         ^~~~
      |         lost
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int count=0;
  for(int i=0;i<5;i++){
int A[i];
  cin>>A[i];
    vector<int> a(5);
  int a[i]=(10-A[i]%10)*-1;
sort(a.begin(),a.end());
    reverse(a.begin(),a.end());
    
}
  int count=0;
  for(int i=0;i<5;i++){
  for(int j=0;j<4;j++){
  count=A[i]+a[j];
  }
  }
  cout<<count<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: conflicting declaration 'int a [i]'
    9 |   int a[i]=(10-A[i]%10)*-1;
      |       ^
a.cc:8:17: note: previous declaration as 'std::vector<int> a'
    8 |     vector<int> a(5);
      |                 ^
a.cc:14:7: error: redeclaration of 'int count'
   14 |   int count=0;
      |       ^~~~~
a.cc:4:5: note: 'int count' previously declared here
    4 | int count=0;
      |     ^~~~~
a.cc:17:9: error: 'A' was not declared in this scope
   17 |   count=A[i]+a[j];
      |         ^
a.cc:17:14: error: 'a' was not declared in this scope
   17 |   count=A[i]+a[j];
      |              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
vector<int> A(5);
  vector<int> a(5);
  for(int i=0;i<5;i++){
 for(int j=i;j<5;j++){
    cin>>A[i];
    a[j]=(10-A[i]%10)*-1;
    cin>>a[j];
   A[i]=a[j];
   sort(a.begin(),a.end());
   reverse(a.begin(),a.end());
    
  }
  } 
  
  int count=0;
 
  
  
  for(int i=0;i<N;i++){
    for(int j=i;j<N-1;j++){
    
    count+=A[i]+a[j]*-1;
  }
  }
  
cout<<count<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:17: error: 'N' was not declared in this scope
   22 |   for(int i=0;i<N;i++){
      |                 ^