criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		double nn = n/1.08;
      	int x = (int)nn;
      	int check = 0;
      	int check1 = (int)x*1.08;
      	int check2 = (int)(x+1)*1.08;
      	if(check1==n){
          System.out.println(x);
        }else if(check2==n){
          System.out.println(x+1);
        }else{
          System.out.println(":(");
        }
	}
}


Compiler output:
Main.java:10: error: incompatible types: possible lossy conversion from double to int
      	int check1 = (int)x*1.08;
      	                   ^
Main.java:11: error: incompatible types: possible lossy conversion from double to int
      	int check2 = (int)(x+1)*1.08;
      	                       ^
2 errors
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		double nn = n/1.08;
      	int x = (int)nn;
      	int check = 0;
      	int check1 = x*1.08;
      	int check2 = (x+1)*1.08;
      	if(check1==n){
          System.out.println(x);
        }else if(check2==n){
          System.out.println(x+1);
        }else{
          System.out.println(":(");
        }
	}
}


Compiler output:
Main.java:10: error: incompatible types: possible lossy conversion from double to int
      	int check1 = x*1.08;
      	              ^
Main.java:11: error: incompatible types: possible lossy conversion from double to int
      	int check2 = (x+1)*1.08;
      	                  ^
2 errors
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int x = (int)n/1.08;
      	int check = 0;
      	if(x*1.08==n){
          check=1;
          System.out.println(x);
        }else if((x-1)*1.08==n){
          check=1;
          System.out.println(x-1);
        }if((x+1)*1.08==n){
          check=1;
          System.out.println(x+1);
        }else{
          System.out.println(":(");
        }
	}
}


Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from double to int
		int x = (int)n/1.08;
		              ^
1 error
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int x = n/1.08;
      	int check = 0;
      	if(x*1.08==n){
          check=1;
          System.out.println(x);
        }else if((x-1)*1.08==n){
          check=1;
          System.out.println(x-1);
        }if((x+1)*1.08==n){
          check=1;
          System.out.println(x+1);
        }else{
          System.out.println(":(");
        }
	}
}


Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from double to int
		int x = n/1.08;
		         ^
1 error
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int x = n/1.08;
      	int check = 0;
      	if(x*1.08==n){
          check=1;
          System.out.println(x);
          break;
        }else if((x-1)*1.08==n){
          check=1;
          System.out.println(x-1);
          break;
        }if((x+1)*1.08==n){
          check=1;
          System.out.println(x+1);
          break;
        }else{
          System.out.println(":(");
        }
	}
}

Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from double to int
		int x = n/1.08;
		         ^
Main.java:12: error: break outside switch or loop
          break;
          ^
Main.java:16: error: break outside switch or loop
          break;
          ^
Main.java:20: error: break outside switch or loop
          break;
          ^
4 errors
Language: C++

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

Compiler output:
a.cc:11:21: error: exponent has no digits
   11 |         cout<<":("<<1endl;
      |                     ^~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
#define pi 3.14159265359
#define all(i) i.begin(),i.end()
using namespace std;
const long long INF=1e9+7;
const string alp="abcdefghijklmnopqrstuvwxyz"; //26
const string ALP="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vector<ll>> vvl;
typedef pair<ll,ll> P;
typedef tuple<ll,ll,ll> T;
//const ll MOD=998244353LL;
//const ll MOD=1777777777LL;


int main() {
  ll N;
  cin>>N;
  long double ans;
  bool judge=false;
  for(int i=0;i<N;i++){
    long double yen=i*1.08;
    if(yen==N){
      judge=true;
      ans=yen;
      break;
    }
  }
  if(judge) cout<<yen<<endl;
  else cout<<":("<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:19: error: 'yen' was not declared in this scope; did you mean 'yn'?
   32 |   if(judge) cout<<yen<<endl;
      |                   ^~~
      |                   yn
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin >> n;
    for(int i=n/2;i<n;i++){
        if((108*i)/100==n){
            cout << i;
            return 0;
        }
    }
    cout << ":("
}

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

