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

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

int main(){
    ll N;
    cin >> N;
    if(N%2==1){
        cout << 0 << endl;
    }else{
        long long N, n = 10, count = 0; cin >> N;
        if(N%2 == 0 ){
            while(N >= n){
            count += N/n;
            n *= 5;
        }
        cout << ans << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |         cout << ans << endl;
      |                 ^~~
      |                 abs
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long int

ll func( int x )
{
    int ans = 0;
    
    while ( x != 1 )
    {
        ans++;
        x /= 5;
    }
    
    return ans;
}

int main( void )
{
    ll n;
    cin >> n;
    
    if ( n % 2 = 1 )
    {
        cout << 0 <<  endl;
    }
    else
    {
        while ( n % 5 != 0)
            n--;
            
        int ans = 0;
        for ( int i = n; i > 3; i - 5)
        {
            ans += func(i);
        }
        
        cout << ans << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:12: error: lvalue required as left operand of assignment
   23 |     if ( n % 2 = 1 )
      |          ~~^~~
Language: C++

int main() {
	long long int n,i,j,c=0;
	scanf("%lld",&n);
	
	for(i=10;i<=n;i*=10)
	{
	   for(j=i;j<=n;j+=i)
	   {
	       c++;
	   }
	}
	printf("%lld",c);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'scanf' was not declared in this scope
    3 |         scanf("%lld",&n);
      |         ^~~~~
a.cc:12:9: error: 'printf' was not declared in this scope
   12 |         printf("%lld",c);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main() {
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<set>
#include<stack>
#include<cmath>
#include<sstream>
#include<string>
using namespace std;
typedef long long ll;
ll mod = 1e9+7;
#define rep(i,n) for(int i = 0; i < (n); ++i)
int main(){
    ll n;
    cin >> n;
    if ( n % 2 == 1 ) {
        cout << 0 << endl;
        return 0;
    }
    while(n) {
        ans += n / 5;
        n /= 5;
    }
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   23 |         ans += n / 5;
      |         ^~~
      |         abs
a.cc:26:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   26 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

//INCLUDE
//------------------------------------------
#include <iostream>
#include <functional>
#include <algorithm>
#include <math.h>
#include <iomanip>
#include <string>
#include <cstring>
#include <vector>
//DEFINE
//------------------------------------------
#define ll long long
#define ALLv(a)  (a).begin(),(a).end()
#define ALL(a,n)  (a),(a)+n
#define vi vector<long long>
#define vd vector<long double>
#define vs vector<string>
//CONST
//------------------------------------------
#define INF 1010000000000000017LL
#define MOD 1000000007LL
#define EPS 1e-12
#define PI 3.14159265358979323846
//REPEAT
//------------------------------------------
#define   FOR(i,m,n) for(ll (i)=(m);   (i)<(n);  (i)++)
#define   REP(i,n)   for(ll (i)=0;     (i)<(n);  (i)++)
#define  REPS(i,x)   for(ll (i)=1;     (i)<=(x); (i)++)
#define  RREP(i,x)   for(ll (i)=(x)-1; (i)>=0;   (i)--)
#define RREPS(i,x)   for(ll (i)=(x);   (i)> 0;   (i)--)
#define  WREP(i,in,j,jn) REP(i,in)REP(j,jn)
using namespace std;
//-------------------------------------------

int main(void){
  ll N;cin>>N;
  if(N%2==0){
    ll c=N/10;
    ll 5c=N/50;
    cout<<c+5c;
  }
  else{
    cout<<0;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:40:8: error: expected unqualified-id before numeric constant
   40 |     ll 5c=N/50;
      |        ^~
a.cc:41:13: error: unable to find numeric literal operator 'operator""c'
   41 |     cout<<c+5c;
      |             ^~
Language: C++

#include <iostream>

using namespace std;

int main()
{
    long long int n,z;
    z=0;
    cin >> n;
    else  if( n%2==0 )
    {
        long long int i=10;
        while(i<n)
        {
           z+=(n/i);
           i= i*5;
        }
    }

    cout << z << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'else' without a previous 'if'
   10 |     else  if( n%2==0 )
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef int64_t ll;
typedef long double ld;
const ll MOD=1000000007;
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
#define change(a,b) do{ll c=a; a=b; b=c;}while(0)
long long gcd(long long a,long long b){
    ll gcdmax=max(a,b);
    ll gcdmin=min(a,b);
    while(true){
        if(gcdmax%gcdmin==0)break;
        else gcdmax%=gcdmin;
        change(gcdmin,gcdmax);
    }
    return gcdmin;
}
ll powerup(ll N,ll P,ll M){
    if(P==0)return 1;
    else if(P%2==0){
        ll t=powerup(N,P/2,M);
        return t*t%M;
    }
    else return N*powerup(N,P-1,M)%M;
}
int main()
{
  ll N;
  cin>>N;
  ll ans=0;
  if(N%2==0){
    ans=N/10;
    N/=10;
   rep(i,100){
     ans+=N/5;
     N/=5;
   }
  }
  cout<<ans<<endl;
}
}

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

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

#define rep(i,x) for(int i=0;i<(int)(x);++i)

using Int = long long;
const int mo = 1e9+7;

Int N;

signed main()
{
    cin >> N;

    if (N % 2) {
        cout << 0 << endl;
        return 0;
    }

    N /= 2;

    long long b = 5;

    while (b < N) {
        ans += N / b;
        ans %= 5;
        b *= 5;
    }

    cout << ans << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   25 |         ans += N / b;
      |         ^~~
      |         abs
a.cc:30:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   30 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

using namespace std

int main(){
  long long n;
  cin >> n;
  
  if (n % 2) {
    cout << "0";
    return 1;
  }
  
  while (n % 10){
    n -= 2;
  }
  long long count = 0;
  int trail = 0;
  while (n) {
    int temp = n;
    
    while (!(temp % 10)){
      temp / 10;
      trail++;
    }
    
    count += trail;
    
    n -= 10;
  }
  cout << count;
  return 1;
}

Compiler output:
a.cc:1:20: error: expected ';' before 'int'
    1 | using namespace std
      |                    ^
      |                    ;
    2 | 
    3 | int main(){
      | ~~~                 
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "0";
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:29:3: error: 'cout' was not declared in this scope
   29 |   cout << count;
      |   ^~~~
a.cc:29:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<n+1;i++)
#define sort(A) sort(A.begin(),A.end())
#define reverse(A) reverse(A.begin(),A.end())
typedef long long ll;
typedef pair<int,int> P;

int main(){
  
  ll n;
  cin >>n;
  if(n%2 == 1){
    cout << 0 << endl;
    return 0;
  }
  ll ans = 0;
  for(int i=1;pow(5,i)<=n;i++){
    ans += n/(long long)(pow(5f,i)*2);
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:30: error: unable to find numeric literal operator 'operator""f'
   20 |     ans += n/(long long)(pow(5f,i)*2);
      |                              ^~
Language: Java

import java.util.*;  

public class Main {	
    public static Long gcd(Long x,Long y){
        if(x < y) return gcd(y, x);
        if(y == 0) return x;
        return gcd(y, x % y);
    }
    public static Long lcm(Long x,Long y){                                                              
        return x*y/gcd(x,y);                                                                                                                                                                                                                
    }
    public static Long df1(int x){                                                              
        if(x==0) return x+1; 
        return 5*df1(x-1);
    }
    public static Long df2(Long x){                     
        return x/df1(1) + x/df1(2) + x/df1(3) + x/df1(4) + x/df1(5) + x/df1(6);
    }
    public static Long df3(Long x){                     
        return x/df1(7) + x/df1(8) + x/df1(9) + x/df1(10) + x/df1(11) + x/df1(12);
    }
    public static Long df4(Long x){                     
        return x/df1(13) + x/df1(14) + x/df1(15) + x/df1(16) + x/df1(17) + x/df1(18);
    }
    public static Long df5(Long x){                     
        if((x+1)%2==0) return (x+1)%2; 
        return df2(x/2)+df3(x/2)+df4(x/2);
    }
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Long a = sc.nextLong();
        Long b = df5(a);
		System.out.println(b);   
	}   
}



Compiler output:
Main.java:13: error: incompatible types: int cannot be converted to Long
        if(x==0) return x+1; 
                         ^
1 error
Language: Java

import java.util.*;  

public class Main {	
    public static Long gcd(Long x,Long y){
        if(x < y) return gcd(y, x);
        if(y == 0) return x;
        return gcd(y, x % y);
    }
    public static Long lcm(Long x,Long y){                                                              
        return x*y/gcd(x,y);                                                                                                                                                                                                                
    }
    public static Long df1(Long x){                                                              
        return x/5 + x/25 + x/125 + x/625 + x/3125 + x/15625;
    }
    public static Long df2(Long x){                     
        return x/78125 + x/390625 + x/1953125 + x/9765625 + x/48828125 + x/244140625;
    }
    public static Long df3(Long x){                     
        return x/1220703125 + x/6103515625 + x/30517578125 + x/152587890625 + x/762939453125 + x/3814697265625;
    }
    public static Long df4(Long x){                     
        if((x+1)%2==0) return (x+1)%2; 
        return df1(x/2)+df2(x/2)+df3(x/2);
    }
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Long a = sc.nextLong();
        Long b = df4(a);
		System.out.println(b);   
	}   
}



Compiler output:
Main.java:19: error: integer number too large
        return x/1220703125 + x/6103515625 + x/30517578125 + x/152587890625 + x/762939453125 + x/3814697265625;
                                ^
Main.java:19: error: integer number too large
        return x/1220703125 + x/6103515625 + x/30517578125 + x/152587890625 + x/762939453125 + x/3814697265625;
                                               ^
Main.java:19: error: integer number too large
        return x/1220703125 + x/6103515625 + x/30517578125 + x/152587890625 + x/762939453125 + x/3814697265625;
                                                               ^
Main.java:19: error: integer number too large
        return x/1220703125 + x/6103515625 + x/30517578125 + x/152587890625 + x/762939453125 + x/3814697265625;
                                                                                ^
Main.java:19: error: integer number too large
        return x/1220703125 + x/6103515625 + x/30517578125 + x/152587890625 + x/762939453125 + x/3814697265625;
                                                                                                 ^
5 errors
Language: C++

#include<bits/stdc++.h>
#define m 0x3f3f3f3f
using namespace std;
typedef long long ll;
const ll mod=1e9+7;
ll n;
int main()
{
    cin>>n;
    if(n%2){
        cout<<0;
    }
    else{
        n/=2;
        ll ans=0;
        while(a<=n){
            ans+=n/a;
            a*=5;
        }
        cout<<ans;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: 'a' was not declared in this scope
   16 |         while(a<=n){
      |               ^
Language: C++

#include<iostream>

using namespace std;

int main() {
  long long n;
  cin >> n;
  if (n % 2) {
    cout << 0 << '\n';
  else {
    long long c(10), x(0);
    while (n / c) {
      x += n / c;
      c *= 5;
    }
    cout << c << '\n';
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected '}' before 'else'
   10 |   else {
      |   ^~~~
a.cc:8:14: note: to match this '{'
    8 |   if (n % 2) {
      |              ^
Language: C++

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

int main() {
	long long n, ans = 0, f = 10;
	cin >> n;
	if (n % 2 == 0) {
		while (n >= f) {
			ans += (n / f);
			f *= 5;
		}
	}
	cout << ans << endl;
	return 0
}


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

#include <iostream>
typedef long long LL;

LL pow10[20];

int main() {
  LL N; std::cin >> N;
  if (N%2==0) {
    std::cout << 0 << std::endl;
    reutrn 0;
  }

  LL count = 0;
  LL div = 10;
  while (div < N) {
    count += N/div;
    div *= 5LL;
  }
  std::cout << count << std::endl;
}


Compiler output:
a.cc:4:4: warning: built-in function 'pow10' declared as non-function [-Wbuiltin-declaration-mismatch]
    4 | LL pow10[20];
      |    ^~~~~
a.cc: In function 'int main()':
a.cc:10:5: error: 'reutrn' was not declared in this scope
   10 |     reutrn 0;
      |     ^~~~~~
Language: C


#include<stdio.h>

void fanction(double n, long int *__CONCAT){
    int x = n;
    if(n < 2){
        return ;
    }else{
        while(x % 5 == 0){
            *cnt_f += 1;
            x /= 5;
        }
        return fanction(n - 2, cnt);
    }
}

int main(void){
    long int n, cnt = 0;
    scanf("%ld", &n);
    if(n % 2 == 1){
        printf("%d\n", 0);
        return 0;
    }

    fanction(n, &cnt);
    printf("ld\n", cnt);
    return 0;
}

Compiler output:
main.c: In function 'fanction':
main.c:10:14: error: 'cnt_f' undeclared (first use in this function)
   10 |             *cnt_f += 1;
      |              ^~~~~
main.c:10:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:32: error: 'cnt' undeclared (first use in this function); did you mean 'int'?
   13 |         return fanction(n - 2, cnt);
      |                                ^~~
      |                                int
main.c:13:16: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
   13 |         return fanction(n - 2, cnt);
      |                ^~~~~~~~
main.c:4:6: note: declared here
    4 | void fanction(double n, long int *__CONCAT){
      |      ^~~~~~~~
Language: C++

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

int main(){
	ll n;
	cin>>n;
	if(n%2==1) cout<<'0'<<'\n';
	else{
		cout<<n/10<<"\n";
	}
	cout<<re(n)<<endl;
	
	
	
	
	return 0;
}

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

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


int main(){
	ll n;
	cin>>n;
	if(n%2==1) cout<<'0'<<'\n';
	else{
		cout<<n/10<<"\n";
	}
	
	
	
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'll' was not declared in this scope
    6 |         ll n;
      |         ^~
a.cc:7:14: error: 'n' was not declared in this scope; did you mean 'yn'?
    7 |         cin>>n;
      |              ^
      |              yn
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

}
int main(){ 
ll n;
	cin>>n;
	n/=2;
	ll ans=0;
	while(n>0){
               	ans=ans+n/5;
		n/=5;
	}
	cout<<ans;
}

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

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

}
int main(){ 
ll n;
	cin>>n;
	n=func(n);
	n/=2;
	ll ans=0;
	while(n>0){
               	ans=ans+n/5;
		n/=5;
	}
	cout<<ans;
}

Compiler output:
a.cc:6:1: error: expected declaration before '}' token
    6 | }
      | ^
a.cc: In function 'int main()':
a.cc:10:11: error: 'func' was not declared in this scope
   10 |         n=func(n);
      |           ^~~~
Language: Java

import java.util.*;

public class DoubleFactorial {
    public static void main(String[] args){
        long N;
        Scanner sc = new Scanner(System.in);
        N = sc.nextLong();
        if (N % 2 == 1) System.out.print("0\n");
        else {
            long ans = 0;
            long a = 5;
            while (2*a <= N) {
                ans += N/(2*a);
                a *= 5;
            }
            System.out.println(ans);
        }
    }
}


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

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

int F(long long a,long long b) {
  long long x = 1;
  for (long long i = 0; i < b; i++) {
    x = x * a;
  }
  return x;
}
int main() {
  long long N;
  cin >> N;
  long long A = 0;
  if (N % 2 == 0) {
    for (long long i = 0; i < 24; i++) {
      A = A + N / F(5,i) * 10
    }
  cout << A << endl;
  }
  else {
    cout << 0 <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:30: error: expected ';' before '}' token
   17 |       A = A + N / F(5,i) * 10
      |                              ^
      |                              ;
   18 |     }
      |     ~
Language: C++

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

int F(long long a,long long b) {
  long long x = 1;
  for (long long i = 0; i < b; i++) {
    x = x * a;
  }
  return x;
}
int main() {
  long long N;
  cin >> N;
  long long A = 0;
  if (N % 2 == 0) {
    for (long long = 0; i < 24; i++) {
      A = A + N / F(5,i) * 10
    }
  cout << A << endl;
  }
  else {
    cout << 0 <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:20: error: expected unqualified-id before '=' token
   16 |     for (long long = 0; i < 24; i++) {
      |                    ^
a.cc:16:19: error: expected ';' before '=' token
   16 |     for (long long = 0; i < 24; i++) {
      |                   ^~
      |                   ;
a.cc:16:20: error: expected primary-expression before '=' token
   16 |     for (long long = 0; i < 24; i++) {
      |                    ^
a.cc:16:25: error: 'i' was not declared in this scope
   16 |     for (long long = 0; i < 24; i++) {
      |                         ^
a.cc:16:31: error: expected ')' before ';' token
   16 |     for (long long = 0; i < 24; i++) {
      |         ~                     ^
      |                               )
a.cc:16:33: error: 'i' was not declared in this scope
   16 |     for (long long = 0; i < 24; i++) {
      |                                 ^
Language: C++

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

/*
0 1 2 3 4 5 6 7 8 9

1
1
2*1
3*1
4*2*1
5*3*1
6*4*2*1
7*5*3*1

奇数は0
偶数は、(n/2)!の5の倍数
*/

ll b5(ll x){
    ll count=0;
    ll tmp = x;
    while(tmp>=5){
        tmp /= 5;
        count++;
    }
    ll ans = 0;
    rep(i,count){
        ans += x/(pow(5,i+1));
    }
    return ans;
}


void solve(){

    int n;
    cin >> n;
    ll ans=0;
    if(n%2==1){
        ans = 0;
    }
    else{
        ans = b5(n/2);
    }

    cout << asn << endl;
}

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


Compiler output:
a.cc: In function 'void solve()':
a.cc:52:13: error: 'asn' was not declared in this scope; did you mean 'ans'?
   52 |     cout << asn << endl;
      |             ^~~
      |             ans
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
int log5(int n){
int cnt=0;
while(n>0){n/=5;cnt++;}
return cnt;
}
int main(){
long long n;
cin>>n;
if(n%2==0)
{cout<<0<<endl;return;}

int log = log5(n);

long long ans=0;
for(int i=1;i<=log;i++){
ans+=N/(2*(long long)pow(5,i));
}
cout<< ans <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 | {cout<<0<<endl;return;}
      |                ^~~~~~
a.cc:19:6: error: 'N' was not declared in this scope
   19 | ans+=N/(2*(long long)pow(5,i));
      |      ^
Language: C++

#include <algorithm>
#include <iostream>
#include <vector>
#include <map>
#include <cstdio>
#include <string>
#include <cmath>
#include <queue>
#include <tuple>
#include <set>
#include <assert.h>
#include <sstream>
#include <string>
//#include <bits/stdc++.h>
#define maxs(x,y) x = max(x,y)
#define mins(x,y) x = min(x,y)
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define repr(i, n) for (int i = (n) - 1; i >= 0; i--)
#define FOR(i,i0,n) for(int (i)=(i0);(i)<(n);(i)++)
#define FORR(i,i0,n) for(int (i)=(n)-1; (i)>=(i0);(i)--)
#define SORT(x) sort(x.begin(),x.end())
#define SORTR(x) sort(x.begin(),x.end(),greater <>())
#define rn return
#define fi first
#define se second
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define mt make_tuple
using namespace std;
using ll = long long;
typedef std::pair<int,int> P;
 #include <boost/multiprecision/cpp_int.hpp>

using bint = boost::multiprecision::cpp_int;
 
 


int main(){
    bint n;
    cin >> n;
    if (n%2 == 1) {cout << 0; rn 0;}
    bint ans = 0;
    bint power = 1;
    while((bint)pow(5,power) <= n){
        ans += (n/(bint)pow(5,power))/2;
        power++;
    }
    cout << ans;
}






Compiler output:
a.cc:33:11: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
   33 |  #include <boost/multiprecision/cpp_int.hpp>
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define FOR(n) for(int i=0;i<n;i++)
#define long long ll
ll mob=1000000007;
int main()
{int f=0;
int n;int i=1;
  cin>>n;
  if(n%2!=0)
    cout<<0;
  else 
  {int k=n/2;
  while()
  { f+=k/pow(5,i);
    if(pow(5,i)>k)
      goto start;
    else i++;
  
  }
  
  
  }




start:


cout<<f;






return 0;}

Compiler output:
a.cc:5:1: error: 'll' does not name a type
    5 | ll mob=1000000007;
      | ^~
a.cc: In function 'int main()':
a.cc:14:9: error: expected primary-expression before ')' token
   14 |   while()
      |         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define FOR(n) for(int i=0;i<n;i++)
#define long long ll
ll mob=1000000007;
int main()
{int f=0;
int n;int i=1;
  cin>>n;
  if(n%2!=0)
    cout<<0;
  else 
  {int k=n/2;
  while()
  { f+=k/pow(5,i);
    if(pow(5,i)>k)
      goto start;
    else i++;
  
  }
  
  
  }







cout<<k;






return 0;}

Compiler output:
a.cc:5:1: error: 'll' does not name a type
    5 | ll mob=1000000007;
      | ^~
a.cc: In function 'int main()':
a.cc:14:9: error: expected primary-expression before ')' token
   14 |   while()
      |         ^
a.cc:31:7: error: 'k' was not declared in this scope
   31 | cout<<k;
      |       ^
a.cc:17:12: error: label 'start' used but not defined
   17 |       goto start;
      |            ^~~~~
Language: C++

int n;
    cin>>n;
    if(n&1) {cout<<0; return 0;}

    int ans = 0;
    int res = 10;

    while(n / res){
        ans += n/res;
        res *= 10;
    }

    int temp = 50;
    while(n / temp){
        res = temp;
        while(n / res){
            ans += ceil((double)(n/res)/2);
            res *= 10;
        }
        temp *= 5;
    }

    cout<<ans;

Compiler output:
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&1) {cout<<0; return 0;}
      |     ^~
a.cc:8:5: error: expected unqualified-id before 'while'
    8 |     while(n / res){
      |     ^~~~~
a.cc:14:5: error: expected unqualified-id before 'while'
   14 |     while(n / temp){
      |     ^~~~~
a.cc:23:5: error: 'cout' does not name a type
   23 |     cout<<ans;
      |     ^~~~
Language: C++

#include <iostream> 
using namespace std;
int fTl(int n) 
{ 

	int count = 0; 
	for (int i = 5; n / i >= 1; i *= 5) 
		count += n / i; 

	return count; 
} 

int main() 
{ 
	int n;
  cin>>n;
  fTl();
	cout <<count<<endl; 
	return 0; 
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:17:6: error: too few arguments to function 'int fTl(int)'
   17 |   fTl();
      |   ~~~^~
a.cc:3:5: note: declared here
    3 | int fTl(int n)
      |     ^~~
a.cc:18:16: error: 'count' was not declared in this scope
   18 |         cout <<count<<endl;
      |                ^~~~~
Language: C++

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

int main(){
  long long N,ans=0,t=1;
  cin>>N;
  
  if(N%2!=0){
    ans=0;
  }else{
    while(N!=0){
      ans+=N/5;
      N/=5
    }
  }
  cout<<ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: expected ';' before '}' token
   13 |       N/=5
      |           ^
      |           ;
   14 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define N 100000
using namespace std;
void fast()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
}
ll f(ll n)
{
    ll cnt=0;
    for(int i=10;n/i>=1;i*=5)
        cnt+=n/i;
    return cnt;
}
int main()
{
    fast();
    ll n;cin>>l;
    cout<<f(n);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:15: error: 'l' was not declared in this scope
   20 |     ll n;cin>>l;
      |               ^
Language: Java

import java.util.*;

public class Main{
  public static int func(int n){
    if(n*(n-1)==0){
      return 1;
    }else if(n>=2){
      func=n*func(n-2);
    }
  }
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    System.out.println(func(5));
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
      func=n*func(n-2);
      ^
  symbol:   variable func
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  long N;
  cin>>N;
  if(N%2==0){
  
  long k=N/2
  long s;
  while(N<5){
	s+=N/5;
  }
    cout<<s<<endl;
  }else cout<<0<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'long'
    9 |   long s;
      |   ^~~~
a.cc:11:9: error: 's' was not declared in this scope
   11 |         s+=N/5;
      |         ^
a.cc:13:11: error: 's' was not declared in this scope
   13 |     cout<<s<<endl;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  if(N%2==0){
  long N;
  cin>>N;
  long k=N/2
  long s;
  while(N<5){
	s+=N/5;
  }
    cout<<s<<endl;
  }else cout<<0<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:6: error: 'N' was not declared in this scope
    4 |   if(N%2==0){
      |      ^
a.cc:5:8: error: redeclaration of 'long int N'
    5 |   long N;
      |        ^
a.cc:4:6: note: '<typeprefixerror>N' previously declared here
    4 |   if(N%2==0){
      |      ^
a.cc:8:3: error: expected ',' or ';' before 'long'
    8 |   long s;
      |   ^~~~
a.cc:10:9: error: 's' was not declared in this scope
   10 |         s+=N/5;
      |         ^
a.cc:12:11: error: 's' was not declared in this scope
   12 |     cout<<s<<endl;
      |           ^
Language: C++

#include <bits/stdc++.h>
#define ALL(a) (a).begin(),(a).end()
#define N_MAX 1000
#define ll long long int
using namespace std;

int main() {
	ll N; cin >> N;

	ll cnt = 0;
	if (N & 1) cout << 0 << endl; return 0;
	else {
		for (ll i = 10; i < N; i *= 5) {
			cnt += floor(N / i);
		}
	}

	cout << cnt << endl;
}	

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

#include<iostream>
using namespace std;

int cal(int a, int b,int num){
  if(a % b != 0) return num;
  else{
    int val = 1;
    for (int i = 0, i < num + 1;i++) val = val*b;
    ++num;
    cal(a,val,num);
  }
}

int main(){
  int N;
  cin >> N;
  int start;
  if (N%2 == 1) start = 3;
  else start = 2;
  int val = 0;
  for(int i = start; i <= N; i = i + 2) val = val + cal(i,5,0);
  cout << val << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int cal(int, int, int)':
a.cc:8:22: error: expected ';' before '<' token
    8 |     for (int i = 0, i < num + 1;i++) val = val*b;
      |                      ^~
      |                      ;
a.cc:8:23: error: expected primary-expression before '<' token
    8 |     for (int i = 0, i < num + 1;i++) val = val*b;
      |                       ^
a.cc:10:8: warning: control reaches end of non-void function [-Wreturn-type]
   10 |     cal(a,val,num);
      |     ~~~^~~~~~~~~~~
Language: C

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

int main(void){
  char str[30];
  long int x,i,N,sum;
  
  fgets(str,sizeof(str),stdin);
  N=atol(str);
  
  if(N%2==1){
    printf("0");
  }else{
    N=N/2;
    sum=0;
    for(i=1;(long int)powl(5,i)<N;i++){
      x=(long int)powl(5,i);
      sum+=N/x;
    }
    printf("%ld\n",sum);
  }
  return 0;
}
    }
    

Compiler output:
main.c:26:5: error: expected identifier or '(' before '}' token
   26 |     }
      |     ^
Language: C

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

int main(void){
  char str[30];
  long int x,i,N,sum;
  
  fgets(str,sizeof(str),stdin);
  N=atol(str);
  
  if(N%2==1){
    printf("0");
  }else{
    N=N/2
    sum=0;
    for(i=1;(long int)powl(5,i)<N;i++){
      x=(long int)powl(5,i);
      sum+=N/x;
    }
    printf("%d\n",sum);
  }
  return 0;
}
    }
    

Compiler output:
main.c: In function 'main':
main.c:16:10: error: expected ';' before 'sum'
   16 |     N=N/2
      |          ^
      |          ;
   17 |     sum=0;
      |     ~~~   
main.c: At top level:
main.c:26:5: error: expected identifier or '(' before '}' token
   26 |     }
      |     ^
Language: Java

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		long num = sc.nextLong();
		if(num%2==1){
			System.out.println(0);
		}
		else {
			long sum=0;
			for (int i = 1; i <=30; i++) {
				sum += (long)(num/(2*Math.pow(5,i)));
			}
			System.out.println(sum);
		}
	}
}

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

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cctype>
#include <climits>
#include <string>
#include <bitset>
using namespace std;
typedef long double ld;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef vector<char> vc;
typedef vector<string> vs;
typedef vector<double> vd;
typedef vector<ll> vll;
typedef vector<pair<int,int> > vpii;
typedef vector<pair<string,int>> vpsi;
typedef vector<vector<int> > vvi;
typedef vector<vector<char> > vvc;
typedef vector<vector<string> > vvs;
typedef vector<vector<ll> > vvll;
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define fin(ans) cout<<(ans)<<endl
#define STI(s) atoi(s.c_str())
#define mp(p,q) make_pair(p,q)
#define pb(n) push_back(n)
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define Sort(a) sort(a.begin(),a.end())
#define Rort(a) sort(a.rbegin(),a.rend())
template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
const int P = 1000000007;
const int INF = INT_MAX;
const ll LLINF = 1LL<<60;

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

ll n;
cin >> n;
if(n%2==1){
    fin(0);
    return 0;
}
string N;
N = to_string(n);
int keta;
ll ans=0;
keta = N.length();
for(int i=keta-1;i>=0;++i){
    string temp;
    temp = keta[i];
    int temp2;
    temp2 = STI(temp);
    ans += temp2 * i;
}
fin(ans);

//////////////////////////////////////////////////////
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:63:16: error: invalid types 'int[int]' for array subscript
   63 |     temp = keta[i];
      |                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long int

int main(){
ios::sync_with_stdio(0);
  cin.tie(0);
  ll n,cnt=0;
  scanf("%lld",&n);
  if(N%2)
    cout<<0<<endl;
  else{
  ll i=1,quo,ans=0;
    while(10*i<=n)
    {
    quo=floor(n/(10*i));
      ans+=quo;
      i=i*5;
    }
    cout<<ans<<endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 'N' was not declared in this scope
   10 |   if(N%2)
      |      ^
Language: C++

#include<bits/stdc++.h>
using namespasce std;
#define ll long long int
ll recur(ll N)
{
  if(N==0 || N==1)
    return 1;
  return N*recur(N-2);
}
int main(){
ios::sync_with_stdio(0);
  cin.tie(0);
  ll n,cnt=0;
  scanf("%ld",&n);
  ll ans = recur(n);
  while(ans%10==0)
  {
    ++cnt;
    ans%=10;
  }
  printf("%ld\n",cnt);
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespasce'
    2 | using namespasce std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:1: error: 'ios' has not been declared
   11 | ios::sync_with_stdio(0);
      | ^~~
a.cc:12:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 |   cin.tie(0);
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include<iostream>
using namespace std;
int fact(int n);
int main()
{
  cout<<fact();
  return 0;
}  
int fact(int n)
{
  if n<2;
  return 1;
  else
    return n*fact(n-1);
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: too few arguments to function 'int fact(int)'
    6 |   cout<<fact();
      |         ~~~~^~
a.cc:3:5: note: declared here
    3 | int fact(int n);
      |     ^~~~
a.cc: In function 'int fact(int)':
a.cc:11:6: error: expected '(' before 'n'
   11 |   if n<2;
      |      ^
      |      (
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else
      |   ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int n;
  int f(int n)
  {
  if n<2;
  return 1;
  else
    return n*(n-1);
  }
  return 0;
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: a function-definition is not allowed here before '{' token
    7 |   {
      |   ^
Language: Java

import java.io.*;
public class Main {

    public static void main(String[] args) throws IOException {

	BufferedReader br=
            new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	double num =Integer.parseInt(str);
	if(num%2==1){
		System.out.println(0);
	}
	else {
		double sum=0;
		for (int i = 1; i <=30; i++) {
			sum += Math.floor((num/(Math.pow(5,i))));
		}
		System.out.println(sum);
	}
    }

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

#include<bits/stdc++.h>
using namespace std;
int n;
int main()
{
  cin>>n;
  if(n%2==1)
  {
    ciut<<'0'<<endl;
    return 0;
  }
  l=n/10;
  i=50;
    while(true)
    {
      if(a>i)
        l++;
        else
        break;
      i*=10;
    }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'ciut' was not declared in this scope
    9 |     ciut<<'0'<<endl;
      |     ^~~~
a.cc:12:3: error: 'l' was not declared in this scope
   12 |   l=n/10;
      |   ^
a.cc:13:3: error: 'i' was not declared in this scope
   13 |   i=50;
      |   ^
a.cc:16:10: error: 'a' was not declared in this scope
   16 |       if(a>i)
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
long long n,a;
cin>>n;
	if(n%2==0) {
   n/=2;
  while(n!=0) {
  a+=n/5;
   n/=5;
  }
    }
   cout<<a;
}
#include<bits/stdc++.h>
using namespace std;
int main() {
long long n,a;
cin>>n;
	if(n%2==0) {
   n/=2;
  while(n!=0) {
  a+=n/5;
   n/=5;
  }
    }
   cout<<a;
}


Compiler output:
a.cc:17:5: error: redefinition of 'int main()'
   17 | int main() {
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main() {
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
long long n,a;
cin>>n;
  if(a%2==1) cout<<0;
  else
  while(n!=0 {
  	n/=2;
    a+=n/5;
   n/=5;
  }
   cout<<a;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected ')' before '{' token
    8 |   while(n!=0 {
      |        ~    ^~
      |             )
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
long long n,a;
cin>>n;
  if(a%2==1) cout<<0;
  else
  while(n!=0 {
  	m/=2;
    a+=m/5;
    m/=5;
  }
        cout<<a;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected ')' before '{' token
    8 |   while(n!=0 {
      |        ~    ^~
      |             )
a.cc:9:9: error: 'm' was not declared in this scope
    9 |         m/=2;
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
long long n;
 
int main(){
	
  cin >> n;
  
  if (n % 2==1) cout << "0" << endl;
  else{
    int ans;
    
  	n/=2;
    
    while (n!=0){
    	ans+=n/10;
      	n=/10;
    }
    
    cout << ans << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: expected primary-expression before '/' token
   18 |         n=/10;
      |           ^
Language: C++

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

long long n;

int main(){
	
  cin >> n;
  
  if (n % 2==1) cout << "0" << endl;
  else{
  	n/=2;
    while (n!=0){
    	ans+=n/10;
      	n=/10;
    }
    
    cout << ans << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |         ans+=n/10;
      |         ^~~
      |         abs
a.cc:15:11: error: expected primary-expression before '/' token
   15 |         n=/10;
      |           ^
a.cc:18:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   18 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C

include<stdio.h>
int main(){
  int i,j,k,N,m,n;
  scanf("%d",&N);
  m=1;
  k=0;
  if(N%2==0){
  while(N>=2){
    m=N*m;
    N=N-2;
  }
  while(m%10==0){
    m=m/10;
    k=k+1;
    if(m<10){
      break;
    }
  }
  }
  else{
    k=k;
  }
  printf("%d",k);
  return 0;
}

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

#include<stdio.h>
#include<math.h>
int main(void)
{
  long int n,i,j,a,b,c,p,d;
  scanf("%ld",&n);
  if(n%2==1){
    printf("0\n");
  }
  a=0;
  if(n%2==0){
    b=n;
    p=1;
    while(p*10<=n){
      d=b-(b%(10*p));
      a=a+(d/(10*p));
      printf("%ld\t",a);
      p=p*5;
      #printf("%ld\n",p*10);
    }
  printf("%ld\n",a);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:8: error: invalid preprocessing directive #printf
   19 |       #printf("%ld\n",p*10);
      |        ^~~~~~
Language: C++

#include <ctime>
 
#include <iostream>
#include <algorithm>
 
using namespace std;
int main() {
    long long int n;
    cin>>n;
    if(n%2!=0)
        cout<<'0'<<endl;
    else if(n==0)
        cout<<'1'<<endl;
        
    else
    {
        long long int c=-1;
      long long int d=0,n1=n/2;
        long long int x=n/2;
       
        while(x>0)
        {
            x/=5;
            c++;
        }
       
    for(int i=1;i<=(c);i++)
    {
        d+=n1/(10*(long long int)pow(5,i));
        
    }
       cout<<d<<endl;
    }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:34: error: 'pow' was not declared in this scope
   29 |         d+=n1/(10*(long long int)pow(5,i));
      |                                  ^~~
Language: C++

#include<iostream>

using namespace std;

int main{
  long long int N;
  cin >> N;
  cout << ((N % 2 == 1) ? 0 : (N / 10));
}


Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main{
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'long'
    6 |   long long int N;
      |   ^~~~
a.cc:6:3: error: expected '}' before 'long'
a.cc:5:9: note: to match this '{'
    5 | int main{
      |         ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> N;
      |   ^~~
a.cc:8:3: error: 'cout' does not name a type
    8 |   cout << ((N % 2 == 1) ? 0 : (N / 10));
      |   ^~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  int n;
  cin>>n;
  int c=0;
  if(n%2==1);
  else{
    while(n%10!=0)
      n-=2;
    n/=2;
    int g = 5;
    while(n%g==0){
      c+=n/g;
      n/=g;
    }
    cout<<c;
    return 0;
  }
      

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

#include <iostream>
#include <cstdio>
using namespace std;
int main(void){
    long long n,c=0;
    cint >> n;
    long long d=10;
    
    if(n<2){
        c = 1;
    } else if(n%2==1){
        c = 0;
    } else {
        while(n >= d){
            c += n/d;
            d *= 5;
        }
    }
    
    cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cint' was not declared in this scope; did you mean 'uint'?
    6 |     cint >> n;
      |     ^~~~
      |     uint
Language: C++

#include <cstdio>
using namespace std;
int main(void){
    long long n,c=0;
    scanf("%lld",&n);
    long long d=10;
    
    if(n<2){
        c = 1;
    } else if(n%2==1){
        c = 0;
    } else {
        while(n >= d){
            c += n/d;
            d *= 5;
        }
    }
    
    cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout << c << endl;
      |     ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:19:18: error: 'endl' was not declared in this scope
   19 |     cout << c << endl;
      |                  ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <cstdio>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: Java

import java.io.*;
import java.util.*;

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

		long n = in.nextLong();

		if (n%2 == 1) [
			System.out.println(0);
		} else {
			long count = 0;
			for (long i=10; i<=100000000000000000L; i*=5)
				count += n/i;
			System.out.println(count);
		}
	}
}



Compiler output:
Main.java:10: error: illegal start of expression
		if (n%2 == 1) [
		              ^
Main.java:12: error: illegal start of type
		} else {
		  ^
Main.java:19: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

var cnt,n:qword;
begin
        readln(n);
        if n mod 2 <> 0 then begin
                writeln(0);
                exit;
        end else begin
                n := n div 2;
                while n>0 do begin
                cnt:=cnt+n div 5;
                n:=n div 5;
                end;
        end;
        writeln(cnt);
end.



Compiler output:
a.cc:1:1: error: 'var' does not name a type
    1 | var cnt,n:qword;
      | ^~~
a.cc:2:1: error: 'begin' does not name a type
    2 | begin
      | ^~~~~
a.cc:4:9: error: expected unqualified-id before 'if'
    4 |         if n mod 2 <> 0 then begin
      |         ^~
a.cc:6:17: error: 'exit' does not name a type
    6 |                 exit;
      |                 ^~~~
a.cc:1:1: note: 'exit' is defined in header '<cstdlib>'; this is probably fixable by adding '#include <cstdlib>'
  +++ |+#include <cstdlib>
    1 | var cnt,n:qword;
a.cc:7:9: error: 'end' does not name a type
    7 |         end else begin
      |         ^~~
a.cc:9:17: error: expected unqualified-id before 'while'
    9 |                 while n>0 do begin
      |                 ^~~~~
a.cc:11:17: error: 'n' does not name a type
   11 |                 n:=n div 5;
      |                 ^
a.cc:12:17: error: 'end' does not name a type
   12 |                 end;
      |                 ^~~
a.cc:13:9: error: 'end' does not name a type
   13 |         end;
      |         ^~~
a.cc:14:16: error: expected constructor, destructor, or type conversion before '(' token
   14 |         writeln(cnt);
      |                ^
a.cc:15:1: error: 'end' does not name a type
   15 | end.
      | ^~~
Language: C++

var n:longint;
begin
        readln(n); 
        if n mod 2 <> 0 then writeln(0) else writeln(n div 10);
end.

Compiler output:
a.cc:1:1: error: 'var' does not name a type
    1 | var n:longint;
      | ^~~
a.cc:2:1: error: 'begin' does not name a type
    2 | begin
      | ^~~~~
a.cc:4:9: error: expected unqualified-id before 'if'
    4 |         if n mod 2 <> 0 then writeln(0) else writeln(n div 10);
      |         ^~
a.cc:5:1: error: 'end' does not name a type
    5 | end.
      | ^~~
Language: C++

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

int main(){
    long N;
    cin >> N;
    
    if(N%2 == 1){
        cout << ans << "\n";
        return 0;
    }
    long ans= 0;
    N= N/2;
    while(N>5){
        ans += N/5;
        N = N/5;
    }
    cout << ans << "\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |         cout << ans << "\n";
      |                 ^~~
      |                 abs
Language: C++

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


int main(){
    long N;
    cin >> N;
    
    if(N%2 == 1){
        out << ans << "\n";
        return 0;
    }
    long ans= 0;
    N= N/2;
    while(N>5){
        ans += N/5;
        N = N/5;
    }
    cout << ans << "\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'out' was not declared in this scope
   10 |         out << ans << "\n";
      |         ^~~
a.cc:10:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |         out << ans << "\n";
      |                ^~~
      |                abs