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

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

int main() {
  
  int:N,X,T;
  cin >> N >> X >> T;
  
  if(N%X == 0){
    
    cout << N/X*T <<endl;
  }
   elese{
     
     cout << N/X*T+1 << endl;
   }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected unqualified-id before ':' token
    6 |   int:N,X,T;
      |      ^
a.cc:7:10: error: 'N' was not declared in this scope
    7 |   cin >> N >> X >> T;
      |          ^
a.cc:7:15: error: 'X' was not declared in this scope
    7 |   cin >> N >> X >> T;
      |               ^
a.cc:7:20: error: 'T' was not declared in this scope
    7 |   cin >> N >> X >> T;
      |                    ^
a.cc:13:4: error: 'elese' was not declared in this scope
   13 |    elese{
      |    ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long int n,x,t;
	cin>>n>>x>>t;
	long long int z=floor(n/x);
   if(n%x!=0)
     z=z+1;
	 cout<<t*z2<<endl;
	
	
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: 'z2' was not declared in this scope; did you mean 'z'?
   10 |          cout<<t*z2<<endl;
      |                  ^~
      |                  z
Language: C++

#include<bits/stdc++.h>
#define u 1000000
#define  ll long long
using namespace std;
int main()
{
ll n,x,t,a,b;
cin>>n>>x>>t;
if(n%x==0)
{
    a=n/x;
    a=a*t;10
}
else
{
    a=n/x+1;
    a=a*t;
}
cout<<a<<endl;





 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected ';' before '}' token
   12 |     a=a*t;10
      |             ^
      |             ;
   13 | }
      | ~
Language: Java


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

		int n = Integer.parseInt(sc.next());
		int x = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());

		for (; n>0; ) {
			n -= x;
			ans+=t;
		}

		System.out.print(ans);
		sc.close();


	}
}

Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public class main {
       ^
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class main
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class main
3 errors
Language: Java

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

class GFG {
	public static void main (String[] args) {
		//code
		Scanner in=new Scanner(System.in);
		int n,x,t;
      	n=in.nextInt();
      	x=in.nextInt();
      	t=in.nextInt();
      	int ans=Math.ceil(n/x)*t;
      	System.out.println(ans);
	}
}

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

import java.util.*;
pubic class Main
{
  public static void main(String args[])
  {
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt(),x=sc.nextInt(),t=sc.nextInt();
    int a=(int)Math.floor(n/x);
    System.out.println(a*t);
  }
}


Compiler output:
Main.java:2: error: class, interface, enum, or record expected
pubic class Main
^
1 error
Language: C

#include<stdio.h>
int main()
{
    int N,X,T;
    scanf("%d %d %d",&N,&X,&T);
    if(N%X==0)
    {
        printf("%d",N*T/X);
    }
    else
    {
        printf("%d",((int(N/X))+1)*T);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:27: error: expected ')' before 'N'
   12 |         printf("%d",((int(N/X))+1)*T);
      |                           ^
      |                           )
Language: Java


import java.util.Scanner;

public class Solution1 {
	
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		int x = sc.nextInt();
		int t = sc.nextInt();
		
		int total = 0;
		int res = 0;
		
		while(total < n) {
			
			res += t;
			total += x;
		}
		
		System.out.println(res);
		
		sc.close();
	}

}


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

class main {
	public static void main(String[] args) {
		int ans=0;
		Scanner sc = new Scanner(System.in);
      
		int n = Integer.parseInt(sc.next());
		int x = Integer.parseInt(sc.next());
		int t = Integer.parseInt(sc.next());
		for (; n>0; ) {
			n -= x;
			ans+=t;
		}
		System.out.print(ans);
		sc.close();
	}
}

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


#include <iostream>
using namespace std;

int main() {
	int result = 0;
	int n,x,t;
	cin >> n >> x >> t;

	for(int i=1; i<n; i++) {
		if(n<=(x*i)) {
			result = t*i;
			break;
		}
	}

	cout << result << "\n";}
}


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

#include “bits/stdc++.h”
using namespace std;

int main(){
  int N,X,T; cin>>N>>X>>T;
  cout<< ((N-1)/X+1)*T << endl;
}


Compiler output:
a.cc:1:10: error: extended character “ is not valid in an identifier
    1 | #include “bits/stdc++.h”
      |          ^
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include “bits/stdc++.h”
      |          ^~~~~
a.cc:1:23: error: extended character ” is not valid in an identifier
    1 | #include “bits/stdc++.h”
      |                       ^
