criyle/codenet-compile-errors huggingface dataset:
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>vec={A,B,C,D,E};
  int max=0;
  for(int i=0;i<vec.size();i++){
    if(vec.at(i)%10!=0&&max<=vec.at(i)){
      max=vec.at(i);
    }
  }
   int sum1=0;
  int sum2=0;
  for(int i=0;i<vec.size();i++){
    if(vec.at(i)!=max){
     int a=vec.at(i)%10
     a+=sum2;
        vec.at(i)+=sum1;
    }
  }
  cout<<40-sum2+sum1+max<<endl;
}

  
      

Compiler output:
a.cc: In function 'int main()':
a.cc:19:6: error: expected ',' or ';' before 'a'
   19 |      a+=sum2;
      |      ^
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>vec={A,B,C,D,E};
  int max=0;
  for(int i=0;i<vec.size();i++){
    if(vec.at(i)%10!=0&&max<=vec.at(i)){
      max=vec.at(i);
    }
  }
   int sum1=0;
  int sum2=0;
  for(int i=0;i<vec.size();i++){
    if(vec.at(i)!=max){
      (vec.at(i)-vec.at(i)*vec.at(i)/10)+=sum2;
        vec.at(i)+=sum1;
    }
  }
  cout<<40-sum2+sum1+max<<endl;
}

  
      

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: lvalue required as left operand of assignment
   18 |       (vec.at(i)-vec.at(i)*vec.at(i)/10)+=sum2;
      |       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
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>vec={A,B,C,D,E};
  int max=0;
  for(int i=0;i<vec.size();i++){
    if(vec.at(i)%10!=0&&max<=vec.at(i)){
      max=vec.at(i);
    }
  }
   int sum1=0;
  int sum2=0;
  for(int i=0;i<vec.size();i++){
    if(vec.at(i)!=max){
      vec.at(i)%10+=sum2;
        vec.at(i)+=sum1;
    }
  }
  cout<<40-sum2+sum1+max<<endl;
}

  
      

Compiler output:
a.cc: In function 'int main()':
a.cc:18:16: error: lvalue required as left operand of assignment
   18 |       vec.at(i)%10+=sum2;
      |       ~~~~~~~~~^~~
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>vec={A,B,C,D,E};
  int max=0;
  for(int i=0;i<vec.size();i++){
    if(vec.at(i)%10!=0&&max<=vec.at(i)){
      max=vec.at(i);
    }
  }
   int sum=0;
  for(int i=0;i<vec.size();i++){
    if(vec.at(i)!=max){
      10-vec.at(i)%10+vec.at(i)+=sum;
    }
  }
  cout<<sum+max<<endl;
}

  
      

Compiler output:
a.cc: In function 'int main()':
a.cc:17:22: error: lvalue required as left operand of assignment
   17 |       10-vec.at(i)%10+vec.at(i)+=sum;
      |       ~~~~~~~~~~~~~~~^~~~~~~~~~
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>vec={A,B,C,D,E};
  int max=0;
https://atcoder.jp/contests/abc123/submit?taskScreenName=abc123_b  
  for(int i=0;i<vec.size();i++){
    if(vec.at(i)%10!=0&&max<=vec.at(i)){
      max=vec.at(i);
    }
  }
   int sum=0;
  for(int i=0;i<vec.size();i++){
    if(vec.at(i)!=max){
      (10-vec.at(i)%10+vec.at(i))+=sum;
    }
  }
  cout<<sum+max<<endl;
}

  
      

Compiler output:
a.cc: In function 'int main()':
a.cc:18:23: error: lvalue required as left operand of assignment
   18 |       (10-vec.at(i)%10+vec.at(i))+=sum;
      |       ~~~~~~~~~~~~~~~~^~~~~~~~~~~
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>vec={A,B,C,D,E};
  int max=0;
  
  for(int i=0;i<vec.size();i++){
    if(vec.at(i)%10!=0&&max<=vec.at(i)){
      max=vec.at(i);
    }
  }
   int sum=0;
  for(int i=0;i<vec.size();i++){
    if(vec.at(i)!=max){
      (10-vec.at(i)%10+vec.at(i))+=sum;
    }
  }
  cout<<sum+max<<endl;
}

  
      

Compiler output:
a.cc: In function 'int main()':
a.cc:18:23: error: lvalue required as left operand of assignment
   18 |       (10-vec.at(i)%10+vec.at(i))+=sum;
      |       ~~~~~~~~~~~~~~~~^~~~~~~~~~~
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>vec={A,B,C,D,E};
  int max=0;
  
  for(int i=0;i<vec.size();i++){
    if(vec.at(i)%!=0&&max<=vec.at(i)){
      max=vec.at(i);
    }
  }
   int sum=0;
  for(int i=0;i<vec.size();i++){
    if(vec.at(i)==max){
      sum+=vec.at(i);
    }
  }
  cout<<sum<<endl;
}

  
      

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected primary-expression before '!=' token
   11 |     if(vec.at(i)%!=0&&max<=vec.at(i)){
      |                  ^~
Language: C++

int a,b,c,d,e,f,g,h,i,j;
    int x = 1000;
    cin >> a >> b >> c >> d >> e;
    f=(a-1)/10*10+10;
    g=(b-1)/10*10+10;
    h=(c-1)/10*10+10;
    i=(d-1)/10*10+10;
    j=(e-1)/10*10+10;
    vector<int> z(5);
    z(0)=a+g+h+i+j;
    z(1)=b+f+h+i+j;
    z(2)=c+g+f+i+j;
    z(3)=d+g+h+f+j;
    z(4)=e+g+h+i+f;
    for(int i=0;i<5;i++){
    x = min(x,z(i));
    }
    cin << x << endl;

    return 0;
    
}


