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

#include <iostream>
2 using namespace std;
3 int main(){
4 int D;
5 cin >> D;
6 string ans;
7 if(D == 25) ans = "Christmas";
8 else if(D == 24) ans = "Christmas Eve";
9 else if(D == 23) ans = "Christmas Eve Eve";
10 else ans = "Christmas Eve Eve Eve";
11 cout << ans << endl;
}

Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2 using namespace std;
      | ^
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3 int main(){
      | ^
Language: C++

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

int mian(){
  cout << "Christmas";
  for(int cin >> d; i<25; d++) cout << " Eve";
  cout << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int mian()':
a.cc:6:14: error: expected ';' before '>>' token
    6 |   for(int cin >> d; i<25; d++) cout << " Eve";
      |              ^~~
      |              ;
a.cc:6:15: error: expected primary-expression before '>>' token
    6 |   for(int cin >> d; i<25; d++) cout << " Eve";
      |               ^~
a.cc:6:18: error: 'd' was not declared in this scope
    6 |   for(int cin >> d; i<25; d++) cout << " Eve";
      |                  ^
a.cc:6:21: error: 'i' was not declared in this scope
    6 |   for(int cin >> d; i<25; d++) cout << " Eve";
      |                     ^
a.cc:6:25: error: expected ')' before ';' token
    6 |   for(int cin >> d; i<25; d++) cout << " Eve";
      |      ~                  ^
      |                         )
a.cc:6:27: error: 'd' was not declared in this scope
    6 |   for(int cin >> d; i<25; d++) cout << " Eve";
      |                           ^
Language: C++

#include<iostream>
using namespace std;

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:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:48: error: expected ';' before 'endl'
   10 |   else if(D==22)cout << "Christmas Eve Eve Eve" endl;
      |                                                ^~~~~
      |                                                ;
Language: C++

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

string solve(int x){
  string a = "eve";
  for(int i=0; i<n; i++){
  string b +=a; //文字列をn回連結する、という操作がスムーズに書けない

  }
  return b;
}
int main(){
    int n;
    cin >> n;
    string ans = solve(n);
    cout << "Christmas" << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'std::string solve(int)':
a.cc:7:18: error: 'n' was not declared in this scope
    7 |   for(int i=0; i<n; i++){
      |                  ^
a.cc:8:12: error: expected initializer before '+=' token
    8 |   string b +=a; //文字列をn回連結する、という操作がスムーズに書けない
      |            ^~
a.cc:11:10: error: 'b' was not declared in this scope
   11 |   return b;
      |          ^
Language: C++

#include <bits/stdc++.h>
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:7:22: error: expected ';' before '}' token
    7 |     cout<<"Christmas"
      |                      ^
      |                      ;
    8 |   }else if(a == 24){
      |   ~                   
a.cc:9:26: error: expected ';' before '}' token
    9 |     cout<<"Christmas Eve"
      |                          ^
      |                          ;
   10 |   }else if(a == 23){
      |   ~                       
a.cc:11:30: error: expected ';' before '}' token
   11 |     cout<<"Christmas Eve Eve"
      |                              ^
      |                              ;
   12 |   }else if(a == 22){
      |   ~                           
a.cc:13:34: error: expected ';' before '}' token
   13 |     cout<<"Christmas Eve Eve Eve"
      |                                  ^
      |                                  ;
   14 |   }
      |   ~
Language: C

#include<stdio.h>
int d;

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

Compiler output:
main.c: In function 'main':
main.c:10:8: error: implicit declaration of function 'prinmtf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |        prinmtf("Christmas Eve");
      |        ^~~~~~~
      |        printf
Language: C

#include<stdio.h>
int d;

int main(void){
    scanf("%d",&d);
    if(d == 25){
       char c[]="Christmas";
    }
    if(d == 24){
       char c[]="Christmas Eve";
    }
    if(d == 23){
       char c[]="Christmas Eve Eve";
    }
    if(d == 22){
       char c[]="Christmas Eve Eve Eve";
    }
    printf("%s\n",c);
    return 0;
    
}

Compiler output:
main.c: In function 'main':
main.c:18:19: error: 'c' undeclared (first use in this function)
   18 |     printf("%s\n",c);
      |                   ^
main.c:18:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int d;

int main(void){
    scanf("%d",&d);
    if(d == 25){
       char c[]="Christmas"
    }
    if(d == 24){
       char c[]="Christmas Eve"
    }
    if(d == 23){
       char c[]="Christmas Eve Eve"
    }
    if(d == 22){
       char c[]="Christmas Eve Eve Eve"
    }
    printf("%s\n",c);
    return 0;
    
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: expected ',' or ';' before '}' token
    8 |     }
      |     ^
main.c:11:5: error: expected ',' or ';' before '}' token
   11 |     }
      |     ^
main.c:14:5: error: expected ',' or ';' before '}' token
   14 |     }
      |     ^