a.cc: In function 'int main()':
a.cc:5:14: error: 'cin' was not declared in this scope
    5 |   int N,X,T; cin>>N>>X>>T;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include “bits/stdc++.h”
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<< ((N-1)/X+1)*T << endl;
      |   ^~~~
a.cc:6:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:27: error: 'endl' was not declared in this scope
    6 |   cout<< ((N-1)/X+1)*T << endl;
      |                           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include “bits/stdc++.h”
Language: C

#include <iostream>

using ll = long long;
int main(int argc, char ** argv)
{
  int n, x, t;
  std::cin >> n >> x >> t;
  std::printf("%d\n", t * ((n%x == 0 ? n / x : n/x + 1)));
  return 0;
}


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

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



void solve()
{
	int n,x,t;
	cin >> n >> x >> t;
	cout << t*ceil((float)n/x);
	return;
}
int main()
{
	#ifndef ONLINE_JUDGE
	freopen("input.txt","r",stdin);
	freopen("ouput.txt","w",stdout);
	#endif
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	solve();
	return 0;
}

Compiler output:
a.cc:1:1: error: stray '##' in program
    1 | ##include<bits/stdc++.h>
      | ^~
a.cc:1:3: error: 'include' does not name a type
    1 | ##include<bits/stdc++.h>
      |   ^~~~~~~
a.cc: In function 'void solve()':
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         cin >> n >> x >> t;
      |         ^~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << t*ceil((float)n/x);
      |         ^~~~
a.cc:11:19: error: 'ceil' was not declared in this scope
   11 |         cout << t*ceil((float)n/x);
      |                   ^~~~
a.cc: In function 'int main()':
a.cc:17:33: error: 'stdin' was not declared in this scope
   17 |         freopen("input.txt","r",stdin);
      |                                 ^~~~~
a.cc:1:1: note: 'stdin' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | ##include<bits/stdc++.h>
a.cc:17:9: error: 'freopen' was not declared in this scope
   17 |         freopen("input.txt","r",stdin);
      |         ^~~~~~~
a.cc:18:33: error: 'stdout' was not declared in this scope
   18 |         freopen("ouput.txt","w",stdout);
      |                                 ^~~~~~
a.cc:18:33: note: 'stdout' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:20:9: error: 'ios_base' has not been declared
   20 |         ios_base::sync_with_stdio(false);
      |         ^~~~~~~~
a.cc:21:9: error: 'cin' was not declared in this scope
   21 |         cin.tie(NULL);
      |         ^~~
a.cc:21:17: error: 'NULL' was not declared in this scope
   21 |         cin.tie(NULL);
      |                 ^~~~
a.cc:1:1: note: 'NULL' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | ##include<bits/stdc++.h>
Language: C

#include<stdio.h>
int main()
{
    int N,X,T;
    scanf("%d %d %d",&N,&X,&T);
    if(N%X==0)
    {
        printf("%d",N*T/X);
    }
    else
    {
        printf("%d",(int(N/X)+1)*T);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:26: error: expected ')' before 'N'
   12 |         printf("%d",(int(N/X)+1)*T);
      |                          ^
      |                          )
main.c:12:30: error: expected ')' before '+' token
   12 |         printf("%d",(int(N/X)+1)*T);
      |                     ~        ^
      |                              )
Language: Java

public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int x = in.nextInt();
		int t = in.nextInt();
		System.out.println((int)Math.ceil((double)n / (double)x) * t);
		in.close();
	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C

#include<cstdio>
int n,x,t,ans;
int main()
{
	scanf("%d%d%d",&n,&x,&t);
	ans=n/x;
	if(n%x!=0)
		ans++;
	printf("%d",ans*t);
}

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

#include <cstdio>

int n, x, t;

int main() {
	scanf("%d%d%d", &n, &x, &t);
	printf("%d", int(double( n / x * c + 1.0)));
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:7:42: error: 'c' was not declared in this scope
    7 |         printf("%d", int(double( n / x * c + 1.0)));
      |                                          ^
Language: Java

package com.codeforces.round654;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class A {
    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            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;
        }
    }

    static ArrayList<Integer> primes = new ArrayList<>();

    static long lcm(long n){
        long ans = 1;
        for (int i=0; i<primes.size() && primes.get(i)<=n; i++)
        {
            int pp = primes.get(i);
            while (pp*primes.get(i) <= n)
                pp = pp *primes.get(i);
            ans *= pp;
        }
        return ans;
    }
    public static void main(String[] args) throws Exception {
        FastReader fr = new FastReader();
        int n = fr.nextInt();
        int x = fr.nextInt();
        int xx = x;
        int t = fr.nextInt();
        int tt = t;
        while(x<n){
            x+=xx;
            t+=tt;
        }
        System.out.println(t);
    }
}

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

Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int x = in.nextInt();
		int t = in.nextInt();
		System.out.println((int)Math.ceil((double)n / (double)x) * t);
		in.close();

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner in = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
		System.out.println((int)Math.ceil((double)n / (double)x) * t);
		^
