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

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

Compiler output:
a.cc:7:15: error: extended character “ is not valid in an identifier
    7 |         cout<<“Christmas Eve”<<endl;
      |               ^
a.cc:7:26: error: extended character ” is not valid in an identifier
    7 |         cout<<“Christmas Eve”<<endl;
      |                          ^
a.cc:9:14: error: extended character “ is not valid in an identifier
    9 |        cout<<“Christmas<<endl;
      |              ^
a.cc:11:14: error: extended character “ is not valid in an identifier
   11 |        cout<<“Christmas Eve Eve”<<endl;
      |              ^
a.cc:11:29: error: extended character ” is not valid in an identifier
   11 |        cout<<“Christmas Eve Eve”<<endl;
      |                             ^
a.cc:13:13: error: extended character “ is not valid in an identifier
   13 |       cout<<“Christmas Eve Eve Eve”<<endl;
      |             ^
a.cc:13:32: error: extended character ” is not valid in an identifier
   13 |       cout<<“Christmas Eve Eve Eve”<<endl;
      |                                ^
a.cc: In function 'int main()':
a.cc:5:11: error: expected ';' before ':' token
    5 |     cin>>a:
      |           ^
      |           ;
a.cc:8:6: error: 'else' without a previous 'if'
    8 |     }else if(a==25){
      |      ^~~~
a.cc:9:14: error: '\U0000201cChristmas' was not declared in this scope
    9 |        cout<<“Christmas<<endl;
      |              ^~~~~~~~~~
a.cc:11:14: error: '\U0000201cChristmas' was not declared in this scope
   11 |        cout<<“Christmas Eve Eve”<<endl;
      |              ^~~~~~~~~~
a.cc:13:13: error: '\U0000201cChristmas' was not declared in this scope
   13 |       cout<<“Christmas Eve Eve Eve”<<endl;
      |             ^~~~~~~~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		String s;
		if (a == 25) s = "Christmas";
		if (a == 24) s = "Christmas Eve";
		if (a == 23) s = "Christmas Eve Eve";
		if (a == 22) s = "Christmas Eve Eve Eve";
		// 出力
		System.out.println(s);
	}
}


Compiler output:
Main.java:13: error: variable s might not have been initialized
		System.out.println(s);
		                   ^
1 error
Language: C++

#include <bits/stdc++.h>
typedef long long ll;
const int INF=1e9,MOD=1e9+7,ohara=1e6;
const ll LINF=1e18;
using namespace std;

#define rep(i,n) for(ll (i)=0;(i)<(int)(n);(i)++)
#define rrep(i,a,b) for(ll i=(a);i<(b);i++)
#define rrrep(i,a,b) for(ll i=(a);i>=(b);i--)
#define all(v) (v).begin(), (v).end()
#define pb(q) push_back(q)
#define Size(n) (n).size()
#define Cout(x) cout<<(x)<<endl

ll n,cnt,ans,a,b,c,d,tmp,tmpp,m,h,w,x,y,sum,pos;
int dy[]={1,0,-1,0};
int dx[]={0,1,0,-1};
//int dy[]={-1,0,1,-1,1,-1,0,1};
//int dx[]={-1,-1,-1,0,0,1,1,1};
string alph("abcdefghijklmnopqrstuvwxyz"),s;
bool fl;
struct edge{int to,cost;};

//-------------------------↓↓↓↓↓↓------------------------

int main(void){
       cin.tie(0);
    ios::sync_with_stdio(false);
      
    cin>>n;
    if(n==25)Cout("Christmas");
    else if(n==24)Cout("Christmas Eve");
    else if(n==23)Cout("Christmas Eve Eve");
    else Cout("Christmas Eve Eve Eve")
    return 0;
}


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

#include<bitd/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;
  if(d=22)cout<<"Christmas Eve Eve Eve"<<endl;
}

Compiler output:
a.cc:1:9: fatal error: bitd/stdc++.h: No such file or directory
    1 | #include<bitd/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

    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";
    }
    cout << endl;


Compiler output:
a.cc:1:5: error: 'll' does not name a type
    1 |     ll n;
      |     ^~
