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

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

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

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) for(int i=0;i<(n);++i)
#define REPR(i,n) for(int i=n;i>=0;i--)
#define ALL(v) (v.begin(),v.end())
#define COUT(x) cout<<(x)<<endl

int main(){
    int n;
    cin >> n;
    FOR(i,1,46296){
        if(i*1.08==n)break;
    }
    COUT(i);
    return 0;
}    


Compiler output:
a.cc: In function 'int main()':
a.cc:21:10: error: 'i' was not declared in this scope
   21 |     COUT(i);
      |          ^
a.cc:13:24: note: in definition of macro 'COUT'
   13 | #define COUT(x) cout<<(x)<<endl
      |                        ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef pair<ll, ll> pii;
const ll inf = 1e18 + 5;
typedef pair<int, bool> pib;

int main() {
    int n; cin >> n;
    int answer = -1;
    for (int i = 1; i <=n; i++){
        if (i * 1.08 == n){
            answer = i;
        }
    }
    cout << i;
}



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

#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
using namespace std;
int main() {
	double n;
	cin >> n;
	rep(i, 50000) {
		if (floor(i*1.08) == n) {
			cout << i << endl;
			return 0;
		}
	}
	cout << ":(" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: 'floor' was not declared in this scope
   11 |                 if (floor(i*1.08) == n) {
      |                     ^~~~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
using namespace std;
int main() {
	int n;
	cin >> n;
	rep(i, 50000) {
		if (floor(i*1.08) == n) {
			cout << i << endl;
			return 0;
		}
	}
	cout << ":(" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: 'floor' was not declared in this scope
   11 |                 if (floor(i*1.08) == n) {
      |                     ^~~~~
Language: C++

#include <algorithm>
#include <iostream>
#include <vector>
#include <cmath>

using namespace std;

typedef long long ll;

template<class T>
inline bool chmax(T &a, T b) {
    if(a < b) {
        a = b;
        return true;
    }
    return false;
}

template<class T>
inline bool chmin(T &a, T b) {
    if(a > b) {
        a = b;
        return true;
    }
    return false;
}

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

    int x = (int) ceil(double(N) / double(1.08));

    if (int(double(1.08) * double(x)) == N) {
        cout << x << endl;
    } else {
        cout << ":("; << endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:23: error: expected primary-expression before '<<' token
   37 |         cout << ":("; << endl;
      |                       ^~
Language: C++

//By: Luogu@rui_er(122461)#include <bits/stdc++.h>
using namespace std;
int main() {
	double n;string s;
	cin>>n;
	s=to_string(int(ceil(n/1.08)));
	cout<<((floor(ceil(n/1.08)*1.08)==n)?s:":(")<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:18: error: 'string' was not declared in this scope
    4 |         double n;string s;
      |                  ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | //By: Luogu@rui_er(122461)#include <bits/stdc++.h>
a.cc:5:9: 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 | //By: Luogu@rui_er(122461)#include <bits/stdc++.h>
a.cc:6:9: error: 's' was not declared in this scope
    6 |         s=to_string(int(ceil(n/1.08)));
      |         ^
a.cc:6:25: error: 'ceil' was not declared in this scope
    6 |         s=to_string(int(ceil(n/1.08)));
      |                         ^~~~
a.cc:6:11: error: 'to_string' was not declared in this scope
    6 |         s=to_string(int(ceil(n/1.08)));
      |           ^~~~~~~~~
a.cc:6:11: note: 'std::to_string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout<<((floor(ceil(n/1.08)*1.08)==n)?s:":(")<<endl;
      |         ^~~~
a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:17: error: 'floor' was not declared in this scope
    7 |         cout<<((floor(ceil(n/1.08)*1.08)==n)?s:":(")<<endl;
      |                 ^~~~~
a.cc:7:55: error: 'endl' was not declared in this scope
    7 |         cout<<((floor(ceil(n/1.08)*1.08)==n)?s:":(")<<endl;
      |                                                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | //By: Luogu@rui_er(122461)#include <bits/stdc++.h>
Language: C++

a = int(input())
if a/1.08 == int(a/1.08):
    print(int(a/1.08))
else:
    print(':(')

Compiler output:
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print(':(')
      |           ^~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a = int(input())
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#include<boost/multiprecision/cpp_int.hpp>
using namespace boost::multiprecision;
int main(void){
  int N;
  cin>>N;
  int ans1=N/1.08;
  int ans2=ans+1;
  if((int)(ans1*1.08)==N)cout<<ans1<<endl;
  else if((int)(ans2*1.08)==N)cout<<ans2<<endl;
  else cout<<":("<<endl;
  return 0;
}


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

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

int main() {
  int N;
  cin >> N;
  for (int i = 0, i < N; i++) {
    if (i*1.08 == N) {
      cout << i << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before '<' token
    7 |   for (int i = 0, i < N; i++) {
      |                    ^~
      |                    ;
a.cc:7:21: error: expected primary-expression before '<' token
    7 |   for (int i = 0, i < N; i++) {
      |                     ^
Language: C

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

int main(){
  int n;
  double x,n_double;
  
  scanf("%d",&n);
  
  x=n/1.08;
  n_double=floor(floor(x)*1.08);
  if((double)n==n_double){
    printf("%d",(int)floor(x));
    exit(0);
  }

  n_double=floor(ceil(x)*1.08);
  if((double)n==n_double){
    printf("%d",(int)ceil(x));
    exit(0)
  }
  
  printf(":(");
}

Compiler output:
main.c: In function 'main':
main.c:14:5: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   14 |     exit(0);
      |     ^~~~
main.c:3:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
    2 | #include <math.h>
  +++ |+#include <stdlib.h>
    3 | 
main.c:14:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   14 |     exit(0);
      |     ^~~~
main.c:14:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:20:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   20 |     exit(0)
      |     ^~~~
main.c:20:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:20:12: error: expected ';' before '}' token
   20 |     exit(0)
      |            ^
      |            ;
   21 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
#include <string>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <numeric>
using namespace std;

int abs(int num){
   if (num > 0)
      return num;
   else
      return -num;
}

int main(){
    int N;
    cin >> N;
    int P = N;
    bool ok = false;
    if((N*100)%108 == 0){
        cout << N / 1.08 << endl;
      	ok = true;
    }
    else{
        N = N / 1.08;
        int a = N;

        for(int i = 0;i<2;i++){
            int b = (a+i)*1.08;
            if(b==P){
                ok = 1;
            }
            if(ok == 1){
                int ans = a+i;
                cout << ans << endl;
                break;
            }
        }
    }

    
    if (ok == 0){
        cout << ":(" << endl;
    }

    
}

}

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

#include <stdio.h>
#include <string.h>
int main(void){
int count;
int n;
scanf("%d",&n);
count=0
for(;;count++){
if((int)(count*1.08)==n){printf("%d\n",count);break;}
else if((int)(count*1.08)>n){printf(":(\n");break;}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:8: error: expected ';' before 'for'
    7 | count=0
      |        ^
      |        ;
    8 | for(;;count++){
      | ~~~
Language: Java

import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
 
   int N = sc.nextInt();
 
   boolean flg = false;
   int ans = 0;
   for(int i=1;i<46300;i++)
   {
     if(i*1.08==N)
     {
       ans=i;
       flg=true;
       break;
     }
   }
   if(flg) System.out.println(ans);
   else System.out.println(":(")
 }
}

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

#include <iostream>
using namespace std;
int main(){
     int a,c
     double b=1.08;
  cin>>a;
  if(a<1050)
    cout<<c*b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected initializer before 'double'
    5 |      double b=1.08;
      |      ^~~~~~
a.cc:8:11: error: 'c' was not declared in this scope
    8 |     cout<<c*b;
      |           ^
a.cc:8:13: error: 'b' was not declared in this scope
    8 |     cout<<c*b;
      |             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,x;
  cin>>n;
  x=round(n/1.08);
  for(int i=1;i<=x;i++)
  {
  if(x>=n/1.08 && x<(n+1)/1/.08)
    cout<<x;
  else 
    cout<<":("
  }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: expected ';' before '}' token
   13 |     cout<<":("
      |               ^
      |               ;
   14 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,x;
  cin>>n;
  x=round(n/1.08);
  if(x>=n/1.08 && x<(n+1)/1/.08)
    cout<<x;
  else 
    cout<<":("
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: expected ';' before 'return'
   11 |     cout<<":("
      |               ^
      |               ;
   12 |     return 0;
      |     ~~~~~~
Language: C

#include<stdio.h>
int main (void)
{
  int a；
  double b;
  
  scanf("%d",&a);
  b=100*a/108;
  
  if(ceil(b)!=floor(b))
    printf(":(");
  else
    printf("%d",b);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:10: error: expected ';' before 'double'
    4 |   int a；
      |          ^
      |          ;
    5 |   double b;
      |   ~~~~~~  
main.c:7:15: error: 'a' undeclared (first use in this function)
    7 |   scanf("%d",&a);
      |               ^
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:6: error: implicit declaration of function 'ceil' [-Wimplicit-function-declaration]
   10 |   if(ceil(b)!=floor(b))
      |      ^~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'ceil'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | int main (void)
main.c:10:6: warning: incompatible implicit declaration of built-in function 'ceil' [-Wbuiltin-declaration-mismatch]
   10 |   if(ceil(b)!=floor(b))
      |      ^~~~
main.c:10:6: note: include '<math.h>' or provide a declaration of 'ceil'
main.c:10:15: error: implicit declaration of function 'floor' [-Wimplicit-function-declaration]
   10 |   if(ceil(b)!=floor(b))
      |               ^~~~~
main.c:10:15: note: include '<math.h>' or provide a declaration of 'floor'
main.c:10:15: warning: incompatible implicit declaration of built-in function 'floor' [-Wbuiltin-declaration-mismatch]
main.c:10:15: note: include '<math.h>' or provide a declaration of 'floor'
Language: Java

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

public class TaxRate {

    private static final String FAILED_FACE = ":(";

    public static void main(String[] args) {
        try (InputStreamReader isr = new InputStreamReader(System.in);
             BufferedReader br = new BufferedReader(isr)) {

            int n = Integer.valueOf(br.readLine());

            float noTax = (float) n / 1.08f;

            final int rndDown = ((int) noTax);

            if (n == (int) (rndDown * 1.08f))
                System.out.println(rndDown);
            else if (n == (int) ((rndDown - 1) * 1.08f))
                System.out.println(rndDown);
            else if (n == (int) ((rndDown + 1) * 1.08f))
                System.out.println(rndDown);
            else
                System.out.println(FAILED_FACE);

        } catch(IOException e) {
            e.printStackTrace();
            return;
        }
    }
}

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

#include<iostream>
#include<string>

using namespace std;

int main() {
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	int N;
	cin >> N;
	for (int i = 1; i <= N; i++){
		if (floor(i * 1.08) == N) {
			cout << i << endl;
			return 0;
		}
	}
	cout << ":(" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: 'floor' was not declared in this scope
   12 |                 if (floor(i * 1.08) == N) {
      |                     ^~~~~
Language: C++


#include<iostream>
#include<cmath>
#include<complex>
#include<cstdlib>
#include<algorithm>
#include<functional>
#include<limits.h>
using namespace std;
int main(void){
  int d1,d2,m1,m2;
  cin>>m1;
  if((float)(m1/1.08)>(int)(m1/1.08)){
cout<<m1/1.08;
  }else if(int(((int)(m1/1.08))*1.08)==m1){
cout<<m1/1.08<<endl;
  }else if(((int)(m1/1.08+1))==m1){
cout<<m1/1.08+1<<endl;
  }else{
cout<<":("<<endl;
return 0;
  
}

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

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

int main(){
	double a;
	cin>>a;
	if(a%27 == 26 || a%27 == 1){
		cout<<":(";
		return 0 ;
	}
	for(double i=0;i<=a;i++){
		if(int(i*1.08) == a){
			cout<<i;
			return 0;
		}
  		
	}
	cout<<":(";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 |         if(a%27 == 26 || a%27 == 1){
      |            ~^~~
      |            | |
      |            | int
      |            double
a.cc:9:27: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    9 |         if(a%27 == 26 || a%27 == 1){
      |                          ~^~~
      |                          | |
      |                          | int
      |                          double
Language: C++

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

int main(){
	int a;
	cin>>a;
	if(a%27 == 0)
	cout<<a*25/27;
	else
	cout<<":("
	

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: expected ';' before 'return'
   12 |         cout<<":("
      |                   ^
      |                   ;
......
   15 |         return 0;
      |         ~~~~~~
Language: Java

import java.util.*;

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

    double b = a/1.08;
    double c = (a+1)/1.08;
    int d = (int)c;

    if(d*1.08 == a){
      System.out.println(e);        
    }

    else{
      System.out.println(":(");
    }
  }
}

Compiler output:
Main.java:15: error: cannot find symbol
      System.out.println(e);        
                         ^
  symbol:   variable e
  location: class Main
1 error
Language: C++

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

signed main(void){
    int n; cin >> n;
    for(int i=0;i<n;i++){
        int tmp = int(i*1.08);
        if(tmp == n){
            cout << i << endl;
            return 0;
        }
    }
    cout << ":("<< endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:13: error: expected primary-expression before 'long'
    3 | #define int long long
      |             ^~~~
a.cc:8:19: note: in expansion of macro 'int'
    8 |         int tmp = int(i*1.08);
      |                   ^~~
Language: C++

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

int main() {
	double n;
	cin>>n;
	int x=(int)((n*100/108)+0.5);
	// cout<<(int)(x*1.08);
	if((int)(x*1.08)!=n)a
		cout<<":("<<endl;
	else
		cout<<x<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: 'a' was not declared in this scope
    9 |         if((int)(x*1.08)!=n)a
      |                             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for (int i=(a);i<(b);++i)
#define REP(i,n) for (int i=0;i<(n);++i)
#define all(a) (a).begin(),(a).end()
#define MOD 1000000007
int main(){  
  int x,n;
    cin>>n;
    x=(n/1.08)+1;
    while(x*1.08<=n) x++;
    if((x-1)*1.08)==n) cout<<x-1<<endl;
    else cout<<":("<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: expected primary-expression before '==' token
   12 |     if((x-1)*1.08)==n) cout<<x-1<<endl;
      |                   ^~
Language: C++

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

#define ll long long
#define mod 1000000007
#define pll pair<long long,long long>
#define pdd pair<long double,long double>
#define vll vector<ll>
#define rep(i,n) for(int i=0;i<n;i++)
#define mp make_pair
#define pb push_back
#define pf push_front
priority_queue<pll,vector<pll>,greater<pll> >pq;
priority_queue<ll,vector<ll>,greater<ll> >pq1;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    double n,m,t,p;
    cin>>n;
    ll x=n/1.08;
    if(floor(x*1.08)==n){
        cout<<x;
    }
    else if(floor((x+1)*1.08)==n){
        cout<<x;
    }
    else if(floor((x-1)*1.08)==n){
        cout<<x;
    }
    else{
        cout<<":("1;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:19: error: expected ';' before numeric constant
   33 |         cout<<":("1;
      |                   ^
      |                   ;
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		// 出力
      	double b = Math.ceil((double)a/1.08)
      	if(Math.floor(b*1.08)==(double)a){
			System.out.println(b);    
        }else{
			System.out.println(":(");
        }
	}
}

Compiler output:
Main.java:8: error: ';' expected
      	double b = Math.ceil((double)a/1.08)
      	                                    ^
1 error
Language: C

#include<stdio.h>
 
int main(){
	int N;
  	double N2;
  	char line[10];
  	fgets(line,sizeof(line),stdin);
    sscanf(line,"%d",&N);
  
  	N2=N/1.08;
	N2=N2*1.08;
  	if(N==int(N2))printf("%d",N2);
  	else printf(":(");
}

Compiler output:
main.c: In function 'main':
main.c:12:15: error: expected expression before 'int'
   12 |         if(N==int(N2))printf("%d",N2);
      |               ^~~
Language: C

#include<stdio.h>
int main(){
  int a,b;
  int i=1;
  scanf("%d",&a);
  if(a==1){
    printf(":(");
  }else{
    while(i){
       b=(int)(i*1.08);
          if(b==a){
            i==0;
          }
    }
  return 0;
}
  


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

#include<stdio.h>
int main(){
  float a;
  scanf("%d",&a);
  if(a/1.08<1.0000){
    printf(":(");
  }else if((a/1.08)%1.00==0){
    printf("%d\n",a/1.08);
  }else{
    printf("%d\n",(a/1.08)+1);
  }
  return 0;
}
  
  

Compiler output:
main.c: In function 'main':
main.c:7:20: error: invalid operands to binary % (have 'double' and 'double')
    7 |   }else if((a/1.08)%1.00==0){
      |            ~~~~~~~~^
      |              |
      |              double
Language: C

#include<stdio.h>
int main(){
  float a;
  scanf("%d",&a);
  if(a/1.08<1.0000){
    printf(":(");
  }else if((a/1.08)%1==0){
    printf("%d\n",a/1.08);
  }else{
    printf("%d\n",(a/1.08)+1);
  }
  return 0;
}
  
  

Compiler output:
main.c: In function 'main':
main.c:7:20: error: invalid operands to binary % (have 'double' and 'int')
    7 |   }else if((a/1.08)%1==0){
      |            ~~~~~~~~^
      |              |
      |              double
Language: C

#include<stdio.h>
int main(){
  float a;
  scanf("%d",&a);
  if(a/1.08<1.0000){
    printf(":(");
  }else if(a%1.08==0){
    printf("%d\n",a/1.08);
  }else{
    printf("%d\n",(a/1.08)+1);
  }
  return 0;
}
  
  

Compiler output:
main.c: In function 'main':
main.c:7:13: error: invalid operands to binary % (have 'float' and 'double')
    7 |   }else if(a%1.08==0){
      |             ^
Language: C

#include<stdio.h>
int main(){
  float a;
  scanf("%d",&a);
  if(a/1.08<1.0000){
    printf(":(");
  }else if(a/1.08%==0){
    printf("%d\n",a/1.08);
  }else{
    printf("%d\n",(a/1.08)+1);
  }
  return 0;
}
  
  

Compiler output:
main.c: In function 'main':
main.c:7:20: error: expected expression before '=' token
    7 |   }else if(a/1.08%==0){
      |                    ^
Language: C

#include<stdio.h>
int main(){
  float a;
  scanf("%d",&a);
  if(a/1.08<1.0000){
    printf(":(");
  }else if(a/1.08%){
    printf("%d\n",a/1.08);
  }else{
    printf("%d\n",(a/1.08)+1);
  }
  return 0;
}
  
  

Compiler output:
main.c: In function 'main':
main.c:7:19: error: expected expression before ')' token
    7 |   }else if(a/1.08%){
      |                   ^
Language: C

#include<stdio.h>
int main(){
  float a;
  scanf("%d",&a);
  if(a/1.08<1.0000){
    printf(":(");
  }else if(a/1.08%){
    printf("%d\n",a/1.08);
  }else{
    printf("%d\n",(a/1.08)+1);
  return 0;
}
  
  

Compiler output:
main.c: In function 'main':
main.c:7:19: error: expected expression before ')' token
    7 |   }else if(a/1.08%){
      |                   ^
main.c:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int getInt(double x)
{
    double y = x * 100;
    int rez = (int)y / 100;

    return rez;
}

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

    int rez = getInt(n / 1.08D);
    int r2 = getInt(rez * 1.08D)

    if(r2 == n)
        cout << rez << "\n";

    else
        cout << ":(\n";

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: expected ',' or ';' before 'if'
   21 |     if(r2 == n)
      |     ^~
a.cc:24:5: error: 'else' without a previous 'if'
   24 |     else
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const double X=1e-9
const ll INF = 1e18;
const int INT_INF = 1e9;
const ll MOD = 1e9 + 7;
const int INT_MOD=1e9+7;
#define rep(i, N) for(int i = 0; i < N; i++)
#define REP(i, n) for(int i = 0; i <= n; i++)
#define rrep(i,n) for(int i=n;i>0;i--)
#define RREP(i,n) for(int i=n;i>=0;i--)
typedef pair<int, int> Pi;
typedef pair<double, double> P;
signed main(){
    double n;cin>>n;
    if(n%1.08<X) cout<<(int)n/1.08<<endl;
    else cout<<":("<<endl;
    return 0;
}

Compiler output:
a.cc:5:1: error: expected ',' or ';' before 'const'
    5 | const ll INF = 1e18;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:17:9: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   17 |     if(n%1.08<X) cout<<(int)n/1.08<<endl;
      |        ~^~~~~
      |        | |
      |        | double
      |        double
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const double X=1e-9
const ll INF = 1e18;
const int INT_INF = 1e9;
const ll MOD = 1e9 + 7;
const int INT_MOD=1e9+7;
#define rep(i, N) for(int i = 0; i < N; i++)
#define REP(i, n) for(int i = 0; i <= n; i++)
#define rrep(i,n) for(int i=n;i>0;i--)
#define RREP(i,n) for(int i=n;i>=0;i--)
typedef pair<int, int> Pi;
typedef pair<double, double> P;
signed main(){
    double n;cin>>n;
    if(n%1.08<X) cout<<(int)n/1.08<,endl;
    else cout<<":("<<endl;
    return 0;
}

Compiler output:
a.cc:5:1: error: expected ',' or ';' before 'const'
    5 | const ll INF = 1e18;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:17:9: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   17 |     if(n%1.08<X) cout<<(int)n/1.08<,endl;
      |        ~^~~~~
      |        | |
      |        | double
      |        double
a.cc:17:36: error: expected primary-expression before ',' token
   17 |     if(n%1.08<X) cout<<(int)n/1.08<,endl;
      |                                    ^
Language: C++

#include <iostream>
#include <string>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <queue>
#include <stack>
#include <functional>

using namespace std;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef pair<ll,ll> P;
typedef vector<P> vpl;
#define rep(i,n) for(ll i=0; i<(n); i++)
#define REP(i,a,b) for(ll i=(a); i<(b); i++)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
const int inf = 1<<30;
const ll linf = 1LL<<62;
const int mod = 1e9+7;
const int MAX = 510000;
const int V = 100005;
ll dy[8] = {1,0,-1,0,1,-1,1,-1};
ll dx[8] = {0,1,0,-1,1,-1,-1,1};
const double pi = acos(-1);
template<typename T1,typename T2> inline void chmin(T1 &a,T2 b){if(a>b) a=b;}
template<typename T1,typename T2> inline void chmax(T1 &a,T2 b){if(a<b) a=b;}
template<typename T1,typename T2> inline void print2(T1 a, T2 b){cout << a << " " << b << endl;}
#define INT_MAX 1e9+7

int main(){
    ll n; cin >> n;
    rep(i,50000){
        ll y = (double)i * 1.08;
        if(y==n){
            cout << i << endl;
            return 0;
        }
    }
    puts(":(")
}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:15: error: expected ';' before '}' token
   45 |     puts(":(")
      |               ^
      |               ;
   46 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
int main(){
  int N;
  cin >> N;
　rep(i.N+1){
  int M;
   X = N*1.08;
   if ( X == N ){
     cout << i << endl;
   }
 }
}

Compiler output:
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　rep(i.N+1){
      | ^
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 | 　rep(i.N+1){
      |       ^
a.cc:7:1: error: '\U00003000rep' was not declared in this scope
    7 | 　rep(i.N+1){
      | ^~~~~
Language: C++

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

int main(){
  int N;
  cin >> N ;
  
  for (int i=0;i<=N;i++){
    if (i*1.08 == N){
      cout << i << endl;
      break;
    }
    else if(i==N){
      cout << ":(" << endl;
    }
    

}

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

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

static const int MAX_VALUE (50000)

int main()
{
  int N;
  cin >> N;
  
  int table[MAX_VALUE + 1];
  for (int i = 1; i <= MAX_VALUE; i++)
  {
    table[i] = floor(i*1.08);
  }
  
  for (int i = 1; i <= MAX_VALUE; i++)
  {
    if (table[i] == N)
    {
      cout << i << endl;
      return 0;
    }
  }
  
  cout << ":(" << endl;
  
  return 0;
}

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

#include <iostream>
int main(void){
  int n;
  std::cin >> n;
  for(int i = n/2; i < n; i++){
  	if( static_cast<int>(i*1.08) == n){
      std::cout << i << std::endl;
    	return 1;
    }
  }
  std::cout << ":(" std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before 'std'
   11 |   std::cout << ":(" std::endl;
      |                    ^~~~
      |                    ;
Language: C++

#include <iostream>
int main(void){
  int n;
  std::cin >> n;
  for(int i = n/2; i < n; i++){
  	if( static_cast<int>(i*1.08) == n){
      std::cout << i << std::endl;
    	return 1;
    }
  }
  std::cout << ":("
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before '}' token
   11 |   std::cout << ":("
      |                    ^
      |                    ;
   12 | }
      | ~
Language: C++

#include <iostream>
int main(void){
  int n;
  std::cin >> n;
  for(int i = n/2; i < n; i++){
  	if( static_cast<int>(i*1.08) == n){
      std::cout << i << std::endl;
    	return1;
    }
  }
  std::cout << ":("
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'return1' was not declared in this scope
    8 |         return1;
      |         ^~~~~~~
a.cc:11:20: error: expected ';' before '}' token
   11 |   std::cout << ":("
      |                    ^
      |                    ;
   12 | }
      | ~
Language: C++

#include <iostream>
int main(void){
  int n;
  std::cin >> n;
  for(int i = n/2; i < n; i++){
  	if( static_cast<int>(i*1.08) == n){
      std::cout << i << std::endl;
    	return;
    }
  }
  std::cout << ":("
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
    8 |         return;
      |         ^~~~~~
a.cc:11:20: error: expected ';' before '}' token
   11 |   std::cout << ":("
      |                    ^
      |                    ;
   12 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int n;
  	cin >> n;
  
  	int x = floor(n/1.08);
  	int y = ceil(n/1.08)
  	int z = floor(x * 1.08);
  	int w = floor(y * 1.08);
  	if( z == n || w == n) {
    	cout << x;
    }else{
    	cout << ":(";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ',' or ';' before 'int'
   10 |         int z = floor(x * 1.08);
      |         ^~~
a.cc:12:13: error: 'z' was not declared in this scope
   12 |         if( z == n || w == n) {
      |             ^
Language: C++

#include <bits/stdc++.h>
#define all(v) (v).begin(), (v).end()
typedef long long int lint;
using namespace std;

int main() {
    int n;
    cin >> n;
    for (int i = 0; i < x; i++) {
        if (i * 108 / 100 == n) {
            cout << i << endl;
            return 0;
        }
    }
    cout << ":(" << endl;
    return 0;
}

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

#include<iostream>
using namespace std;
int main() {
	int a,i;
	cin >> a;
	for ( i = 0; i < a; i++) {
		if (i * 1.08%1 == a)break;
	}
	if (i == a)cout << ":(" << endl;
	else cout << i << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: invalid operands of types 'double' and 'int' to binary 'operator%'
    7 |                 if (i * 1.08%1 == a)break;
      |                     ~~~~~~~~^~
      |                       |      |
      |                       double int
Language: C++

#include<iostream>
using namespace std;
int main() {
	int a;
	cin >> a;
	for (int i = a - 10; i < a; i++) {
		if (i * 100 / 108 == a)break;
	}
	if (i = a - 1)cout << ":(" << endl;
	else cout << i << endl;
	return 0;
}

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

#include<iostream>
using namespace std;
int main() {
	int a;
	cin >> a;
	for (int i = a - 10; i < a; i++) {
		if (i * 100 / 108 = a)break;
	}
	cout << i << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: lvalue required as left operand of assignment
    7 |                 if (i * 100 / 108 = a)break;
      |                     ~~~~~~~~^~~~~
a.cc:9:17: error: 'i' was not declared in this scope
    9 |         cout << i << endl;
      |                 ^
Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    
    for(int i=0;i<=50000;i++){
      double X=i*1.08;
    }
    if(N==X){
      System.out.println("N");
    }else{
      System.out.println(":(");
    }
  }
}


Compiler output:
Main.java:11: error: cannot find symbol
    if(N==X){
          ^
  symbol:   variable X
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    
    for(int i=0;i<=50000;i++){
      double X=i*1.08;
    }
    if(N==(int)X){
      System.out.println("N");
    }else{
      System.out.println(":(");
    }
  }
}


Compiler output:
Main.java:11: error: cannot find symbol
    if(N==(int)X){
               ^
  symbol:   variable X
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    
    for(int 1=0;i<=50000;i++){
      double X=i*1.08;
    }
    if(N==(int)X){
      System.out.println("N");
    }else{
      System.out.println(":(");
    }
  }
}


Compiler output:
Main.java:8: error: not a statement
    for(int 1=0;i<=50000;i++){
        ^
Main.java:8: error: ';' expected
    for(int 1=0;i<=50000;i++){
           ^
Main.java:8: error: not a statement
    for(int 1=0;i<=50000;i++){
                 ^
Main.java:8: error: ')' expected
    for(int 1=0;i<=50000;i++){
                        ^
Main.java:8: error: ';' expected
    for(int 1=0;i<=50000;i++){
                            ^
5 errors
Language: C++

#include<iostream>
using namespace std;
int main(){
  double a;
  int k=0;
  cin >>a;
  for(int i=0;i<1000000;i++){
    if(a==i*1.08)k=1;
  }
  int s=a;
  if(k=2)cout << s/1.08;
  else if(k=1) cout <<s/1.08+1;
  else cout <<:(;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: expected primary-expression before ':' token
   13 |   else cout <<:(;
      |               ^
Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    
    for(int i=0;i<=50000;i++){
      double X=i*1.08;
    }
    if(N=(int)X){
      System.out.println("N");
    }else{
      System.out.println(":(");
    }
  }
}


Compiler output:
Main.java:11: error: cannot find symbol
    if(N=(int)X){
              ^
  symbol:   variable X
  location: class Main
Main.java:11: error: incompatible types: int cannot be converted to boolean
    if(N=(int)X){
        ^
2 errors
Language: C++

#include<iostream>
using namespace std;
int main(){
  double a;
  int k=0;
  cin >>a;
  for(int i=0;i<1000000;i++){
    if(a==i*1.08)k=1;
  }
  int k=a;
  if(k=2)cout << k/1.08;
  else if(k=1) cout <<k/1.08+1;
  else cout <<:(;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: redeclaration of 'int k'
   10 |   int k=a;
      |       ^
a.cc:5:7: note: 'int k' previously declared here
    5 |   int k=0;
      |       ^
a.cc:13:15: error: expected primary-expression before ':' token
   13 |   else cout <<:(;
      |               ^
Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    
    for(int 1=0;i<=50000;i++){
      double X=i*1.08;
    }
    if(N=(int)X){
      System.out.println("N");
    }else{
      System.out.println(":(");
    }
  }
}


Compiler output:
Main.java:8: error: not a statement
    for(int 1=0;i<=50000;i++){
        ^
Main.java:8: error: ';' expected
    for(int 1=0;i<=50000;i++){
           ^
Main.java:8: error: not a statement
    for(int 1=0;i<=50000;i++){
                 ^
Main.java:8: error: ')' expected
    for(int 1=0;i<=50000;i++){
                        ^
Main.java:8: error: ';' expected
    for(int 1=0;i<=50000;i++){
                            ^
5 errors
Language: C++

#include<iostream>
using namespace std;
int main(){
  double a;
  int k=0;
  cin >>a;
  for(int i=0;i<1000000;i++){
    if(a==i*1.08)k=1  
  }
  int k=a;
  if(k=2)cout << k/1.08;
  else if(k=1) cout <<k/1.08+1;
  else cout <<:(;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before '}' token
    8 |     if(a==i*1.08)k=1
      |                     ^
      |                     ;
    9 |   }
      |   ~                  
a.cc:10:7: error: redeclaration of 'int k'
   10 |   int k=a;
      |       ^
a.cc:5:7: note: 'int k' previously declared here
    5 |   int k=0;
      |       ^
a.cc:13:15: error: expected primary-expression before ':' token
   13 |   else cout <<:(;
      |               ^
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
using namespace std;
int main(){
   long long x,a,b,c,d,e;
   cin >>  x;
   a=x/100;
  for(long long i=a; i > 0; i--){
    b=i/1000000;
  }
    if(b>=4){
        c=x-100*i;
        d=(5+2+3+4)*1000000+i-(b*1000000);
        e=(1+2+3+4)*1000000+(i-(b*1000000))*5;
        if(c<=d && c >=e){
            cout  << 1 << endl;
        }
        else{
            cout << 0 << endl;
        }
    }
    else if(b==3){
        c=x-100*i;
        d=(5+3+4)*1000000+(i-(b*1000000))*2;
        e=(1+2+3)*1000000+(i-(b*1000000))*4;
        if(c<=d && c >=e){
            cout  << 1 << endl;
        }
        else{
            cout << 0 << endl;
        }
    }
    else if(b==2){
        c=x-100*i;
        d=(5+4)*1000000+(i-(b*1000000))*3;
        e=(1+2)*1000000+(i-(b*1000000))*3;
        if(c<=d && c >=e){
            cout  << 1 << endl;
        }
        else{
            cout << 0 << endl;
        }
    }
    else if(b==1){
        c=x-100*i;
        d=5*1000000+(i-(b*1000000))*4;
        e=1000000+(i-(b*1000000))*2;
        if(c<=d && c >=e){
            cout  << 1 << endl;
        }
        else{
            cout << 0 << endl;
        }
    }
    else{
        c=x-100*i;
        d=(i-(b*1000000))*5;
        e=i-(b*1000000);
        if(c<=d && c >=e){
            cout  << 1 << endl;
        }
        else{
            cout << 0 << endl;
        }
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:27:17: error: 'i' was not declared in this scope
   27 |         c=x-100*i;
      |                 ^
a.cc:38:17: error: 'i' was not declared in this scope
   38 |         c=x-100*i;
      |                 ^
a.cc:49:17: error: 'i' was not declared in this scope
   49 |         c=x-100*i;
      |                 ^
a.cc:60:17: error: 'i' was not declared in this scope
   60 |         c=x-100*i;
      |                 ^
a.cc:71:17: error: 'i' was not declared in this scope
   71 |         c=x-100*i;
      |                 ^
Language: C++

int main(void) {
	int N;
	std::cin >> N;
	double n = static_cast<double>(N) / 1.08;
	
	
	int x = ceil(n);
	if (n < 12.5) {
		std::cout << N;
	}
	else if (x - n >= 0.5 / 1.08) {
		std::cout << ":(";
	}
	else {
		std::cout << x;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:14: error: 'cin' is not a member of 'std'
    3 |         std::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 | int main(void) {
a.cc:7:17: error: 'ceil' was not declared in this scope
    7 |         int x = ceil(n);
      |                 ^~~~
a.cc:9:22: error: 'cout' is not a member of 'std'
    9 |                 std::cout << N;
      |                      ^~~~
a.cc:9:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:22: error: 'cout' is not a member of 'std'
   12 |                 std::cout << ":(";
      |                      ^~~~
a.cc:12:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:22: error: 'cout' is not a member of 'std'
   15 |                 std::cout << x;
      |                      ^~~~
a.cc:15:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
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 rn return
#define fi first
#define se second
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define mt make_tuple
typedef std::pair<int,int> P;
using namespace std;
using ll = long long;



int  MOD = 1e9 + 7;
uint64_t inverseModp(uint64_t a, uint64_t p) {
    assert(p < (1ull << 63));
    assert(a < p);
    assert(a != 0);
    uint64_t ex = p-2, result = 1;
    while (ex > 0) {
        if (ex % 2 == 1) {
            result = (result*a) % p;
        }
        a = (a*a) % p;
        ex /= 2;
    }
    return result;
}


uint32_t nCrModp(uint32_t n, uint32_t r, uint32_t p)
{
    assert(r <= n);
    if (r > n-r) r = n-r;
    if (r == 0) return 1;
    if(n/p - (n-r)/p > r/p) return 0;
    
    uint64_t result = 1; //intermediary results may overflow 32 bits
    
    for (uint32_t i = n, x = 1; i > r; --i, ++x) {
        if( i % p != 0) {
            result *= i % p;
            result %= p;
        }
        if( x % p != 0) {
            result *= inverseModp(x % p, p);
            result %= p;
        }
    }
    return 0;
}


int main(){
    int n;
    cin >> n;
    rep(i,50001){
        if ((double)i*1.08 < (double)n+0.5 && (double)i*1.08 >= (double)n){
            cout << i; rn 0;
        }
        if ((double)i*1.08 => (double)n+0.5 && (double)i*1.08 < (double)n + 1){
            cout << i; rn 0;
        }
    }
    cout << ":(";
    rn 0;
}


Compiler output:
a.cc:36:1: error: 'uint64_t' does not name a type
   36 | uint64_t inverseModp(uint64_t a, uint64_t p) {
      | ^~~~~~~~
a.cc:13:1: note: 'uint64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
   12 | #include <sstream>
  +++ |+#include <cstdint>
   13 | #include <string>
a.cc:52:1: error: 'uint32_t' does not name a type
   52 | uint32_t nCrModp(uint32_t n, uint32_t r, uint32_t p)
      | ^~~~~~~~
a.cc:52:1: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
a.cc: In function 'int main()':
a.cc:82:29: error: expected primary-expression before '>' token
   82 |         if ((double)i*1.08 => (double)n+0.5 && (double)i*1.08 < (double)n + 1){
      |                             ^
Language: Java

import java.util.*;

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

    double a = i/1.08;
    int b = (int)a;
    double c = a-b;

    if(c>= 0.5){
    if((b+1)*1.08 == i){
      System.out.println(b);
    }
   
    else{
      System.out.println(":(");
    }

    if(c<0.5){
    if(b*1.08 == i){
    System.out.println(b);
  }
    else{
    System.out.println(":(");
    }
  }
 }
}


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

#include<iostream>
using namespace std;
int main(){
  double a;
  cin >>a;
  if(a%1.08==0)  cout <<a/1.08<<endl;
  else{ 
     int s=a;
    cout <<s +1<<endl;
  }


}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    6 |   if(a%1.08==0)  cout <<a/1.08<<endl;
      |      ~^~~~~
      |      | |
      |      | double
      |      double
Language: C++

#include<iostream>
using namespace std;
int main(){
  float a;
  cin >>a;
  if(a%1.08==0)  cout <<a/1.08<<endl;
  else{ 
     int s=a;
    cout <<s +1<<endl;
  }


}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: invalid operands of types 'float' and 'double' to binary 'operator%'
    6 |   if(a%1.08==0)  cout <<a/1.08<<endl;
      |      ~^~~~~
      |      | |
      |      | double
      |      float
Language: Java

import java.util.*;
public class Main{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    double X;
    double X1;
    double N=sc.nextInt();
     X=N/1.08;
     X1=X*1.08;
    int X2=Math.floor(X);
    int X3=Math.floor(X1);
    if(N==X1){
      System.out.println("X");
    }else if(N!=X1){
      System.out.println(":(");
    }
  }
}


Compiler output:
Main.java:10: error: incompatible types: possible lossy conversion from double to int
    int X2=Math.floor(X);
                     ^
Main.java:11: error: incompatible types: possible lossy conversion from double to int
    int X3=Math.floor(X1);
                     ^
2 errors
Language: C++

#include<iostream>
using namespace std;
int main() {
	int a;
	cin >> a
		if (a * 100 % 108 == 0)cout << a * 100 / 108 << endl;
	if (a * 100 % 108 == 107)cout << ":(" << endl;
		else cout << a * 100 / 108+1 << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: expected ';' before 'if'
    5 |         cin >> a
      |                 ^
      |                 ;
    6 |                 if (a * 100 % 108 == 0)cout << a * 100 / 108 << endl;
      |                 ~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a;
  cin >>a;
  if(a%1.08==0)  cout <<a/1.08<<endl;
  else cout <<a/1.08 +1<<endl;



}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: invalid operands of types 'int' and 'double' to binary 'operator%'
    6 |   if(a%1.08==0)  cout <<a/1.08<<endl;
      |      ~^~~~~
      |      | |
      |      | double
      |      int
Language: Java

import java.util.*;
public class Main{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    double N=sc.nextInt();
    
    int count=0;
    int X=N/(double)1.08;
    //double XX=N/1.08;
    int XXX=X*(double)1.08;
   // double XXXX=XX*1.08;
    if(X!=XXX){
      count+=1;
    }
    if(count==1){
      System.out.println(":(");
    }else if(count==0){
      System.out.println("X");
    }
  }
}



Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from double to int
    int X=N/(double)1.08;
           ^
Main.java:10: error: incompatible types: possible lossy conversion from double to int
    int XXX=X*(double)1.08;
             ^
2 errors