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

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

int main(int argc, char const *argv[])
{
    int a[5], k;
    for(int i = 0; i < 5; i++)
    {
        cin >> a[i];
    }
    cin >> k;

 
    for(int i = 0; i < 5; i++)
    {
        for(int j = 0; j < i+1; j++)
        {
            int temp = abs(a[i] - a[j]);
            if (temp > k) {
                return cout << ":(" << endl;
            }
            
        }
        
    }

    return cout << "Yay!" << endl;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:20:37: error: cannot convert 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int' in return
   20 |                 return cout << ":(" << endl;
      |                        ~~~~~~~~~~~~~^~~~~~~
      |                                     |
      |                                     std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
a.cc:27:27: error: cannot convert 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int' in return
   27 |     return cout << "Yay!" << endl;
      |            ~~~~~~~~~~~~~~~^~~~~~~
      |                           |
      |                           std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
    int a,b,c,d,e,k;
    cin >> a>> b >> c>> d>> e >> k;
    int flag=0
    if(b-a>k) flag=1;
    if(c-b>k) flag=1;
    if(d-c>k) flag=1;
    if(e-d>k) flag=1;

    if(flag==1) cout << ":(" << endl;
    else cout << "Yay!" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'if'
    8 |     if(b-a>k) flag=1;
      |     ^~
Language: C++

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

int main() {
  int k;
  vector<int> A(5);
  for (int i = 0; i < 5; i++) {
    cin >> A[i];
  }

  cin >> k;

  bool is = false;
  for (int i = 0; i < 5; i++) {
    for (int j = i; j < 5; j++) {
      int dis = abs(A[i] - A[j]);
      if (dis > k) {
        is = true;
        return;
      }
    }
  }

  if (is) {
    cout << ":(" << endl;
  } else {
    cout << "Yay!" << endl;
  }
};


Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   19 |         return;
      |         ^~~~~~
Language: C

#include <stdio.h>
int main(){
  int a[5],dis,flag=0;
  for (int i=0;i++;i<5) scanf("%d",&a[i]);
  scanf("%d",&dis);
  for (int i=0;i++;i<3){
    for (int j=i+1;j<4){
      if (a[j]-a[i]<=dis) dis++;
    }
  }
  if (dis==20) printf("Yay!\n");
  else printf(":(\n");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:23: error: expected ';' before ')' token
    7 |     for (int j=i+1;j<4){
      |                       ^
      |                       ;
Language: C++

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

int main(int argc, char const *argv[])
{
    int a[5], k;
    for(int i = 0; i < 5; i++)
    {
        cin >> a[i];
    }
    cin >> k;

 
    for(int i = 0; i < 5; i++)
    {
        for(int j = 0; j < i+1; j++)
        {
            int temp = abs(a[i] - a[j]);
            if (temp > k) {
                return cout << ":(" << endl;
            }
            
        }
        
    }

    return cout << "Yay!"
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:20:37: error: cannot convert 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int' in return
   20 |                 return cout << ":(" << endl;
      |                        ~~~~~~~~~~~~~^~~~~~~
      |                                     |
      |                                     std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
a.cc:27:17: error: cannot convert 'std::basic_ostream<char>' to 'int' in return
   27 |     return cout << "Yay!"
      |            ~~~~~^~~~~~~~~
      |                 |
      |                 std::basic_ostream<char>
a.cc:27:26: error: expected ';' before '}' token
   27 |     return cout << "Yay!"
      |                          ^
      |                          ;
   28 | }
      | ~
Language: C++

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

int main()
{
    for(i=0;i<5;i++)
    {
        scanf("%d",&a[i]);
    }
    sort(a,a+5);
    scanf("%d",&k);
    if(a[4]-a[0]<k)
    {
        printf("Yay!");
    }
    else printf(":(");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'i' was not declared in this scope
    7 |     for(i=0;i<5;i++)
      |         ^
a.cc:9:21: error: 'a' was not declared in this scope
    9 |         scanf("%d",&a[i]);
      |                     ^
a.cc:11:10: error: 'a' was not declared in this scope
   11 |     sort(a,a+5);
      |          ^
a.cc:12:17: error: 'k' was not declared in this scope
   12 |     scanf("%d",&k);
      |                 ^
Language: C++

#include<iostream>

using namspace std;

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

  return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namspace'
    3 | using namspace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> a >> b >> c >> d >> e >> k;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << ":(" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout << ":(" << endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout << "Yay!" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout << "Yay!" << endl;
      |                       ^~~~
      |                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
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;
  string ans = ":(";
  
  if(e-a =< k){
    ans = "Yay!";
  }
  
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected primary-expression before '<' token
    9 |   if(e-a =< k){
      |           ^
Language: C

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

int main()
{
  int a,b,c,d,e,k;
  
  scanf("%d",&a);
  scanf("%d",&b);
  scanf("%d",&c);
  scanf("%d",&d);
  scanf("%d",&e);
  scanf("%d",&k);
  
 if(fabs(a-b)<=k | fabs(a-c)<=k | fabs(a-d)<=k | fabs(a-e)<=k | fabs(b-c)<=k | fabs(b-d)<=k | fabs(b-e)<=k | fabs(c-d)<=k | fabs(c-e)<=k | fabs(d-e)<=k){
   printf(":(");
 }else{
   print("Yey!");
 }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:5: error: implicit declaration of function 'fabs' [-Wimplicit-function-declaration]
   15 |  if(fabs(a-b)<=k | fabs(a-c)<=k | fabs(a-d)<=k | fabs(a-e)<=k | fabs(b-c)<=k | fabs(b-d)<=k | fabs(b-e)<=k | fabs(c-d)<=k | fabs(c-e)<=k | fabs(d-e)<=k){
      |     ^~~~
main.c:3:1: note: include '<math.h>' or provide a declaration of 'fabs'
    2 | #include<stdlib.h>
  +++ |+#include <math.h>
    3 | 
main.c:15:5: warning: incompatible implicit declaration of built-in function 'fabs' [-Wbuiltin-declaration-mismatch]
   15 |  if(fabs(a-b)<=k | fabs(a-c)<=k | fabs(a-d)<=k | fabs(a-e)<=k | fabs(b-c)<=k | fabs(b-d)<=k | fabs(b-e)<=k | fabs(c-d)<=k | fabs(c-e)<=k | fabs(d-e)<=k){
      |     ^~~~
main.c:15:5: note: include '<math.h>' or provide a declaration of 'fabs'
main.c:18:4: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |    print("Yey!");
      |    ^~~~~
      |    printf
Language: C++

#include <iostream>
using namespace std;

int main() {
    int a, b, c, d, e, k;
    cin >> a >> b >> c >> d >> e >> k;

    if (e - a > k) {
      cout << ":(" << endl
    } else if (d - a > k) {
      cout << ":(" << endl
    } else if (d - a > k) {
      cout << ":(" << endl
    } else if (c - a > k) {
      cout << ":(" << endl
    } else if (b - a > k) {
      cout << ":(" << endl
    } else {
      cout << "Yay!" << endl
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: expected ';' before '}' token
    9 |       cout << ":(" << endl
      |                           ^
      |                           ;
   10 |     } else if (d - a > k) {
      |     ~                      
a.cc:11:27: error: expected ';' before '}' token
   11 |       cout << ":(" << endl
      |                           ^
      |                           ;
   12 |     } else if (d - a > k) {
      |     ~                      
a.cc:13:27: error: expected ';' before '}' token
   13 |       cout << ":(" << endl
      |                           ^
      |                           ;
   14 |     } else if (c - a > k) {
      |     ~                      
a.cc:15:27: error: expected ';' before '}' token
   15 |       cout << ":(" << endl
      |                           ^
      |                           ;
   16 |     } else if (b - a > k) {
      |     ~                      
a.cc:17:27: error: expected ';' before '}' token
   17 |       cout << ":(" << endl
      |                           ^
      |                           ;
   18 |     } else {
      |     ~                      
a.cc:19:29: error: expected ';' before '}' token
   19 |       cout << "Yay!" << endl
      |                             ^
      |                             ;
   20 |     }
      |     ~
Language: C++

import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        int[] ant = new int[5];
        //        String s = sc.next();

        boolean ans = false;

        for (int i = 0; i < 5; i++) {
            ant[i] = sc.nextInt();
        }
        int k = sc.nextInt();

        if ((Math.abs(ant[0] - ant[1]) > k) || (Math.abs(ant[0] - ant[2]) > k) ||
                (Math.abs(ant[0] - ant[3]) > k) || (Math.abs(ant[0] - ant[4]) > k) ||
                (Math.abs(ant[1] - ant[2]) > k) || (Math.abs(ant[1] - ant[3]) > k) ||
                (Math.abs(ant[1] - ant[4]) > k) || (Math.abs(ant[2] - ant[3]) > k) ||
                (Math.abs(ant[2] - ant[4]) > k) || (Math.abs(ant[3] - ant[4]) > k))
            ans = true;

        sc.close();
        System.out.println(ans ? ":(" : "Yay!");

    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

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

int main()
{
    vector<int> antena(5);
    int dist = 0;
    for(int i = 0; i < 5; i++)cin >> antena.at(i);
    cin >> dist;
    for(int i = 0; i < 4; i++){
        for(int j = i+1; j < 5; j++){
            if(dist < abs((antena.at(i) - antena.at(j)))){
                cout << ":(" << endl;
                return 0;
            }
        }
    }
    cout << "Yey!" << endl;
    return 0;
}


Compiler output:
a.cc:3:2: error: invalid preprocessing directive #incldue; did you mean #include?
    3 | #incldue <cstdlib>
      |  ^~~~~~~
      |  include
Language: C++

#include <algorithm>
#include <chrono>
#include <climits>
#include <cmath>
#include <deque>
#include <iostream>
#include <map>
#include <memory>
#include <numeric>
#include <set>
#include <string>
#include <utility>
#include <vector>

using namespace std;

using llong = long long;
using ullong = unsigned long long;

#ifndef __MACRO_H__
#define __MACRO_H__

#define all(collection)  (collection).begin(), (collection).end()
#define loop(i, times) for (llong i = 0; i < times; i++)
#define rloop(i, times) for (llong i = times -1; 0 <= i; i--)

std::chrono::system_clock::time_point  start;

void TimeStart(void)
{
	start = std::chrono::system_clock::now();
}

void TimeEnd(void)
{
	auto time = std::chrono::system_clock::now() - start;
	auto msec = std::chrono::duration_cast<std::chrono::milliseconds>(time).count();
	cerr << endl << msec << " msec " << endl;
}

#endif

int main(void)
{
	ABC123B abc123b;
	llong k;
	llong a[5];
	loop(i, 5)
		cin >> a[i];
	cin >> k;

	rloop(i, 4)
	{
		if (a[i] - a[0] > k)
		{
			cout << ":(";
			return 0;
		}
	}

	cout << "Yay!";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:9: error: 'ABC123B' was not declared in this scope
   45 |         ABC123B abc123b;
      |         ^~~~~~~
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
		int[] numbers = new int[6];
      	int check = 0;
      	for(int i = 0;i<6;i++){
        	numbers[i] = scan.nextInt();
        }
      	for(int i=0;i<5;i++){
        	if(numbers[i+1] - numbers[i] > numbers[5]){
            	check++;
            }
        }
      	if(check > 0){
        	System.out.println(":(");
        } else {
        	System.out.println("Yay!")
        }
      	
    }
}

Compiler output:
Main.java:18: error: ';' expected
        	System.out.println("Yay!")
        	                          ^
1 error
Language: C++

#include <iostream>
using namespace std;
 
int main(){
  int a[5],k;
  for(int i = 0;i < 5;i++)cin >> a[i];
  cin >> k;
  if(a[4] - a[0] > k)cout << ':(';
  else cout << 'Yay!'
  return 0;
}

Compiler output:
a.cc:8:30: warning: multi-character character constant [-Wmultichar]
    8 |   if(a[4] - a[0] > k)cout << ':(';
      |                              ^~~~
a.cc:9:16: warning: multi-character character constant [-Wmultichar]
    9 |   else cout << 'Yay!'
      |                ^~~~~~
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before 'return'
    9 |   else cout << 'Yay!'
      |                      ^
      |                      ;
   10 |   return 0;
      |   ~~~~~~
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 (((b-a)<=k)&&((c-b)<=k)&&((d-c)<=k)&&((e-d)<=k))
    cout << "Yay!" << endl;
  else
    cout << ":(" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:39: error: expected primary-expression before ';' token
    6 |   cin >> a >> b >> c >> d >> e >> k >>;
      |                                       ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	int x[5], dx, flag = 0;
	for (int i = 0; i < 5; i++) {
		cin >> x[i];
	}
	cin >> dx;
	sort(x, x + 5);
	if (x[4] - x[0] > dx) flag = 1;
	if (flag == 1) cout << ":(" << endl;
	else cout << "Yay!" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 |         sort(x, x + 5);
      |         ^~~~
      |         short
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String args[]){
    Scanner scan=new Scanner(System.in);
    int a=scan.nextInt();
    int e=scan.nextInt();
    int e=scan.nextInt();
    int e=scan.nextInt();
    int e=scan.nextInt();
    int k=scan.nextInt();
    if(e-a<=k){
      System.out.println("Yay!");
    }else{
      System.out.println(":(");
    }
  }
}


Compiler output:
Main.java:7: error: variable e is already defined in method main(String[])
    int e=scan.nextInt();
        ^
Main.java:8: error: variable e is already defined in method main(String[])
    int e=scan.nextInt();
        ^
Main.java:9: error: variable e is already defined in method main(String[])
    int e=scan.nextInt();
        ^
3 errors
Language: C++

#include <iostream>

int main(void)
{
    int points[5];
    int connect_range;

    for(int i = 0; i < 5; i++){
        cin >> points[i];
    }
    cin >> connect_range;

    if(points[5] - points[0] > connect_range){
        cout << ":(" << endl;
    }else{
        cout << "Yay!" << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |         cin >> points[i];
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |     cin >> connect_range;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         cout << ":(" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |         cout << ":(" << endl;
      |                         ^~~~
      |                         std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:16:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |         cout << "Yay!" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |         cout << "Yay!" << endl;
      |                           ^~~~
      |                           std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
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;

   int ab=abs(a-b);
   int ac=abs(a-c);
   int ad=abs(a-d);
   int ae=abs(a-e);
   int bc=abs(b-c);
   int bd=abs(b-d);
   int be=abs(b-e);
   int cd=abs(c-d);
   int ce=abs(c-e);
   int de=abs(d-e);

   if(ab>k||ac>k||ad>k||ae>k||bc>k||bd>k||be>k||cd>k||ce>k||de>k){
     cout<<":(";
   }else{
     cout<<"Yay!"
   }

   return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:23:18: error: expected ';' before '}' token
   23 |      cout<<"Yay!"
      |                  ^
      |                  ;
   24 |    }
      |    ~
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(b-a<=k&&c-a<=k&&d-a<=k&&e-a<=k&&c-b<=k&&d-b<=k&&e-b<=&&d-c<=k&&e-c<=k&&e-d<=k) {
    cout << "Yay" << endl;
  }
  else {
    cout << ":(" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:62: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
    7 |   if(b-a<=k&&c-a<=k&&d-a<=k&&e-a<=k&&c-b<=k&&d-b<=k&&e-b<=&&d-c<=k&&e-c<=k&&e-d<=k) {
      |                                                           ~~~^~
a.cc:7:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(b-a<=k&&c-a<=k&&d-a<=k&&e-a<=k&&c-b<=k&&d-b<=k&&e-b<=&&d-c<=k&&e-c<=k&&e-d<=k) {
      |                                                      ~~~^~~~~~~
a.cc:7:61: error: label 'd' used but not defined
    7 |   if(b-a<=k&&c-a<=k&&d-a<=k&&e-a<=k&&c-b<=k&&d-b<=k&&e-b<=&&d-c<=k&&e-c<=k&&e-d<=k) {
      |                                                             ^
Language: C++

#include <iostream>
#include <numeric>
#include <vector>
#include <cmath>
#include <string>
#include <algorithm>
#include <set>
#include <map>
using namespace std;
using ll=long long;
const ll MOD=100000007;
#define rep(i,a,b) for(ll i=a;i<b;i++)
inline ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
inline constexpr int intpow(ll a,ll b){
    if(b==0) return 1;
    ll ans=intpow(a,b/2);
    return ans*ans%MOD*(b&1?a:1)%MOD;
}
inline constexpr int modf(ll n){
    ll ans=1;
    rep(i,0,n) {ans=ans*(n-i)%MOD;}
    return ans;
}
int main(){
    vector<ll> h(5);
    rep(i,0,5) cin>>h(i);
    ll k;
    cin>>k;
    if(h(4)-h(0)<=k) cout<<"Yay!";
    else cout<<":(";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:22: error: no match for call to '(std::vector<long long int>) (ll&)'
   26 |     rep(i,0,5) cin>>h(i);
      |                     ~^~~
a.cc:29:9: error: no match for call to '(std::vector<long long int>) (int)'
   29 |     if(h(4)-h(0)<=k) cout<<"Yay!";
      |        ~^~~
a.cc:29:14: error: no match for call to '(std::vector<long long int>) (int)'
   29 |     if(h(4)-h(0)<=k) cout<<"Yay!";
      |             ~^~~
Language: C

#include <iostream>
using namespace std;

int main() {
	int x[5], dx, flag = 0;
	for (int i = 0; i < 5; i++) {
		cin >> x[i];
	}
	cin >> dx;
	sort(x, x + 5);
	if (x[4] - x[0] > dx) flag = 1;
	if (flag == 1) cout << ":(" << endl;
	else cout << "Yay!" << endl;
	return 0;
}

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

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

int main() {
 cin >> A;
 cin >>B;
  cin >>C;
  cin >>D;
  cin >>E;
  cin >>K;
	if(A-E < K+1){
    cout << 'Yay!' << endl;
    }
  else{
  cout << ':(' << endl;
  }
}




Compiler output:
a.cc:12:13: warning: multi-character character constant [-Wmultichar]
   12 |     cout << 'Yay!' << endl;
      |             ^~~~~~
a.cc:15:11: warning: multi-character character constant [-Wmultichar]
   15 |   cout << ':(' << endl;
      |           ^~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'A' was not declared in this scope
    5 |  cin >> A;
      |         ^
a.cc:6:8: error: 'B' was not declared in this scope
    6 |  cin >>B;
      |        ^
a.cc:7:9: error: 'C' was not declared in this scope
    7 |   cin >>C;
      |         ^
a.cc:8:9: error: 'D' was not declared in this scope
    8 |   cin >>D;
      |         ^
a.cc:9:9: error: 'E' was not declared in this scope
    9 |   cin >>E;
      |         ^
a.cc:10:9: error: 'K' was not declared in this scope
   10 |   cin >>K;
      |         ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int a,b,c,d,e,k;
	cin >> a >> b >> c >> d >> e >> k;
	if(a-b<=k && b-c<=k && c-d<=k d-e<=k)
		cout << "Yay!" << endl;
	
	else cout << ":(" << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:38: error: expected ')' before 'd'
    7 |         if(a-b<=k && b-c<=k && c-d<=k d-e<=k)
      |           ~                          ^~
      |                                      )
Language: C++

#include<bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);++i)
#define ALL(v) (v).begin(),(v).end()
#define INF 1e9
#define MOD 1e9+7
typedef long long llong;
using namespace std;

int main(){
	int a[5];
	REP(i,5) cin>>a[i];
	int k;
	cin>>k;
	
	for(int i=0;i<4;++i){
		for(int j=i+1;j<5;++j){
			if(a[j]-a[i]>k){
				cout<<":("<<endl;
				return 0;
			}
		}
	}
	
	cout<<""Yay!"<<endl;
	return 0;
}

Compiler output:
a.cc:24:21: warning: missing terminating " character
   24 |         cout<<""Yay!"<<endl;
      |                     ^
a.cc:24:21: error: missing terminating " character
   24 |         cout<<""Yay!"<<endl;
      |                     ^~~~~~~~
a.cc: In function 'int main()':
a.cc:24:15: error: unable to find string literal operator 'operator""Yay' with 'const char [1]', 'long unsigned int' arguments
   24 |         cout<<""Yay!"<<endl;
      |               ^~~~~
Language: C++

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

int main() {
  int A[5]
  int a, b, c, d, e, k;
  cin >> A[0] >> A[1] >> A[2] >> A[3] >> A[4] >> k;
  for (int i = 0; i < 5; i++) {
    for (int j = i+1; j < 5; j++) {
      if(abs(A[i] - A[j]) >k) {
        cout << ":(\n";
        return 0;
      }
    }
  }
  cout << "Yay!\n";
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'int'
    6 |   int a, b, c, d, e, k;
      |   ^~~
a.cc:7:10: error: 'A' was not declared in this scope
    7 |   cin >> A[0] >> A[1] >> A[2] >> A[3] >> A[4] >> k;
      |          ^
a.cc:7:50: error: 'k' was not declared in this scope
    7 |   cin >> A[0] >> A[1] >> A[2] >> A[3] >> A[4] >> k;
      |                                                  ^
Language: C++

#include <iostream>
#include <algorithm>

#define ll long long

using namespace std;

int main(){

 int a[5];
 for(int i=0;i<5;++i) cin>>a[i];
 cin>>k;
 
 for(int i=0;i<5;++i)
 for(int j=i+1;j<5;++j)
 if(abs(a[i]-a[j])>k){
     cout<<":("<<endl;
     return 0;
 }

cout<<"Yay!"<<endl;
 
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'k' was not declared in this scope
   12 |  cin>>k;
      |       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> a >> b >> c >> d >> e >> k;
      |     ^~~
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout << ":(" << endl;
      |         ^~~~
a.cc:6:25: error: 'endl' was not declared in this scope
    6 |         cout << ":(" << endl;
      |                         ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "Yay!" << endl;
      |         ^~~~
a.cc:9:27: error: 'endl' was not declared in this scope
    9 |         cout << "Yay!" << endl;
      |                           ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: unable to find string literal operator 'operator""endl' with 'const char [5]', 'long unsigned int' arguments
   10 |         cout<<"Yay!"endl;
      |               ^~~~~~~~~~
Language: C++

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

if e > k:
    print(":(")
else:
    print("Yay!")


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

    #include<stdio.h>
    #include<string.h>
    int main(void){
    int A,B,C,a,b,c,d,e,k,i,j,cou,v[1000000];
    char S[100000],t[100000],d[100000],a,b;
    scanf("%d",&a);
    scanf("%d",&b);
    scanf("%d",&c);
    scanf("%d",&d);
    scanf("%d",&e);
    scanf("%d",&k);
    if(e-a>k){
        printf(":(");
    }else{
        printf("Yay!");
    }
    return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:5:30: error: conflicting types for 'd'; have 'char[100000]'
    5 |     char S[100000],t[100000],d[100000],a,b;
      |                              ^
main.c:4:21: note: previous declaration of 'd' with type 'int'
    4 |     int A,B,C,a,b,c,d,e,k,i,j,cou,v[1000000];
      |                     ^
main.c:5:40: error: conflicting types for 'a'; have 'char'
    5 |     char S[100000],t[100000],d[100000],a,b;
      |                                        ^
main.c:4:15: note: previous declaration of 'a' with type 'int'
    4 |     int A,B,C,a,b,c,d,e,k,i,j,cou,v[1000000];
      |               ^
main.c:5:42: error: conflicting types for 'b'; have 'char'
    5 |     char S[100000],t[100000],d[100000],a,b;
      |                                          ^
main.c:4:17: note: previous declaration of 'b' with type 'int'
    4 |     int A,B,C,a,b,c,d,e,k,i,j,cou,v[1000000];
      |                 ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected primary-expression before '>' token
   12 |   if (e-a) > k {
      |            ^
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 k = sc.nextInt();
    if (e - a > k) {
      System.out.println(":(");
    else {
      System.out.println("Yay!");
    }
  }
}


Compiler output:
Main.java:13: error: 'else' without 'if'
    else {
    ^
Main.java:17: error: reached end of file while parsing
}
 ^
2 errors
Language: C++

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

int main(void){
	int a[6]
	for(int i=0;i<5;i++){
		scanf("%d",&a[i]);
	}
	scanf("%d",&a[6])
	for(int i=0;i<4;i++){
		if(abs(a[i]-a[i+1])>a[6]){
			printf("Yay!\n");
			return 0;
		}
	}
	printf(":(\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'for'
    6 |         for(int i=0;i<5;i++){
      |         ^~~
a.cc:6:21: error: 'i' was not declared in this scope
    6 |         for(int i=0;i<5;i++){
      |                     ^
a.cc:9:21: error: 'a' was not declared in this scope
    9 |         scanf("%d",&a[6])
      |                     ^
Language: C++

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

if e - a > k:
    print(':(')
else:
    print('Yay!')


Compiler output:
a.cc:9:11: warning: multi-character character constant [-Wmultichar]
    9 |     print(':(')
      |           ^~~~
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     print('Yay!')
      |           ^~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a = int(input())
      | ^
Language: C++

#include <bits/stdc++.h>
#define ll long long int
#define pb push_back
#define mp make_pair
#define mod 1000000007
#define pi 3.141592653589793
using namespace std;



int main() {
    cout << setprecision(10);
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);

    ll a[5];
    for (int i = 0; i < 5; i++) {
        cin >> a[i];
    }

    ll k;
    cin >> k;

    if (*max_element(a, a + 5) - *min_element(a, a + 5) > k) {
        cout << ":(";
    }

    else {
        cout << "Yay!"
    }



}




Compiler output:
a.cc: In function 'int main()':
a.cc:30:23: error: expected ';' before '}' token
   30 |         cout << "Yay!"
      |                       ^
      |                       ;
   31 |     }
      |     ~
Language: C++


#include <iostream>
#include <vector>
#include <stack>
#include <unordered_set>
#include <numeric>
#include <iterator>
#include <unordered_map>
#include <array>
#include <map>
#include <cstring>
#include <iomanip>
#include <string>
#include <algorithm>
#include <cmath>
#include <ctgmath>
#include <set>
#include <queue>
#include <fstream>
#include <ostream>
#include <random>
#include <chrono>

using namespace std;

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	
	vector<int> all;
	for (int i = 0; i < 5; i++)
	{
		int x;
		cin >> x;

		all.push_back(x);
	}
	int k;
	cin >> k;

	sort(all.begin(), all.end());
		
	if (abs(all[0] - all[4]) <= k);
	{
		cout << "Yay!\n";
	}
	else
	{
		cout << ":(\n";
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:48:9: error: 'else' without a previous 'if'
   48 |         else
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef signed long long ll;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
//vvi(n, vector<int>(m, -1))
 
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
#define ALL(a) (a).begin(), (a).end()

int main(){
	int i,j,k,n,m,l,f,x,y,z; string s;
	int a[6];

  rep(i, 6) cin >> a[i];

  sort(a, a+6);
  f = 0;
  rep(i, 5){
    if(a[i+1] - a[i] > k) f = 1;
  }

  if(f == 0) cout << "Yay!";
  else cout << ":("
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:20: error: expected ';' before '}' token
   25 |   else cout << ":("
      |                    ^
      |                    ;
   26 | }
      | ~
Language: Java

/*
* @Author Silviase(@silviasetitech)
* For ProCon
*/

import java.util.*;
import java.lang.*;
import java.math.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
       int[] ar = new int[5];
       for (int i = 0; i < 5; i++) {
           ar[i] = sc.nextInt();
       }
       Arrays.sort(ar);
       int k = sc.nextInt();
        if (k > e -a) {
            System.out.println("Yay!");
        } else {
            System.out.println(":(");
        }

        sc.close();
    }

}





Compiler output:
Main.java:20: error: cannot find symbol
        if (k > e -a) {
                ^
  symbol:   variable e
  location: class Main
Main.java:20: error: cannot find symbol
        if (k > e -a) {
                   ^
  symbol:   variable a
  location: class Main
2 errors
Language: C

#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<stling.h>
#include<stdbool.h>

#define MIN(a,b) ((a)<(b)?(a):(b));
#define MAX(a,b) ((a)>(b)?(a):(b));

typedef long long int64;

int main(void){
    int a,b,c,d,e,k;
    scanf("%d",&a);
    scanf("%d",&b);
    scanf("%d",&c);
    scanf("%d",&d);
    scanf("%d",&e);
    scanf("%d",&k);
    if(e-a<=k){
        printf("Yay!");
        
    }else{
        printf(":(");
    }
    
    return 0;
}

Compiler output:
main.c:4:9: fatal error: stling.h: No such file or directory
    4 | #include<stling.h>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

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

#define endl "\n"
#define all(x) x.begin(),x.end()
#define pb push_back
#define ff first 
#define ss second 
#define pii pair<int,int>
#define vi vector<int>
#define vc vector<char>
#define vii vector<pii>
#define vvi vector<vi>
#define fori(i,n) for(int i=1;i<=n;++i)
#define forn(i,n) for(int i=0;i<n;++i)
#define sz(x) int(x.size())
#define error(x) cout<<#x<<" "<<x<<endl
#define IOS  ios::sync_with_stdio(0);cin.tie(0);cout.tie(0)

const int N=100*1000;
const int mod=1e9+7;

int min3(int a,int b,int c){return min(a,min(b,c));}
int max3(int a,int b,int c){return max(a,max(b,c));}
int min4(int a,int b,int c,int d){return min(min(a,b),min(c,d));}
int max4(int a,int b,int c,int d){return max(max(a,b),max(c,d));}

//#define int int64_t
int a[N+2];

int32_t  main(){
	IOS;
  for(int i=1;i<=5;++i)cin>>a[i];
  for(int i=1;i<=5;++i){
    for(int j=i+1;j<=5;++j){
      if(abs(a[i]-a[j])<=k){
        cout<<"Yay!\n";
        return 0;
      }
    }
  }
  cout<<":(\n";

  return 0;
}



Compiler output:
a.cc: In function 'int32_t main()':
a.cc:36:26: error: 'k' was not declared in this scope
   36 |       if(abs(a[i]-a[j])<=k){
      |                          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define elif else if
int a,b,c,d,e,k;
signed main()
{
	cin>>a>>b>>c>>d>>e>>k;
	if(e-a<=k){
		cout<<"Yay!"
	}else{
		cout<<":("
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: expected ';' before '}' token
   11 |                 cout<<"Yay!"
      |                             ^
      |                             ;
   12 |         }else{
      |         ~                    
a.cc:13:27: error: expected ';' before '}' token
   13 |                 cout<<":("
      |                           ^
      |                           ;
   14 |         }
      |         ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define mp       make_pair
#define pb       push_back
#define all(x)   (x).begin(),(x).end()
#define YES() printf("YES\n")
#define NO() printf("NO\n")
#define Yes() printf("Yes\n")
#define No() printf("No\n")
#define in(x,y,h,w) x >= 0 && x < h && y >= 0 && y < w

#define int long long
//typedef    long long          ll;
typedef    vector<bool>       vb;
typedef    vector<int>        vi;
typedef    vector<vb>         vvb;
typedef    vector<vi>         vvi;
typedef    pair<int,int>      P;

template <typename T> T &chmin(T &a, const T &b) { return a = min(a, b); }
template <typename T> T &chmax(T &a, const T &b) { return a = max(a, b); }
 
const int INF=1e+18;
const double EPS=1e-9;
const int MOD=1000000007;

const int dx[]={1,0,-1,0},dy[]={0,-1,0,1};

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


Compiler output:
a.cc: In function 'int main()':
a.cc:32:20: error: 'k' was not declared in this scope
   32 |         if(e - a > k) cout << ":(" << endl;
      |                    ^
Language: C++

import math


def main():
    t = []
    for i in range(5):
        t.append(int(input()))

    max_wait = 0
    max_wait_order = 0
    for i in range(len(t)):
        if t[i] % 10 != 0 and 10 - (t[i] % 10) >= max_wait:
            max_wait = 10 - t[i] % 10
            max_wait_order = i

    time = 0
    for i in range(len(t)):
        if i == max_wait_order:
            continue
        else:
            time += math.ceil(t[i] / 10) * 10
    time += t[max_wait_order]

    print(time)


if __name__ == '__main__':
    main()


Compiler output:
a.cc:27:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   27 | if __name__ == '__main__':
      |                ^~~~~~~~~~
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>
using namespace std;
using ll=long long;
int main() {
  vector<ll>vec(5);
  ll b=10;
  for(ll i=0;i<5;i++){
    ll c;
    cin>>c;
    vec.at(i)=((c-1)/10+1)*10;
    b=min(b,c%10);
  }
  ll s=0;
  for(ll i=;i<5;i++){
    s+=vec.at(i);
  }
  s-=10-b;
  cout<<s<<endl;
  return 0;
}
    
  


 


Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: expected primary-expression before ';' token
   14 |   for(ll i=;i<5;i++){
      |            ^
Language: C++

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

int main(){
  vector<int> cook(5);
  for(int i=0;i<5;i++) cin>>cook.at(i);
  vector<vector<int>> A;
  vector<int> ans={0,1,2,3,4};
  do{ A.push_back(ans); }while(next_permutation(ans.begin(),ans.end()));
  priority_queue<int,vector<int>,greater<int>> time;
  for(int i=0;i<120;i++){
    int X=0;
    for(int j=0;j<4;j++){cook.at(A.at(i).at(j))
      if(cook.at(A.at(i).at(j))%10==0) X+=cook.at(A.at(i).at(j));
      else X+= (cook.at(A.at(i).at(j))/10+1)*10;
    }
    X+=cook.at(A.at(i).at(4));
    time.push(X);
  }
  cout<<time.top()<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:48: error: expected ';' before 'if'
   13 |     for(int j=0;j<4;j++){cook.at(A.at(i).at(j))
      |                                                ^
      |                                                ;
   14 |       if(cook.at(A.at(i).at(j))%10==0) X+=cook.at(A.at(i).at(j));
      |       ~~                                        
a.cc:13:33: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::at(size_type) [with _Tp = int; _Alloc = std::allocator<int>; reference = int&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result]
   13 |     for(int j=0;j<4;j++){cook.at(A.at(i).at(j))
      |                          ~~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1180:7: note: declared here
 1180 |       at(size_type __n)
      |       ^~
a.cc:15:7: error: 'else' without a previous 'if'
   15 |       else X+= (cook.at(A.at(i).at(j))/10+1)*10;
      |       ^~~~
Language: C++

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

int main(){
  vector<int> cook(5);
  for(int i=0;i<5;i++) cin>>cook.at(i);
  vector<vector<int>> A;
  vector<int> ans={0,1,2,3,4};
  do{ A.push_back(ans); }while(next_permutation(ans.begin(),ans.end()));
  priority_queue<int,vector<int>,greater<int>> time;
  for(int i=0;i<120;i++){
    int X=0;
    for(int j=0;j<4;j++){
      if(cook.at(i).at(A.at(j))%10==0) X+=cook.at(i).at(A.at(j));
      else X+= (cook.at(i).at(A.at(j))/10+1)*10;
    }
    X+=cook.at(i).at(A.at(4));
    A.push(X);
  }
  cout<<A.top()<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: request for member 'at' in 'cook.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'}
   14 |       if(cook.at(i).at(A.at(j))%10==0) X+=cook.at(i).at(A.at(j));
      |                     ^~
a.cc:14:54: error: request for member 'at' in 'cook.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'}
   14 |       if(cook.at(i).at(A.at(j))%10==0) X+=cook.at(i).at(A.at(j));
      |                                                      ^~
a.cc:15:28: error: request for member 'at' in 'cook.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'}
   15 |       else X+= (cook.at(i).at(A.at(j))/10+1)*10;
      |                            ^~
a.cc:17:19: error: request for member 'at' in 'cook.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 |     X+=cook.at(i).at(A.at(4));
      |                   ^~
a.cc:18:7: error: 'class std::vector<std::vector<int> >' has no member named 'push'
   18 |     A.push(X);
      |       ^~~~
a.cc:20:11: error: 'class std::vector<std::vector<int> >' has no member named 'top'
   20 |   cout<<A.top()<<endl;
      |           ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int f(int x) {
  return ((x - 1) / 10 + 1) * 10;
}
int main() {
  vector<int> T(5);
  for(int i = 0; i < 5; i++) {
    cin >> T[i];
  }
  int sum = f(A) + f(B) + f(C) + f(D) + f(E);
  int min_time = sum;
  for(int i = 0; i < 5; i++) {
    if(T[i] % 10 != 0) {
      int real = sum + T[i] % 10 - 10;
    }
    if(real < min_time) {
      min_time = real;
    }
  }
  cout << min_time << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'A' was not declared in this scope
   11 |   int sum = f(A) + f(B) + f(C) + f(D) + f(E);
      |               ^
a.cc:11:22: error: 'B' was not declared in this scope
   11 |   int sum = f(A) + f(B) + f(C) + f(D) + f(E);
      |                      ^
a.cc:11:29: error: 'C' was not declared in this scope
   11 |   int sum = f(A) + f(B) + f(C) + f(D) + f(E);
      |                             ^
a.cc:11:36: error: 'D' was not declared in this scope
   11 |   int sum = f(A) + f(B) + f(C) + f(D) + f(E);
      |                                    ^
a.cc:11:43: error: 'E' was not declared in this scope
   11 |   int sum = f(A) + f(B) + f(C) + f(D) + f(E);
      |                                           ^
a.cc:17:8: error: parse error in template argument list
   17 |     if(real < min_time) {
      |        ^~~~~~~~~~~~~~~
a.cc:17:23: error: cannot resolve overloaded function 'real' based on conversion to type 'bool'
   17 |     if(real < min_time) {
      |                       ^
a.cc:18:18: error: cannot resolve overloaded function 'real' based on conversion to type 'int'
   18 |       min_time = real;
      |                  ^~~~
a.cc: At global scope:
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int f(int x) {
  return ((x - 1) / 10 + 1) * 10;
}
int main() {
  int A, B, C, D, E;
  cin >> A >> B >> C >> D >> E;
  cout << f(A) + f(B) + f(C) + f(D) + f(E); << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:45: error: expected primary-expression before '<<' token
    9 |   cout << f(A) + f(B) + f(C) + f(D) + f(E); << endl;
      |                                             ^~
Language: C++

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

int main() {
    int t[5];
    for (int i = 0; i < 5; i++)
        cin >> t[i];

    vector<vector<int>> perm(0, vector<int>(5));
    for (int a = 0; a < 5; a++) {
        for (int b = 0; b < 5; b++) {
            if (b != a) {
                for (int c = 0; c < 5; c++) {
                    if (c != a && c!= b) {
                        for (int d = 0; d < 5; d++) {
                            if (d != a && d != b && d != c) {
                                for (int e = 0; e < 5; e++) {
                                    if (e != a && e != b && e != c && e != d) {
                                        perm.push_back({a,b,c,d,e});
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    int ans = 10000000;
    for (int i = 0; i < perm.size(); i++) {
        int time = 0;
        for (int j = 0; j < 5; j++) {
            if (t[perm[i][j]]%10 == 0)
                time += t[perm[i][j]];
            else {
                time += t[perm[i][j]] + 10 - t[perm[i][j]]%10;
            }
        }
        ans = min(ans, time)
    }
    cout << ans << endl;
}    

Compiler output:
a.cc: In function 'int main()':
a.cc:40:29: error: expected ';' before '}' token
   40 |         ans = min(ans, time)
      |                             ^
      |                             ;
   41 |     }
      |     ~
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;
  vector<int>time={a,b,c,d,e};
  vector<int>nexttime(n);
  for(int i=0;i<n;i++){
    if(time.at(i)%10==0){
      nexttime.at(i)=time.at(i);
    }
    else{
      nexttime.at(i)=time.at(i)-time.at(i)%10+10;
    }
  }
 
    
  int besttime=9999999999;
  for(int i=0;i<n;i++){
    int sumtime=0;
    for(int j=0;j<n;j++){
      if(i==j){
        sumtime+=time.at(j);
      }
      else{
        sumtime+=nexttime.at(j);
      }
    }
    besttime=min(besttime,sumtime);
  }
  cout<<besttime<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: 'n' was not declared in this scope
    7 |   vector<int>nexttime(n);
      |                       ^
a.cc:18:16: warning: overflow in conversion from 'long int' to 'int' changes value from '9999999999' to '1410065407' [-Woverflow]
   18 |   int besttime=9999999999;
      |                ^~~~~~~~~~