a.cc:2:5: error: 'cin' does not name a type
    2 |     cin >> n;
      |     ^~~
a.cc:3:5: error: expected unqualified-id before 'if'
    3 |     if(n == 25){
      |     ^~
a.cc:5:7: error: expected unqualified-id before 'else'
    5 |     } else if(n == 24){
      |       ^~~~
a.cc:7:7: error: expected unqualified-id before 'else'
    7 |     } else if(n == 23){
      |       ^~~~
a.cc:9:7: error: expected unqualified-id before 'else'
    9 |     } else if(n == 22){
      |       ^~~~
a.cc:12:5: error: 'cout' does not name a type
   12 |     cout << endl;
      |     ^~~~
Language: C

include<stdio.h>
int main(){
  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");
  return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include <stdio.h>
int main(){
     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:11:15: warning: missing terminating " character
   11 |        printf("Christmas Eve\n);
      |               ^
main.c:11:15: error: missing terminating " character
   11 |        printf("Christmas Eve\n);
      |               ^~~~~~~~~~~~~~~~~~
main.c:12:6: error: expected expression before '}' token
   12 |      }
      |      ^
main.c:11:15: error: expected ';' before '}' token
   11 |        printf("Christmas Eve\n);
      |               ^
      |               ;
   12 |      }
      |      ~         
main.c:17:15: warning: missing terminating " character
   17 |        printf("Christmas Eve Eve Eve\n);
      |               ^
main.c:17:15: error: missing terminating " character
   17 |        printf("Christmas Eve Eve Eve\n);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:18:6: error: expected expression before '}' token
   18 |      }
      |      ^
main.c:17:15: error: expected ';' before '}' token
   17 |        printf("Christmas Eve Eve Eve\n);
      |               ^
      |               ;
   18 |      }
      |      ~
Language: C++

#include<iostream>
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;
    }
    return 0;
}

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

#include<iostream>
#include<cstring>
#include<algorithm>
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:15:9: error: expected unqualified-id before 'return'
   15 |         return 0;
      |         ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: Java

import java.util.Scanner;

public Main {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner sc = new Scanner (System.in);
        int a = sc.nextInt();
        if(a==25)
        {
            System.out.println("Christmas");
        }
        else if (a==24)
        {
            System.out.println("Christmas Eve");
        }
        else if (a==23)
        {
            System.out.println("Christmas Eve Eve");
        }
        else if (a==22)
        {
            System.out.println("Christmas Eve Eve Eve");
        }
        
        
        
    }

}


Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public Main {
       ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args) {
                  ^
  (use --enable-preview to enable unnamed classes)
Main.java:30: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

include<stdio.h>
int main(){
  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");
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            solve(sc);
        }
    }

    public static void solve(Scanner sc) {
        int d = sc.nextInt();
        switch (d) {
            case 25:
                System.out.println("Christmas");
                return;
            case 24:
                System.out.println("Christmas Eve");
                return;
            case 23:
                System.out.println("Christmas Eve Eve");
                return;
            case 22:
                System.out.println("Christmas Eve Eve Eve");
                return
        } 
    }
}

Compiler output:
Main.java:26: error: illegal start of expression
        } 
        ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'cin'
    5 |         cin>>n;
      |         ^~~