Main.java:6: error: class, interface, enum, or record expected
		in.close();
		^
3 errors
Language: Java

import java.util.*;
import java.io.*;
import java.math.*;
	        public final class Solve {
	    	static void solve(int[] arr, int n) {
	    	}
	        public static void main(String args[]) throws IOException {
	        	FastReader sc = new FastReader();
	        		int n = sc.nextInt(), x = sc.nextInt(), t = sc.nextInt();
	        		
	        		if(n%x == 0 )  {
	        			pn(n/x*t);
	        		}
	        		else {
	        			pn((n/x + 1)*t);	
	        		}
	       }
	       static void p(Object p){System.out.print(p);}
	       static void pn(){System.out.println();}
	       static void pn(Object o){System.out.println(o);}
	       
	       static class FastReader {
	       static BufferedReader br;
	       StringTokenizer st;
	       public FastReader() {
	       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());
	            }
	            
	            static int max(int[] a){
	            int max = Integer.MIN_VALUE;
	            for(int i : a) max = Math.max(max, i);
	            return max;
	            }
	            
	            public int[] readIntArray(int n) {
	            int[] arr = new int[n];
	            for(int i=0; i<n; ++i) arr[i]=nextInt();
	            return arr;
	            }
	            
	            public long[] readLongArray(int n){
	            long[] arr = new long[n];
	            for(int i=0; i<n; ++i) arr[i]=nextLong();
	            return arr;
	            }
	            
	            public int[][] readIntArray(int m, int n){
	            int[][] arr = new int[m][n];
	            for(int i = 0;i<m;i++) 
	            for(int j = 0;j<n;j++) arr[i][j] = nextInt();
	            return arr;
	            }
	            
	            public String[] readStringArray(int n) {
	            String[] arr = new String[n];
	            for(int i=0; i<n; ++i) arr[i]= nextLine();
	            return arr;
	            }
	            
	            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:4: error: class Solve is public, should be declared in a file named Solve.java
	        public final class Solve {
	                     ^
1 error
Language: C++

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

int main(){
  int a,b,c;
  cin >> a >> b >> c;
  int answer = 0;
  for(true){
    a -= b;
    answer += c;
    if(a <= 0){
      break;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before ')' token
    8 |   for(true){
      |           ^
      |           ;
a.cc:15:1: error: expected primary-expression before '}' token
   15 | }
      | ^
a.cc:14:4: error: expected ';' before '}' token
   14 |   }
      |    ^
      |    ;
   15 | }
      | ~   
a.cc:15:1: error: expected primary-expression before '}' token
   15 | }
      | ^
a.cc:14:4: error: expected ')' before '}' token
   14 |   }
      |    ^
      |    )
   15 | }
      | ~   
a.cc:8:6: note: to match this '('
    8 |   for(true){
      |      ^
a.cc:15:1: error: expected primary-expression before '}' token
   15 | }
      | ^
Language: C++

n,x,t=map(int,input().split())
ans=0;
while(n>0):
	ans+=t;
	n-=x;
print(ans)


Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n,x,t=map(int,input().split())
      | ^
a.cc:3:1: error: expected unqualified-id before 'while'
    3 | while(n>0):
      | ^~~~~
a.cc:5:9: error: 'n' does not name a type
    5 |         n-=x;
      |         ^