Compiler output:
a.cc:3:5: error: 'cin' does not name a type
    3 |     cin >> a >> b >> c >> d >> e;
      |     ^~~
a.cc:4:5: error: 'f' does not name a type
    4 |     f=(a-1)/10*10+10;
      |     ^
a.cc:5:5: error: 'g' does not name a type
    5 |     g=(b-1)/10*10+10;
      |     ^
a.cc:6:5: error: 'h' does not name a type
    6 |     h=(c-1)/10*10+10;
      |     ^
a.cc:7:5: error: 'i' does not name a type
    7 |     i=(d-1)/10*10+10;
      |     ^
a.cc:8:5: error: 'j' does not name a type
    8 |     j=(e-1)/10*10+10;
      |     ^
a.cc:9:5: error: 'vector' does not name a type
    9 |     vector<int> z(5);
      |     ^~~~~~
a.cc:10:6: error: expected constructor, destructor, or type conversion before '(' token
   10 |     z(0)=a+g+h+i+j;
      |      ^
a.cc:11:6: error: expected constructor, destructor, or type conversion before '(' token
   11 |     z(1)=b+f+h+i+j;
      |      ^
a.cc:12:6: error: expected constructor, destructor, or type conversion before '(' token
   12 |     z(2)=c+g+f+i+j;
      |      ^
a.cc:13:6: error: expected constructor, destructor, or type conversion before '(' token
   13 |     z(3)=d+g+h+f+j;
      |      ^
a.cc:14:6: error: expected constructor, destructor, or type conversion before '(' token
   14 |     z(4)=e+g+h+i+f;
      |      ^