#include <iostream>
#include <unordered_set>
#include <cstdint>
#include <vector>
#include <string>
#include <climits>
#include <set>
#include <algorithm>
using namespace std;

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

	double x = 1;

	while (x <= n)
	{
		if (floor(x * 1.08) == n)
		{
			cout << x;
			return 0;
		}
		x++;
	}
	cout << ":(";
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,b,i;
  cin>>a;
  double B=true;
  
  for(i=0;i<<a;i++){
    b=i*1.08;
    if(a==b){
      cout<i<<endl;
      B=false;
      break;
    }
  }
  if(B){
    cout<<":("<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |       cout<i<<endl;
      |            ~^~~~~~
Language: C++

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

int main(){
  int a,b;
  cin>>a;
  b=(a+1)/1.08;
  bool B=false;
 
 
  for(i=1;i<=50000;i++){
       if(i*1.08==a){
         B=true;
         break;
       }
    
   if(B){
    cout<<b<<endl;
  }
  else{
    cout<<":("<<endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   for(i=1;i<=50000;i++){
      |       ^
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  double a,b;
  cin>>a>>;
  b=(a+1)/1.08
    int c=b;
  cout<<c<<endl;
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected primary-expression before ';' token
    6 |   cin>>a>>;
      |           ^
a.cc:7:15: error: expected ';' before 'int'
    7 |   b=(a+1)/1.08
      |               ^
      |               ;
    8 |     int c=b;
      |     ~~~        
a.cc:9:9: error: 'c' was not declared in this scope
    9 |   cout<<c<<endl;
      |         ^
a.cc:9:17: error: expected '}' at end of input
    9 |   cout<<c<<endl;
      |                 ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define ALL(x) (x).begin(), (x).end()
typedef long long ll;
typedef pair<int, int> pii;
const int INF = 1e9;
const int MOD = 1000000007;
const double PI = acos(-1);
int dx[4] = {0,1,0,-1};
int dy[4] = {1,0,-1,0};

void solve() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    if (n == (int) (i * 1.08)) {
      cout << i << endl;
      return;
    }
  }
  cout << ":(" << endl;
}

int main() {
  solve();
  return 0;
}x

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

#include <iostream>
using namespace std;

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

	double tmp = N / 1.08;
	int roundUp = (int)ceil(tmp);
	int roundDown = (int)floor(tmp);

	double roundUpX = roundUp * 1.08;
	double roundDownX = roundDown * 1.08;

	if (N == (int)floor(roundUpX)) {
		cout << roundUp;
	}
	else if (N == (int)floor(roundDownX)) {
		cout << roundDown;
	}
	else {
		cout << ":(";
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: 'ceil' was not declared in this scope
    8 |         int roundUp = (int)ceil(tmp);
      |                            ^~~~
a.cc:9:30: error: 'floor' was not declared in this scope
    9 |         int roundDown = (int)floor(tmp);
      |                              ^~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
	long long N;

	cin >> N;

	long long X;
	long long ans = -1;


	X = N / 1.08;

	if (long long((X + 1) * 1.08) == N)
		ans = X + 1;
	else if (long long((X - 1) * 1.08) == N)
		ans = X - 1;
	else if (long long(X) * 1.08 == N)
		ans = X;


	if (ans != -1)
		cout << ans << endl;
	else
		cout << ":(" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: expected primary-expression before 'long'
   17 |         if (long long((X + 1) * 1.08) == N)
      |             ^~~~
a.cc:17:13: error: expected ')' before 'long'
   17 |         if (long long((X + 1) * 1.08) == N)
      |            ~^~~~
      |             )
a.cc:19:18: error: expected primary-expression before 'long'
   19 |         else if (long long((X - 1) * 1.08) == N)
      |                  ^~~~
a.cc:19:18: error: expected ')' before 'long'
   19 |         else if (long long((X - 1) * 1.08) == N)
      |                 ~^~~~
      |                  )
a.cc:21:18: error: expected primary-expression before 'long'
   21 |         else if (long long(X) * 1.08 == N)
      |                  ^~~~
a.cc:21:18: error: expected ')' before 'long'
   21 |         else if (long long(X) * 1.08 == N)
      |                 ~^~~~
      |                  )
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >>n;
int num = n/1.08; 
int flag = 0;
for(int i = num -10;i<num + 10;i++){
int price = i*1.08;

if(price==n){
cout << i <<endl;
flag++;
break;
}
}  
if(flag==0){
cout <<":("<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: expected '}' at end of input
   18 | cout <<":("<<endl;
      |                   ^
a.cc:17:12: note: to match this '{'
   17 | if(flag==0){
      |            ^
a.cc:18:19: error: expected '}' at end of input
   18 | cout <<":("<<endl;
      |                   ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int x = Math.ceil(n / 1.08);

        if (Math.floor(x * 1.08) == n) {
            System.out.println(x);
        } else {
            System.out.println(":(");
        }
    }
}


Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from double to int
        int x = Math.ceil(n / 1.08);
                         ^
1 error
Language: Java

import java.util.Scanner;

public class TaxRate {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int x = (int) (n / 1.08);

        if (Math.floor(x * 1.08) == n) {
            System.out.println(x);
        } else {
            System.out.println(":(");
        }
    }
}


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

