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

#include <stdio.h>
int main(void)
{
	int D;
	printf("Dを入力せよ");
	scanf_s("%d", &D);
	switch (D)
	{
	case 25:
		printf("Christmas",D);
		break;
	case 24:
		printf("Christmas Eve", D);
		break;
	case 23:
		printf("Christmas Eve Eve", D);
		break;
	case 22:
		printf("Christmas Eve Eve Eve", D);
		break;
	}
	return 0;
}

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

#include <stdio.h>
int main(void)
{
	int D;
	printf("Dを入力せよ");
	scanf_s("%d", &D);
	switch (D)
	{
	case 25:
		printf("Christmas",D);
		break;
	case 24:
		printf("Christmas Eve", D);
		break;
	case 23:
		printf("Christmas Eve Eve", D);
		break;
	case 22:
		printf("Christmas Eve Eve Eve", D);
		break;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%d", &D);
      |         ^~~~~~~
      |         scanf
Language: C++

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

int main() {
  cin >> int D;
  string out;
  
  if (D==25) {
    out = "Christmas";
  }
  
  else if (D==24) {
    out = "Christmas Eve";
  }
  
  else if (D==23) {
    out = "Christmas Eve Eve";
  }
  
  else if (D==22) {
    out = "Christmas Eve Eve Eve";
  }
  
  cout << out;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   cin >> int D;
      |          ^~~
a.cc:8:7: error: 'D' was not declared in this scope
    8 |   if (D==25) {
      |       ^
Language: C++

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

int main() {
  cin >> D;
  string out;
  
  if (D==25) {
    out = "Christmas";
  }
  
  else if (D==24) {
    out = "Christmas Eve";
  }
  
  else if (D==23) {
    out = "Christmas Eve Eve";
  }
  
  else if (D==22) {
    out = "Christmas Eve Eve Eve";
  }
  
  cout << out;
}

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

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

int main() {
  cin >> D;
  string out;
  
  if (D==25) {
    string = "Christmas";
  }
  
  else if (D==24) {
    string = "Christmas Eve";
  }
  
  else if (D==23) {
    string = "Christmas Eve Eve";
  }
  
  else if (D==22) {
    string = "Christmas Eve Eve Eve";
  }
  
  cout << string;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'D' was not declared in this scope
    5 |   cin >> D;
      |          ^
a.cc:9:12: error: expected unqualified-id before '=' token
    9 |     string = "Christmas";
      |            ^
a.cc:13:12: error: expected unqualified-id before '=' token
   13 |     string = "Christmas Eve";
      |            ^
a.cc:17:12: error: expected unqualified-id before '=' token
   17 |     string = "Christmas Eve Eve";
      |            ^
a.cc:21:12: error: expected unqualified-id before '=' token
   21 |     string = "Christmas Eve Eve Eve";
      |            ^
a.cc:24:17: error: expected primary-expression before ';' token
   24 |   cout << string;
      |                 ^
Language: C++

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

int main() {
  cin >> D;
  string out;
  
  if (D==25) {
    string = "Christmas"
  }
  
  else if (D==24) {
    string = "Christmas Eve"
  }
  
  else if (D==23) {
    string = "Christmas Eve Eve"
  }
  
  else if (D==22) {
    string = "Christmas Eve Eve Eve"
  }
  
  cout << string;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'D' was not declared in this scope
    5 |   cin >> D;
      |          ^
a.cc:9:12: error: expected unqualified-id before '=' token
    9 |     string = "Christmas"
      |            ^
a.cc:13:12: error: expected unqualified-id before '=' token
   13 |     string = "Christmas Eve"
      |            ^
a.cc:17:12: error: expected unqualified-id before '=' token
   17 |     string = "Christmas Eve Eve"
      |            ^
a.cc:21:12: error: expected unqualified-id before '=' token
   21 |     string = "Christmas Eve Eve Eve"
      |            ^
a.cc:24:17: error: expected primary-expression before ';' token
   24 |   cout << string;
      |                 ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a;
    cin >> a;
   switch(a){
    25: cout << "Christmas" ;
    24: cout << "Christmas Eve ";
    23: cout << "Christmas Eve Eve";
    22: cout << "Christmas Eve Eve Eve";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: expected ';' before ':' token
    8 |     25: cout << "Christmas" ;
      |       ^
      |       ;
a.cc:9:7: error: expected ';' before ':' token
    9 |     24: cout << "Christmas Eve ";
      |       ^
      |       ;
a.cc:10:7: error: expected ';' before ':' token
   10 |     23: cout << "Christmas Eve Eve";
      |       ^
      |       ;
a.cc:11:7: error: expected ';' before ':' token
   11 |     22: cout << "Christmas Eve Eve Eve";
      |       ^
      |       ;
Language: C++

import numpy as np

n=int(input())
a=[]
for i in range(n):
    a.append(int(input()))
a.sort()
ans=int(0)
for i in range(n-1):
    ans = ans + a[i]
ans = ans + a[-1]/2
print(int(ans))

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

import java.util.Scanner;
 
public static void main(){
  int N=0;
  int Max=0;
  Scanner s=new Scanner(System.in);
  int all=0; 
  int save=0;
 
  N=s.nextInt();
 
  for(int i=0;i<N;i++){
   save=s.nextInt();
   all+=save
 
    if(Max<save){
     Max=save;
   }
 
  }
all-=Max;
all+=Max/2;
 }

Compiler output:
Main.java:2: error: illegal character: '\u00a0'
?
^
Main.java:9: error: illegal character: '\u00a0'
?
^
Main.java:11: error: illegal character: '\u00a0'
?
^
Main.java:15: error: illegal character: '\u00a0'
?
^
Main.java:19: error: illegal character: '\u00a0'
?
^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:14: error: ';' expected
   all+=save
            ^
7 errors
Language: Java

import java.util.Scanner;
 
public static void Main(){
  int N=0;
  int Max=0;
  Scanner s=new Scanner(System.in);
  int all=0; 
  int save=0;
 
  N=s.nextInt();
 
  for(int i=0;i<N;i++){
   save=s.nextInt();
   all+=save
 
    if(Max<save){
     Max=save;
   }
 
  }
all-=Max;
all+=Max/2;
 }

Compiler output:
Main.java:2: error: illegal character: '\u00a0'
?
^
Main.java:9: error: illegal character: '\u00a0'
?
^
Main.java:11: error: illegal character: '\u00a0'
?
^
Main.java:15: error: illegal character: '\u00a0'
?
^
Main.java:19: error: illegal character: '\u00a0'
?
^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void Main(){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:14: error: ';' expected
   all+=save
            ^
7 errors
Language: C++

#include <iostream>

using namespace std;

int main() {
    int d;
    cin >> c;
    if (c == 25) cout << "Christmas" << endl;
    else if (c == 24) cout << "Christmas Eve" << endl;
    else if (c == 23) cout << "Christmas Eve Eve" << endl;
    else if (c == 22) cout << "Christmas Eve Eve Eve" << endl;
}

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

public class Main
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int D = sc.nextInt();
        if(D == 25) {
            System.out.println("Christmas");
        } else if(D ==24) {
            System.out.println("Christmas Eve");
        } else if(D == 23) {
            System.out.println("Christmas Eve Eve");
        } else if(D == 22) {
            System.out.println("Christmas Eve Eve Eve");
        }
    }
}


Compiler output:
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
public class ABC115a
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int D = sc.nextInt();
        if(D == 25) {
            System.out.println("Christmas");
        } else if(D ==24) {
            System.out.println("Chritmas Eve");
        } else if(D == 23) {
            System.out.println("Christmas Eve Eve");
        } else if(D == 22) {
            System.out.println("Christmas Eve Eve Eve");
        }
    }
}

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

#include<iostream>
int main(void){
  int day;
  string s=Christmas;
  cin >> day;
  for(i=0;i<(day-22);i++){
    s=s+"Eve";
  }
  cout << s << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s=Christmas;
      |   ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> day;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   for(i=0;i<(day-22);i++){
      |       ^
a.cc:7:5: error: 's' was not declared in this scope
    7 |     s=s+"Eve";
      |     ^
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << s << 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:9:11: error: 's' was not declared in this scope
    9 |   cout << s << endl;
      |           ^
a.cc:9:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << s << 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 <iostream>
using namespace std;

int main(){
  int N,K;
  cin >> N;
  cin >> K;
  
  int a[N];
  int m=0;
  
  for(int i=0;i<N;i++){
    cin >> a[i];
  }
  sort(a,a+N);
  
  int h;
  h= a[0]-a[K-1];
  
  for(int x=0;x<N-K;x++){
    if(a[x]-a[x-1+K]>a[x+1]-a[x+K]){
      h=a[x+1]-a[x+K];
    }
  }
  
  cout << h;
  
  return 0;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   15 |   sort(a,a+N);
      |   ^~~~
      |   short
Language: C++

#include <iostream>

int main(){
  int D;
  std::cin>>D;
  if (D==22){
    std::cout<<"Christmas Eve Eve Eve"<<std::endl;
  }
  if (D==23){
    std::cout<<"Christmas Eve Eve"<<std::endl;
  }
  if (D==24){
    std::cout<<"Christmas Eve"<<std::endl;
  }
  if (D==25){
    std::cout<<"Christmas"<<std::endl;
  }

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

D = input()
D = int(D)
if D == 25 :
    ans = "Christmas"
elif D == 24 :
    ans = "Christmas Eve"
elif D == 23: 
    ans = "Christmas Eve Eve"
elif D == 22: 
    ans = "Christmas Eve Eve Eve"
        
print (ans)

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

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

int main(){
    int D;
    cin>>D;
    if(D==25)cout<<"Christmas"<<endl;
    elif(D==24)cout<<"Christmas Eve"<<endl;
    elif(D==23)cout<<"Christmas Eve Eve"<<endl;
    else cout<<"Christmas Eve Eve Eve"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'elif' was not declared in this scope
    9 |     elif(D==24)cout<<"Christmas Eve"<<endl;
      |     ^~~~
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else cout<<"Christmas Eve Eve Eve"<<endl;
      |     ^~~~
Language: Java

public class Main {

	public static void main(String args[]) {

		Scanner sc = new Scanner(System.in);
		int D = sc.nextInt();

		if(D == 25) {
			System.out.println("Christmas");
		}else if(D == 24) {
			System.out.println("Christmas Eve");
		}else if(D == 23) {
			System.out.println("Christmas Eve Eve");
		}else if(D == 22) {
			System.out.println("Christmas Eve Eve Eve");
		}

	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int d;
  cin >> d;
  switch(d){
    case 25:
      cout << "Christmas" << endl;
      break;
    case 24:
      cout << "Christmas Eve" << endl;
      break;
    case 23:
      cout << "Christmas Eve Eve" << endl;
      break;
    case 22:
      cout << "Christmas Eve Eve Eve" << endl;
  }
}
      
}

Compiler output:
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int d;
cin>>d;
if(d==25)cout<<Christmas;
if(d==24)cout<<Christmas Eve;
if(d==23)cout<<Christmas Eve Eve;
if(d==22)cout<<Christmas Eve Eve Eve;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'Christmas' was not declared in this scope
    6 | if(d==25)cout<<Christmas;
      |                ^~~~~~~~~
a.cc:7:16: error: 'Christmas' was not declared in this scope
    7 | if(d==24)cout<<Christmas Eve;
      |                ^~~~~~~~~
a.cc:8:16: error: 'Christmas' was not declared in this scope
    8 | if(d==23)cout<<Christmas Eve Eve;
      |                ^~~~~~~~~
a.cc:9:16: error: 'Christmas' was not declared in this scope
    9 | if(d==22)cout<<Christmas Eve Eve Eve;
      |                ^~~~~~~~~
Language: C

#include <stdio.h>
usingname space;
int main()
{
  int a;
  scanf("%d",&a);
  if(a==22)
    printf("Christmas Eve Eve Eve");
  else if(a==23)
    printf("Christmas Eve Eve");
  else if(a==24)
    printf("Christmas Eve");
  else
    printf("Christmas");
}

Compiler output:
main.c:2:1: error: unknown type name 'usingname'
    2 | usingname space;
      | ^~~~~~~~~
Language: C++

int main(){
int n;
string c;
  cin >> n;
  
  if(n == 25){
    c = "Christmas";
  ]else if(n == 24){
    c = "Christmas Eve";
  }else if(n == 23){
    c = "Christmas Eve Eve";
  }else{
    c = "Christmas Eve Eve Eve";
  }
  
  cout << c <<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'string' was not declared in this scope
    3 | string c;
      | ^~~~~~
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> n;
      |   ^~~
a.cc:7:5: error: 'c' was not declared in this scope
    7 |     c = "Christmas";
      |     ^
a.cc:8:3: error: expected primary-expression before ']' token
    8 |   ]else if(n == 24){
      |   ^
a.cc:10:4: error: expected '}' before 'else'
   10 |   }else if(n == 23){
      |    ^~~~
a.cc:6:14: note: to match this '{'
    6 |   if(n == 25){
      |              ^
a.cc:11:5: error: 'c' was not declared in this scope
   11 |     c = "Christmas Eve Eve";
      |     ^
a.cc:13:5: error: 'c' was not declared in this scope
   13 |     c = "Christmas Eve Eve Eve";
      |     ^
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout << c <<endl;
      |   ^~~~
a.cc:16:11: error: 'c' was not declared in this scope
   16 |   cout << c <<endl;
      |           ^
a.cc:16:15: error: 'endl' was not declared in this scope
   16 |   cout << c <<endl;
      |               ^~~~
Language: C++

int main(){
int n;
string c;
  cin >> n;
  
  if(n==25)
    c="Christmas";
  else if(n==24)
    c="Christmas Eve";
  else if(n==23)
    c="Christmas Eve Eve";
  else
    c="Christmas Eve Eve Eve";
  
  cout << c <<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'string' was not declared in this scope
    3 | string c;
      | ^~~~~~
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> n;
      |   ^~~
a.cc:7:5: error: 'c' was not declared in this scope
    7 |     c="Christmas";
      |     ^
a.cc:9:5: error: 'c' was not declared in this scope
    9 |     c="Christmas Eve";
      |     ^
a.cc:11:5: error: 'c' was not declared in this scope
   11 |     c="Christmas Eve Eve";
      |     ^
a.cc:13:5: error: 'c' was not declared in this scope
   13 |     c="Christmas Eve Eve Eve";
      |     ^
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << c <<endl;
      |   ^~~~
a.cc:15:11: error: 'c' was not declared in this scope
   15 |   cout << c <<endl;
      |           ^
a.cc:15:15: error: 'endl' was not declared in this scope
   15 |   cout << c <<endl;
      |               ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
int n;
  cin >> n;
  
  if(n==25)
    cout << "Christmas\n";
  else if(n==24)
    cout << "Christmas Eve\n";
  else if(n==23)
    cout << "Christmas Eve Eve\n";
  else(n==22)
    cout << "Christmas Eve Eve\n";
  
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected ';' before 'cout'
   13 |   else(n==22)
      |              ^
      |              ;
   14 |     cout << "Christmas Eve Eve\n";
      |     ~~~~
Language: C++

#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
using namespace std;
typedef long long unsigned int ll;

#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

int main() {
    int d;
    cin>> d;
    cout<<"Chiristmas";

for (int i=d;i<=25;i++){
        cout<<" Eve"; 
    }
    cout<< endl;
 

Compiler output:
a.cc: In function 'int main()':
a.cc:23:5: error: 'cin' was not declared in this scope
   23 |     cin>> d;
      |     ^~~
a.cc:14:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
   13 | #include <set>
  +++ |+#include <iostream>
   14 | using namespace std;
a.cc:24:5: error: 'cout' was not declared in this scope
   24 |     cout<<"Chiristmas";
      |     ^~~~
a.cc:24:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:29:17: error: expected '}' at end of input
   29 |     cout<< endl;
      |                 ^
a.cc:21:12: note: to match this '{'
   21 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
{
	int D;
	cin>>D;
	if(D==25)
	{
		cout<<"Christmas"<<endl;
		return 0;
	}
	if(D==24)
	{
		cout<<"Christmas Eve"<<endl;
		return 0;
	}
	if(D==23)
	{
		cout<<"Christmas Eve Eve"<<endl;
		return 0;
	}
	if(D==22)
	{
		cout<<"Christmas Eve Eve Eve"<<endl;
		return 0;
	}
	cout<<endl;
	return 0;
}

Compiler output:
a.cc:2:1: error: expected unqualified-id before '{' token
    2 | {
      | ^
Language: C++

#include <iostream>

int main(void){
  int n;
  cin>>n;
  switch(n){
    case '25':
      cout<<"Christmas"<<endl;
      break;
    case '24':
      cout<<"Christmas Eve"<<endl;
      break;
    case '23':
      cout<<"Christmas Eve Eve"<<endl;
      break;
    case '22':
      cout<<"hristmas Eve Eve Eve"<<endl;
      break;
  }
  return 0;
}
      

Compiler output:
a.cc:7:10: warning: multi-character character constant [-Wmultichar]
    7 |     case '25':
      |          ^~~~
a.cc:10:10: warning: multi-character character constant [-Wmultichar]
   10 |     case '24':
      |          ^~~~
a.cc:13:10: warning: multi-character character constant [-Wmultichar]
   13 |     case '23':
      |          ^~~~
a.cc:16:10: warning: multi-character character constant [-Wmultichar]
   16 |     case '22':
      |          ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>n;
      |   ^~~
      |   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:8:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |       cout<<"Christmas"<<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:8:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |       cout<<"Christmas"<<endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

package jp.atcoder;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class AMain {

    /**
     * @author subaru
     */
    public static void main(String[] args) throws IOException {
        Integer d = Integer.valueOf(new BufferedReader(new InputStreamReader(System.in)).readLine());
        String message = "Christmas";
        for (int i = 0; i < 25 - d; i++) {
            message += " Eve";
        }
        System.out.println(message);
    }
}


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

#include<iostream>
using namespace std;
int main(){
int D;
cin >> D;
if(D==22){
cout << "Christmas Eve Eve Eve" << endl;
if(D==23){
cout << "Christmas Eve Eve" << endl;
if(D==24){
cout << "Christmas Eve" << endl;
if(D==25){
cout << "Christmas" << endl;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:8:10: note: to match this '{'
    8 | if(D==23){
      |          ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:6:10: note: to match this '{'
    6 | if(D==22){
      |          ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int D;
cin >> D;
if(D=='22'){
cout << "Christmas Eve Eve Eve" << endl;
if(D=='23'){
cout << "Christmas Eve Eve" << endl;
if(D=='24'){
cout << "Christmas Eve" << endl;
if(D=='25'){
cout << "Christmas" << endl;}
}

Compiler output:
a.cc:6:7: warning: multi-character character constant [-Wmultichar]
    6 | if(D=='22'){
      |       ^~~~
a.cc:8:7: warning: multi-character character constant [-Wmultichar]
    8 | if(D=='23'){
      |       ^~~~
a.cc:10:7: warning: multi-character character constant [-Wmultichar]
   10 | if(D=='24'){
      |       ^~~~
a.cc:12:7: warning: multi-character character constant [-Wmultichar]
   12 | if(D=='25'){
      |       ^~~~
a.cc: In function 'int main()':
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:8:12: note: to match this '{'
    8 | if(D=='23'){
      |            ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:6:12: note: to match this '{'
    6 | if(D=='22'){
      |            ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

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

void main(void){
int D;
scanf("%d",&D);

if(D==25) printf("Christmas\n");
if(D==24) printf("Christmas Eve\n");
if(D==23) printf("Christmas Eve Eve\n");
if(D==22) printf("Christmas Eve Eve Eve\n");

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:14:8: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   14 | return 0;
      |        ^
main.c:5:6: note: declared here
    5 | void main(void){
      |      ^~~~
Language: C++

#include <iostream>

int main() {
	int a; a << cin;
  
  	eve_num = abs(a-25);
	cout << "Christmas"
  	for (int i = 0; i < eve_num; i++) {
      cout << " Eve";
    }
  cout << endl;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:4:21: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         int a; a << cin;
      |                     ^~~
      |                     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:6:9: error: 'eve_num' was not declared in this scope; did you mean 'enum'?
    6 |         eve_num = abs(a-25);
      |         ^~~~~~~
      |         enum
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout << "Christmas"
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:25: error: 'i' was not declared in this scope
    8 |         for (int i = 0; i < eve_num; i++) {
      |                         ^
a.cc:11:11: 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)
      |     ^~~~
Language: C++

#include<iostream>
#include<string>
#include<cstdio>
#include<algorithm>
#include<cstdlib>
#include<cmath>
#include<vector>
#include<utility>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<unordered_set>
#include<bitset>
using namespace std;
//#define MODE 1
#ifdef MODE
#define DEB(X) cout<< #X <<": "<<X<<" ";
#define ARDEB(i,X) cout<< #X <<"["<<i<<"]: "<<X[i]<<" ";
#define END cout<<endl;
#else
#define DEB(X) {}
#define ARDEB(i,X) {}
#define END {}
#endif
typedef long long int ll;
#define int long long
typedef pair<int,int> P;
struct edge{int to,cost;};
#define REP(i,n) for(int i=0;i<(n);i++)
const int INF=100000000;

int A[200010],B[200010],num[200010];
int N,M,W,C,D,E,G;
int ans,ans2,sum,sum2,cnt,cnt2;
string S,T;
vector<int> V;
set<int> U;
map<int> H;
bool F,Q[200010];

signed main(){
	cin>>D;
	if(D==25){
		cout<<"Christmas"<<endl;
	}
	else if(D==24){
		cout<<"Christmas Eve"<<endl;
	}
	else if(D==23){
		cout<<"Christmas Eve Eve"<<endl;
	}
	else{
		cout<<"Christmas Eve Eve Eve"<<endl;
	}
	return 0;
}


Compiler output:
a.cc:39:8: error: wrong number of template arguments (1, should be at least 2)
   39 | map<int> H;
      |        ^
In file included from /usr/include/c++/14/map:63,
                 from a.cc:12:
/usr/include/c++/14/bits/stl_map.h:102:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  102 |     class map
      |           ^~~
Language: C++

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



int main()
{
	int date;
	cin >> date;
	switvh(date){
		case 22:cout << "Christmas Eve Eve Eve" << endl;
			break;
		case 23:cout << "Christmas Eve Eve" << endl;
			break;
		case 24:cout << "Christmas Eve" << endl;
			break;
		case 25:cout << "Christmas" << endl;
			break;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'switvh' was not declared in this scope
   11 |         switvh(date){
      |         ^~~~~~
Language: C++

#include <iostraem>

using namespace std;

int main() {
	int d;
	cin >> d;

	if (d = 25)  cout << "Christmas" << endl;
	if (d = 24)  cout << "Christmas Eve" << endl;
	if (d = 23)  cout << "Christmas Eve Eve" << endl;
	if (d = 22)  cout << "Christmas Eve Eve Eve" << endl;
	return 0;
}

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


import java.util.*;
 
public class At {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int line = sc.nextInt();
      if (line == 25){
        System.out.print("chrismas");
      } else if (line == 24) {
        System.out.print("Christmas Eve");
      } else if (line == 23){
        System.out.print("Christmas Eve Eve");
      }else if (line == 22){
        System.out.print("Christmas Eve Eve Eve");
      }
    
    }
}

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

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int line = sc.nextInt();
      if (line == 25){
        System.out.print("chrismas");
      } else if (line == 24) {
        System.out.print("Christmas Eve");
      } else if (line == 23){
        System.out.print("Christmas Eve Eve");
      }else if (line == 22 ){
        System.out.print("Christmas Eve Eve Eve");
    }
}

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


import java.util.Scanner;

public class Test22 {

	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		
		int i = sc.nextInt();
		
		System.out.print("Christmas");
		
		for(int x = i; x < 25; x++)
		{
			System.out.print(" Eve");
		}

	}

}


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

#include <string>
#include <iostream>
using namespace std;
int main(){
  int t;
  cin >> t;
  cout << ("Christmas"s).substr(0, 9 + (25-d)*4) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:44: error: 'd' was not declared in this scope
    7 |   cout << ("Christmas"s).substr(0, 9 + (25-d)*4) << endl;
      |                                            ^
Language: C++

#include <iostream>
#include <vector>

int main()
{
    // input
    int N, K;
    std::cin >> N >> K;

    std::vector<int> v;
    for (int i = 0; i < N; i++)
    {
        int input_v;
        std::cin >> input_v;
        v.push_back(input_v);
    }

    // sort
    std::sort(v.begin(), v.end());

    // make diff vector
    std::vector<int> v_headless, v_diff;
    v_headless = v;
    v_headless.erase(v_headless.begin());

    for (int i = 0; i < v.size() - 1; i++)
    {
        v_diff.push_back(v_headless[i] - v[i]);
    }

    // find answer
    int ans = 1000000000;
    int h_diff = 0;
    for (int i = 0; i < v_diff.size() - (K-2); i++)
    {
        h_diff = 0;
        for (int j = i; j < i + (K-1); j++)
        {
            h_diff += v_diff[j];
        }
        ans = std::min(ans, h_diff);
    }

    std::cout << ans << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   19 |     std::sort(v.begin(), v.end());
      |          ^~~~
      |          qsort
Language: Java

	public static void solution(int D) {
		if(D>25 || D<22) {
			throw new IndexOutOfBoundsException("the value of D is out");
		}
		int root = 25 - D;
		String str = "Christmas";
		while(root > 0) {
			str += " Eve";
			--root;
		}
		System.out.println(str);
	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
	public static void solution(int D) {
	              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C

#include<stdio.h>
int main()
{
  int D;
  scanf("%d",&D);
  if(D>=22 && D<=25)
  {
    if(D==25)
      printf("Christmas");
    else if(D==24)
      printf("Christmas Eve");
    else if(D==23)
      printf("Christmas Eve Eve");
    else
      printf("Christmas Eve Eve Eve");
  }
  else
    break;
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:5: error: break statement not within loop or switch
   18 |     break;
      |     ^~~~~
Language: C++

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

int main()
{
	int n;
	cin>>n;
	if(n=25)
	    cout<<"Christmas";
	else if(n=24)
	    cout<<"Christmas Eve"
	else if(n=23)
	    cout<<"Christmas Eve Eve";
	else
	    cout<<"Christmas Eve Eve Eve";  
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:11:34: error: expected ';' before 'else'
   11 |             cout<<"Christmas Eve"
      |                                  ^
      |                                  ;
   12 |         else if(n=23)
      |         ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int D;
  cin>>D;
  cout<<"Christmas";
  for(int i=0; i<25-D; i++)cout<<" Eve"
  cout<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:40: error: expected ';' before 'cout'
    7 |   for(int i=0; i<25-D; i++)cout<<" Eve"
      |                                        ^
      |                                        ;
    8 |   cout<<endl;
      |   ~~~~
Language: Java

package archiveBeginner;

import java.util.Scanner;

public class Xmas {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		// 22 <= D <= 25

		// D=25 String xmas = "Christmas" ;
		// D=24 string xmas = "Christmas" + " " + "Eve"  ;
		// D=23 string xmas = "Christmas  + " " + "Eve" + " " +  "Eve" ;
		// D=22 string xmas = "Christmas Eve Eve Eve" ;

		String xmas = "Christmas" + " ";

		String eve = "";

		Scanner sc = new Scanner(System.in);

		int D = sc.nextInt();



		for( int i = 25 ; i >D  ; i--) {

			 eve += "Eve" + " " ;

		}

		System.out.println(xmas + eve);



	}

}


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

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

public class ABC115_A_ChristmasEveEveEve {
    public static void main(String[] arg) {
        Scanner scan = new Scanner(System.in);
        String S = scan.next();
        scan.close();

        System.out.print("Christmas ");
        int t = 25 - Integer.parseInt(S);
        for (int i = 0; i < t; i++) {
            System.out.print("Eve ");
        }
    }
}

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


#include <iostream>
#include <string>

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);
	int d;
	cin >> d;
	string s = "Christmas";
	for(int i = 0; i < 25 - d; ++i) s += " Eve";
	cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'ios_base' has not been declared
    6 |     ios_base::sync_with_stdio(false);
      |     ^~~~~~~~
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin.tie(0);
      |     ^~~
      |     std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:9: error: 'string' was not declared in this scope
   10 |         string s = "Christmas";
      |         ^~~~~~
a.cc:10:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:11:41: error: 's' was not declared in this scope
   11 |         for(int i = 0; i < 25 - d; ++i) s += " Eve";
      |                                         ^
a.cc:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         cout << s << 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:12:17: error: 's' was not declared in this scope
   12 |         cout << s << endl;
      |                 ^
a.cc:12:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |         cout << s << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

import sys

d = int(raw_input())
sys.stdout.write('Christmas')

for i in range(25-d):
    sys.stdout.write(' Eve')

sys.stdout.write("\n")
sys.stdout.flush()

Compiler output:
a.cc:4:18: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    4 | sys.stdout.write('Christmas')
      |                  ^~~~~~~~~~~
a.cc:7:22: warning: multi-character character constant [-Wmultichar]
    7 |     sys.stdout.write(' Eve')
      |                      ^~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

int main(){
  int d;
  cin >> d;
  string s = "Christmas";
  for(int i=0;i<25-d;i++){
    s = s + " Eve"
  }
  cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected ';' before '}' token
   10 |     s = s + " Eve"
      |                   ^
      |                   ;
   11 |   }
      |   ~
Language: C

#include<stdio.h>

int main(void){
  int n;
  
  scanf("%d",&n);
  
  if(n==22){
    printf("Christmas Eve Eve Eve\n");
  }else if(n==23){
    printf("Christmas Eve Eve\n");
  }elseif(n==24){
    printf("Christmas Eve\n");
  }else if(n==25){
    printf("Christmas\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:4: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   12 |   }elseif(n==24){
      |    ^~~~~~
main.c:12:17: error: expected ';' before '{' token
   12 |   }elseif(n==24){
      |                 ^
      |                 ;
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class example{
	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try {
			String line = reader.readLine();
			int day = Integer.parseInt(line);
			String strs = "Christmas";
			String eves = " Eve";
			
			for (int i = 0; i < 25 - day; i++) {
				strs = strs + eves;
			}
			
			System.out.println(strs);
			
		} catch (IOException e) {
			System.out.println(e);
		} catch (NumberFormatException e) {
			System.out.println("wrong");
		}
	}
}

        

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

#include<stdio.h>

int main(void){
  int n;
  
  scanf("%d",&%n);
  
  if(n==22){
    printf("Christmas Eve Eve Eve\n");
  }else if(n==23){
    printf("Christmas Eve Eve\n");
  }elseif(n==24){
    printf("Christmas Eve\n");
  }else if(n==25){
    printf("Christmas\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before '%' token
    6 |   scanf("%d",&%n);
      |               ^
main.c:12:4: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   12 |   }elseif(n==24){
      |    ^~~~~~
main.c:12:17: error: expected ';' before '{' token
   12 |   }elseif(n==24){
      |                 ^
      |                 ;
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main()
{
    int n, k;
    cin >> n >> k;
  	std::vector<int> h;
    for (int i = 0; i < n; ++i) {
      int tmp;
      cin >> tmp;
      h.push_back(tmp);
    }
    std::sort(h.begin(), h.end());
    int min = h.at(n-1);
    for (int i = 0; i < n - (k - 1); ++i) {
      int tmp = h.at(n + k - 1) - h.at(n);
      if (min > tmp) min = tmp;
    }
    // 出力
    cout << min << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   14 |     std::sort(h.begin(), h.end());
      |          ^~~~
      |          qsort
Language: C++

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

int main(){
	int D;cin>>D; 
  
	if (D==22){
      cout<<"Christmas Eve Eve Eve";}
  else if (D==23){
      cout<<"Christmas Eve Eve";}
	else if (D==24){
      cout<<"Christmas Eve";}
  else cout<< "Christmas";
  return 0 }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: expected ';' before '}' token
   14 |   return 0 }
      |           ^~
      |           ;
Language: C++

#include<iostream>
#include<string>
#include<math.h>
#include<algorithm>
#include<vector>
using namespace std;
typedef unsigned long long ull;
ull a[55];
ull p[55];
ull f(int N, int X) {
	if (N == 0) {
		if(X>0) return 1;
		else return 0;
	}
	else if (X <= a[N - 1] + 1)return f(N - 1, X - 1);
	else return p[N - 1] + 1 + f(N - 1, X - a[N - 1] - 2;
}
int main() {
	int N, X;
	cin >> N >> X;
	a[0] = 1;
	p[0] = 1;
	for (int i = 0; i < N; i++) a[i + 1] = 2 * a[i] + 3;
	for (int i = 0; i < N; i++) p[i + 1] = 2 * p[i] + 1;
	cout << f(N,X) << endl;
}

Compiler output:
a.cc: In function 'ull f(int, int)':
a.cc:16:61: error: expected ')' before ';' token
   16 |         else return p[N - 1] + 1 + f(N - 1, X - a[N - 1] - 2;
      |                                     ~                       ^
      |                                                             )
Language: C++

#include<iostream>
#include<string>
#include<math.h>
#include<algorithm>
#include<vector>
#include <cstdint>
using namespace std;
int main() {
	int N, K;
	int ans = INT_MAX;
	cin >> N >> K;
	vector <int> h(N);
	for (int i = 0; i < N; i++)cin >> h[i];
	sort(h.begin(), h.end());
	for (int i = 0; i < N; i++)cout << h[i] << endl;
	for (int i = 0; i < N - K + 1; i++) {
		if (ans > h[i+K-1] - h[i]) ans = h[i+K-1] - h[i];
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'INT_MAX' was not declared in this scope
   10 |         int ans = INT_MAX;
      |                   ^~~~~~~
a.cc:7:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    6 | #include <cstdint>
  +++ |+#include <climits>
    7 | using namespace std;
Language: C++

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

int main(){
  int D;
  cin >> D;
  if(D == 22){
    cout << "Christmas Eve Eve Eve" << endl;
  }else if(D == 23){
    cout << "Christmas Eve Eve" << endl;
  }else if(D == 24){
    cout << "Christmas Eve" << endl;
  }else if(D == 25){
    cout << "Christmas" << endl;
  }

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

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

int main(){
  	int n;
  	cin >> n;
  
  	cout << "Christmas";
  	n -= 22;
  
  	rep(i,0,n){
      cout << " Eve";
    }
  
  cout << endl;
  
	return 0; 
}

Compiler output:
a.cc:2:15: error: expected parameter name, found "0"
    2 | #define rep(i,0,n) for(int i = 0;i < n;i++)
      |               ^
a.cc: In function 'int main()':
a.cc:13:13: error: 'i' was not declared in this scope
   13 |         rep(i,0,n){
      |             ^
a.cc:13:9: error: 'rep' was not declared in this scope
   13 |         rep(i,0,n){
      |         ^~~
Language: C++

 #include <stdio.h>                                                                                                    2 #include   
 #include<iostream>
 #include <string>
 using namespace std;
  
  int main(){
     int d,i;
     string s = "Christmas";
     cin >> d;
    i = 25 -d;
    for(int j = 0;j < i;j++){
      s += " Eve";
    }
    cout << s << endl;
    return 0;
 1}

Compiler output:
a.cc:1:120: warning: extra tokens at end of #include directive
    1 |  #include <stdio.h>                                                                                                    2 #include
      |                                                                                                                        ^
a.cc: In function 'int main()':
a.cc:16:3: error: expected ';' before '}' token
   16 |  1}
      |   ^
      |   ;
Language: C++

#include <stdio.h>
#include <stdlib.h>
 
void quick_sort(int a[], int left, int right)
{
    int pl,pr,pivot;
 
    if(left>=right) return; 		
    pivot = a[(left + right)/2];
    pl=left;					
    pr=right;					
    while(pl<=pr){
        while(a[pl] < pivot) pl++;	
        while(a[pr] > pivot) pr--;	
        if(pl<=pr){					
			int s=a[pl];
			a[pl]=a[pr];
			a[pr]=s;
            pl++;
            pr--;
        }
    }
    quick_sort(a,left,pr);		
    quick_sort(a,pl,right);	
}
 
int main(void)
{
	int n,k;
	scanf("%d%d",&n,&k);
	int *h;
	h=(int*)malloc(sizeof(int)*n);
	int i;
	for(i=0;i<n;i++) scanf("%d",&h[i]);
	int A=INT_MAX;
	quick_sort(h, 0, n);
	for(i=0;i<=n-k;i++){
		if(abs(h[i]-h[i+k-1])<=A) A = abs(h[i]-h[i+k-1]);
	}
	printf("%d\n",A);
	free(h);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:15: error: 'INT_MAX' was not declared in this scope
   35 |         int A=INT_MAX;
      |               ^~~~~~~
a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    2 | #include <stdlib.h>
  +++ |+#include <climits>
    3 |
Language: C++

#include <iostream>
using namespace std;

int main() {
   int D;
   cin >> D;
   switch D {
      case 22:
         cout << "Christmas Eve Eve Eve";
         break;
      case 23:
         cout << "Christmas Eve Eve";
         break;
      case 24:
         cout << "Christmas Eve";
         break;
      case 25:
         cout << "Christmas";
         break;
   }
   cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected '(' before 'D'
    7 |    switch D {
      |           ^
      |           (
Language: C++

#include<iostream>
using namespace std;
int main()
{
    // 整数の入力
    int a;
    cin >> a;
    cout << "Christmas";
    for (int i=0;i<(25-a);i++){
      cout << " Eve"
    }
    cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected ';' before '}' token
   10 |       cout << " Eve"
      |                     ^
      |                     ;
   11 |     }
      |     ~