a.cc:6:6: error: expected constructor, destructor, or type conversion before '(' token
    6 | print(ans)
      |      ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main() {
			int N;
            int X;
            int T;
	for (int i = 0; i<3; i++)
	{
		cin>>N;
        cin>>X;
        cin>>T;
	}
  int ans=0;
  if(N%X==)
  {
  ans = (N/X);
    ans= ans*T;
  }
  else
  {
  ans = (N/X);
    ans= ans*T+1;
    
  }
  
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: expected primary-expression before ')' token
   15 |   if(N%X==)
      |           ^
Language: C

//#pragma GCC optimize (2)
#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using ii =  pair<int,int>;
const int  dir[2][2] = {{-1,0},{0,1}};
const int mod = 1000000007;
const int INF = 0x3f3f3f;
#define all(v) v.begin(),v.end()
ll quick_pow(ll base, ll n) {
    ll ans = 1;
    while (n ) {
        if (n & 1 )ans *= base;
        base *= base;
        n >>= 1;
    }
    return ans;
}
void solution();
int main() {
    int T = 1;
//    cin>>T;
    while (T--) {
        solution();
    }
    return 0;
}
void solution(){
    ll a,b,c;
    cin>>a>>b>>c;
    cout<<int(ceil((double ) a/b))*c<<endl;
}

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

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

#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);


int main()
{
	IOS;
	int n,x,t;
	cin>>n>>x>>t;
	long long int ans=n/x;
	int rem=n%x;
	if(rem){
        ans+=1;
	}
	cout<<ans*t<<endl;
	return 0;
}



Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
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 X = sc.nextInt();
        int T = sc.nextInt();
        if(N%X != 0){
            int root = N/X + 1;
        }else{
            int root = N/X
        }
        
        
      
        System.out.println(root*T);
        
        
    }
}


Compiler output:
Main.java:11: error: ';' expected
            int root = N/X
                          ^
1 error
Language: Java

import java.util.*;
public class check{
  public static void main(String arg[])
  {
   Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    int x=sc.nextInt();
    int t=sc.nextInt();
    
    int a=0;
    while(n>0)
    {
       a+=t;
       n-=x;
    }
    
    System.out.println(a);
    
  }
}

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

#include <bits/stdc++.h>
#include <climits>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstring>
#define ll long long
#define vl vector<ll>
#define vvl vector<vector<ll>>
#define deb(x) cout << #x << "=" << x << endl
#define deb2(x, y) cout << #x << "=" << x << "," << #y << "=" << y << endl
#define loop(i, L, R) for (int i = L; i < R; ++i)
#define looprev(i, L, R) for (int i = L; i > R; --i)
#define all(x) x.begin(), x.end()
#define sortall(x) sort(all(x))
#define mp(x, y) make_pair(x, y)
#define mem(a, val) memset(a, val, sizeof(a))
#define mod 1000000007
#define inf 1000000000000000001
#define eb emplace_back
#define pb push_back
#define F first
#define S second
#define IOS ios_base::sync_with_stdio(false)
#define endl "\n"
using namespace std;


void CR7()
{
	ll  i, j, n, m, x, ans;

	cin >> n >> m >> x;

	for (int i = 1; i <= 1000; ++i)
	{

		if (m * i >= n) {
			cout << i*x << endl;
			break;
		}

	}




}



int32_t main()
{

=

	int T = 1;

	//cin >> T;


	while (T--)
	{

		CR7();

	}



}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:55:1: error: expected primary-expression before '=' token
   55 | =
      | ^
a.cc:57:9: error: expected primary-expression before 'int'
   57 |         int T = 1;
      |         ^~~
a.cc:62:16: error: 'T' was not declared in this scope
   62 |         while (T--)
      |                ^
Language: C++

#include<stdio.h>

int main() {
	int n, x, t;
	scanf_s("%d", &n);
	scanf_s("%d", &x);
	scanf_s("%d", &t);

	printf("%d\n", (n % x) ? t * (n / x) : t * ((n / x) + 1));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         scanf_s("%d", &n);
      |         ^~~~~~~
      |         scanf
Language: Java

import java.util.Scanner;

public class ProblemA {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int x = in.nextInt();
		int t = in.nextInt();
		System.out.println((int)Math.ceil((double)n / (double)x) * t);
		in.close();
	}
}


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