main.c:17:5: error: expected ',' or ';' before '}' token
   17 |     }
      |     ^
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
main.c:21:1: error: expected declaration or statement at end of input
main.c:21:1: error: expected declaration or statement at end of input
main.c:21:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
int d;
char c[50];
int main(void){
    scanf("%d",&d);
    if(d == 25){
        c[]="Christmas"
    }
    if(d == 24){
        c[]="Christmas Eve"
    }
    if(d == 23){
        c[]="Christmas Eve Eve"
    }
    if(d == 22){
        c[]="Christmas Eve Eve Eve"
    }
    printf("%s\n",c);
    return 0;
    
}

Compiler output:
main.c: In function 'main':
main.c:7:11: error: expected expression before ']' token
    7 |         c[]="Christmas"
      |           ^
main.c:10:11: error: expected expression before ']' token
   10 |         c[]="Christmas Eve"
      |           ^
main.c:13:11: error: expected expression before ']' token
   13 |         c[]="Christmas Eve Eve"
      |           ^
main.c:16:11: error: expected expression before ']' token
   16 |         c[]="Christmas Eve Eve Eve"
      |           ^
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:21:16: error: expected ';' before '{' token
   21 |   else(D == 25)
      |                ^
      |                ;
   22 |   {
      |   ~
Language: C++

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

   typedef long long ll;
   typedef pair<ll, ll> Pii;
   typedef vector<ll> Vi;
   typedef vector<Vi> VVi;

   const double EPS = (1e-7);
   const ll INF =(1e13);
   const double PI = (acos(-1));
   const ll MOD = ll(1e9) + 7;

   #define REP(i, n) for(ll i = 0; i < (ll)(n); i++)
   #define REPR(i, n) for(ll i = n; i > -1; i--)
   #define FOR(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)
   #define ALL(x) (x).begin(),(x).end()
   #define SORT(x) sort((x).begin(), (x).end())
   #define RSORT(x) sort((x).rbegin(), (x).rend()
   #define REVERSE(x) reverse((x).begin(), (x).end())
   #define SZ(x) ((ll)(x).size())
   #define pb push_back
   #define mp make_pair

   //chmax(a, b): a>bならaをbで更新　更新したときにtrueを返す
   //chmin(a, b): a<bならaをbで更新　更新したときにtrueを返す
   template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
   template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

   #define dump(x) cerr<< #x << "= " << (x) << endl;

   ll gcd(ll a, ll b){return b?gcd(b,a%b):a;}
   ll pow(ll a, ll b){if (b == 0) return 1; else if (b % 2 == 0) return pow(a * a, b / 2); else return pow(a * a, b / 2) * a;}
   ll pow(ll a, ll b, ll m){if (b == 0) return 1; else if (b % 2 == 0) return (pow(a * a, b / 2, m) % m); else return (pow(a * a, b / 2) * a) % m;}
   ll residue(ll a, ll m){return ((a % m) + m) % m;};

   ll dx[4]={1,0,-1,0};
   ll dy[4]={0,1,0,-1};

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


Compiler output:
a.cc: In function 'int main()':
a.cc:52:12: error: expected ':' before ';' token
   52 |     case 25;
      |            ^
      |            :
a.cc:55:2: error: expected '}' at end of input
   55 | }
      |  ^