a.cc:6:12: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |         if(n==22){
      |            ^
      |            yn
Language: C++

main = do
    d <- read <$> getLine
    case d of
        25 -> putStrLn "Christmas"
        24 -> putStrLn "Christmas Eve"
        23 -> putStrLn "Christmas Eve Eve"
        22 -> putStrLn "Christmas Eve Eve Eve"

Compiler output:
a.cc:1:1: error: 'main' does not name a type
    1 | main = do
      | ^~~~
Language: C++

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

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

#include<stdio.h>

int main(){
    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:
a.cc: In function 'int main()':
a.cc:13:42: error: expected ';' before '}' token
   13 |         printf("Christmas Eve Eve Eve\n")
      |                                          ^
      |                                          ;
   14 |     }
      |     ~
Language: C++

#include<stdio.h>
int main(){
  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");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:35: error: expected ';' before 'if'
    6 |   if(D==24)printf("Christmas Eve")
      |                                   ^
      |                                   ;
    7 |   if(D==23)printf("Christmas Eve Eve");
      |   ~~
Language: C++

#include<stdio.h>

int main(){
    int d;
    scanf("%s",&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:
a.cc: In function 'int main()':
a.cc:13:42: error: expected ';' before '}' token
   13 |         printf("Christmas Eve Eve Eve\n")
      |                                          ^
      |                                          ;
   14 |     }
      |     ~
Language: Java

import java.util.Scanner;

public class ABC115_A {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		scan.close();

		//D=25 なら Christmas, D=24 なら Christmas Eve, D=23 なら Christmas Eve Eve, D=22 なら Christmas Eve Eve Eve
		if(N==25) {
			System.out.println("Christmas");
		}
		if(N==24) {
			System.out.println("Christmas Eve");
		}
		if(N==23) {
			System.out.println("Christmas Eve Eve");
		}
		if(N==22) {
			System.out.println("Christmas Eve Eve Eve");
		}
	}
}

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

d = int(input())

if d == 25:
    print('Christmas')
elif d == 24:
    print('Christmas Eve')
elif d == 23:
    print('Christmas Eve Eve')
else:
    print('Christmas Eve Eve Eve')

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:11:2: error: 's' does not name a type
   11 | }s
      |  ^
Language: C++

#include <stdio.h>
#include <stdlib,h>
#include <string.h>
main()
{
	int n, N, i, j;

	scanf("%d", &n);
	if(n == 25)
		printf("Christmas\n");
	else if(n == 24)
		printf("Christmas Eve\n");
	else if(n == 23)
		printf("Christmas Eve Eve\n");
	else if(n == 22)
		printf("Christmas Eve Eve Eve\n");

	return 0;
}

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

int main(){
      int D;
      cin >> D;
      string ans;
      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;
              return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:7: error: 'cin' was not declared in this scope
    3 |       cin >> D;
      |       ^~~
a.cc:4:7: error: 'string' was not declared in this scope
    4 |       string ans;
      |       ^~~~~~
a.cc:6:11: error: 'ans' was not declared in this scope
    6 |           ans = "Christmas Eve Eve Eve";
      |           ^~~
a.cc:8:13: error: 'ans' was not declared in this scope
    8 |             ans = "Christmas Eve Eve";
      |             ^~~
a.cc:10:15: error: 'ans' was not declared in this scope
   10 |               ans = "Christmas Eve";
      |               ^~~
a.cc:12:17: error: 'ans' was not declared in this scope
   12 |                 ans = "Christmas";
      |                 ^~~
a.cc:14:15: error: 'cout' was not declared in this scope
   14 |               cout << ans << endl;
      |               ^~~~
a.cc:14:23: error: 'ans' was not declared in this scope
   14 |               cout << ans << endl;
      |                       ^~~
a.cc:14:30: error: 'endl' was not declared in this scope
   14 |               cout << ans << endl;
      |                              ^~~~
Language: C++

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

int main(void)
{
    int D;

    cin >> D;

    if(D==22)cout << "Christmas Eve Eve Eve" <<endl;
    else if(D==23)cout << "Christmas Eve Eve" <<endl;
    else if(D==24)cout << "Christmas Eve" <<endl;
    else if(D==23)cout << "Christmas" <<endl;
    

    return 0;
}

Compiler output:
a.cc:1:9: fatal error: bits/stdsc++.h: No such file or directory
    1 | #include<bits/stdsc++.h>
      |         ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

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


Compiler output:
a.cc:6:12: error: extended character 　 is not valid in an identifier
    6 |    cin>>n; 　
      |            ^
a.cc: In function 'int main()':
a.cc:6:12: error: '\U00003000' was not declared in this scope
    6 |    cin>>n; 　
      |            ^~
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else if(n==24)
      |     ^~~~
a.cc:17:36: error: expected ';' before '}' token
   17 |         cout<<"Christmas Eve Eve\n"
      |                                    ^
      |                                    ;
   18 |     }
      |     ~
Language: C++

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

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

	return 0;
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~
Language: C++

#include<cstdio>
int main(){
	int d;
	scanf("%d",&d);
	if(d==25)puts("Christmas");
	if(d==24)puts("Christmas Eve");
	if(d==23)puts("Christmas Eve Eve");
	if(d==22)puts("Christmas Eve Eve Eve");
	reutrn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'reutrn' was not declared in this scope
    9 |         reutrn 0;
      |         ^~~~~~
Language: C

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

Compiler output:
main.c:11:10: error: expected identifier or '(' before 'else'
   11 |         }else if(N == 23);
      |          ^~~~
main.c:12:24: error: expected declaration specifiers or '...' before string constant
   12 |                 printf("Christmas Eve Eve");
      |                        ^~~~~~~~~~~~~~~~~~~
main.c:13:9: error: expected identifier or '(' before '}' token
   13 |         }else if(N == 22);
      |         ^