import java.util.*;
import java.io.*;
import java.math.*;
	        public class Solve {
	    	static void solve(int[] arr, int n) {
	    	}
	        public static void main(String args[]) throws IOException {
	        	FastReader sc = new FastReader();
	        		int n = sc.nextInt(), x = sc.nextInt(), t = sc.nextInt();
	        		
	        		if(n%x == 0 )  {
	        			pn(n/x*t);
	        		}
	        		else {
	        			pn((n/x + 1)*t);	
	        		}
	       }
	       static void p(Object p){System.out.print(p);}
	       static void pn(){System.out.println();}
	       static void pn(Object o){System.out.println(o);}
	       
	       static class FastReader {
	       static BufferedReader br;
	       StringTokenizer st;
	       public FastReader() {
	       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());
	            }
	            
	            static int max(int[] a){
	            int max = Integer.MIN_VALUE;
	            for(int i : a) max = Math.max(max, i);
	            return max;
	            }
	            
	            public int[] readIntArray(int n) {
	            int[] arr = new int[n];
	            for(int i=0; i<n; ++i) arr[i]=nextInt();
	            return arr;
	            }
	            
	            public long[] readLongArray(int n){
	            long[] arr = new long[n];
	            for(int i=0; i<n; ++i) arr[i]=nextLong();
	            return arr;
	            }
	            
	            public int[][] readIntArray(int m, int n){
	            int[][] arr = new int[m][n];
	            for(int i = 0;i<m;i++) 
	            for(int j = 0;j<n;j++) arr[i][j] = nextInt();
	            return arr;
	            }
	            
	            public String[] readStringArray(int n) {
	            String[] arr = new String[n];
	            for(int i=0; i<n; ++i) arr[i]= nextLine();
	            return arr;
	            }
	            
	            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:4: error: class Solve is public, should be declared in a file named Solve.java
	        public class Solve {
	               ^
1 error
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main() {
			int N;
            int X;
            int T;
	for (int i = 0; i<3; i++)
	{
		cin>>N;
        cin>>X;
        cin>>T;
	}
  int ans=0;
  if(N%X==)
  {
  ans = (N/X)*T;
  }
  else
  {
    ans = (N%X/)*+1T
    
  }
  
	cout << (N%X)*T << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: expected primary-expression before ')' token
   15 |   if(N%X==)
      |           ^
a.cc:21:16: error: expected primary-expression before ')' token
   21 |     ans = (N%X/)*+1T
      |                ^
a.cc:21:19: error: unable to find numeric literal operator 'operator""T'
   21 |     ans = (N%X/)*+1T
      |                   ^~
Language: C++

#include “bits/stdc++.h”
using namespace std;

int main(){
  int N,X,T; cin>>N>>X>>T;
  cout<< (N/X+1)*T << endl;
}

Compiler output:
a.cc:1:10: error: extended character “ is not valid in an identifier
    1 | #include “bits/stdc++.h”
      |          ^
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include “bits/stdc++.h”
      |          ^~~~~
a.cc:1:23: error: extended character ” is not valid in an identifier
    1 | #include “bits/stdc++.h”
      |                       ^
a.cc: In function 'int main()':
a.cc:5:14: error: 'cin' was not declared in this scope
    5 |   int N,X,T; cin>>N>>X>>T;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include “bits/stdc++.h”
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<< (N/X+1)*T << endl;
      |   ^~~~
a.cc:6:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:23: error: 'endl' was not declared in this scope
    6 |   cout<< (N/X+1)*T << endl;
      |                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include “bits/stdc++.h”
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 x = sc.nextInt();
        int t = sc.nextInt();
        

        int result = Math.ceil(n/x) * t;
        System.out.println(result);

    }
}


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

import java.util.*;
import java.io.*;
import java.util.Arrays; 
import java.util.ArrayList; 
import java.util.Collections; 
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.InputStream;
import java.util.StringTokenizer;
import java.math.BigInteger;

public class Solution {
    



    public static void main(String[] args) {
        try (PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out))) {
            FastScanner in = new FastScanner(System.in);
            int n = in.nextInt();
            int x = in.nextInt();
            int t = in.nextInt();

            int countMin = 0;
            int madeSnacks = 0;

            while(true) {
                countMin = countMin + t;
                madeSnacks = madeSnacks + x;
                if(madeSnacks >= n) {
                    out.println(countMin);
                    break;
                }
            }




        } finally {
            //out.close();
        }
        
           
    }
}




class FastScanner {
   private final BufferedReader br;
   private StringTokenizer st;
 
    FastScanner(InputStream InputStream) {
        br = new BufferedReader(new InputStreamReader(InputStream));
    }
    