#include <stdio.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <vector>
#include <algorithm>

using namespace std;

int main(){
    int n;
    scanf("%d" &n);
    int iAns;
    if(n % 27 == 13 || n % 27 == 26){
        printf(":(");
    } else if (n % 27 < 13){
        iAns = (n / 27) * 25 + (n % 27);
        printf("%d", iAns);
    } else {
        iAns = (n / 27) * 25 + (n % 27) - 1;
        printf("%d", iAns);
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
   11 |     scanf("%d" &n);
      |           ~~~~ ^~
      |           |     |
      |           |     int
      |           const char [3]
Language: C++

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

int main () {
  int N;
  cin >> N;
  double num = N/1.08;
  num = ceil(num);
  for (int i=0; i<50000;i++) {
    if (num == i) {
      cout << i;
      return 0;
    }
  } 
  else {
    cout << ':(';
  }
}


Compiler output:
a.cc:16:13: warning: multi-character character constant [-Wmultichar]
   16 |     cout << ':(';
      |             ^~~~
a.cc: In function 'int main()':
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else {
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
#define ll long long int
using namespace std;
int main()
{
    double a;
    int n,temp;
    cin >> n;
    a = n/1.08;
    temp = a;
    if(a==temp)
    {
        temp=a;
        printf("%d",temp);
    }
    else
    {
         a = (temp+1)*1.08;
         if( (a-n)>=0 (a - n)<=0.5)
                printf("%d",temp+1);
         else
         {
             a = (temp)*1.08;
             if( (a-n)>=0 &&(a - n)<=0.5)
                printf("%d",temp);
                else
                    printf(":(");

         }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:23: error: expression cannot be used as a function
   19 |          if( (a-n)>=0 (a - n)<=0.5)
      |                     ~~^~~~~~~
Language: Java

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





public class ABC {

    static MyScanner in = new MyScanner();
    static   PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    int N;
    static int max = 200001;
    static int [] dr = {1,-1,0,0};
    static int [] dc={0,0,-1,1};
    public static void main(String args[]) throws IOException {
        int N = in.nextInt();
       double ans = -1;
    for(double i=1;i<=N+1;i++){
        if(((int)(i*1.08))==N){
            ans = i;
        }
    }
    if(ans==-1){
        out.println(":(");
    }else{
        out.println(ans);
    }

        out.flush();
        }
       static boolean isEven(long a){
            return (a&1)==0;
        }
       static  void swap (int a, int b){

        int temmp = b;
        b=a;
        a = temmp;
        }
        static boolean same(int [] arr,int [] temp){
            Arrays.sort(arr);
           Arrays.sort(temp);
            for(int i=0;i<arr.length;i++){
                if(temp[i]!=arr[i])
                return false;
            }
            return true;
        }

 
  


    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;
   
        public MyScanner() {
           br = new BufferedReader(new InputStreamReader(System.in));
        }
   
        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
   
        int nextInt() {
            return Integer.parseInt(next());
        }
   
        long nextLong() {
            return Long.parseLong(next());
        }
   
        double nextDouble() {
            return Double.parseDouble(next());
        }
   
        String nextLine(){
            String str = "";
        try {
           str = br.readLine();
        } catch (IOException e) {
           e.printStackTrace();
        }
        return str;
        }
  
     }
}

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

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





public class ABC {

    static MyScanner in = new MyScanner();
    static   PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    int N;
    static int max = 200001;
    static int [] dr = {1,-1,0,0};
    static int [] dc={0,0,-1,1};
    public static void main(String args[]) throws IOException {
        int N = in.nextInt();
       double ans = -1;
    for(double i=1;i<=N;i++){
        if((i*1.08)==N){
            ans = i;
        }
    }
    if(ans==-1){
        out.println(":(");
    }else{
        out.println(ans);
    }

        out.flush();
        }
       static boolean isEven(long a){
            return (a&1)==0;
        }
       static  void swap (int a, int b){

        int temmp = b;
        b=a;
        a = temmp;
        }
        static boolean same(int [] arr,int [] temp){
            Arrays.sort(arr);
           Arrays.sort(temp);
            for(int i=0;i<arr.length;i++){
                if(temp[i]!=arr[i])
                return false;
            }
            return true;
        }

 
  


    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;
   
        public MyScanner() {
           br = new BufferedReader(new InputStreamReader(System.in));
        }
   
        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
   
        int nextInt() {
            return Integer.parseInt(next());
        }
   
        long nextLong() {
            return Long.parseLong(next());
        }
   
        double nextDouble() {
            return Double.parseDouble(next());
        }
   
        String nextLine(){
            String str = "";
        try {
           str = br.readLine();
        } catch (IOException e) {
           e.printStackTrace();
        }
        return str;
        }
  
     }
}

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

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





public class ABC {

    static MyScanner in = new MyScanner();
    static   PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    int N;
    static int max = 200001;
    static int [] dr = {1,-1,0,0};
    static int [] dc={0,0,-1,1};
    public static void main(String args[]) throws IOException {
        int N = in.nextInt();
        int count =1;
        while(count*1.08<=N){
            count++;
        }
        if(count*1.08==N){
            out.println(count);
        }else{
            out.println(":(");
        }

        out.flush();
        }
       static boolean isEven(long a){
            return (a&1)==0;
        }
       static  void swap (int a, int b){

        int temmp = b;
        b=a;
        a = temmp;
        }
        static boolean same(int [] arr,int [] temp){
            Arrays.sort(arr);
           Arrays.sort(temp);
            for(int i=0;i<arr.length;i++){
                if(temp[i]!=arr[i])
                return false;
            }
            return true;
        }

 
  


    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;
   
        public MyScanner() {
           br = new BufferedReader(new InputStreamReader(System.in));
        }
   
        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
   
        int nextInt() {
            return Integer.parseInt(next());
        }
   
        long nextLong() {
            return Long.parseLong(next());
        }
   
        double nextDouble() {
            return Double.parseDouble(next());
        }
   
        String nextLine(){
            String str = "";
        try {
           str = br.readLine();
        } catch (IOException e) {
           e.printStackTrace();
        }
        return str;
        }
  
     }
}

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

#include<bits/stdc++.h>
using namespace std;
#define rep(i, c) for(ll i = 0; i < (ll)c; i++)
#define ll long long
#define upd_max(maxer, updater) if (maxer < updater) maxer = updater;
#define upd_min(miner, updater) if (miner > updater) miner = updater;
const int inf = 1000000000; // 10^9

int main(){
    ll n;

    bool ng = true;

    cin >> n;

    while(int i <= n){
        if(i*100/108 == n){
            cout << i << endl;
            ng = false;
            break;
        }
        else i++;
    }

    if(ng) cout << -1 << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: expected initializer before '<=' token
   16 |     while(int i <= n){
      |                 ^~
a.cc:16:16: error: expected ')' before '<=' token
   16 |     while(int i <= n){
      |          ~     ^~~
      |                )
a.cc:16:17: error: expected primary-expression before '<=' token
   16 |     while(int i <= n){
      |                 ^~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <numeric>
#include <string>

#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;

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

	float  ans = n / 1.08;

	float  integral_part = 0;
	float  fractional_part = std::modf(ans, &integral_part);

	if (fractional_part == 0.0) {
		cout << ans;
	}
	else {
		integral_part++;
		if ((int)(integral_part*1.08) == n) {
			cout << integral_part;
		}
		else {
			cout << ":(";
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:39: error: 'modf' is not a member of 'std'
   20 |         float  fractional_part = std::modf(ans, &integral_part);
      |                                       ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <numeric>
#include <string>

#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;

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

	double ans = n / 1.08;

	double integral_part = 0;
	double fractional_part = std::modf(ans, &integral_part);

	if (fractional_part == 0.0) {
		cout << ans;
	}
	else {
		integral_part++;
		if ((int)(integral_part*1.08) == n) {
			cout << integral_part;
		}
		else {
			cout << ":(";
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:39: error: 'modf' is not a member of 'std'
   20 |         double fractional_part = std::modf(ans, &integral_part);
      |                                       ^~~~
Language: C++

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

int main(){
  int N;
  cin>>N;
  for(double i=1;i<50001;i++){
    if(int i*1.08==N){
      cout<<i<<endl;
      return 0;
    }
  }
  cout<<":("<<endl;
}

    
    

  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected initializer before '*' token
    8 |     if(int i*1.08==N){
      |             ^
a.cc:8:13: error: expected ')' before '*' token
    8 |     if(int i*1.08==N){
      |       ~     ^
      |             )
Language: C++

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

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

    
    

  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected initializer before '*' token
    8 |     if(int i*1.08==N){
      |             ^
a.cc:8:13: error: expected ')' before '*' token
    8 |     if(int i*1.08==N){
      |       ~     ^
      |             )
Language: C++

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

int main() {
  int N,M;
  cin >> N;
  M=N*100/108;
  if (M*108==N) {
    cout << M << endl;
  }
  if ((M+1)*108==N) {
    cout << M+1 << endl;
  }
  else (M*108!=N&&(M+1)*108!=N) {
    cout << ":(" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:32: error: expected ';' before '{' token
   14 |   else (M*108!=N&&(M+1)*108!=N) {
      |                                ^~
      |                                ;
Language: C++

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

int main() {
  int X;
  cin >> X;
  int apple = round(X / 1.08f);
  int price = (int)(apple * 1.08);
  if(X == price) cout << apple << endl;;
  else cout << ":(" << endl;
  return 0;
}


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

#include <iostream>
#include <vector>
#include <numeric>
#include <cmath>
 
using namespace std;
 
int main()
{
    int N;
    cin >> N;
    
    double X = N / 1.08;
    if (X - (int)X =< 1 - (1 / 1.08)) {
        cout << ":(" << endl;
    }
    else {
        cout << ceil(X) << endl;
    }
    
    //getline(cin, str);
    //vector < vector < int > > A(x, vector(y, 0));
    //int avg = round((float)accumulate(X.begin(), X.end(), 0.0) / N);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: expected primary-expression before '<' token
   14 |     if (X - (int)X =< 1 - (1 / 1.08)) {
      |                     ^
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int otherN = N + 1;
    
    int noTax = (int)Math.round(N / 1.08);
    int othrNoTax = (int)Math.round(otherN / 1.08);
    int inTax = (int)Math.floor(noTax * 1.08);
    int otherInTax = (int)Math.floor(otherNoTax * 1.08);
    if(inTax == N) {
      System.out.println(noTax);
    } else if(otherInTax == N) {
      System.out.println(otherNoTax);
    } else {
      System.out.println(":(");
    }
  }
}


Compiler output:
Main.java:12: error: cannot find symbol
    int otherInTax = (int)Math.floor(otherNoTax * 1.08);
                                     ^
  symbol:   variable otherNoTax
  location: class Main
Main.java:16: error: cannot find symbol
      System.out.println(otherNoTax);
                         ^
  symbol:   variable otherNoTax
  location: class Main
2 errors
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int otherN N + 1;
    
    int noTax = (int)Math.round(N / 1.08);
    int othrNoTax = (int)Math.round(otherN / 1.08);
    int inTax = (int)Math.floor(noTax * 1.08);
    int otherInTax = (int)Math.floor(otherNoTax * 1.08);
    if(inTax == N) {
      System.out.println(noTax);
    } else if(otherInTax == N) {
      System.out.println(otherNoTax);
    } else {
      System.out.println(":(");
    }
  }
}


Compiler output:
Main.java:7: error: ';' expected
    int otherN N + 1;
              ^
Main.java:7: error: not a statement
    int otherN N + 1;
                 ^
2 errors
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    notax = (int)Math.round(N / 1.08);
    if(notax * 1.08 == N) {
      System.out.println(notax);
    } else {
      System.out.println(":(");
    }
  }
}


Compiler output:
Main.java:8: error: cannot find symbol
    notax = (int)Math.round(N / 1.08);
    ^
  symbol:   variable notax
  location: class Main
Main.java:9: error: cannot find symbol
    if(notax * 1.08 == N) {
       ^
  symbol:   variable notax
  location: class Main
Main.java:10: error: cannot find symbol
      System.out.println(notax);
                         ^
  symbol:   variable notax
  location: class Main
3 errors
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    
    int notax = (double)Math.round(N / 1.08);
    if(notax * 1.08 == N) {
      System.out.println(notax);
    } else {
      System.out.println(":(");
    }
  }
}


Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from double to int
    int notax = (double)Math.round(N / 1.08);
                ^
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();
    
    int notax = Math.round(N / 1.08);
    if(notax * 1.08 == N) {
      System.out.println(notax);
    } else {
      System.out.println(":(");
    }
  }
}

Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from long to int
    int notax = Math.round(N / 1.08);
                          ^
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std;
#define all(a)a.begin(),a.end()
using ll=long long;
const int INF = 1<<30;
const ll INFll =1LL<<62;
const int mod =(1e9)+7;
using P = pair<ll,ll>;

int main(){
    ll n;cin >>n;
    ll ans=-1;
    for (int i = 0; i <= n; ++i) {
        int komi=i*1.08;
        if(komi==n){
            cout <<i<<endl;
            ans=i;43
            break;
        }
    }
    if(ans<0)puts(":(");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:21: error: expected ';' before 'break'
   18 |             ans=i;43
      |                     ^
      |                     ;
   19 |             break;
      |             ~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main() {
	int n;
  bool flag=true;
  cin>>n;
  for(int i=1;i<50000;i++){
    if(i*1.08==n){
      cout<<i<<endl;
      flag=false;
      break;
    }
  }
  if(flag){
    cout<<":("endl;
  }
}

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

#include<stdio.h>
int main()
{
int a,c,i;
  c=0;
  scanf("%d",&a);

  {for(i=a/2;i<a && c==0;++i)
  {
   if(i*1.08==a) {printf("%d",i);
                 c++;}
   }
 
if(c==0) printf(":(");
   
return 0;
}

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

#include <bits/stdc++.h>

#define ll long long
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

using namespace std;

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

    for (int i = 1; i <= n; i++)
        if ((int)(i * 108 / 100) == n) {
            cout << i << endl;
            return 0;
        }
    }

    cout << ":(" << endl;
    return 0;
}


Compiler output:
a.cc:19:5: error: 'cout' does not name a type
   19 |     cout << ":(" << endl;
      |     ^~~~
a.cc:20:5: error: expected unqualified-id before 'return'
   20 |     return 0;
      |     ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include<iostream>
#include<string>

using namespace std;

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

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

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

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

int main(){
  int n;
  cin >> n;
  for(int i=1;i<50000;i++){
    if(floor(i*1.08)==n){ 
      cout<<i;
      return 0;
    }
  }
  cout <<":(";
}


Compiler output:
a.cc:2:17: error: 'atd' is not a namespace-name
    2 | using namespace atd;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> n;
      |   ^~~
      |   std::cin
In file included from /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
      |                  ^~~
a.cc:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |       cout<<i;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout <<":(";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main(){
  int n;
  cin >> n;
  for(int i=1;i<50000;i++){
    if(floor(i*1.08)==n){ 
      cout<<i;
      return 0;
    }
  }
  cout <<":(";
}

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

#include<iostream>
using namespace std;
int main(){
 　int N;
  cin>>N;
  for(int i=0;i<N;i++){
    int X=i*108/100;
    if(X==N){
      cout<<i<<endl;
    return 0;
    }
  }
  cout<<":("<<endl;
  return 0;
}


Compiler output:
a.cc:4:2: error: extended character 　 is not valid in an identifier
    4 |  　int N;
      |  ^
a.cc: In function 'int main()':
a.cc:4:2: error: '\U00003000int' was not declared in this scope
    4 |  　int N;
      |  ^~~~~
a.cc:5:8: error: 'N' was not declared in this scope
    5 |   cin>>N;
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
while(cin>>n){
for(int i=1;i<=50000;i++){
    if(round(i*1.08)==n){
        cout<<i<<endl;
        return 0;
    }
}
cout<<":("<<endl;
return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  for(int i=0;i<N;i++){
    int X=i:108/100;
    if(X==N){
      cout<<i<<endl;
    return 0;
    }
  }
  cout<<":("<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ',' or ';' before ':' token
    7 |     int X=i:108/100;
      |            ^
Language: C++

double n;
    cin >> n;
    
    double x=(n/1.08),y=((n+1)/1.08);
    int i;
    for( i=(int)x-5;i<=(int)y+5;i++) {
        if((int)(i*1.08)==n){
        cout << i;
        return 0;
        }
    }
    cout << ":(";

Compiler output:
a.cc:2:5: error: 'cin' does not name a type
    2 |     cin >> n;
      |     ^~~
a.cc:6:5: error: expected unqualified-id before 'for'
    6 |     for( i=(int)x-5;i<=(int)y+5;i++) {
      |     ^~~
a.cc:6:21: error: 'i' does not name a type
    6 |     for( i=(int)x-5;i<=(int)y+5;i++) {
      |                     ^
a.cc:6:33: error: 'i' does not name a type
    6 |     for( i=(int)x-5;i<=(int)y+5;i++) {
      |                                 ^
a.cc:12:5: error: 'cout' does not name a type
   12 |     cout << ":(";
      |     ^~~~
Language: C++

double n;
    cin >> n;
    
    double x=(n/1.08),y=((n+1)/1.08);
    
    for(int i=(int)x-5;i<=(int)y+5;i++) {
        if((int)(i*1.08)==n){
        cout << i;
        return 0;
        }
    }
    cout << ":(";

Compiler output:
a.cc:2:5: error: 'cin' does not name a type
    2 |     cin >> n;
      |     ^~~
a.cc:6:5: error: expected unqualified-id before 'for'
    6 |     for(int i=(int)x-5;i<=(int)y+5;i++) {
      |     ^~~
a.cc:6:24: error: 'i' does not name a type
    6 |     for(int i=(int)x-5;i<=(int)y+5;i++) {
      |                        ^
a.cc:6:36: error: 'i' does not name a type
    6 |     for(int i=(int)x-5;i<=(int)y+5;i++) {
      |                                    ^
a.cc:12:5: error: 'cout' does not name a type
   12 |     cout << ":(";
      |     ^~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int a;cin>>a;
  	for(double i=1;i<=a;i++){
    	if(floor(i*1.08)==a) {cout<<i;return 0;}
    }
  	cout<<":(";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'floor' was not declared in this scope
    7 |         if(floor(i*1.08)==a) {cout<<i;return 0;}
      |            ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   for(i=1;i<=50000;i++){
      |       ^
Language: C++

import java.util.Scanner;

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

    int N = scanner.nextInt();
    int left = (25 * N - 1) / 27 + 1;
    int right = (25 * N + 24) / 27;
    if (right < left) System.out.println(":(");
    else System.out.println(left);
  }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,j;
  cin >> n;
  for(int i=0;i<=50000;i++){
    j=i*27/25;
    if(j==n){
      cout << i;
      return 0;
    }
  }
  cout << ":(";
  /*
  int n,m;
  cin >> n >> m;
  char a[n+2][m+2];
  for(int i=0;i<=n+1;i++){
    if(i==0||i==n+1){
      for(int j=0;j<m+2;j++){
        cout << "#";
      }
      cout << endl;
    }
    cout << "#";
    for(int jj=1;jj<=m;jj++){
      cin >> a[i][jj];
      cout << a[i][jj];
    }
    cout << "#" << endl;*/
  }
}


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

#include <iostream>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <vector>
#include <stdio.h>
#include <string>

int main(){
	int n; cin >> n;
  	int cnt = 0;
  	for(int i; i< 500001; i++){
    if(i*1.08 >= n && i*1.08 < n+1){
    cout << i << endl;
	cnt++;
    }
    }
    if(cnt == 0){
    cout << ":(" << endl; 
    }
    

  	

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

#include <iostream>
using namespace std;

int main() {
  int a,b;
  cin >> a;
  else b = (double) a / 1.08;
  if((int)(b*1.08)==a) cout << b << endl;
  else  if((int)((b+1)*1.08)==a) cout << b+1 << endl;
  else cout << ":(" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'else' without a previous 'if'
    7 |   else b = (double) a / 1.08;
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  for(int i=1;i<=50000;i++){
  if int(i*1.08==N){cout<<i<<endl;
               break;}
    if(i=50000){cout<<":("<<endl;}
  
  }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected '(' before 'int'
    7 |   if int(i*1.08==N){cout<<i<<endl;
      |      ^~~
      |      (
Language: C++

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

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


Compiler output:
a.cc:3:9: error: 'Long' does not name a type; did you mean 'long'?
    3 | typedef Long Long ll;
      |         ^~~~
      |         long
Language: C++

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

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


Compiler output:
a.cc:3:9: error: 'Long' does not name a type; did you mean 'long'?
    3 | typedef Long Long ll;
      |         ^~~~
      |         long
Language: C++

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

int main(){
  int N;
  while (N%1.08==0){
     cin >> N;
     double X=N%1.08;
     cout << X << "\n";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: invalid operands of types 'int' and 'double' to binary 'operator%'
    6 |   while (N%1.08==0){
      |          ~^~~~~
      |          | |
      |          | double
      |          int
a.cc:8:16: error: invalid operands of types 'int' and 'double' to binary 'operator%'
    8 |      double X=N%1.08;
      |               ~^~~~~
      |               | |
      |               | double
      |               int
Language: C++

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

int main(){
  int N;
  while (N%1.08==0){
     cin >> N;
     int X=N%1.08;
     cout << X << "\n";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: invalid operands of types 'int' and 'double' to binary 'operator%'
    6 |   while (N%1.08==0){
      |          ~^~~~~
      |          | |
      |          | double
      |          int
a.cc:8:13: error: invalid operands of types 'int' and 'double' to binary 'operator%'
    8 |      int X=N%1.08;
      |            ~^~~~~
      |            | |
      |            | double
      |            int
Language: C++

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

int main(){
  while (N%1.08==0){
     int N;
     cin >> N;
     int X=N%1.08;
  }
     cout << X << "\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'N' was not declared in this scope
    5 |   while (N%1.08==0){
      |          ^
a.cc:10:14: error: 'X' was not declared in this scope
   10 |      cout << X << "\n";
      |              ^
Language: C++

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

int main(){
  while (N%1.08==0){
     int N;
     cin >> N;
     int X=N%1.08;
  }
     cout << X << "\n";
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesoace'
    2 | using namesoace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:10: error: 'N' was not declared in this scope
    5 |   while (N%1.08==0){
      |          ^
a.cc:7:6: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |      cin >> N;
      |      ^~~
      |      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
      |                  ^~~
a.cc:10:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |      cout << X << "\n";
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:14: error: 'X' was not declared in this scope
   10 |      cout << X << "\n";
      |              ^
Language: C++

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

int main() {
    cin>>N;
    for (int i=1;i<=N;i++) {
        if (i*108/100==N) cout<<i<<endl;
    }
    cout<<":("<<endl;
}

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
 int main() {
	int N;
   cin>>N;
   bool a =true;
   for (size_t i = 0; i < 50000; i++)
   {
      if(floor(i*1.08)==N){cout<<i<<endl;}
      a=false;
      break;
   }
   if(a){cout<<":("endl;}
   
	}


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

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

int main(){
  int n, a;
  for(int i = 0; i < n + 1){
    a = i * 1.08;
    if(a == n){
      cout << i << endl;
      return 0;
    }
  }
  cout << ":(" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: expected ';' before ')' token
    6 |   for(int i = 0; i < n + 1){
      |                           ^
      |                           ;