main.c:13:10: error: expected identifier or '(' before 'else'
   13 |         }else if(N == 22);
      |          ^~~~
main.c:14:24: error: expected declaration specifiers or '...' before string constant
   14 |                 printf("Christmas Eve Eve Eve");
      |                        ^~~~~~~~~~~~~~~~~~~~~~~
main.c:15:9: error: expected identifier or '(' before '}' token
   15 |         }
      |         ^
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc:1:10: fatal error: bits/stdc++: No such file or directory
    1 | #include <bits/stdc++>
      |          ^~~~~~~~~~~~~
compilation terminated.
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;
	}

	if (D == 22) {
		cout << "Christmas Eve Eve Eve" << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before 'D'
    7 |         cin D;
      |            ^~
      |            ;
Language: C++

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'Christmas' was not declared in this scope
    7 |   Christmas
      |   ^~~~~~~~~
Language: C++

#pragma GCC optimize("Ofast")
#include <queue>
#include <cmath>
#include <vector>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
#define endl '\n'
#define fast ios::sync_with_stdio(0),cin.tie(0),cout.tie(0)
using namespace std;
int d; 
int main()
{
	fast;
	cin>>d;
	if (d==25)
	   cout<<"Christmas\n";
	else if (d==24)
	   cout<<"Christmas Eve\n";
	else if (d==23)
	    cout<<"Christmas Eve Eve\n";
	else if (d==22)
	   cout<<"Christmas Eve Eve Eve"
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:41: error: expected ';' before 'return'
   25 |            cout<<"Christmas Eve Eve Eve"
      |                                         ^
      |                                         ;
   26 |     return 0;
      |     ~~~~~~
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		scan.close();

		//D=25 なら Christmas, D=24 なら Christmas Eve, D=23 なら Christmas Eve Eve, D=22 なら Christmas Eve Eve Eve
		if(N==25) {
			System.out.println("Christmas");
		}
		if(N==24) {
			System.out.println("Christmas Eve");
		}
		if(N==23) {
			System.out.println("Christmas Eve Eve");
		}
		if(N==22) {
			System.out.println("Christmas Eve Eve Eve");
		}
	}

Compiler output:
Main.java:24: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define FOR(i,n) for(int i=0;i<n;i++)
#define why(n,x) int n;while(cin >>n,n!=x)
#define iFOR(i,x,n)for(int i=x;i<n;i++)

#define unless(flg) if ( !(flg) )
#define read cin<<
#define echo cout<<
#define fin <<'\n'
#define __ <<" "<<
#define bash push_back
#define alles(x) x.begin(),x.end()
#define SWAP(a,b) ((a != b) && (a += b,b = a - b,a -= b))
#define WF(d,v) FOR(k,v){ FOR(i,v){ FOR(j,v) d[i][j]=min(d[i][j],d[[i][k]+d[k][j]) } }
int dx[]={1,0,-1,0,1,1,-1,-1};
int dy[]={0,-1,0,1,-1,1,-1,1};
const int INF=1 << 30;
bool inside(int x,int y,int w,int h){
  return (x>=0 && y>=0 && x<w && y<h);}
typedef long long ll;
typedef pair<int,int> pii;
typedef vector<int> vit;
typedef map<string,int> mstit;
typedef priority_queue<int> pqit;
 
 
int main(){
  cin.tie(0), ios::sync_with_stdio(false);
  int n;
  cin >>n;
  cout <<"Christmas ";
  if(n<25) cout <<"Eve ";
  if(n<24) cout <<"Eve ";
  if(n<23) cout <<"Eve";
  cout  "\n";


  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:36:7: error: expected ';' before string constant
   36 |   cout  "\n";
      |       ^ ~~~~
      |       ;
Language: C++

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

typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long ll;


#define SZ(x) ((int)(x).size())
#define BIT(n) (1ll<<(n))
#define SORT(c) sort((c).begin(),(c).end())
#define RALL(a) (a).rbegin(), (a).rend()
#define ALL(x) (x).begin(),(x).end()
#define PB push_back
#define MP make_pair
#define CLR(a) memset((a), 0 ,sizeof(a))
#define retrun return
#define INF 1000000010ll
#define MOD 1000000007ll
#define REP(i,a,b) for(int i=(a);i<(b);++i)
#define RREP(i,n)  
#define rep(i,n) for(int i=n-1;i>=0;--i)
#define COUT(str) cout << str << endl


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; }
inline int toInt(string s) { int v; istringstream sin(s); sin >> v; return v; }
template<class T> inline string toString(T x) { ostringstream sout; sout << x; return sout.str(); }
template<class T> inline T sqr(T x) { return x*x; }

int d;
//------------------------------------------------------------------------------------------------------

int main() {
	cin >> d;

	if (d == 25) COUT("Christmas");

	else if (d == 24) COUT("Christmas Eve");

	else if (d == 23) COUT("Christmas Eve Eve");

	else (d == 22) COUT("Christmas Eve Eve Eve");

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:46:23: error: expected ';' before 'cout'
   46 |         else (d == 22) COUT("Christmas Eve Eve Eve");
      |                       ^
      |                       ;
Language: C++

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


Compiler output:
a.cc:6:12: error: extended character 　 is not valid in an identifier
    6 |    cin>>n; 　
      |            ^
a.cc: In function 'int main()':
a.cc:6:12: error: '\U00003000' was not declared in this scope
    6 |    cin>>n; 　
      |            ^~
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else if(n=24)
      |     ^~~~
a.cc:17:36: error: expected ';' before '}' token
   17 |         cout<<"Christmas Eve Eve\n"
      |                                    ^
      |                                    ;
   18 |     }
      |     ~
Language: C++

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;


public class MyProgram
{	
  
    public static void Main()
	{
        int D = int.Parse(Console.ReadLine());
        Console.Write("Christmas");
        for(int i = 0 ; i < 25-D ; i++)
        {
            Console.Write(" Eve");
        }
        Console.WriteLine();
  
    }
    
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Linq;
      |       ^~~~~~
a.cc:7:1: error: expected unqualified-id before 'public'
    7 | public class MyProgram
      | ^~~~~~
Language: C++

#include <bits/stdc++.h>
#define chmin(a, b) ((a)=min((a), (b)))
#define chmax(a, b) ((a)=max((a), (b)))
#define fs first
#define sc second
#define eb emplace_back
using namespace std;

typedef long long ll;
typedef pair<int, int> P;
typedef tuple<int, int, int> T;

const ll MOD=1e9+7;
const ll INF=1e18;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:24:54: error: expected ';' before '}' token
   24 |     if(n==22) cout << "Christmas Eve Eve Eve" << endl
      |                                                      ^
      |                                                      ;
   25 | }
      | ~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
using namespace std;

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{
            cout<<"Christmas Eve Eve Eve"
        }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:42: error: expected ';' before '}' token
   28 |             cout<<"Christmas Eve Eve Eve"
      |                                          ^
      |                                          ;
   29 |         }
      |         ~