a.cc:40:11: note: to match this '{'
   40 | int main(){
      |           ^
Language: C++

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

   typedef long long ll;
   typedef pair<ll, ll> Pii;
   typedef vector<ll> Vi;
   typedef vector<Vi> VVi;

   const double EPS = (1e-7);
   const ll INF =(1e13);
   const double PI = (acos(-1));
   const ll MOD = ll(1e9) + 7;

   #define REP(i, n) for(ll i = 0; i < (ll)(n); i++)
   #define REPR(i, n) for(ll i = n; i > -1; i--)
   #define FOR(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)
   #define ALL(x) (x).begin(),(x).end()
   #define SORT(x) sort((x).begin(), (x).end())
   #define RSORT(x) sort((x).rbegin(), (x).rend()
   #define REVERSE(x) reverse((x).begin(), (x).end())
   #define SZ(x) ((ll)(x).size())
   #define pb push_back
   #define mp make_pair

   //chmax(a, b): a>bならaをbで更新　更新したときにtrueを返す
   //chmin(a, b): a<bならaをbで更新　更新したときにtrueを返す
   template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
   template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

   #define dump(x) cerr<< #x << "= " << (x) << endl;

   ll gcd(ll a, ll b){return b?gcd(b,a%b):a;}
   ll pow(ll a, ll b){if (b == 0) return 1; else if (b % 2 == 0) return pow(a * a, b / 2); else return pow(a * a, b / 2) * a;}
   ll pow(ll a, ll b, ll m){if (b == 0) return 1; else if (b % 2 == 0) return (pow(a * a, b / 2, m) % m); else return (pow(a * a, b / 2) * a) % m;}
   ll residue(ll a, ll m){return ((a % m) + m) % m;};

   ll dx[4]={1,0,-1,0};
   ll dy[4]={0,1,0,-1};

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


Compiler output:
a.cc: In function 'int main()':
a.cc:52:12: error: expected ':' before ';' token
   52 |     case 25;
      |            ^
      |            :
a.cc:54:2: error: expected '}' at end of input
   54 | }
      |  ^
