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

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define repr(i, n) for (int i = (n); i >= 0; --i)
#define FOR(i, m, n) for (int i = (m); i < (n); ++i)
#define FORR(i, m, n) for (int i = (m); i >= (n); --i)
using namespace std;
typedef long long ll;
const ll mod = 1000000007;
const ll mod2 = 998244353;

int main() {
  int d;
  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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else if (d == 24) cout << "Christmas Eve" << endl;
      |   ^~~~
Language: C++

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

typedef long long ll;
const int INF = 1e9;
const ll LINF = 1e18;
const int MOD = 1e9+7;

#define REP(i,n) for(int (i)=0;(i)<(n);(i)++)
#define REPR(i, n) for(int (i)=(n-1);(i)>=0;i--)
#define FOR(i,m,n) for(int (i)=(m);(i)<(n);i++)
#define FORR(i,m,n) for(int (i)=(m-1);(i)>=(n);i--)
#define PRINT(x) {cout<<(x)<<"\n";}

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:48: error: expected ';' before 'else'
    8 |     else if (D==23) cout << "Christmas Eve Eve"
      |                                                ^
      |                                                ;
    9 |     else if (D==22) cout << "Christmas Eve Eve Eve";
      |     ~~~~
Language: C++

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

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

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

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

#include<iostream>
#include<string>
using namespace std;
int main() {
	int d; 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 if (d == 22) {
		cout << "Christmas Eve Eve Eve" << endl;
	}
	return 0
}

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

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

string S[4] = {"Christmas Eve Eve Eve","Christmas Eve Eve","Christmas Eve", "Christmas"}

int main() {
    int D;
    cin >> D;
    cout << S[D-22] << endl;
}

Compiler output:
a.cc:7:1: error: expected ',' or ';' before 'int'
    7 | int main() {
      | ^~~
Language: C++

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

int main(){
  int N;
  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 if(D==22){
    cout << "Christmas Eve Eve Eve" << endl;
  }


  return 0;
}

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

#include <bits/stdc++.h>
#define ll long long
#define rep(X,N) for(ll X = 0; X < (N); X++)
#define bitrep(X,N) for(ll X = 0; X < (1 << (N)); X++)
#define PI (acos(-1.0))
#define sorta(V) sort(V.begin(), V.end())
#define pback push_back
#define mpair make_pair
#define MODN 1000000007
#define ALL(V) (V).begin(),(V).end() 


using namespace std;

int main(){

    int n;
    cin >> n;

    string ans = "Christmas";

    for(i = n;  i < 25; i++){
        ans = ans + " Eve";
    }

    cout << ans << endl;


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: 'i' was not declared in this scope
   22 |     for(i = n;  i < 25; i++){
      |         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define se second
#define fi first
#define ll long long
#define ld long double
#define pll pair<ll ,ll >
#define pii pair<int, int> 
#define mod 1000000007
ll power(ll a,ll b){
    ll res=1;
    while(b>0){
        if(b%2!=0) res=(res*a)%mod;
        a=(a*a);
        b/=2;
    }
    return res;
}
ll ncr(ll n,ll k){
    if(k==0||k==n) return 1ll;
    if(k>n-k) k=n-k;
    ll pro=1;
    for(ll i=0;i<k;i++){
        pro=(pro*(n-i));
        pro/=(i+1);
    }
    return pro;
}
int main(void){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    ll n;
    cin>>n;
    if(n==25) cout<<"Christmas";
    else if(n==24) cout<<"Christmas Eve";
    else if(n==23) cout<<"Christmas Eve Eve";
    else if(n==22) cout<<"Christmas Eve Eve Eve"
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:49: error: expected ';' before 'return'
   38 |     else if(n==22) cout<<"Christmas Eve Eve Eve"
      |                                                 ^
      |                                                 ;
   39 |     return 0;
      |     ~~~~~~
Language: C++


using namespace std;


int main()
{
	int D;

	cin >> D;

	if (D == 25) {
		printf("Christmas");
	}else if (D == 24) {
		printf("Christmas Eve");
	}else if (D == 23) {
		printf("Christmas Eve Eve");
	}else if (D == 22) {
		printf("Christmas Eve Eve Eve");
	}

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> D;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:12:17: error: 'printf' was not declared in this scope
   12 |                 printf("Christmas");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | 
a.cc:14:17: error: 'printf' was not declared in this scope
   14 |                 printf("Christmas Eve");
      |                 ^~~~~~
a.cc:14:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:16:17: error: 'printf' was not declared in this scope
   16 |                 printf("Christmas Eve Eve");
      |                 ^~~~~~
a.cc:16:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:18:17: error: 'printf' was not declared in this scope
   18 |                 printf("Christmas Eve Eve Eve");
      |                 ^~~~~~
a.cc:18:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

int main(){
  string d;
  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 if(d=22){
    cout<<"Christmas Eve Eve Eve"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: could not convert 'd.std::__cxx11::basic_string<char>::operator=(25)' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |   if(d=25){
      |      ~^~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:9:13: error: could not convert 'd.std::__cxx11::basic_string<char>::operator=(24)' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |   }else if(d=24){
      |            ~^~~
      |             |
      |             std::__cxx11::basic_string<char>
a.cc:11:13: error: could not convert 'd.std::__cxx11::basic_string<char>::operator=(23)' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |   }else if(d=23){
      |            ~^~~
      |             |
      |             std::__cxx11::basic_string<char>
a.cc:13:13: error: could not convert 'd.std::__cxx11::basic_string<char>::operator=(22)' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |   }else if(d=22){
      |            ~^~~
      |             |
      |             std::__cxx11::basic_string<char>
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a;
  cin >> a;
  string b="Christams",c=" Eve";
  if (a==25){
    cout << b << endl;
  }
  if (a==24){
    cout << b << c << endl;
  }
  if (a==23){
    cout << b << c << c << endl;
  }
  if (a==22){
    cout << b << c << c << c << endl;
  }

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int d;
  cin >> d;
  switch(d){
      22: cout << "Christmas Eve Eve Eve";
      23: cout << "Christmas Eve Eve";
      24: cout << "Christmas Eve";
      25: cout << "Christmas";
  }
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A;
  cin >> A;
  if (D == 25){
  cout << "Christmas";
  }else if (D == 24){
  cout << "Christmas Eve";
  }else if (D == 23){
  cout << "Christmas Eve Eve";
  }else if (D == 22){
  cout << "Christmas Eve Eve Eve";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'D' was not declared in this scope
    7 |   if (D == 25){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A;
  cin >> A;
  if (D == 25){
  cout << "Christmas";
  }else if (D == 24){
  cout << "Christmas Eve";
  }else if (D == 23){
  cout << "Christmas Eve Eve";
  }else if (D == 22){
  cout << "Christmas Eve Eve";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'D' was not declared in this scope
    7 |   if (D == 25){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int D;cin >> D;
  
  string r;
  if (D == 22) {
    r = "Christmas Eve Eve Eve";
  } else if (D == 23) {
    r = "Christmas Eve Eve";
  } else if (D == 24) {
    r = "Christmas Eve";
  } else {
    r = "Christmas";
  }
  
  cout << result << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: 'result' was not declared in this scope
   18 |   cout << result << endl;
      |           ^~~~~~
Language: C++

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

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

int main(){
    int D;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 if (D == 22)
		cout << "Christmas Eve Eve Eve" << endl;
	return 0;
}

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


 #include<bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
#define a first
#define b second
#define sz size()
#define pb(x) push_back(x) 
#define bg begin()
#define ed end()
#define rep(i,n) for(ll i=0;i<n;i++)
#define rep1(i,n) for(ll i=1;i<=n;i++)
#define mp(x,y) make_pair(x,y)
const ll MOD=1000000007;

ll maxx(ll x,ll y,ll z){
	return max(max(x,y),z);
}
ll minn(ll x,ll y,ll z){
	return min(min(x,y),z);
}
ll gcd(ll x,ll y){
	if(x%y==0) return y;
    else return gcd(y,x%y);
}
ll lcm(ll x,ll y){
	return x*(y/gcd(x,y));
}

//a,b x
int main(){
	ll N; cin>>N;
  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";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:6: error: 'D' was not declared in this scope
   35 |   if(D==22) cout<<"Christmas Eve Eve Eve";
      |      ^
Language: C

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:28: error: expected ';' before '}' token
   11 | printf("Christmas eve eve")
      |                            ^
      |                            ;
   12 | }else if(D==22){
      | ~
Language: C

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:28: error: expected ';' before '}' token
   11 | printf("Christmas eve eve")
      |                            ^
      |                            ;
   12 | }else if(D=22){
      | ~
Language: C

#include <stdio.h>
#include <string.h>
int main(){
int D=0;
  scanf("%d",&D);
  char S[50]="Christmas";
  for(int i=25-D;i!=0;i--){
  S+= "eve";
  }
  printf("%s",S);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:4: error: assignment to expression with array type
    8 |   S+= "eve";
      |    ^~
Language: C

#include <stdio.h>
#include <string.h>
int main(){
int D;
  scanf("%d",&D);
  char S[50]="Christmas";
  for(int i=25-D;i!=0;i--){
  S+= "eve";
  }
  printf("%c",S);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:4: error: assignment to expression with array type
    8 |   S+= "eve";
      |    ^~
Language: C

#include <stdio.h>
#include <string.h>
int main(){
int D;
  scanf("%d",&D);
  char S[50]='Christmas';
  for(int i=25-D;i!=0;i--){
  S+= 'eve';
  }
  printf("%c",S);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:14: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    6 |   char S[50]='Christmas';
      |              ^~~~~~~~~~~
main.c:6:14: error: invalid initializer
main.c:8:7: warning: multi-character character constant [-Wmultichar]
    8 |   S+= 'eve';
      |       ^~~~~
main.c:8:4: error: assignment to expression with array type
    8 |   S+= 'eve';
      |    ^~
Language: C

#include <stdio.h>
#include <string.h>
int main(){
int D;
  scanf("%d",&D);
  char S[50]='Christmas';
  for(i=25-D;i!=0;i--){
  S+= 'eve';
  }
  printf("%c",S);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:14: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    6 |   char S[50]='Christmas';
      |              ^~~~~~~~~~~
main.c:6:14: error: invalid initializer
main.c:7:7: error: 'i' undeclared (first use in this function)
    7 |   for(i=25-D;i!=0;i--){
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:7: warning: multi-character character constant [-Wmultichar]
    8 |   S+= 'eve';
      |       ^~~~~
main.c:8:4: error: assignment to expression with array type
    8 |   S+= 'eve';
      |    ^~
Language: C

#include <stdio.h>
#include <string.h>
int main(){
int D;
  scanf("%d",&D);
  char S[50]=Christmas;
  for(i=25-D;i!=0;i--){
  S+= eve;
  }
  printf("%c",S);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:14: error: 'Christmas' undeclared (first use in this function)
    6 |   char S[50]=Christmas;
      |              ^~~~~~~~~
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:7: error: 'i' undeclared (first use in this function)
    7 |   for(i=25-D;i!=0;i--){
      |       ^
main.c:8:7: error: 'eve' undeclared (first use in this function)
    8 |   S+= eve;
      |       ^~~
Language: C

#include <stdio.h>
#include <string.h>
int main(){
int D;
  scanf("%d",&D);
  char S[50]=Christmas;
  for(i=25-D;i!=0;i--){
  S+= eve;
  }
  printf("%c",S);
  
}


Compiler output:
main.c: In function 'main':
main.c:6:14: error: 'Christmas' undeclared (first use in this function)
    6 |   char S[50]=Christmas;
      |              ^~~~~~~~~
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:7: error: 'i' undeclared (first use in this function)
    7 |   for(i=25-D;i!=0;i--){
      |       ^
main.c:8:7: error: 'eve' undeclared (first use in this function)
    8 |   S+= eve;
      |       ^~~
Language: C

#include <stdio.h>
#include <string.h>
int main(){
int D;
  scanf("%d",&D);
　char S[50]=Christmas;
  for(i=25-D;i!=0;i--){
  S[]+= eve;
  }
  printf("%c",S);
  
}


Compiler output:
main.c: In function 'main':
main.c:6:1: error: stray '\343' in program
    6 | <U+3000>char S[50]=Christmas;
      | ^~~~~~~~
main.c:6:14: error: 'Christmas' undeclared (first use in this function)
    6 | 　char S[50]=Christmas;
      |              ^~~~~~~~~
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:7: error: 'i' undeclared (first use in this function)
    7 |   for(i=25-D;i!=0;i--){
      |       ^
main.c:8:5: error: expected expression before ']' token
    8 |   S[]+= eve;
      |     ^
main.c:8:9: error: 'eve' undeclared (first use in this function)
    8 |   S[]+= eve;
      |         ^~~
Language: C

#include <stdio.h>

int main(){
int D;
  scanf("%d",&D);
　char S[]=Christmas;
  for(i=25-D;i!=0;i--){
  S[]+= eve;
  }
  printf("%c",S);
  
}


Compiler output:
main.c: In function 'main':
main.c:6:1: error: stray '\343' in program
    6 | <U+3000>char S[]=Christmas;
      | ^~~~~~~~
main.c:6:12: error: 'Christmas' undeclared (first use in this function)
    6 | 　char S[]=Christmas;
      |            ^~~~~~~~~
main.c:6:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:7: error: 'i' undeclared (first use in this function)
    7 |   for(i=25-D;i!=0;i--){
      |       ^
main.c:8:5: error: expected expression before ']' token
    8 |   S[]+= eve;
      |     ^
main.c:8:9: error: 'eve' undeclared (first use in this function)
    8 |   S[]+= eve;
      |         ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int d
  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 if(d==22)cout<<"Christmas Eve Eve Eve"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected initializer before 'cin'
    5 |   cin >> d;
      |   ^~~
a.cc:6:6: error: 'd' was not declared in this scope
    6 |   if(d==25)cout<<"Christmas"<<endl;
      |      ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(void){
  
  int n;
  cin >> n;
  string ans;
  if(n == 22) ans = "Christmas Eve Eve Eve";
  else if(n == 23) ans =  "Christmas Eve Eve";
  else if(n == 24) ans =  "Christmas Eve";
  else if(n == 25) ans =  "Christmas";
  ense //none;
  
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'ense' was not declared in this scope
   15 |   ense //none;
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
const int maxn = 2e5 + 10;
vector<int>g[maxn];
int n, ANS[maxn], book[maxn], f[maxn];
queue<int>que;
int bfs(int x, int maxx)
{
	ans ++;
	queue<int>que1;
	que1.push(x);
	while(!que1.empty())
	{
		int now = que1.front();
		que1.pop();
		for(int i = g[now].size() - 1; i >= 0; i --)
		{
			int to = g[now][i];
			if(to < maxx)
			{
				ans ++;
				que1.push(to);
				book[to] = 1;
			}
		}
	}
	return ans;
}
void update(int x, int maxx, int c)
{
	queue<int>que1;
	que1.push(x);
	ANS[x] = c;
	while(!que1.empty())
	{
		int now = que1.front();
		que1.pop();
		for(int i = g[now].size() - 1; i >= 0; i --)
		{
			int to = g[now][i];
			if(to < maxx)
			{
				ANS[to] = c;
				que1.push(to);
			}
		}
	}
}
void get_que(int x, int maxx)
{
	queue<int>que1;
	que1.push(x);
	while(!que1.empty())
	{
		int now = que1.front();
		que1.pop();
		for(int i = g[now].size() - 1; i >= 0; i --)
		{
			int to = g[now][i];
			if(to < maxx)
				que1.push(to);
			else
				que.push(to);
		}
	}
}
void judge()
{
	while(!que.empty())
	{
		int now = que.front();
		que.pop();
		
	}
}
int main()
{
	memset(book, -1, sizeof(book));
	scanf("%d", &n);
	for(int i = 1, x, y; i < n; i ++)
	{
		scanf("%d %d", &x, &y);
		f[y] = x;
		g[x].push_back(y);
	}
	for(int i = 1; i <= n; i ++)
	{
		sort(g[i].begin(), g[i].end());
	}
	for(int i = g[1].size() - 1; i >= 0; i --)
	{
		int to = g[1][i];
		ANS[to] = 1;
		que.push(to);
	}
	for(int i = g[1].size() - 1; i >= 0; i --)
	{
		int to = g[1][i];
		que.pop();
		for(int j = g[to].size(); j >= 0; j --)
			que.push(g[to][j]);
	}
	judge();
	for(int i = 1; i <= n; i ++)
		printf("%d ", ANS[i]);
	return 0;
}


Compiler output:
a.cc: In function 'int bfs(int, int)':
a.cc:10:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |         ans ++;
      |         ^~~
      |         abs
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ')' before '{' token
    8 |   for(int i=d;i<25;i++{
      |      ~                ^
      |                       )
Language: C++

#include<iostream>
using namespace std;
int main(){
  int d; cin >> d;
  cout << {d==25 ? "Christmas":
           {d==24 ? "Christmas Eve":
            {d==23 ? "Christmas Eve Eve":"Christmas Eve Eve Eve"}}}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected primary-expression before '{' token
    5 |   cout << {d==25 ? "Christmas":
      |           ^
Language: C

#include <stdio.h>
#include <string.h>
int main(){
 int a;
 char *b = "Christmas Eve Eve Eve";
 scanf("%d",&a);
  if (a == 22)
    
  else if (a == 23)
    *b = "Christmas Eve Eve";
  else if (a == 24)
    *b = "Christmas Eve";
  else 
    *b = "Christmas";
  printf("%s",b);
  return 0;  
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected expression before 'else'
    9 |   else if (a == 23)
      |   ^~~~
main.c:12:8: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   12 |     *b = "Christmas Eve";
      |        ^
main.c:14:8: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   14 |     *b = "Christmas";
      |        ^
Language: C

#include <stdio.h>
#include <string.h>
int main(){
 int a;
 char *b = "Christmas Eve Eve Eve";
 scanf("%d",&a);
  if (a == 22)
    
  else if (a == 23)
    b = "Christmas Eve Eve";
  else if (a == 24)
    b = "Christmas Eve";
  else 
    b = "Christmas";
  printf("%s",b);
  return 0;  
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected expression before 'else'
    9 |   else if (a == 23)
      |   ^~~~
Language: C++

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

	cout << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> d;
      |         ^~~
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout << "Christmas";
      |         ^~~~
a.cc:12:17: error: 'endl' was not declared in this scope
   12 |         cout << endl;
      |                 ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  int d;
  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;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected ';' before string constant
   13 |     cout "Christmas Eve Eve Eve" << endl;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
      |         ;
Language: C++

d=int(input())
if d==22:
  print('Christmas Eve Eve Eve')
if d==23:
  print('Christmas Eve Eve')
if d==24:
  print('Christmas Eve') 
if d==25:
  print('Christmas') 



Compiler output:
a.cc:3:9: warning: multi-character literal with 21 characters exceeds 'int' size of 4 bytes
    3 |   print('Christmas Eve Eve Eve')
      |         ^~~~~~~~~~~~~~~~~~~~~~~
a.cc:5:9: warning: multi-character literal with 17 characters exceeds 'int' size of 4 bytes
    5 |   print('Christmas Eve Eve')
      |         ^~~~~~~~~~~~~~~~~~~
a.cc:7:9: warning: multi-character literal with 13 characters exceeds 'int' size of 4 bytes
    7 |   print('Christmas Eve')
      |         ^~~~~~~~~~~~~~~
a.cc:9:9: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    9 |   print('Christmas')
      |         ^~~~~~~~~~~
a.cc:1:1: error: 'd' does not name a type
    1 | d=int(input())
      | ^
Language: C++

d=int(input())
if d=22:
  print('Christmas Eve Eve Eve')
if d=23:
  print('Christmas Eve Eve')
if d=24:
  print('Christmas Eve') 
if d=25:
  print('Christmas') 



Compiler output:
a.cc:3:9: warning: multi-character literal with 21 characters exceeds 'int' size of 4 bytes
    3 |   print('Christmas Eve Eve Eve')
      |         ^~~~~~~~~~~~~~~~~~~~~~~
a.cc:5:9: warning: multi-character literal with 17 characters exceeds 'int' size of 4 bytes
    5 |   print('Christmas Eve Eve')
      |         ^~~~~~~~~~~~~~~~~~~
a.cc:7:9: warning: multi-character literal with 13 characters exceeds 'int' size of 4 bytes
    7 |   print('Christmas Eve')
      |         ^~~~~~~~~~~~~~~
a.cc:9:9: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    9 |   print('Christmas')
      |         ^~~~~~~~~~~
a.cc:1:1: error: 'd' does not name a type
    1 | d=int(input())
      | ^
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 (D == 25) {
    cout << "Christmas" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: expected ';' before '{' token
   17 |   else (D == 25) {
      |                 ^~
      |                 ;
Language: C++

#include <iostream>
#include <cctype>
#include <cstdlib>
#include <string>
#include <algorithm>
#include <vector>
#include <map>
#define rep(i, n) for(int i = 0; i < n; ++i)
using namespace std;

int comp(const void* a, const void* b){
	return *(int*)a - *(int*)b;
}

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;
	default:
		cout << "Christmas Eve Eve Eve" << endl;
		break;
	}
}

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

#include <iostream>
#include <cctype>
#include <cstdlib>
#include <string>
#include <algorithm>
#include <vector>
#include <map>
#define rep(i, n) for(int i = 0; i < n; ++i)
using namespace std;

int comp(const void* a, const void* b){
	return *(int*)a - *(int*)b;
}

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;
		break;
	}
}

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

#include <iostream>
#include <stdio.h>

int main() {
	int a;
	scanf_s("%d",&a);
	if (a == 25) {
		std::cout << "Christmas";
	}
	else if (a == 24) {
		std::cout << "Christmas Eve";
	}
	else if (a == 23) {
		std::cout << "Christmas Eve Eve";
	}
	else if (a == 22) {
		std::cout << "Christmas Eve Eve Eve";
	}
	
	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",&a);
      |         ^~~~~~~
      |         scanf
Language: C++

def resolve():
    D=int(input())
    st=' Eve'*(25-D)
    print('Christmas'+st)
    
resolve()

Compiler output:
a.cc:3:8: warning: multi-character character constant [-Wmultichar]
    3 |     st=' Eve'*(25-D)
      |        ^~~~~~
a.cc:4:11: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    4 |     print('Christmas'+st)
      |           ^~~~~~~~~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def resolve():
      | ^~~
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   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:15:11: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |   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>
using namespace std;
int main(){
  int d;
  cin >> d;
  if(d==25) cout << "Christmas";
  else if(d==24) cout "Christmas Eve";
  else if(d==23) cout "Christmas Eve Eve";
  else if(d==22) cout "Christmas Eve Eve Eve";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before string constant
    7 |   else if(d==24) cout "Christmas Eve";
      |                      ^~~~~~~~~~~~~~~~
      |                      ;
a.cc:8:22: error: expected ';' before string constant
    8 |   else if(d==23) cout "Christmas Eve Eve";
      |                      ^~~~~~~~~~~~~~~~~~~~
      |                      ;
a.cc:9:22: error: expected ';' before string constant
    9 |   else if(d==22) cout "Christmas Eve Eve Eve";
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~
      |                      ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'S' was not declared in this scope
    9 |         S = S + " Eve";
      |         ^
a.cc:11:13: error: 'S' was not declared in this scope
   11 |     cout << S << endl;
      |             ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected ',' or ';' before 'int'
    6 |     int D;
      |     ^~~
a.cc:7:12: error: 'D' was not declared in this scope
    7 |     cin >> D;
      |            ^
a.cc:9:9: error: 'S' was not declared in this scope
    9 |         S = S + " Eve"
      |         ^
a.cc:11:13: error: 'S' was not declared in this scope
   11 |     cout << S << endl;
      |             ^
Language: Java

import java.util.*;
 
public class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int n= scan.nextInt();
      	int k = scan.nextInt();
      	int[] h = new int[n];
     	for(int i = o; i < n; i++){
        	h[i] = scan.nextInt();
        }
      	Arrays.sort(h);
      	int ans = Integer.MAX_VALUE;
      	for(int j = 0; j < n; j++){
        	ans = Math.min(ans, h[j + k] - h[j]);
        }
      	System.out.print(ans);
    }
 
}

Compiler output:
Main.java:9: error: cannot find symbol
     	for(int i = o; i < n; i++){
     	            ^
  symbol:   variable o
  location: class Main
1 error
Language: C++

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

int main(){
  int d,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 if(d==22)
    cout<<"Christmas Eve Eve Eve"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected initializer before '>>' token
    5 |   int d,cin>>d;
      |            ^~
Language: C++

#include "bits/stdc++.h"

#define REP(i,num) for(int i=0;i<(num);++i)
#define ALL(c) c.begin(),c.end()
#define PRINTALL(c) for(auto& x:c){cout<<x<<' ';}cout<<endl;

using namespace std;
using ll = long long;

template<typename T=int>
T in(){T x; cin >> x; return (x);}

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

	int D=in();
  cout << "Christmas";
  for(int i=0;i<25-D) cout << " Eve";
  cout << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: expected ';' before ')' token
   19 |   for(int i=0;i<25-D) cout << " Eve";
      |                     ^
      |                     ;
Language: C

#include <stdio.h>

int D;
scanf("%d",&D);

if(D==25)
{
  printf("Christmas");
}
else if(D==24)
{
  printf("Christmas Eve");
}
else if(D==23)
{
  printf("Christmas Eve Eve");
}
else if(D==22)
{
   printf("Christmas Eve Eve Eve");
}

Compiler output:
main.c:4:7: error: expected declaration specifiers or '...' before string constant
    4 | scanf("%d",&D);
      |       ^~~~
main.c:4:12: error: expected declaration specifiers or '...' before '&' token
    4 | scanf("%d",&D);
      |            ^
main.c:6:1: error: expected identifier or '(' before 'if'
    6 | if(D==25)
      | ^~
main.c:10:1: error: expected identifier or '(' before 'else'
   10 | else if(D==24)
      | ^~~~
main.c:14:1: error: expected identifier or '(' before 'else'
   14 | else if(D==23)
      | ^~~~
main.c:18:1: error: expected identifier or '(' before 'else'
   18 | else if(D==22)
      | ^~~~
Language: C++

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

int main() {
  int D;
  cin >> D;
  	cout << "Christmas";
  	if (int i = D; i < 25; i++) {
      cout << " " << "Eve" << endl;
    }
}
      
      


Compiler output:
a.cc: In function 'int main()':
a.cc:8:30: error: expected ')' before ';' token
    8 |         if (int i = D; i < 25; i++) {
      |            ~                 ^
      |                              )
a.cc:8:32: error: 'i' was not declared in this scope
    8 |         if (int i = D; i < 25; i++) {
      |                                ^
Language: C++

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

int main() {
  int D;
  cin >> D;
  	cout << "Christmas";
  	if (int i = D; D < 25; i++) {
      cout << " " << "Eve" << endl;
    }
}
      
      

Compiler output:
a.cc: In function 'int main()':
a.cc:8:30: error: expected ')' before ';' token
    8 |         if (int i = D; D < 25; i++) {
      |            ~                 ^
      |                              )
a.cc:8:32: error: 'i' was not declared in this scope
    8 |         if (int i = D; D < 25; i++) {
      |                                ^
Language: C++

#include<iostream>

using namespace std;

int main(){
  int day;
  cin >> day;
  cout << "Chistmas";
  for(int i=day;i<=25:i--){
    	cout << " Eve";
  }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
    9 |   for(int i=day;i<=25:i--){
      |                 ^
a.cc:9:22: error: expected ';' before ':' token
    9 |   for(int i=day;i<=25:i--){
      |                      ^
      |                      ;
a.cc:12:2: error: expected primary-expression before 'return'
   12 |  return 0;
      |  ^~~~~~
a.cc:11:4: error: expected ';' before 'return'
   11 |   }
      |    ^
      |    ;
   12 |  return 0;
      |  ~~~~~~
a.cc:12:2: error: expected primary-expression before 'return'
   12 |  return 0;
      |  ^~~~~~
a.cc:11:4: error: expected ')' before 'return'
   11 |   }
      |    ^
      |    )
   12 |  return 0;
      |  ~~~~~~
a.cc:9:6: note: to match this '('
    9 |   for(int i=day;i<=25:i--){
      |      ^
Language: Java

import java.util.*;

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

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

import java.util.*;

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

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

import java.util.*;

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

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

#include <iostream>
using namespace std;
int main(){
  int D;
  cin >> D;
  cout << "Christmas" << " Eve" * (25 - D) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:33: error: invalid operands of types 'const char [5]' and 'int' to binary 'operator*'
    6 |   cout << "Christmas" << " Eve" * (25 - D) << endl;
      |                          ~~~~~~ ^ ~~~~~~~~
      |                          |            |
      |                          |            int
      |                          const char [5]
Language: Java

import java.util.*;

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


Compiler output:
Main.java:14: error: ';' expected
            System.out.println("Christmas Eve Eve Eve")
                                                       ^
1 error
Language: C++

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

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

Compiler output:
a.cc:16:13: warning: missing terminating " character
   16 |       cout<<"Christmas Eve Ev<<endl;
      |             ^
a.cc:16:13: error: missing terminating " character
   16 |       cout<<"Christmas Eve Ev<<endl;
      |             ^~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:17:5: error: expected primary-expression before '}' token
   17 |     }
      |     ^
Language: C++

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

int n;

int main()
{
cin >> n;
int eve = 25-n;
cout << christmas << ' ';
for (int i = 1; i <= eve; i++)
{
if (i != 1)
cout << ' ';
cout << eve;
}
cout << '\n';
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'christmas' was not declared in this scope
   10 | cout << christmas << ' ';
      |         ^~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 1LL << 60;
const ll MOD = 1e9+7;
 
int main(){
  if(D==25){
    cout << "Christmas" << endl;
  }else if(D==24){
    cout << "Christmas Eve" << endl;
  }else if(D==23){
    cout << "Christmas Eve Eve" << endl;
  }else if(D==22){
    cout << "Christmas Eve Eve Eve" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'D' was not declared in this scope
    8 |   if(D==25){
      |      ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: expected ';' before '{' token
   14 |   else(s == 22) {
      |                ^~
      |                ;
Language: C++

#include <bits/stdc++.h>
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;
    else(d == 22) cout << "Christmas Eve Eve Eve" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before 'cout'
    9 |     else(d == 22) cout << "Christmas Eve Eve Eve" << endl;
      |                  ^~~~~
      |                  ;
Language: C++

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <vector>
#include <string>
#include <math.h>
using namespace std;
int main(){
    int d; cin >> d;
    cout << "Christmas";
    if(d!=25){
        cout << "Christmas";
        for(int i=d; i<25; i++){
            cout << " Eve";
    }
    cout  << endl;

}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:41: error: expected '}' at end of input
   14 |     cout<<"Christmas Eve Eve Eve"<<endl;
      |                                         ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(void){
  int a;
  cin >>a;
  cout<<"Christmas "<<endl;
  for(i = 0; i < 25- a; i++) cout<<"Eve "<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   for(i = 0; i < 25- a; i++) cout<<"Eve "<<endl;
      |       ^
Language: C++

#include<bits/stdc++.h>
#define REP(i, n)    for(int i = 0; i < (n); ++i)
#define RREP(i, n)   for(int i = (n); i >= 0; --i)
#define FOR(i, m, n) for(int i = (m); i < (n); ++i)
#define SZ(x)       ( (int)(x).size() )
#define BIT(n)      ( 1LL << (n) )
#define EXIST(x)    ( (x).find()		!= (x).end() )
#define DEBUG(n)    cerr << #n << " : " << n << '\n';
#define PB  push_back
#define UB  upper_bound			//k <
#define LB  lower_bound			//k	<= 
#define F   first
#define S   second
#define INF 1.0e9


using namespace std;

typedef long long			ll;
typedef pair<int, int>		pii;
typedef pair<long			long, long long>   pll;
typedef vector<int>			vi;
typedef vector<double>		vd;
typedef vector<long long>   vll
;

template<class T> void chmax(T &	a, const T & b){ if( a < b ) a = b; }
template<class T> void chmin(T &	a, const T & b){ if( a > b ) a = b; }

int r_up(const int a, const int b){ return (a + b - 1) / b; }

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

struct UFT{
  vi	p;
  UFT(){}
  UFT(int N)       { p.resize( N, -1 ); }
  int	par(int a)   { if( p[a] >= 0 ){ p[a]  = par( p[a] ); return p[a]; } return a;  }
  int size(int a)  { return -p[par(a)]; }
  bool	same(int a, int b) { return par(a)	 == par(b); }
  void unite(int	a, int b){
	a													  = par(a);  b = par(b);
	if( a == b ) return;
	if( size(a) < size(b) ) swap(a,b);
	p[a]												 -= size(b);
	p[b]												  = a;
  }
};

int main(){
  cout<<"Christmas";
  int d;cin>>d;
  REP(25-d)
	cout<<" Eve";
  cout<<endl;
  return 0;
}


Compiler output:
a.cc:54:11: error: macro "REP" requires 2 arguments, but only 1 given
   54 |   REP(25-d)
      |           ^
a.cc:2:9: note: macro "REP" defined here
    2 | #define REP(i, n)    for(int i = 0; i < (n); ++i)
      |         ^~~
a.cc: In function 'int main()':
a.cc:54:3: error: 'REP' was not declared in this scope
   54 |   REP(25-d)
      |   ^~~