Language: C++

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

int main() {
	long long n = 0, a = 0, b = 0, c = 0, x = 0, y = 0;
	
	
	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:25: error: expected ')' before '{' token
   12 |         }else if(n == 24{
      |                 ~       ^
      |                         )
Language: C

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

#define llong long long
#define fr(i,l,r) for(i=(l);i<(r);i++)
#define min(p,q) ((p)<(q)?(p):(q))
#define max(p,q) ((p)>(q)?(p):(q))
#define INF 1000000000000//10^12

int main(void)
{
	//変数の宣言
	int n,m;
	int 
	
	//よく使う変数
	int i,j,k,l,p;
	int flag=0;
	llong int ans=0;
	int count=0;
	int temp,temp1,temp2;
	llong int max,min;
	int len;
	int sum=0;
	//データの読み込み
	scanf("%d",&n);
	//scanf("%d",&m);
	
	
//	printf("nは%dです\n", n);
//	printf("データの読み込み終了\n");
	//実際の処理
	
	
	//ans=n+m;
	
//	printf("計算部分終了\n");
	//出力
	
	if(n==25){
		printf("Christmas");
	}else if(n==24){
		printf("Christmas Eve");
	}else if(n==23){
		printf("Christmas Eve Eve");
	}else if(n==22){
		printf("Christmas Eve Eve Eve");
	}
//	printf("結果の出力終了\n");
	
	return 0;
	
}



Compiler output:
main.c: In function 'main':
main.c:19:9: error: two or more data types in declaration specifiers
   19 |         int i,j,k,l,p;
      |         ^~~
Language: C++

#include<cstdio>
using namespace std;

int D;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'priintf' was not declared in this scope; did you mean 'printf'?
    8 |         if(D == 25) priintf("Christmas\n");
      |                     ^~~~~~~
      |                     printf
a.cc:9:26: error: 'priintf' was not declared in this scope; did you mean 'printf'?
    9 |         else if(D == 24) priintf("Christmas Eve\n");
      |                          ^~~~~~~
      |                          printf
a.cc:10:26: error: 'priintf' was not declared in this scope; did you mean 'printf'?
   10 |         else if(D == 23) priintf("Christmas Eve Eve\n");
      |                          ^~~~~~~
      |                          printf
a.cc:11:26: error: 'priintf' was not declared in this scope; did you mean 'printf'?
   11 |         else if(D == 22) priintf("Christmas Eve Eve Eve\n");
      |                          ^~~~~~~
      |                          printf
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;
  if(d == 24) cout << " Christmas Eve" << endl;
  if(d == 23) cout << " Christmas Eve Eve" << endl;
  if(d == 22) cout << " Christmas Eve Eve Eve" << endl;
}