a.cc:40:11: note: to match this '{'
   40 | int main(){
      |           ^
Language: C++

#indlude <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
 if (a=25) cout << "CChristmas";
  if (a=24) cout << "CChristmas Eve";
  if (a=23) cout << "Christmas Eve Eve";
  if (a=22) cout << "Christmas Eve Eve Eve";
  cout << endl;
  
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #indlude; did you mean #include?
    1 | #indlude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> a;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #indlude <bits/stdc++.h>
a.cc:6:12: error: 'cout' was not declared in this scope
    6 |  if (a=25) cout << "CChristmas";
      |            ^~~~
a.cc:6:12: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:13: error: 'cout' was not declared in this scope
    7 |   if (a=24) cout << "CChristmas Eve";
      |             ^~~~
a.cc:7:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:13: error: 'cout' was not declared in this scope
    8 |   if (a=23) cout << "Christmas Eve Eve";
      |             ^~~~
a.cc:8:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:13: error: 'cout' was not declared in this scope
    9 |   if (a=22) cout << "Christmas Eve Eve Eve";
      |             ^~~~
a.cc:9:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << endl;
      |   ^~~~
a.cc:10:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:11: error: 'endl' was not declared in this scope
   10 |   cout << endl;
      |           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #indlude <bits/stdc++.h>
Language: C++

#indlude <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin>>a;
 if (a=25) cout<<"CChristmas";
  if (a=24) cout<<"CChristmas Eve";
  if (a=23) cout<<"Christmas Eve Eve";
  if (a=22) cout<<"Christmas Eve Eve Eve";
  cout<<endl;
  
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #indlude; did you mean #include?
    1 | #indlude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>a;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #indlude <bits/stdc++.h>
a.cc:6:12: error: 'cout' was not declared in this scope
    6 |  if (a=25) cout<<"CChristmas";
      |            ^~~~
a.cc:6:12: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:13: error: 'cout' was not declared in this scope
    7 |   if (a=24) cout<<"CChristmas Eve";
      |             ^~~~
a.cc:7:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:13: error: 'cout' was not declared in this scope
    8 |   if (a=23) cout<<"Christmas Eve Eve";
      |             ^~~~
a.cc:8:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:13: error: 'cout' was not declared in this scope
    9 |   if (a=22) cout<<"Christmas Eve Eve Eve";
      |             ^~~~
a.cc:9:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout<<endl;
      |   ^~~~
a.cc:10:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:9: error: 'endl' was not declared in this scope
   10 |   cout<<endl;
      |         ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #indlude <bits/stdc++.h>
Language: C++

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #indlude; did you mean #include?
    1 | #indlude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>a;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #indlude <bits/stdc++.h>
a.cc:6:13: error: 'cout' was not declared in this scope
    6 |  if (a==25) cout<<"Christmas";
      |             ^~~~
a.cc:6:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:14: error: 'cout' was not declared in this scope
    7 |   if (a==24) cout<<"Christmas Eve";
      |              ^~~~
a.cc:7:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:14: error: 'cout' was not declared in this scope
    8 |   if (a==23) cout<<"Christmas Eve Eve";
      |              ^~~~
a.cc:8:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:14: error: 'cout' was not declared in this scope
    9 |   if (a==22) cout<<"Christmas Eve Eve Eve";
      |              ^~~~
a.cc:9:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout<<endl;
      |   ^~~~
a.cc:10:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:9: error: 'endl' was not declared in this scope
   10 |   cout<<endl;
      |         ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #indlude <bits/stdc++.h>
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #indlude; did you mean #include?
    1 | #indlude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>a;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #indlude <bits/stdc++.h>
a.cc:6:12: error: 'cout' was not declared in this scope
    6 |  if (a=25) cout<<"Christmas";
      |            ^~~~
a.cc:6:12: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:13: error: 'cout' was not declared in this scope
    7 |   if (a=24) cout<<"Christmas Eve";
      |             ^~~~
a.cc:7:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:13: error: 'cout' was not declared in this scope
    8 |   if (a=23) cout<<"Christmas Eve Eve";
      |             ^~~~
a.cc:8:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:13: error: 'cout' was not declared in this scope
    9 |   if (a=22) cout<<"Christmas Eve Eve Eve";
      |             ^~~~
a.cc:9:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout<<endl;
      |   ^~~~
a.cc:10:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:9: error: 'endl' was not declared in this scope
   10 |   cout<<endl;
      |         ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #indlude <bits/stdc++.h>
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: could not convert 'a.std::__cxx11::basic_string<char>::operator=(25)' from 'std::__cxx11::basic_string<char>' to 'bool'
    6 |       if (a=25) cout << "Christmas";
      |           ~^~~
      |            |
      |            std::__cxx11::basic_string<char>
a.cc:7:12: error: could not convert 'a.std::__cxx11::basic_string<char>::operator=(24)' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |       if (a=24) cout << "Christmas Eve";
      |           ~^~~
      |            |
      |            std::__cxx11::basic_string<char>
a.cc:8:12: error: could not convert 'a.std::__cxx11::basic_string<char>::operator=(23)' from 'std::__cxx11::basic_string<char>' to 'bool'
    8 |       if (a=23) cout << "Christmas Eve Eve";
      |           ~^~~
      |            |
      |            std::__cxx11::basic_string<char>
a.cc:9:12: error: could not convert 'a.std::__cxx11::basic_string<char>::operator=(22)' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |       if (a=22) cout << "Christmas Eve Eve Eve";
      |           ~^~~
      |            |
      |            std::__cxx11::basic_string<char>
Language: C++

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

  int count = 25 - d;

  cout << "Christmas";

  for(int i=0;i<count;i++){
    cout << " Eve";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> d;
      |   ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'count'?
    8 |   cout << "Christmas";
      |   ^~~~
      |   count
Language: C

#include <stdio.h>
int main() {
  int day;
  scanf("%d\n", &day);
  if(22 <= day <= 25) {
	printf("Christmas");
    while(day < 25) {
      printf(" Eve");
      day++;
    }
    printf("\n");
    return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:13:3: error: expected declaration or statement at end of input
   13 |   }
      |   ^
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:3: error: '{' expected
public class Main(){
                 ^
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:7: error: ';' expected
      	System.out.print("Christmas")
      	                             ^
Main.java:9: error: ';' expected
        	System.out.print(" Eve")
        	                        ^
2 errors
Language: C++

#include <iostream>
#include<string>
#include<cmath>
#include<algorithm>
#include<cctype>
#include<queue>
#include<stack>
#include<stdio.h>
#include<vector>
#include<set>
#include<map>
using namespace std;
int a;
int long long n;


int long long solve(int long long n,int long long x){
    if(n==0){return 1;}
    if(x==0){return 0;}
    if(x<=pow(2,(int long long)n+1)-2) return solve(n-1,x-1);
    
    return solve(n-1,x-pow(2,(int long long)n+1)+1)+pow(2,n);
}


int main(){
    cin>>a>>b;
    
    cout<<solve(a,b)<<endl;
return 0;
}


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

#include <ifstream>
using namespace std;

int main()
{
  int d = 0;
  std::cin << d;
  int a = 25 - d;
  std::cout << "Christmas ";
  for( int i = 0; i < a; ++i)
    std::cout << "Eve "
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: 'Christmas' was not declared in this scope
    9 |      if (D=22) ans = Christmas Eve Eve Eve;
      |                      ^~~~~~~~~
a.cc:10:26: error: 'Christmas' was not declared in this scope
   10 |     else if (D=23) ans = Christmas Eve Eve;
      |                          ^~~~~~~~~
a.cc:11:26: error: 'Christmas' was not declared in this scope
   11 |     else if (D=24) ans = Christmas Eve;
      |                          ^~~~~~~~~
a.cc:12:16: error: 'Christmas' was not declared in this scope
   12 |     else ans = Christmas;
      |                ^~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |      if (D=22) ans = Christmas Eve Eve Eve;
      |                ^~~
      |                abs
a.cc:7:22: error: 'Christmas' was not declared in this scope
    7 |      if (D=22) ans = Christmas Eve Eve Eve;
      |                      ^~~~~~~~~
a.cc:8:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |     else if (D=23) ans = Christmas Eve Eve;
      |                    ^~~
      |                    abs
a.cc:8:26: error: 'Christmas' was not declared in this scope
    8 |     else if (D=23) ans = Christmas Eve Eve;
      |                          ^~~~~~~~~
a.cc:9:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |     else if (D=24) ans = Christmas Eve;
      |                    ^~~
      |                    abs
a.cc:9:26: error: 'Christmas' was not declared in this scope
    9 |     else if (D=24) ans = Christmas Eve;
      |                          ^~~~~~~~~
a.cc:10:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     else ans = Christmas;
      |          ^~~
      |          abs
a.cc:10:16: error: 'Christmas' was not declared in this scope
   10 |     else ans = Christmas;
      |                ^~~~~~~~~
a.cc:11:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C

#include <stdio.h>

int main(void){
  
  int D;
  scanf("%d",&d);
  
  switch(D){
    case 22:
      printf("Christmas Eve Eve Eve");
      break;
      
    case 23:
      printf("Christmas Eve Eve");
      break;

    case 24:
      printf("Christmas Eve");
      break;
      
    case 23:
      printf("Christmas");
      break;
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: 'd' undeclared (first use in this function)
    6 |   scanf("%d",&d);
      |               ^
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:5: error: duplicate case value
   21 |     case 23:
      |     ^~~~
main.c:13:5: note: previously used here
   13 |     case 23:
      |     ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: invalid operands of types 'const char [14]' and '<unresolved overloaded function type>' to binary 'operator<<'
   17 |     cout<"Christmas Eve"<<endl;
      |          ~~~~~~~~~~~~~~~^~~~~~
Language: C++

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

int mian(void)
{
    int d;
    cin >> d;

    switch (d)
    {
    case 25: /* constant-expression */
        /* code */
        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;
    default:
        break;
    }
    return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
using namespace std;

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

    switch (d)
    {
    case 25: /* constant-expression */
        /* code */
        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;
    default:
        break;
    }

    return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>

int main(void){
  int D;
  scanf("%d",&D);
  if(D = 25){
    printf("Christmas");
  }if(D = 24){
    printf("Christmas Eve");
  }
  if(D = 23){
    printf("Christmas Eve Eve");
  }
  if(D = 22){
    printf("Christmas Eve Eve Eve");
  }
  

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

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



int main()
{
	int n,num,sum,ans;
    sum=0;
	cin >> n;
	int a[n];
	for (int i = 0; i < n; i++){
		cin >> a[i];
        sum += a[i];
		if (i == 1) num = max({ a[0], a[1] });
		else if (i>1) num = max({ num, a[i] });
	}
	ans = sum - (num/2);
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:38: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   16 |                 if (i == 1) num = max({ a[0], a[1] });
      |                                   ~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
a.cc:17:40: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   17 |                 else if (i>1) num = max({ num, a[i] });
      |                                     ~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
Language: C

#include<stdio.h>
#include<conio.h>
int main(){
  int d;
  scanf("%d",&d);
  switch(d){
    case 25:
      printf("Christmas");
      break;
    case 24:
      printf("Christmas eve");
      break;
    case 23:
      printf("Christmas eve eve");
      break;
    case 22:
      printf("Christmas eve eve eve");
      break;
  
  }
  return 0;
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:53: error: expected ';' before 'endl'
   12 |     else if(n == 22) cout << "Christmas Eve Eve Eve" endl;
      |                                                     ^~~~~
      |                                                     ;
Language: Java


import java.util.Scanner;

public class A_Christmas_Eve_Eve_Eve {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
	          int D=stdIn.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:4: error: class A_Christmas_Eve_Eve_Eve is public, should be declared in a file named A_Christmas_Eve_Eve_Eve.java
public class A_Christmas_Eve_Eve_Eve {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		do{
          int D=stdIn.nextInt();
        }while(D<=22||D>=26)
		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");
		}
         
        

	}

}


Compiler output:
Main.java:9: error: ';' expected
        }while(D<=22||D>=26)
                            ^
1 error
Language: C++

#include <iostream>
using namespace std;
int main() {
  ll n;
  cin >> n;
  cout << "Christmas";
  switch (n) {
    case 22:
      cout << " Eve";
    case 23:
      cout << " Eve";
    case 24:
      cout << " Eve";
  }
  cout << endl;
  return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:6:12: error: 'd' undeclared (first use in this function)
    6 |         if(d==25){
      |            ^
main.c:6:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <stdlib.h>
 
int main(void){
  char s[32] = "Christmas";
  int day=0;
  int i=0;
  
  scanf("%d", &day);
  for (i=(25 - day); i > 0; i++)
    sprintf(s, "%s Eve", s);
  }
  printf("%s\n", s);
}

Compiler output:
main.c:13:10: error: expected declaration specifiers or '...' before string constant
   13 |   printf("%s\n", s);
      |          ^~~~~~
main.c:13:18: error: unknown type name 's'
   13 |   printf("%s\n", s);
      |                  ^
main.c:14:1: error: expected identifier or '(' before '}' token
   14 | }
      | ^
Language: C

#include <stdio.h>
#include <stdlib.h>
 
int main(){
  char s[32] = "Christmas";
  int day=0;
  int i=0;
  
  scanf("%d", &day);
  for (i=(25 - day); i > 0; i++)
    sprintf(s, "%s Eve", s);
  }
  printf("%s\n", s);
}

Compiler output:
main.c:13:10: error: expected declaration specifiers or '...' before string constant
   13 |   printf("%s\n", s);
      |          ^~~~~~
main.c:13:18: error: unknown type name 's'
   13 |   printf("%s\n", s);
      |                  ^
main.c:14:1: error: expected identifier or '(' before '}' token
   14 | }
      | ^
Language: C

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

int main(){
  char s[32] = "Christmas";
  int day=0;
  int i=0;
  
  memset(s, 0x00, sizeof(s));
  scanf("%d", &day);
  for (i=(25 - day); i > 0; i++)
    sprintf(s, "%s Eve", s);
  }
  printf("%s\n", s);
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
    9 |   memset(s, 0x00, sizeof(s));
      |   ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'memset'
    2 | #include <stdlib.h>
  +++ |+#include <string.h>
    3 | 
main.c:9:3: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
    9 |   memset(s, 0x00, sizeof(s));
      |   ^~~~~~
main.c:9:3: note: include '<string.h>' or provide a declaration of 'memset'
main.c: At top level:
main.c:14:10: error: expected declaration specifiers or '...' before string constant
   14 |   printf("%s\n", s);
      |          ^~~~~~
main.c:14:18: error: unknown type name 's'
   14 |   printf("%s\n", s);
      |                  ^
main.c:15:1: error: expected identifier or '(' before '}' token
   15 | }
      | ^
Language: Java

import java.util.Scanner;
public class Main {

    public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
    	// 入力
    	int d = sc.nextInt();
    	String ans ="";
    	
    	if (d==25)
    	{
    		ans = "Christmas";
    	} else if (d==24){
    		ans = "Christmas Eve";
    	} else if (d==23){
    		ans = "Christmas Eve Eve";
    	} else if (d==22{
    		ans = "Christmas Eve Eve Eve";
    	}
    	// 出力
    	System.out.println(ans);
    }
}

Compiler output:
Main.java:17: error: ')' expected
    	} else if (d==22{
    	                ^
1 error
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <cctype>
#define len length()
#define sz size()
#define rng(i, a, b) for(int i = a; i < b; i++)
#define rep(i, n) rng(i, 0, n)
#define srt(v) sort(v.begin(), v.end())
#define rev(s) reverse(s.begin(), s.end())
#define vi(a, n) vector<int> a(n)
#define vs(a, n) vector<string> a(n)
#define vc(a, n) vector<char> a(n)
#define psb(a) push_back(a)
#define ppb pop_back()
#define erc(S, i) S.erase(S.begin() + i)
#define ers(S, i, j) S.erase(S.begin() + i, S.begin() + j)
#define sp(n) cout << setprecision(n) << fixed
#define fst(s) s.at(0)
#define lst(s) s.at(s.len - 1)
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:33:51: error: expected ';' before 'cout'
   33 |     else if(D == 22) ans = "Christmas Eve Eve Eve"
      |                                                   ^
      |                                                   ;
   34 |     cout << ans << endl;
      |     ~~~~
Language: C++

#include<iostream>
int main() {
	int d;
	cin>>d;
	string h="Christmas";
	for(int i=25;i>d;i--){
		h+=" Eve";
	}
	cout<<h<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         cin>>d;
      |         ^~~
      |         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:5:9: error: 'string' was not declared in this scope
    5 |         string h="Christmas";
      |         ^~~~~~
a.cc:5: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:7:17: error: 'h' was not declared in this scope
    7 |                 h+=" Eve";
      |                 ^
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout<<h<<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:15: error: 'h' was not declared in this scope
    9 |         cout<<h<<endl;
      |               ^
a.cc:9:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout<<h<<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<cstdio>
int main() {
	int d;
	cin>>d;
	string h="Christmas";
	for(int i=25;i>d;i--){
		h+=" Eve";
	}
	printf("%s\n",h);
}

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: 'string' was not declared in this scope; did you mean 'stdin'?
    5 |         string h="Christmas";
      |         ^~~~~~
      |         stdin
a.cc:7:17: error: 'h' was not declared in this scope
    7 |                 h+=" Eve";
      |                 ^
a.cc:9:23: error: 'h' was not declared in this scope
    9 |         printf("%s\n",h);
      |                       ^
Language: C++

  for (int i = K -1; i < N; i++) {
#include<iostream>
#include<algorithm>
using namespace std;

int main() {
  int N, K;
  cin >> N >> K;

  int h[N];
  for (int i = 0; i < N; i++) {
    cin >> h[i];
  }

  sort(h, h + N);

  int ans = 1e9;
  for (int i = K -1; i < N; i++) {
    ans = min(ans, h[i] - h[i - 2]);
  }

  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc:1:3: error: expected unqualified-id before 'for'
    1 |   for (int i = K -1; i < N; i++) {
      |   ^~~
a.cc:1:22: error: 'i' does not name a type
    1 |   for (int i = K -1; i < N; i++) {
      |                      ^
a.cc:1:29: error: 'i' does not name a type
    1 |   for (int i = K -1; i < N; i++) {
      |                             ^
Language: C

#include <stdio.h>
int main(D){
    int i,D,DayToChirstmas;
    char s[101] = "Chirstmas";
    scanf("%d", &D);
    DayToChirstmas = 25-D;
    if (DayToChirstmas <= 3 && DayToChirstmas >= 1){
        for (i=1;i<=DayToChirstmas;i++)
        sprintf(s,"%s%s",s," Eve");
    }
    printf("%s\n",s);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:2:5: error: type of 'D' defaults to 'int' [-Wimplicit-int]
    2 | int main(D){
      |     ^~~~
main.c:3:11: error: 'D' redeclared as different kind of symbol
    3 |     int i,D,DayToChirstmas;
      |           ^
main.c:2:5: note: previous definition of 'D' with type 'int'
    2 | int main(D){
      |     ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:32: error: expected ';' before '}' token
    9 |     s = "Christmas Eve Eve Eve"
      |                                ^
      |                                ;
   10 |    }else if(D==23){
      |    ~                            
a.cc:11:28: error: expected ';' before '}' token
   11 |     s = "Christmas Eve Eve"
      |                            ^
      |                            ;
   12 |    }else if(D==24){
      |    ~                        
a.cc:13:24: error: expected ';' before '}' token
   13 |     s = "Christmas Eve"
      |                        ^
      |                        ;
   14 |    }else if(D==25){
      |    ~                    
a.cc:15:20: error: expected ';' before '}' token
   15 |     s = "Christmas"
      |                    ^
      |                    ;
   16 |    }
      |    ~
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int n;
int main()
{
	scanf("%d",&n);
	if(n==22)printf("Christmas Eve Eve Eve");
	if(n==23)printf("Christmas Eve Eve");
		if(n==24)printf("Christmas Eve");
			if(n==25)printf("Christmas
			");
	return 0;
 } 

Compiler output:
a.cc:13:41: warning: missing terminating " character
   13 |                         if(n==25)printf("Christmas
      |                                         ^
a.cc:13:41: error: missing terminating " character
   13 |                         if(n==25)printf("Christmas
      |                                         ^~~~~~~~~~
a.cc:14:25: warning: missing terminating " character
   14 |                         ");
      |                         ^
a.cc:14:25: error: missing terminating " character
   14 |                         ");
      |                         ^~~
a.cc: In function 'int main()':
a.cc:15:9: error: expected primary-expression before 'return'
   15 |         return 0;
      |         ^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:24: error: 'd' was not declared in this scope
   14 |         for(int i=25;i>d;--i){
      |                        ^
Language: C++


d = input()

if(d == "25"):
    print("Christmas")
elif(d == "24"):
    print("Christmas Eve")
elif(d == "23"):
    print("Christmas Eve Eve")
elif(d == "22"):
    print("Christmas Eve Eve Eve")

Compiler output:
a.cc:2:1: error: 'd' does not name a type
    2 | d = input()
      | ^