    String next() {
        while (st == null || !st.hasMoreTokens()) {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
        return st.nextToken();
    }
    
    int nextInt() {
        return Integer.parseInt(next());
    }
    
    long nextLong() {
        return Long.parseLong(next());
    }
    
    double nextDouble() {
        return Double.parseDouble(next());
    }


    
    ArrayList<Integer> nextIntList(int count) {
        ArrayList<Integer> array = new ArrayList<>();
        for (int n = 0; n < count; n++) {
            int number = nextInt();
            array.add(number);
        }
        return array;
    }
    
    int[] nextIntArray(int count) {
        int[] array = new int[count];
        for (int n = 0; n < count; n++) {
            array[n] = nextInt();
        }
        return array;
    }
}


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

#include<bits/stdc++.h>
#define pb push_back
#define int long long int
#define INF 1e18
#define vec vector<int>
#define REP(i,a,b) for(i=a;i<b;i++)
using namespace std;
int32_t main()
{
  int t=1;
  //cin>>t;
  while(t--)
  {
    int n,x,t;
    cin>>n>>x>>t;
    cout<<int(ceil(double(n)/x)*t)<<"\n";
  }
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:3:13: error: expected primary-expression before 'long'
    3 | #define int long long int
      |             ^~~~
a.cc:16:11: note: in expansion of macro 'int'
   16 |     cout<<int(ceil(double(n)/x)*t)<<"\n";
      |           ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,x,t,ans;
	cin>>n>>x>>t;
	if(n%x==0)
	   ans=t*(n/x);
	else
	   ans=t*(n/x+1);
	cout<<ans<<"\n";	
	return 0;
}#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,x,t,ans;
	cin>>n>>x>>t;
	if(n%x==0)
	   ans=t*(n/x);
	else
	   ans=t*(n/x+1);
	cout<<ans<<"\n";	
	return 0;
}

Compiler output:
a.cc:13:2: error: stray '#' in program
   13 | }#include<bits/stdc++.h>
      |  ^
a.cc:13:3: error: 'include' does not name a type
   13 | }#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc:15:5: error: redefinition of 'int main()'
   15 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
Language: Java

import java.util.Scanner;

public class A {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int res = (int) Math.ceil(a / b) * c;
        System.out.println(res);
    }
}

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

#include <stdio.h>

int main (void) 
{
    int n,x,t;
    int buff;
    int ans

    scanf("%d %d %d", &n, &x, &t);

    if (n/x < 1) { 
        ans = t;
    }
    else {
        ans = n / x * t;
    }
    printf("%d", ans);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    9 |     scanf("%d %d %d", &n, &x, &t);
      |     ^~~~~
main.c:12:9: error: 'ans' undeclared (first use in this function)
   12 |         ans = t;
      |         ^~~
main.c:12:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main() {
  int n,x,t;
  scanf("%d %d %d\n", &n, &x, &t);
  if(x != 0)
    int ans = n / x;
  int r = n % x;
  if(r==0){
    return ans;
  } else {
    return ans * 2;
  }
}


Compiler output:
main.c: In function 'main':
main.c:7:5: error: expected expression before 'int'
    7 |     int ans = n / x;
      |     ^~~
main.c:10:12: error: 'ans' undeclared (first use in this function)
   10 |     return ans;
      |            ^~~
main.c:10:12: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.Scanner;

public class ProblemA {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int x = in.nextInt();
		int t = in.nextInt();
		System.out.println((int)Math.ceil((double)n / (double)x) * t);
		in.close();
	}
}

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

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner in = new Scanner(System.in);
    int N = in.nextInt(), X = in.nextInt(), T = in.nextInt();
    if(N % X !=0){
      System.out.println((N / X + 1) * T);
    }else{
      System.out.println(N / X * T);
  }
}

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

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