Compiler output:
a.cc:4:12: error: stray '#' in program
    4 | int main(){#include <bits/stdc++.h>
      |            ^
a.cc: In function 'int main()':
a.cc:4:13: error: 'include' was not declared in this scope
    4 | int main(){#include <bits/stdc++.h>
      |             ^~~~~~~
a.cc:4:22: error: 'bits' was not declared in this scope
    4 | int main(){#include <bits/stdc++.h>
      |                      ^~~~
a.cc:4:27: error: 'stdc' was not declared in this scope; did you mean 'std'?
    4 | int main(){#include <bits/stdc++.h>
      |                           ^~~~
      |                           std
a.cc:5:1: error: expected primary-expression before 'using'
    5 | using namespace std;
      | ^~~~~
a.cc:7:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    7 | int main(){
      |         ^~
a.cc:7:9: note: remove parentheses to default-initialize a variable
    7 | int main(){
      |         ^~
      |         --
a.cc:7:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:7:11: error: a function-definition is not allowed here before '{' token
    7 | int main(){
      |           ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){#include <bits/stdc++.h>
      |           ^
Language: Java

import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.List;
import java.util.Collections;

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


}

Compiler output:
Main.java:23: error: reached end of file while parsing
}
 ^
1 error
Language: C++

#include<iostream>

using namespace std;

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

	

	cout << (n==25 ? "Christmas" : (n==24 ? "Christmas Eve":(n==23 ? "Christmas Eve Eve" :"Christmas Eve Eve Eve") << endl;	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:120: error: invalid operands of types 'const char*' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |         cout << (n==25 ? "Christmas" : (n==24 ? "Christmas Eve":(n==23 ? "Christmas Eve Eve" :"Christmas Eve Eve Eve") << endl;
      |                                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
a.cc:12:127: error: expected ')' before ';' token
   12 |         cout << (n==25 ? "Christmas" : (n==24 ? "Christmas Eve":(n==23 ? "Christmas Eve Eve" :"Christmas Eve Eve Eve") << endl;
      |                                        ~                                                                                      ^
      |                                                                                                                               )
a.cc:12:127: error: expected ')' before ';' token
   12 |         cout << (n==25 ? "Christmas" : (n==24 ? "Christmas Eve":(n==23 ? "Christmas Eve Eve" :"Christmas Eve Eve Eve") << endl;
      |                 ~                                                                                                             ^
      |                                                                                                                               )
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;
#define chmax(x,y) x = max(x,y);
#define chmin(x,y) x = min(x,y);
const int di[] = {-1, 0, 1, 0};
const int dj[] = {0, -1, 0, 1};
const int INF = 1001001001;



int main() {
    int n;
    cin >> n;
    vector<int> p(n);
    rep(i,n) cin >> p[i];
    int ans = 0;
    rep(i,n) ans += p[i];
    int mx = max(p);
    ans -= mx*0.5;
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:17: error: no matching function for call to 'max(std::vector<int>&)'
   21 |     int mx = max(p);
      |              ~~~^~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 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
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
a.cc:21:17: note:   'std::vector<int>' is not derived from 'std::initializer_list<_Tp>'
   21 |     int mx = max(p);
      |              ~~~^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin>>n;
  int total =0;
  vector<int>vec(n);
  for(int i=0;i<n;i++){
    cin>>vec.at(i);
    totl+=vec.at(i);
  }
  sort(vec.begin(),vec.end());
  cout<<total-vec.at(n-1)/2<<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'totl' was not declared in this scope; did you mean 'total'?
   10 |     totl+=vec.at(i);
      |     ^~~~
      |     total
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <queue>
#include <cmath>
#include <climits>
#include <iomanip>
#include <set>
#include <map>
using namespace std;
typedef long long ll;
int main(){
  ll n;
  cin >> n;
  vector<ll> a(n);
  for(int i = 0;i < n;i++)cin >> a[i];
  sort(a.rbebin(),a.rend());
  ll res = 0;
  res += a[0] / 2;
  for(int i = 1;i < n;i++)res += a[i];
  cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: 'class std::vector<long long int>' has no member named 'rbebin'; did you mean 'rbegin'?
   18 |   sort(a.rbebin(),a.rend());
      |          ^~~~~~
      |          rbegin
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n;
    cin>>n;
vector<int> vec(n);
int sum=0;
for(int i=0;i<n;i++){
    cin >>vec.at(i);
}
sort(vec.begin(),vec.end());
reverse(vec.begin(),vec.end());
int x=vec.at(0)/2;
sum+=x;
for(int i=1;i<n;i++){
    sum+=vec.at(i);
}
cout << sum <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'vector' was not declared in this scope
    6 | vector<int> vec(n);
      | ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:6:8: error: expected primary-expression before 'int'
    6 | vector<int> vec(n);
      |        ^~~
a.cc:9:11: error: 'vec' was not declared in this scope
    9 |     cin >>vec.at(i);
      |           ^~~
a.cc:11:6: error: 'vec' was not declared in this scope
   11 | sort(vec.begin(),vec.end());
      |      ^~~
a.cc:11:1: error: 'sort' was not declared in this scope; did you mean 'short'?
   11 | sort(vec.begin(),vec.end());
      | ^~~~
      | short
a.cc:12:1: error: 'reverse' was not declared in this scope
   12 | reverse(vec.begin(),vec.end());
      | ^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
vector<int> vec(n);
int sum=0;
for(int i=0;i<n;i++){
    cin >>vec.at(i);
}
sort(vec.begin(),vec.end());
reverse(vec.begin(),vec.end());
int x=vec.at(0)/2;
sum+=x;
for(int i=1;i<n;i++){
    sum+=vec.at(i);
}
cout << sum <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'vector' was not declared in this scope
    4 | vector<int> vec(n);
      | ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:4:8: error: expected primary-expression before 'int'
    4 | vector<int> vec(n);
      |        ^~~
a.cc:6:15: error: 'n' was not declared in this scope
    6 | for(int i=0;i<n;i++){
      |               ^
a.cc:7:11: error: 'vec' was not declared in this scope
    7 |     cin >>vec.at(i);
      |           ^~~
a.cc:9:6: error: 'vec' was not declared in this scope
    9 | sort(vec.begin(),vec.end());
      |      ^~~
a.cc:9:1: error: 'sort' was not declared in this scope; did you mean 'short'?
    9 | sort(vec.begin(),vec.end());
      | ^~~~
      | short
a.cc:10:1: error: 'reverse' was not declared in this scope
   10 | reverse(vec.begin(),vec.end());
      | ^~~~~~~
a.cc:13:15: error: 'n' was not declared in this scope
   13 | for(int i=1;i<n;i++){
      |               ^
Language: C++

n = int(input())
p = [int(input()) for i in range(n)]
p.sort()
p[n-1] /= 2;
print(int(sum(p)))


Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
a.cc:5:6: error: expected constructor, destructor, or type conversion before '(' token
    5 | print(int(sum(p)))
      |      ^
Language: C++

#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair

using ll = long long;
using namespace std;
ll x, y, z, l, m, n, r, q, k;

void solve() {
    cin>>n;
    ll sum=0, m = 0;
    for(int i=0;i<n;i++){
        int num;
        cin>>num;
        sum+=num;
        m = max(m, num);
    }
    cout<<sum-m/2<<'\n';

}

int main() 
{
    std::ios::sync_with_stdio(false); \
        std::cin.tie(NULL);
    int test;
    test = 1;
    while (test--) {
        solve();
    }
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:17:16: error: no matching function for call to 'max(ll&, int&)'
   17 |         m = max(m, num);
      |             ~~~^~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:2:
/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:   template argument deduction/substitution failed:
a.cc:17:16: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   17 |         m = max(m, num);
      |             ~~~^~~~~~~~
/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, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:17:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   17 |         m = max(m, num);
      |             ~~~^~~~~~~~
Language: C++

#include<stdio.h>
int main()
{
	int N,i=1,a=0,b=0,T,ma,sum=0;
	scanf("%d",&N);
	for(i=1;i<=N;i++)
		{
			scanf("%d",&T);
			a=b;
			b=T;
			if(a<b)
				{
					ma=b;
				}
			sum+=b;
		}
	printf("%d\n",sum-(max/2));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:28: error: 'max' was not declared in this scope; did you mean 'ma'?
   17 |         printf("%d\n",sum-(max/2));
      |                            ^~~
      |                            ma
Language: C

#include<stdio.h>
int main()
{
    int n,i,in,a=0,p=0,u;
    scanf("%d",&n);
    for(i=1;i<=n;i++)
    {
        scanf("%d",&in);
        p+=in;
        if(in>a)
        a=in;
    }
    u=p-sa+(a/2);
    printf("%d\n",u);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: 'sa' undeclared (first use in this function); did you mean 'a'?
   13 |     u=p-sa+(a/2);
      |         ^~
      |         a
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  vector<int>P(N);
  for(int i=0;i<N;i++){
    cin>>P.at(i);
  }
  int price=0;
  for(int i=0;i<N;i++){
    price=max(price,P.at(i));
  }
  int halfplice=price/2;
  int ans=0;
  for(int i=0;i<N;i++){
    ans+=P.at(i);
  }
  ans=ans-price+halfprice;
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:17: error: 'halfprice' was not declared in this scope; did you mean 'halfplice'?
   19 |   ans=ans-price+halfprice;
      |                 ^~~~~~~~~
      |                 halfplice