a.cc:15:5: error: expected unqualified-id before 'for'
   15 |     for(int i=0;i<5;i++){
      |     ^~~
a.cc:15:17: error: 'i' does not name a type
   15 |     for(int i=0;i<5;i++){
      |                 ^
a.cc:15:21: error: 'i' does not name a type
   15 |     for(int i=0;i<5;i++){
      |                     ^
a.cc:18:5: error: 'cin' does not name a type
   18 |     cin << x << endl;
      |     ^~~
a.cc:20:5: error: expected unqualified-id before 'return'
   20 |     return 0;
      |     ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

int a,b,c,d,e,f,g,h,i,j,;
    int x = 1000;
    cin >> a >> b >> c >> d >> e;
    f=(a-1)/10*10+10;
    g=(b-1)/10*10+10;
    h=(c-1)/10*10+10;
    i=(d-1)/10*10+10;
    j=(e-1)/10*10+10;
    vector<int> z(5);
    z(0)=a+g+h+i+j;
    z(1)=b+f+h+i+j;
    z(2)=c+g+f+i+j;
    z(3)=d+g+h+f+j;
    z(4)=e+g+h+i+f;
    for(int i=0;i<5;i++){
    x = min(x,z(i));
    }
    cin << x << endl;

    return 0;
    
}


Compiler output:
a.cc:1:25: error: expected unqualified-id before ';' token
    1 | int a,b,c,d,e,f,g,h,i,j,;
      |                         ^
a.cc:3:5: error: 'cin' does not name a type
    3 |     cin >> a >> b >> c >> d >> e;
      |     ^~~
a.cc:4:5: error: 'f' does not name a type
    4 |     f=(a-1)/10*10+10;
      |     ^
a.cc:5:5: error: 'g' does not name a type
    5 |     g=(b-1)/10*10+10;
      |     ^
a.cc:6:5: error: 'h' does not name a type
    6 |     h=(c-1)/10*10+10;
      |     ^
a.cc:7:5: error: 'i' does not name a type
    7 |     i=(d-1)/10*10+10;
      |     ^
a.cc:8:5: error: 'j' does not name a type
    8 |     j=(e-1)/10*10+10;
      |     ^
a.cc:9:5: error: 'vector' does not name a type
    9 |     vector<int> z(5);
      |     ^~~~~~
a.cc:10:6: error: expected constructor, destructor, or type conversion before '(' token
   10 |     z(0)=a+g+h+i+j;
      |      ^
a.cc:11:6: error: expected constructor, destructor, or type conversion before '(' token
   11 |     z(1)=b+f+h+i+j;
      |      ^
a.cc:12:6: error: expected constructor, destructor, or type conversion before '(' token
   12 |     z(2)=c+g+f+i+j;
      |      ^
a.cc:13:6: error: expected constructor, destructor, or type conversion before '(' token
   13 |     z(3)=d+g+h+f+j;
      |      ^
a.cc:14:6: error: expected constructor, destructor, or type conversion before '(' token
   14 |     z(4)=e+g+h+i+f;
      |      ^
a.cc:15:5: error: expected unqualified-id before 'for'
   15 |     for(int i=0;i<5;i++){
      |     ^~~
a.cc:15:17: error: 'i' does not name a type
   15 |     for(int i=0;i<5;i++){
      |                 ^
a.cc:15:21: error: 'i' does not name a type
   15 |     for(int i=0;i<5;i++){
      |                     ^
a.cc:18:5: error: 'cin' does not name a type
   18 |     cin << x << endl;
      |     ^~~
a.cc:20:5: error: expected unqualified-id before 'return'
   20 |     return 0;
      |     ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int A,B,C,D,E;
  cin>>A>>B>>C>>D>>E;
  
 int a==A%10;
  int b==B%10;
  int c==C%10;
  int d==D%10;
  int e==E%10;
  
  vector<int>vec={a,b,c,d,e};
  sort(vec.begin(),vec.end());
  
  cout<<A+B+C+D+E-(40-vec.at(1)-vec.at(2)-vec.at(3)-vec.at(4))<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected initializer before '==' token
    7 |  int a==A%10;
      |       ^~
a.cc:8:8: error: expected initializer before '==' token
    8 |   int b==B%10;
      |        ^~
a.cc:9:8: error: expected initializer before '==' token
    9 |   int c==C%10;
      |        ^~
a.cc:10:8: error: expected initializer before '==' token
   10 |   int d==D%10;
      |        ^~
a.cc:11:8: error: expected initializer before '==' token
   11 |   int e==E%10;
      |        ^~
a.cc:13:19: error: 'a' was not declared in this scope
   13 |   vector<int>vec={a,b,c,d,e};
      |                   ^
a.cc:13:21: error: 'b' was not declared in this scope
   13 |   vector<int>vec={a,b,c,d,e};
      |                     ^
a.cc:13:23: error: 'c' was not declared in this scope
   13 |   vector<int>vec={a,b,c,d,e};
      |                       ^
a.cc:13:25: error: 'd' was not declared in this scope
   13 |   vector<int>vec={a,b,c,d,e};
      |                         ^
a.cc:13:27: error: 'e' was not declared in this scope
   13 |   vector<int>vec={a,b,c,d,e};
      |                           ^
a.cc:13:28: error: could not convert '{<expression error>, <expression error>, <expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
   13 |   vector<int>vec={a,b,c,d,e};
      |                            ^
      |                            |
      |                            <brace-enclosed initializer list>
Language: C++

#include <bits/stdc++.h>
using namespace std;
void main(){
    int t, a=0, m=0, k=5;
    while (k--) {
        cin >> t;
        a += (t+9)/10*10;
        m = max(m, (990-t)%10);
    }
    cout << a-m << endl;
}

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

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

int main()
{
 int N = 5;
 int A, B, C, D, E;
 cin >> A >> B >> C >> D >> E;
 vector<int> currentTime = {A, B, C, D, E};
 vector<int> nextTime(N);
 for(int i = 0; i < N; i++)
 {
     if(currentTime[i] % 10 == 0)
     {
         nextTime[i] = Time[i];
     }
     else
     {
        nextTime[i] = currentTime[i] - currentTime[i] % 10 + 10;
     }
 }
     int BestTime = 999999;
     for(int i = 0; i < N; i++)
     {
         int sumTime = 0;
     for(int j = 0; j < N; j++){
         if(i == j)
         {
             sumTime += currentTime[i];
         }
         else
         {
             sumTime += nextTime[j];
         }
     }
     BestTime = min(BestTime, sumTime);
}
 cout << BestTime << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: 'Time' was not declared in this scope; did you mean 'time'?
   15 |          nextTime[i] = Time[i];
      |                        ^~~~
      |                        time
Language: C++

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

int main()
{
 int N = 5;
 int A, B, C, D, E;
 cin >> A >> B >> C >> D >> E;
 vector<int> currentTime = {A, B, C, D, E};
 vector<int> nextTime(N);
 for(int i = 0; i < N; i++){
     if(currentTime[i] % 10 == 0){
         nextTime[i] = Time[i];
     }
     else{
         nextTime[i] = currentTime[i] - currentTime[i] % 10 + 10;
     }
 }
     int BestTime = 999999;
     for(int i = 0; i < N; i++){
         int sumTime = 0;
     for(int j = 0; j < N; j++){
         if(i == j){
             sumTime += currentTime[i];
         }else{
             sumTime += nextTime[j];
         }
     }
     BestTime = min(BestTime, sumTime);
}
 cout << BestTime << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: 'Time' was not declared in this scope; did you mean 'time'?
   13 |          nextTime[i] = Time[i];
      |                        ^~~~
      |                        time
Language: C++

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

int main()
{
 int N = 5;
 int A, B, C, D, E;
 cin >> A >> B >> C >> D >> E;
 vector<int> currentTime = {A, B, C, D, E};
 vector<int> nextTime(N);
 for(int i = 0; i < N; i++){
     if(currentTime[i] % 10 == 0){
         nextTime[i] = Time[i];
     }
     else{
         nextTime[i] = currentTime[i] - currentTime[i] % 10 + 10;
     }
     int BestTime = 999999;
     for(int i = 0; i < N; i++){
         int sumTime = 0;
     }for(int j = 0; j < N; j++){
         if(i == j){
             sumTime += currentTime[i];
         }else{
             sumTime += nextTime[j];
         }
     }
     BestTime = min(BestTime, sumTime);
 }
 cout << BestTime << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: 'Time' was not declared in this scope; did you mean 'time'?
   13 |          nextTime[i] = Time[i];
      |                        ^~~~
      |                        time
a.cc:23:14: error: 'sumTime' was not declared in this scope
   23 |              sumTime += currentTime[i];
      |              ^~~~~~~
a.cc:25:14: error: 'sumTime' was not declared in this scope
   25 |              sumTime += nextTime[j];
      |              ^~~~~~~
a.cc:28:31: error: 'sumTime' was not declared in this scope
   28 |      BestTime = min(BestTime, sumTime);
      |                               ^~~~~~~
a.cc:30:10: error: 'BestTime' was not declared in this scope; did you mean 'nextTime'?
   30 |  cout << BestTime << endl;
      |          ^~~~~~~~
      |          nextTime
Language: C++

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

int main()
{
 int N = 5;
 int A, B, C, D, E;
 cin >> A >> B >> C >> D >> E;
 vector<int> currentTime = {A, B, C, D, E};
 vector<int> nextTime(N);
 for(int i = 0; i < N; i++){
     if(currentTime[i] % 10 == 0){
         nextTime[i] = Time[i];
     }
     else{
         nextTime[i] = currentTime[i] - currentTime[i] % 10 + 10;
     }
     int BestTime = 999999;
     for(int i = 0; i < N; i++){
         int sumTime = 0;
     }for(int j = 0; j < N; j++){
         if(i == j){
             sumTime = currentTime[i];
         }else{
             sumTime = nextTime[j];
         }
     }
     BestTime = min(BestTime, sumTime);
 }
 cout << BestTime << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: 'Time' was not declared in this scope; did you mean 'time'?
   13 |          nextTime[i] = Time[i];
      |                        ^~~~
      |                        time
a.cc:23:14: error: 'sumTime' was not declared in this scope
   23 |              sumTime = currentTime[i];
      |              ^~~~~~~
a.cc:25:14: error: 'sumTime' was not declared in this scope
   25 |              sumTime = nextTime[j];
      |              ^~~~~~~
a.cc:28:31: error: 'sumTime' was not declared in this scope
   28 |      BestTime = min(BestTime, sumTime);
      |                               ^~~~~~~
a.cc:30:10: error: 'BestTime' was not declared in this scope; did you mean 'nextTime'?
   30 |  cout << BestTime << endl;
      |          ^~~~~~~~
      |          nextTime
Language: C++

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

int main()
{
 int N = 5;
 int A, B, C, D, E;
 cin >> A >> B >> C >> D >> E;
 vector<int> currentTime = {A, B, C, D, E};
 vector<int> nextTime(N);
 for(int i = 0; i < N: i++){
     if(currentTime[i] % 10 == 0){
         nextTime[i] = Time[i];
     }
     else{
         nextTime[i] = currentTime[i] - currentTime[i] % 10 + 10;
     }
     int BestTime = 999999;
     for(int i = 0; i < N; i++){
         int sumTime = 0;
     }for(int j = 0; j < N; j++){
         if(i == j){
             sumTime = currentTime[i];
         }else{
             sumTime = nextTime[j];
         }
     }
     BestTime = min(BestTime, sumTime);
 }
 cout << BestTime << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
   11 |  for(int i = 0; i < N: i++){
      |                 ^
a.cc:11:22: error: found ':' in nested-name-specifier, expected '::'
   11 |  for(int i = 0; i < N: i++){
      |                      ^
      |                      ::
a.cc:11:21: error: 'N' is not a class, namespace, or enumeration
   11 |  for(int i = 0; i < N: i++){
      |                     ^
a.cc:30:10: error: 'BestTime' was not declared in this scope; did you mean 'nextTime'?
   30 |  cout << BestTime << endl;
      |          ^~~~~~~~
      |          nextTime
a.cc:31:1: error: expected primary-expression before '}' token
   31 | }
      | ^
a.cc:30:27: error: expected ')' before '}' token
   30 |  cout << BestTime << endl;
      |                           ^
      |                           )
   31 | }
      | ~                          
a.cc:11:5: note: to match this '('
   11 |  for(int i = 0; i < N: i++){
      |     ^
a.cc:31:1: error: expected primary-expression before '}' token
   31 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int f(int x){
        if(x%10==0) return x;
        else return x+10-x%10;
}
int main(void){
    // Your code here!
    int a[5];
    int i;
    int count=10;
    std::cin >>a[0] ;
    std::cin >>a[1] ;
    std::cin >>a[2] ;
    std::cin >>a[3] ;
    std::cin >>a[4] ;
    for (i=0,i<5;i++){
        if (a%10!=0&&count>a%10)
        count=a%10;
    }
    for (i=0,i<5;i++){
        if(x%10!=0) ans+=a[i]+10-a[i]%5;
        else ans+=a[i]
    }
    std::cout << ans-10+count << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:21: error: expected ';' before ')' token
   17 |     for (i=0,i<5;i++){
      |                     ^
      |                     ;
a.cc:18:14: error: invalid operands of types 'int [5]' and 'int' to binary 'operator%'
   18 |         if (a%10!=0&&count>a%10)
      |             ~^~~
      |             | |
      |             | int
      |             int [5]
a.cc:18:29: error: invalid operands of types 'int [5]' and 'int' to binary 'operator%'
   18 |         if (a%10!=0&&count>a%10)
      |                            ~^~~
      |                            | |
      |                            | int
      |                            int [5]
a.cc:19:16: error: invalid operands of types 'int [5]' and 'int' to binary 'operator%'
   19 |         count=a%10;
      |               ~^~~
      |               | |
      |               | int
      |               int [5]
a.cc:21:21: error: expected ';' before ')' token
   21 |     for (i=0,i<5;i++){
      |                     ^
      |                     ;
a.cc:22:12: error: 'x' was not declared in this scope
   22 |         if(x%10!=0) ans+=a[i]+10-a[i]%5;
      |            ^
a.cc:22:21: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |         if(x%10!=0) ans+=a[i]+10-a[i]%5;
      |                     ^~~
      |                     abs
a.cc:23:14: error: 'ans' was not declared in this scope; did you mean 'abs'?
   23 |         else ans+=a[i]
      |              ^~~
      |              abs
a.cc:25:18: error: 'ans' was not declared in this scope; did you mean 'abs'?
   25 |     std::cout << ans-10+count << std::endl;
      |                  ^~~
      |                  abs
Language: C++

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

int main(){
  int a , mn = 10 , ans = 0;
  for(int i = 0; i < 5; i++);
   cin >> a;
   if(a % 10 > 0){
     mn = min(mn , a % 10);
   }
   ans += (a + 9) / 10 * 10;
 }
  cout << ans - 10 + mn;
}


Compiler output:
a.cc:13:3: error: 'cout' does not name a type
   13 |   cout << ans - 10 + mn;
      |   ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
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> time = {A, B, C, D, E};
  vector<int> amari = {A % 10, B % 10, C % 10, D % 10, E % 10};
  
  int total = 0;
  for (int i : time) {
    if(i % 10 == 0) {
      total += i;
    }
    else {
      total += (i / 10 + 1) * 10;
    }
  }
  
  sort(amari.begin(), amari.end());
  int last;
  for (int i = 0; i < 5; i++) {
    if (amari.at(i) != 0) {
      last = amari.at(i);
      break;
    }
    if (i == 4) {
      last = 10
    }
  }
  cout << total - 10 + last << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:16: error: expected ';' before '}' token
   28 |       last = 10
      |                ^
      |                ;
   29 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(void){
  int a[5];
  int t[5];
  int sum=0;
  int min=0;
  for(int i=0;i<5;i++){
    cin>>a[i];
    t[i]=(10-a[i]%10)%10;
  }
  int min=700;
  for(int i=0;i<5;i++){
    for(int j=0;j<5;j++){
      if(i==j)continue;
      sum+=a[j]+t[j];
    }
    sum+=a[i];
    if(min>sum)min=sum;
    sum=0;
  }
  cout<<min<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: redeclaration of 'int min'
   12 |   int min=700;
      |       ^~~
a.cc:7:7: note: 'int min' previously declared here
    7 |   int min=0;
      |       ^~~
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 = 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 = 999999;
    //最後に注文するものを全通り計算(全探索)
    for(int i = 0; i < N; i++){
        int SumTime = 0;
        for(int j = 0; j < N; j++){
            if(i == j){
             SumTime += time[j];
            }else{
                SumTime += nextTime[j];
            }
        }
        BestTime = min(BestTime, SumTime);
    }
    cout << BestTime << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: 'else' without a previous 'if'
   12 |     }else{
      |      ^~~~
a.cc:13:18: error: 'i' was not declared in this scope
   13 |         nextTime[i] = Time[i] - Time[i] % 10 + 10;
      |                  ^
a.cc:21:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   21 |              SumTime += time[j];
      |                               ^
a.cc:21:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   21 |              SumTime += time[j];
      |              ~~~~~~~~^~~~~~~~~~
a.cc:21:22: error: invalid conversion from 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} to 'int' [-fpermissive]
   21 |              SumTime += time[j];
      |              ~~~~~~~~^~~~~~~~~~
      |                      |
      |                      time_t (*)(time_t*) noexcept {aka long int (*)(long int*) noexcept}
Language: C++

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

int main(){
    int A[5];
    for(int i=0; i<5; i++)
        cin >> A[i];
    int k=0;
    for(int i=1: i<5; i++){
        if(A[i] % 10 < A[k] % 10)
            k = i;
    }
    int time=0;
    for(int i=0; i<5; i++){
        if(i == k){
            time += A[i];
        }else{
            time += (A[i] / 10) * 10 + 10;
        }
    }
    
    cout << time << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: initializer in range-based 'for' loop
   11 |     for(int i=1: i<5; i++){
      |              ^
a.cc:11:21: error: expected ')' before ';' token
   11 |     for(int i=1: i<5; i++){
      |        ~            ^
      |                     )
a.cc:11:23: error: 'i' was not declared in this scope
   11 |     for(int i=1: i<5; i++){
      |                       ^
Language: C++

#include <iostream>
#include <vector>

int main() {
  std::vector<int> ABC(5);
  for(auto &abc: ABC)
    std::cin >> abc;
  
  int min_10 = 9;
  int sum = 0;
  for(auto &abc:ABC){
    mod = abc%10;
    if(mod < min_10)
      min_10 = mod;
    sum += ((abc+9)/10)*10;
  }
  if(min_10!=0)
    sum += min_10 - 10;
  std::cout << sum << std::endl;
  return 0;
}


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

#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<numeric>
#include<string>
#include<vector>
using namespace std;
int main(){
    int a,b,c,d,e;
    cin>>a>>b>>c>>d>>e;
    int N=5;
    vector<int>time={a,b,c,d,e};
    vector<int>index={0,1,2,3,4};
    int bestTime=(int)1e9;//10の9乗

    do{
        int Nowtime=0;
        for(int i=0;i<N;i++){
            while(Nowtime%10!=0)Nowtime++;
            Nowtime+=time[index[i]];
        }
        besttime=min(Nowtime,bestTime);
    }while(next_permutation(index.begin(),index.end()));
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: 'besttime' was not declared in this scope; did you mean 'bestTime'?
   22 |         besttime=min(Nowtime,bestTime);
      |         ^~~~~~~~
      |         bestTime
Language: C++

#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<numeric>
#include<string>
#include<vector>
using namespace std;
int main(){
    int a,b,c,d,e;
    cin>>a>>b>>c>>d>>e;
    vector<int>time={a,b,c,d,e};
    vector<int>index={0,1,2,3,4};
    int bestTime=(int)1e9;//10の9乗

    do{
        int Nowtime=0;
        for(int i=0;i<N;i++){
            while(Nowtime%10!=0)Nowtime++;
            Nowtime+=time[index[i]];
        }
        besttime=min(Nowtime,bestTime);
    }while(next_permutation(index.begin(),index.end()));
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:23: error: 'N' was not declared in this scope
   17 |         for(int i=0;i<N;i++){
      |                       ^
a.cc:21:9: error: 'besttime' was not declared in this scope; did you mean 'bestTime'?
   21 |         besttime=min(Nowtime,bestTime);
      |         ^~~~~~~~
      |         bestTime
Language: C++

#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<numeric>
#include<string>
#include<vector>
using namespace std;
int main(){
    int a,b,c,d,e;
    cin>>a>>b>>c>>d>>e;
    vector<int>time={a,b,c,d,e};
    vector<int>index={0,1,2,3,4};
    int bestTime=(int)1e9;//10の9乗

    do{
        int Nowtime=0;
        for(int i=0;i<N){
            while(Nowtime%10!=0)Nowtime++;
            Nowtime+=tim[index[i]];
        }
        besttime=min(Nowtime,bestTime);
    }while(next_permutation(index.begin(),index.end()));
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:23: error: 'N' was not declared in this scope
   17 |         for(int i=0;i<N){
      |                       ^
a.cc:17:24: error: expected ';' before ')' token
   17 |         for(int i=0;i<N){
      |                        ^
      |                        ;
a.cc:19:22: error: 'tim' was not declared in this scope; did you mean 'time'?
   19 |             Nowtime+=tim[index[i]];
      |                      ^~~
      |                      time
a.cc:21:9: error: 'besttime' was not declared in this scope; did you mean 'bestTime'?
   21 |         besttime=min(Nowtime,bestTime);
      |         ^~~~~~~~
      |         bestTime
Language: C++

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

//C++14 (GCC 5.4.1)
int main() {
    vector<int> A=vector<int>(5,0);
    rep(i,5){
        cin>> A.at(i);
    }

    //-----------------------------------
    int Ans=0,minkire=10;
    rep(i,5){
        if(A.at(i)%10>0){
            chmin(minkire,A.at(i)%10);
            Ans+=(A.at(i)/10)*10+10;
        }else{
            Ans+=A.at(i);
        }
    }
    Ans=Ans-10+minkire;

    cout << Ans <<endl;
    return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'i' was not declared in this scope
    7 |     rep(i,5){
      |         ^
a.cc:7:5: error: 'rep' was not declared in this scope
    7 |     rep(i,5){
      |     ^~~
Language: C

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

int main()
{
	int a, b, c, d, e, i, j, temp;
	int array[5];
	scanf_s("%d", &a);
	scanf_s("%d", &b);
	scanf_s("%d", &c);
	scanf_s("%d", &d);
	scanf_s("%d", &e);
	array[0] = a % 10;
	array[1] = b % 10;
	array[2] = c % 10;
	array[3] = d % 10;
	array[4] = e % 10;
	for (i = 0; i < 4; i++)
		for (j = 0; j < 4; j++) {
			if (array[j + 1] < array[j]) {
				temp = array[j]; array[j] = array[j + 1]; array[j + 1] = temp;
			}
		}
	
	
printf("%d", a + b + c + d + e + 40 - array[1] - array[2] - array[3] - array[4]);


	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |         scanf_s("%d", &a);
      |         ^~~~~~~
      |         scanf
Language: C++

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

int main(){
  int n = 5;
  vector<int> v(n);
  
  for(int i = 0; i < n; i++){
    cin >> v(i);
  }
  
  int sum = 0;
  for(int i = 0; i < n; i++){
    sum += (v(i) + 9) / 10 * 10;
  }
  
  int ans = INT_MAX;
  for(int i = 0; i < n; i++){
    int tmp;
    tmp = sum - (v(i) + 9) / 10 * 10 + v(i);
    ans = min(ans, tmp);
  }
  
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: no match for call to '(std::vector<int>) (int&)'
    9 |     cin >> v(i);
      |            ~^~~
a.cc:14:14: error: no match for call to '(std::vector<int>) (int&)'
   14 |     sum += (v(i) + 9) / 10 * 10;
      |             ~^~~
a.cc:20:19: error: no match for call to '(std::vector<int>) (int&)'
   20 |     tmp = sum - (v(i) + 9) / 10 * 10 + v(i);
      |                  ~^~~
a.cc:20:41: error: no match for call to '(std::vector<int>) (int&)'
   20 |     tmp = sum - (v(i) + 9) / 10 * 10 + v(i);
      |                                        ~^~~
Language: C

#include <stdio.h>

int main(void)
{
	int i,a[5],j,temp;
	int time = 0;
	
	for(i = 0; i < 5; i++){
		scanf("%d",&a[i]);
	}
	
	int hosuu[5];
	
	
	//補数の計算
	
	for(i = 0; i < 5; i++){
		hosuu[i] = 10 - a[i]%10;
		if(hosuu[i] == 10){
			hosuu[i] = 0;
		}
	}
	
	//ソート
	for(i = 0; i < 5; i++){
		for(j = i + 1; j < 5; j++){
			if(hosuu[i] > hosuu[j]){
				temp = hosuu[i];
				hosuu[i] = hosuu[j];
				hosuu[j] = temp;
				temp = a[i];
				a[i] = a[j];
				a[j] = temp;								
			}
		}
	}
	
	//時間の計算
	
	for(i = 4; i >= 0 ; i--){
		if(i != 0){
			time = time + a[i] + hosuu[i];
		}else{
			time = time + a[i]; 
		}
	
	printf("%d",time);
	
	return 0;
}
	
	

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

#include <stdio.h>

int main(void)
{
	int i,a[5],j,temp;
	int time = 0;
	
	for(i = 0; i < 5; i++){
		scanf("%d",&a[i]);
	}
	
	int hosuu[5];
	
	
	//補数の計算
	
	for(i = 0; i < 5; i++){
		hosuu[i] = 10 - a[i]%10;
		if(hosuu[i] == 10){
			hosuu[i] = 0;
		}
	}
	
	//ソート
	for(i = 0; i < 5; i++){
		for(j = i + 1; j < 5; j++){
			if(hosuu[i] > hosuu[j]){
				temp = hosuu[i];
				hosuu[i] = hosuu[j];
				hosuu[j] = temp;
				temp = a[i];
				a[i] = a[j];
				a[j] = temp;								
			}
		}
	}
	
	//時間の計算
	
	for(i = 4; i >= 0 ; i--){
		if(i != 0){
			time = time + a[i] + hosuu[i];
		}else{
			time = time + a[i]; 
	
	printf("%d",time);
	
	return 0;
}
	
	

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

#include <stdio.h>

int main(void)
{
	int i,a[5],j,temp;
	int time = 0;
	
	for(i = 0; i < 5; i++){
		scanf("%d",&a[i]);
	}
	
	int hosuu[5];
	
	
	//補数の計算
	
	for(i = 0; i < 5; i++){
		hosuu[i] = 10 - a[i]%10
	}
	
	//補数のソート
	for(i = 0; i < 5; i++){
		for(j = 1; j < 5; j++){
			if(hosuu[i] > hosuu[j]){
				temp = a[i];
				a[i] = a[j];
				a[j] = temp;
				temp = hosuu[i];
				hosuu[i] = hosuu[j];
				hosuu[j] = temp;
			}
		}
	}
	
	//時間の計算
	
	for(i = 4; i >= 0 ; i--){
		if(hosuu[i] != 10){
			time = time + a[i] + hosuu[i]
		}else{
			time = time + a[i];
		}
	}		
	
	printf("%d",time);
	
	return 0;
}
	
	

Compiler output:
main.c: In function 'main':
main.c:18:40: error: expected ';' before '}' token
   18 |                 hosuu[i] = 10 - a[i]%10
      |                                        ^
      |                                        ;
   19 |         }
      |         ~                               
main.c:39:54: error: expected ';' before '}' token
   39 |                         time = time + a[i] + hosuu[i]
      |                                                      ^
      |                                                      ;
   40 |                 }else{
      |                 ~
Language: C

#include <stdio.h>

int main(void)
{
	int i,a[5];
	int time = 0;
	
	for(i = 0, i < 5; i++){
		scanf("%d",&a[i]);
	}
	
	
	
	//計算部分
	
	for(i = 0, i < 5; i++){
		if(a[i] % 10 == 0){
			time = time + a[i];
		}else{
			int hosuu = 10 - a[i]%10;
			
			time = time + a[i] + hosuu;
		}
	}
	
	printf("%d",time);
	
	return 0;
}
	
	

Compiler output:
main.c: In function 'main':
main.c:8:30: error: expected ';' before ')' token
    8 |         for(i = 0, i < 5; i++){
      |                              ^
      |                              ;
main.c:16:30: error: expected ';' before ')' token
   16 |         for(i = 0, i < 5; i++){
      |                              ^
      |                              ;
Language: C

#include <stdio.H>

int main(void)
{
	int i,a[5];
	int time = 0;
	
	for(i = 0, i < 5; i++){
		scanf("%d",&a[i]);
	}
	
	
	
	//計算部分
	
	for(i = 0, i < 5; i++){
		if(a[i] % 10 == 0){
			time = time + a[i];
		}else{
			int hosuu = 10 - a[i]%10;
			
			time = time + a[i] + hosuu;
		}
	}
	
	printf("%d",time);
	
	return 0;
}
	
	

Compiler output:
main.c:1:10: fatal error: stdio.H: No such file or directory
    1 | #include <stdio.H>
      |          ^~~~~~~~~
compilation terminated.
Language: C++

cuicine = [int(input()) for i in range(5)]

r = [c % 10 for c in cuicine if c % 10 != 0]

r = sorted(r)

# print(r)

rmin = 0

if r != []:
  rmin = r.pop(0)

ans = sum(cuicine)

for i in r:
  ans += 10 - i

print(ans)


Compiler output:
a.cc:7:3: error: invalid preprocessing directive #print
    7 | # print(r)
      |   ^~~~~
a.cc:1:1: error: 'cuicine' does not name a type
    1 | cuicine = [int(input()) for i in range(5)]
      | ^~~~~~~
Language: C++

import math
a = [int(input()) for _ in range(5)]
s = 0
m = 10
for i in range(5):
  s += math.ceil(a[i] / 10) * 10
  if a[i] % 10 > 0 and a[i] % 10 < m:
    m = a[i] % 10
print(s-(10-m))


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

#include <bits/stdc++.h>
#include <numeric>
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

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

int ytime(int x){
    return xtime(x)-x;
}

int main(){
    int a,b,c,d,e;
    cin >> a >> b >> c >> d >> e;
    int sum=xtime(a)+xtime(b)+xtime(c)+xtime(d)+xtime(e);
    sum-=max(ytime(a),ytime(b),ytime(c),ytime(d),ytime(e));
    cout << sum << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: no matching function for call to 'max(int, int, int, int, int)'
   20 |     sum-=max(ytime(a),ytime(b),ytime(c),ytime(d),ytime(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>
#include <numeric>
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

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

int time(int x){
    return ord(x)-x;
}

int main(){
    int a,b,c,d,e;
    cin >> a >> b >> c >> d >> e;
    int sum=ord(a)+ord(b)+ord(c)+ord(d)+ord(e);
    sum-=max(time(a),time(b),time(c),time(d),time(e));
    cout << sum << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: no matching function for call to 'max(int, int, int, int, int)'
   20 |     sum-=max(time(a),time(b),time(c),time(d),time(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<iostream>
#include<algorithm>
#include<vector>
using namespace std;
int main(){
  vector<int>t(5);
  vector<int>s(5);
  int ans = 0;
  for(int i = 0;i < 5;i++){
    cin >> t[i];
  }			//代入
  for(int i = 0;i < 5;i++){
    if(t[i] % 10 == 0){
      ans += t[i];
    }else{
      ans += (t[i] / 10 + 1) * 10;
      s[i] = t[i]%10
    }
  }
  cout << ans - (10 - min({s[0],s[1],s[2],s[3],s[4]})) << endl;
}

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

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

using namespace std;

int main()
{
	int ans = 0;
	int abcde[5];
	int junban[5];
	map<int,int> one;

	for (int i = 0; i < 5; i++)
		cin >> abcde[i];

	for (int i = 0; i < 5; i++)
		one[abcde[i] % 10] = i;

	for (int i = 0; i < 5; i++)
	{
		if (i % 2 == 0)
		{
			junban[i] = one.rbegin()->first;
			one.erase(one.rbegin()->first);
		}
		else
		{
			junban[i] = one.begin()->first;
			one.erase(one.abegin()->first);
		}

		
	}

	for (int i = 0; i < 5; i++)
		ans += abcde[junban[i]];

	cout << ans;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:39: error: 'class std::map<int, int>' has no member named 'abegin'; did you mean 'begin'?
   33 |                         one.erase(one.abegin()->first);
      |                                       ^~~~~~
      |                                       begin
Language: C++

using namespace std;
 
int main(){
  //input
  int ans=0;
  vector<int>vec;
 
  //compute
  for(int i=0;i<5;i++){
    int minutes;
    cin>>minutes;
    if (minutes%10==0){
      ans+=minutes;
    }
    else{
      vec.push_back(minutes%10); 
      ans+=minutes; 
    }    
  }
  sort(vec.begin(),vec.end());
  for(int i=1;i<vec.size();i++){
    ans+=10-vec[i];
  }
  
  
  //output
  cout<<ans<<endl;  
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int>vec;
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int>vec;
      |          ^~~
a.cc:11:5: error: 'cin' was not declared in this scope
   11 |     cin>>minutes;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:16:7: error: 'vec' was not declared in this scope
   16 |       vec.push_back(minutes%10);
      |       ^~~
a.cc:20:8: error: 'vec' was not declared in this scope
   20 |   sort(vec.begin(),vec.end());
      |        ^~~
a.cc:20:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   20 |   sort(vec.begin(),vec.end());
      |   ^~~~
      |   short
a.cc:27:3: error: 'cout' was not declared in this scope
   27 |   cout<<ans<<endl;
      |   ^~~~
a.cc:27:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:27:14: error: 'endl' was not declared in this scope
   27 |   cout<<ans<<endl;
      |              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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

int main(){
	int a, b, c, d, e ;
	int ah, bh, ch, dh, eh ;
	cin >> a, b, c, d, e ;
	
	if( a % 10 != 0){
	
	ah = ( ( a / 10 )+ 10 ) * 100 ;
	
	}else{
	
	ah = ( a / 10 ) * 100 ;
	}

	if( b % 10 != 0){
	
	bh = ( ( b / 10 )+ 10 ) * 100 ;
	
	}else{
	
	bh = ( b / 10 ) * 100 ;
	}

	if( c % 10 != 0){
	
	ch = ( ( c / 10 )+ 10 ) * 100 ;
	
	}else{
	
	ch = ( c / 10 ) * 100 ;
	}
	
	if( d % 10 != 0){
	
	dh = ( ( d / 10 )+ 10 ) * 100 ;
	
	}else{
	
	dh = ( d / 10 ) * 100 ;
	}	
	
	cout << ah + bh + ch + dh + e ;

return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespacestd'
    2 | using namespacestd;
      |       ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> a, b, c, d, e ;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:45:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   45 |         cout << ah + bh + ch + dh + e ;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main(){
	int a, b, c, d, e, k;
	cin >> a, b, c, d ,e, k ;
	
	if ( ( e - a ) <= k )
	{
	cout << " Yay! " ;  
	}
	else
	{
	cout << " :( " ;
	}
	
return 0 ;

--------------------

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

int main(){
	int a, b, c, d, e ;
	int ah, bh, ch, dh, eh ;
	cin >> a, b, c, d, e ;
	
	if( a % 10 != 0){
	
	ah = ( ( a / 10 )+ 10 ) * 100 ;
	
	}else{
	
	ah = ( a / 10 ) * 100 ;
	}

	if( b % 10 != 0){
	
	bh = ( ( b / 10 )+ 10 ) * 100 ;
	
	}else{
	
	bh = ( b / 10 ) * 100 ;
	}

	if( c % 10 != 0){
	
	ch = ( ( c / 10 )+ 10 ) * 100 ;
	
	}else{
	
	ch = ( c / 10 ) * 100 ;
	}
	
	if( d % 10 != 0){
	
	dh = ( ( d / 10 )+ 10 ) * 100 ;
	
	}else{
	
	dh = ( d / 10 ) * 100 ;
	}	
	
	cout << ah + bh + ch + dh + e ;

return 0;
}

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

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

int main() {
  
  int a,b,c,d,e;
  int time;
  
  cin >> a >> b >> c >> d >> e;
  
  vector<int> t(5);
  t={a,b,c,d,e};
  vector<int> s(5);
  s={a,b,c,d,e};
  
  for(int i=0;i<4;i++){
    while(t.at(i).size()>1){
      t.at(i)=t.at(i)%10;
    }
    sum+=t.at(i);
  }
  
  for(int i=0;i<5;i++){
    sum+=s.at(i);
  }
  
  cout << sum << endl;
  
  return 0;
}
  
    
    
      

Compiler output:
a.cc: In function 'int main()':
a.cc:17:19: error: request for member 'size' in 't.std::vector<int>::at(((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   17 |     while(t.at(i).size()>1){
      |                   ^~~~
a.cc:20:5: error: 'sum' was not declared in this scope
   20 |     sum+=t.at(i);
      |     ^~~
a.cc:24:5: error: 'sum' was not declared in this scope
   24 |     sum+=s.at(i);
      |     ^~~
a.cc:27:11: error: 'sum' was not declared in this scope
   27 |   cout << sum << endl;
      |           ^~~