Compiler output:
main.c: In function 'main':
main.c:5:10: error: lvalue required as left operand of assignment
    5 |   if (a%b=0){
      |          ^
Language: C

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int x = scan.nextInt();
		int t = scan.nextInt();
		int ans = 0;

		while(n >= x) {
			n -= x;
			ans++;
		}
		System.out.println(ans*t);

	}

}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:2:1: error: unknown type name 'public'
    2 | public class Main {
      | ^~~~~~
main.c:2:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    2 | public class Main {
      |              ^~~~
Language: Java

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

public class Main {


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

        FastReader fs = new FastReader();
        out = new PrintWriter(new BufferedOutputStream(System.out));

        int n = fs.nextInt() ;
      int x = fs.nextInt() ;
      int t = fs.nextInt() ;
      
      out.println((int)Math.ciel(n/x)*t);

        out.close();

    }

    //-----------PrintWriter for faster output---------------------------------
    public static PrintWriter out;

    //-----------MyScanner class for faster input----------
    public static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            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:16: error: cannot find symbol
      out.println((int)Math.ciel(n/x)*t);
                           ^
  symbol:   method ciel(int)
  location: class Math
1 error
Language: C++

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

int main()
{
int a,b,c;
  cin>>a>>b>>c;
  int p=(a+b-1)/b;
  p=p*c;
  cout<<p<<"\n;
}   

Compiler output:
a.cc:10:12: warning: missing terminating " character
   10 |   cout<<p<<"\n;
      |            ^
a.cc:10:12: error: missing terminating " character
   10 |   cout<<p<<"\n;
      |            ^~~~
a.cc: In function 'int main()':
a.cc:11:1: error: expected primary-expression before '}' token
   11 | }
      | ^
Language: C++

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

int main()
{
  int n,x,t;
  cin>>n>>x>>t;
  int ans=0;
  float x=n/x;
  int a=ceil(x);
  ans=a*t;
  cout<<ans<<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: conflicting declaration 'float x'
    9 |   float x=n/x;
      |         ^
a.cc:6:9: note: previous declaration as 'int x'
    6 |   int n,x,t;
      |         ^
Language: Java

import java.util.Map.Entry;
import java.util.*;
 
//import org.w3c.dom.css.Counter;
 
public class Main {
//public class App {
 
    public static void main(final String[] args){
     //スキャン
     final Scanner s = new Scanner(System.in);
      int N = Integer.parseInt(s.next());
      int X = Integer.parseInt(s.next());
      int T = Integer.parseInt(s.next());
      int ans = N /X;
      if(N%X !=0){ans ++;}
      System.out.println(ans*T);
    }


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

#include <iostream>
using namespace std;

int main() {
	int N, X, T, I;
  	cin >> N >> X >> T;
  	I = N / X
    if (N % X == 0) {
		cout << I << endl;
     } else {
        I++
		cout << I << endl;
     }
}
  	

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before 'if'
    7 |         I = N / X
      |                  ^
      |                  ;
    8 |     if (N % X == 0) {
      |     ~~            
a.cc:10:8: error: 'else' without a previous 'if'
   10 |      } else {
      |        ^~~~
a.cc:11:12: error: expected ';' before 'cout'
   11 |         I++
      |            ^
      |            ;
   12 |                 cout << I << endl;
      |                 ~~~~
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main() {
	int N;
    int X;
    int T;
	for (int i = 0; i<3; i++)
	{
		cin>>N;
        cin>>X;
        cin>>T;
	}
	cout << (N%X)*T << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:14:33: error: expected '}' at end of input
   14 |         cout << (N%X)*T << endl;
      |                                 ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int n,x,t,ans;
    cin >> n >> x >> t;
    if (n < x){
        ans = t;
    }
    else if (n % x == 0){
        ans = n * t / x;
    }
    else{
        ans = (n/x + 1) * t;3
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:30: error: expected ';' before '}' token
   13 |         ans = (n/x + 1) * t;3
      |                              ^
      |                              ;
   14 |     }
      |     ~
Language: C

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

int main(void){
  int n, x, t, s;
  cin >> n >> x >> t;
  if(n%x==0){
    s=t*(n/x);
  }
  else{
    s=t*((n/x)+1);
  }
  cout << s;
  return 0;
}

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

#include<iostream>
using namespace std;
int main(){
int n,x,t;
cin n >> x >> t;
  if(n%x==0){
  cout << (n/x+1)*t << endl;
  }
  else{
  cout << n/x*t << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: expected ';' before 'n'
    5 | cin n >> x >> t;
      |    ^~
      |    ;
Language: C++

#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
using namespace std;
using ll = long long;
#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++)
int main() {
  int N, X, T;
  cin >> N >> X >> C;
  if(N % X == 0) {
    cout << N / T * T << endl;
  }
  else {
    cout << N / X * T + T << endl;
  }
}

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

#include<bits/stdc++.h>
#define SaveTime ios_base::sync_with_stdio(false);cin.tie(0);
#define MOD 1e9+7
#define ll long long
#define ull unsigned long long
#define pb push_back
#define PI 4*atan(1)

using namespace std;

int main()
{
   string s; cin >> s;
   int sum = 0;
   for (int i = 0; i < s.lenght(); i++) {
      sum+= s[i]-'0';
   }
   if (sum % 9 == 0)
      cout << "Yes";
   else
      cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:26: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'lenght'; did you mean 'length'?
   15 |    for (int i = 0; i < s.lenght(); i++) {
      |                          ^~~~~~
      |                          length
Language: C++

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

int main()
{
    int N, T, X;
    cin >> N >> X >> T;
    int a, ans;
    a = N / X;
    b = N % X;
    if (b != 0)
    {
        ans = (a + 1) * T;
        cout << ans << endl;
    }
    else
    {
        ans = a * T;
        cout << ans << endl;
    }
    return 0;
}

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

#include <iostream>
using namespace std;

int n, x, t;

int main () {
	cin >> n >> x >> t;
	int ans = n / x * t;
	if (n % x != 0) ans += t;
	cout << ans;
	return 0;
}

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

#include <iostream>
#include <vector>
#include <string.h>

#define mod 1000000007;
#define ll long long
#define TRUE 1
#define FALSE 0
typedef unsigned char byte;

using namespace std;

int main()
{
    int N, X, T;

    cin >> N >> X >> T;

    cout << (N / X + 1) * T;

    return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   21 |     return;
      |     ^~~~~~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;
import java.util.StringTokenizer;

public class Try3
{
	
	public static ArrayList<String> AL = new ArrayList<String>();
	
	
	public static void main(String[] args) {
		FastScanner fs=new FastScanner();
		int n = fs.nextInt();
		int x = fs.nextInt();
		int t = fs.nextInt();
		int count =t;
		int c1 = x;
		while(n>c1) {
			c1+=x;
			count+=t;
		}
		System.out.println(count);
		
		
	}
	
	static final Random random=new Random();
	
	static void ruffleSort(int[] a) {
		int n=a.length;//shuffle, then sort 
		for (int i=0; i<n; i++) {
			int oi=random.nextInt(n), temp=a[oi];
			a[oi]=a[i]; a[i]=temp;
		}
		Arrays.sort(a);
	}
	
	static class FastScanner {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st=new StringTokenizer("");
		String next() {
			while (!st.hasMoreTokens())
				try {
					st=new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			return st.nextToken();
		}
		
		int nextInt() {
			return Integer.parseInt(next());
		}
		int[] readArray(int n) {
			int[] a=new int[n];
			for (int i=0; i<n; i++) a[i]=nextInt();
			return a;
		}
		long nextLong() {
			return Long.parseLong(next());
		}
	}

	
}


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

//#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<vector>
#include<map>
#include<stack>
#include<queue>
#include<sstream>

using namespace std;
#define ll 		long long
#define int     long long
#define ld 		long double
#define vll 	vector<ll>
#define pll 	pair<ll,ll>
#define map1 	map<ll,ll>
#define pqb 	priority_queue<ll>
#define pqs 	priority_queue<ll, vll,greater<ll> >
#define push_back emplace_back
#define N 		100009
#define mod 	1e9+9
#define MAX 	1e9
#define test(tt123) ll Tt123,tt123; cin>>Tt123; for(tt123=1 ; t<=Tt123 ; t++)    
#define one(x)	__builtin_popcountll(x)
#define zero(x) __builtin_ctzll(x)
#define precision(x) cout<<fixed<<setprecision(x);
#define debug(x)   cout<<"HELLO "<<x<<endl
const double pi = 3.14159265358979323846;
//vector<pll> p;
void fast(){
	//p.push_back({1,0}); p.push_back({0,1}); p.push_back({-1,0});p.push_back({0,-1});
	//p.push_back({-1,-1}); p.push_back({-1,1}); p.push_back({1,-1});p.push_back({1,1});
	ios_base::sync_with_stdio(0);cin.tie(0); cout.tie(0);
	//#ifndef ONLINE_JUDGE
	//freopen("input.txt", "r", stdin);freopen("output.txt", "w", stdout);
	//#endif
}

int32_t main(){
	fast();
	int n,x,t; cin>>n>>x>>t;
	
	int ans = (ceil((ld)n/x))*t;
	cout<<ans;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:43:20: error: 'ceil' was not declared in this scope
   43 |         int ans = (ceil((ld)n/x))*t;
      |                    ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  cin<<int N<<int X<<int T;
  if(N%X==0){  
    cout>>N/X*T<<endl;
  }else{
    cout>>(N/X+1)*T>>endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: expected primary-expression before 'int'
    4 |   cin<<int N<<int X<<int T;
      |        ^~~
a.cc:5:6: error: 'N' was not declared in this scope
    5 |   if(N%X==0){
      |      ^
a.cc:5:8: error: 'X' was not declared in this scope
    5 |   if(N%X==0){
      |        ^
a.cc:6:15: error: 'T' was not declared in this scope
    6 |     cout>>N/X*T<<endl;
      |               ^
a.cc:8:19: error: 'T' was not declared in this scope
    8 |     cout>>(N/X+1)*T>>endl;
      |                   ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	int n,x,t,q=0;
	cin >> n>>x>>t;
	r=n%x;
	q=(n/x)*t;
	if(r!=0)
	q=q+1;
	cout<<q;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'r' was not declared in this scope
    7 |         r=n%x;
      |         ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
const int INF = 1001001001;

int main(){
    int n,x,t;
    cin >> n >> x >> t;
    int ans = (n / x) * t;
    if(n % x) ans += t;
    cout << ans << endl;g
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: 'g' was not declared in this scope
   12 |     cout << ans << endl;g
      |                         ^