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;}
  else {cout << (N / X + 1) * T << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: lvalue required as left operand of assignment
    7 |   if (N % X = 0) {cout << N / X * T << endl;}
      |       ~~^~~
Language: Java

import java.util.*;

public class P1 {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt(), X = reader.nextInt(), T = reader.nextInt();
		System.out.println((int) Math.ceil(((double) N) / X) * T);
		reader.close();
	}
	
}


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

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

public class Takoyaki {
	
	public static void main(String[] args) {
        FastScanner in = new FastScanner();
        PrintWriter out = new PrintWriter(System.out);
        int n = in.nextInt(), x = in.nextInt(), t = in.nextInt();
        long ans = 0;
        int y = n/x;
        if(n%x!=0) y++;
        ans = y*t;
        out.println(ans);
        
        out.flush();
	}
	
	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());
		}
		
		long nextLong() {
			return Long.parseLong(next());
		}
		
		int[] readArray(int n) {
			int a[] = new int[n];
			for(int i=0;i<n;i++) a[i] = nextInt();
			return a;
		}
		
		long[] readArray(int n,long x) {
			long a[] = new long[n];
			for(int i=0;i<n;i++) a[i] = nextLong();
			return a;
		}
		
	}
}











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

#include<bits/stdc++.h>
using namespace std;
int main (){
	ios::sync_with_stdio(0);
	cin.tie(0);
	int n,x,t;
	cin>>n>>x>>t;
	int k=n/x;
	if (n%x) k++;
	cout<<k*t;
}

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

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

#pragma warning (push)
#pragma warning (disable : 4996)
#pragma warning (disable : 6031)
#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;
}

#pragma warning (pop)

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

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

public class CP{



  public static OutputStream out=new BufferedOutputStream(System.out);
  static Scanner sc=new Scanner(System.in);
  static long mod=1000000007l;
  static int INF=10000000;

  //nl-->neew line; //l-->line;  //arp-->array print;  //arpnl-->array print new line
  public static void nl(Object o) throws IOException{out.write((o+"\n").getBytes()); }
  public static void l(Object o) throws IOException{out.write((o+"").getBytes());}
  public static void arp(int[] o) throws IOException{for(int i=0;i<o.length;i++) out.write((o[i]+" ").getBytes()); out.write(("\n").getBytes());}
  public static void arpnl(int[] o) throws IOException{for(int i=0;i<o.length;i++) out.write((o[i]+"\n").getBytes());}
  public static void scanl(long[] a,int n) {for(int i=0;i<n;i++) a[i]=sc.nextLong();}
  public static void scani(int[] a,int n) {for(int i=0;i<n;i++) a[i]=sc.nextInt();}
  public static void scan2D(int[][] a,int n,int m) {for(int i=0;i<n;i++) for(int j=0;j<m;j++) a[i][j]=sc.nextInt();}
  //
  static long cnt;
  static TreeSet<Integer> ans;
  static int n,m;
  static int[][] dp;
  static HashMap<Pair,Boolean> arrl;
  static Stack<Integer> stk;
  static Queue<Integer> queue;
  static HashSet<Integer> mtrnode;
  static ArrayList<Pair> arrlans;
  static int[] ff;


  public static void main(String[] args) throws IOException{
    long sttm=System.currentTimeMillis();
    long mod=1000000007l;

    int n=sc.nextInt(), x=sc.nextInt(), t=sc.nextInt();
    int ans=n/x;
    if(n%x!=0){
        ans++;
    }
    nl(ans*t);

    out.flush();
  }

}

class Pair{
  int x; int y;
  Pair(int x,int y){
    this.x=x;
    this.y=y;
  }
}


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

#include <bits/stdc++.h>
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 {
		cout << I + 1 << endl;
     }
}
  		

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: 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 {
      |        ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: lvalue required as left operand of assignment
    6 |   if(n%x=0){
      |      ~^~
Language: C++

 #include <bits/stdc++.h>
#define ll         long long int 
#define pb         push_back
#define umap       unordered_map
#define mod        1000000007
#define all(x)     (x).begin(), (x).end()
#define rall(x)    (x).rbegin(), (x).rend()
#define MN(a,b,c)  min(a,min(b,c))
#define MX(a,b,c)  max(a,max(b,c))
#define pr1         pair<ll,ll>
#define F          first
#define S          second
#define mP         make_pair
#define f(i,n)     for(int i=0;i<n;i++)
#define f1(i,x,y)  for(int i=x;i<=y;i++)
#define f2(i,x,y)  for(int i=x;i>=y;i--)
#define yes        cout<<"YES"<<"\n"
#define no         cout<<"NO"<<"\n"
#define modsum(a,b)  ((a%mod)+(b%mod))%mod
#define modpro(a,b)  ((a%mod)*(b%mod))%mod
//__builtin_popcount(x)
//__builtin_parity(x)   =(number of set bits)%2
//__builtin_clz(x)      to count the number of leading  zeroes 
//__builtin_ctz(x)      to count the number of trailing zeroes 
//__gcd(a,b)
using namespace std;
int main()
{
 ios_base::sync_with_stdio(false);
 cin.tie(NULL);
ll n,x,t;
  cin>>n>>x>>t;
ll y=n/x;
if(n%x)y++;
cout<<y*t
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:35:10: error: expected ';' before '}' token
   35 | cout<<y*t
      |          ^
      |          ;
   36 | }
      | ~
Language: C++

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

int main() {
 int n,x,t;
 cin >> n >> x>>t;
 
 cout << (n+x-1)/x*t;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:2: error: 'cin' was not declared in this scope
    8 |  cin >> n >> x>>t;
      |  ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <algorithm>
  +++ |+#include <iostream>
    2 | #define rep(i,n) for (int i = 0; i < (n); ++i)
a.cc:10:2: error: 'cout' was not declared in this scope
   10 |  cout << (n+x-1)/x*t;
      |  ^~~~
a.cc:10:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:6:24: error: 'n' undeclared (first use in this function)
    6 |   scanf("%d %d %d\n", &n, &x, &t);
      |                        ^
main.c:6:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long int ll;

#define FOR(i,l,r) for(i=l;i<r;i++)

#define REP(i,n) FOR(i,0,n)

#define ALL(x) x.begin(),x.end()

#define P pair<ll,ll>

#define F first

#define S second

signed main(){

  ll N,i,ans;cin>>N>>X>>T;

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

  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:22: error: 'X' was not declared in this scope
   21 |   ll N,i,ans;cin>>N>>X>>T;
      |                      ^
a.cc:21:25: error: 'T' was not declared in this scope
   21 |   ll N,i,ans;cin>>N>>X>>T;
      |                         ^
Language: C

#include<stdio.h>

int main(){
  int n,x,t;
  scanf("%d %d %d",&n,&x,&t);
  
  if(n%x==0)n+=1;
  
  printf"%d",t*((n/x)+1));
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: expected ';' before string constant
    9 |   printf"%d",t*((n/x)+1));
      |         ^~~~
      |         ;
main.c:9:25: error: expected statement before ')' token
    9 |   printf"%d",t*((n/x)+1));
      |                         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  cin>>n>>x>>t;
  cout<<(n/x)*t

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: 'n' was not declared in this scope
    4 |   cin>>n>>x>>t;
      |        ^
a.cc:4:11: error: 'x' was not declared in this scope
    4 |   cin>>n>>x>>t;
      |           ^
a.cc:4:14: error: 't' was not declared in this scope; did you mean 'tm'?
    4 |   cin>>n>>x>>t;
      |              ^
      |              tm
a.cc:5:16: error: expected '}' at end of input
    5 |   cout<<(n/x)*t
      |                ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
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 {
		cout << I + 1 << endl;
     }
}
  		

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: 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 {
      |        ^~~~
Language: C++


	
	ll ans = k*(n/x);
	if(n%x != 0) ans += k;
	cout << ans;
	return;
}

int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	while(t--){
		solve();
	}
    return 0;
}


Compiler output:
a.cc:3:9: error: 'll' does not name a type
    3 |         ll ans = k*(n/x);
      |         ^~
a.cc:4:9: error: expected unqualified-id before 'if'
    4 |         if(n%x != 0) ans += k;
      |         ^~
a.cc:5:9: error: 'cout' does not name a type
    5 |         cout << ans;
      |         ^~~~
a.cc:6:9: error: expected unqualified-id before 'return'
    6 |         return;
      |         ^~~~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
a.cc: In function 'int main()':
a.cc:10:9: error: 'ios_base' has not been declared
   10 |         ios_base::sync_with_stdio(false);
      |         ^~~~~~~~
a.cc:11:9: error: 'cin' was not declared in this scope
   11 |         cin.tie(NULL);
      |         ^~~
a.cc:11:17: error: 'NULL' was not declared in this scope
   11 |         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 | 
a.cc:12:15: error: 't' was not declared in this scope
   12 |         while(t--){
      |               ^
a.cc:13:17: error: 'solve' was not declared in this scope
   13 |                 solve();
      |                 ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
# define ll  long long  int
# define ld  long double
#define fin0(i,a,b,c) for(int i=a;i<b;i+=c)
#define fin1(i,a,b,c) for(int i=a;i<=b;i+=c)
#define fde0(i,a,b,c) for(int i=a;i>b;i-=c)
#define fde1(i,a,b,c) for(int i=a;i>=b;i-=c)
#define vi vector<int>
#define vll vector<ll>
#define vboo vector<bool>
#define all(a) a.begin(),a.end()
# define pb push_back
# define pp pop_back
# define ff first
# define ss second
# define mp make_pair
# define ac accumulate
# define mod 1000000007
# define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define t     \
    int t;    \
    cin >> t; \
    while (t--)
# define trace1(x)                cerr << #x << ": " << x << "\n";
# define trace2(x, y)             cerr << #x << ": " << x << " | " << #y << ": " << y << "\n";
# define trace3(x, y, z)          cerr << #x << ": " << x << " | " << #y << ": " << y << " | " << #z << ": " << z << "\n";
# define trace4(a, b, c, d)       cerr << #a << ": " << a << " | " << #b << ": " << b << " | " << #c << ": " << c << " | " << #d << ": " << d << "\n";
const ll INF= 1e18;


int main(){
  IOS;
  int n,x,t;
  cin>>n>>x>>t;
  cout<<(ceil(n/x))*t;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:5: error: expected unqualified-id before 'int'
   22 |     int t;    \
      |     ^~~
a.cc:34:11: note: in expansion of macro 't'
   34 |   int n,x,t;
      |           ^
a.cc:23:12: error: 't' was not declared in this scope
   23 |     cin >> t; \
      |            ^
a.cc:34:11: note: in expansion of macro 't'
   34 |   int n,x,t;
      |           ^
a.cc:22:5: error: expected primary-expression before 'int'
   22 |     int t;    \
      |     ^~~
a.cc:35:14: note: in expansion of macro 't'
   35 |   cin>>n>>x>>t;
      |              ^
a.cc:22:5: error: expected primary-expression before 'int'
   22 |     int t;    \
      |     ^~~
a.cc:36:21: note: in expansion of macro 't'
   36 |   cout<<(ceil(n/x))*t;
      |                     ^
Language: C++

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

int main() {
	ios_base::syn_with_stdio(false);
	cin.tie(NULL);
	int N, X, T;
	cin >> N >> X >> T;
	cout << N / (X * T);	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: 'syn_with_stdio' is not a member of 'std::ios_base'
    6 |         ios_base::syn_with_stdio(false);
      |                   ^~~~~~~~~~~~~~
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
}
ll n,m;

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:44:20: error: 'ceil' was not declared in this scope
   44 |         int ans = (ceil((ld)n/x))*t;
      |                    ^~~~
Language: C++

#include <bit/stdc++.h>

#define ll long long
using namespace std;

void solve() {
    double a, b, c;
    cin >> a >> b >> c;
    cout << ceil(a/(b*c));
}

int main () {
    int t = 1;
    //cin >> t;
    while(t--) {
        solve();
    }
    return 0;
}


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

#include<stdio.h>

int main(){
  int n,x,t;
  scanf("%d %d %d",&n,&x,&t);
  
  if(n%x==0)n+=1;
  
  printf"%d",(t*(n/x+1));
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: expected ';' before string constant
    9 |   printf"%d",(t*(n/x+1));
      |         ^~~~
      |         ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define f(i,a,b) for(int i=a;i<=b;i++)
inline ll r() {
	ll x=0,f=1;
	char c=getchar();
	while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();}
	while(isdigit(c))x=x*10+c-'0',c=getchar();
	return x*f;
}
#define d r()
ll a,b,c;
int main(){
	a=d,b=d,c=d;
	printf("%lld",c*((a%b?a/b+1:a/b)));a
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:45: error: expected ';' before 'return'
   16 |         printf("%lld",c*((a%b?a/b+1:a/b)));a
      |                                             ^
      |                                             ;
   17 |         return 0;
      |         ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    5 |   if(n % x != 0)
      |      ~ ^ ~
      |      |   |
      |      |   double
      |      double
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mp make_pair
ll bg = 1000000007;
#define ff(i,n) for(i=0;i<n;i++) 
int main()
{
    ll t;
    t = 1;
    while(t--)
    {
    	ll i,n,a,b,x,t;
		cin>>n>>x>>t;
		ll s=n/x;a
		if(n%x!=0)
			s++;
		ll kk = t*s;
		cout<<kk;	    
    }
    return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:16:27: error: expected ';' before 'if'
   16 |                 ll s=n/x;a
      |                           ^
      |                           ;
   17 |                 if(n%x!=0)
      |                 ~~
Language: C++

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

  int ans = (n/x)*t;
  if (n%x > 0) {
    ans += t;
  }

  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> n >> x >> t;
      |   ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << ans << endl;
      |   ^~~~
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |   cout << ans << endl;
      |                  ^~~~
Language: C

#include <string>
#include <vector>
#include <iostream>
#include <iomanip>
#include <cmath>
#include <algorithm>
#include <functional>
#include <utility>
#include <numeric>
#include <map>
#include <deque>
#include <queue>
#include <tuple>
using namespace std;

#define prec(i) cout << fixed << setprecision(i)

void output_yn(bool isYes) {
	if (isYes)
		cout << "Yes" << endl;
	else
		cout << "No" << endl;
}

const long long MOD = 1000000007;

long long fact(long long k) {
	long long sum = 1;
	for (long long i = 2; i <= k; i++)
		sum *= i;

	return sum;
}

long long fact_mod(long long k) {
	long long sum = 1;
	for (long long i = 2; i <= k; i++)
		sum = (sum * i) % MOD;

	return sum;
}

int ctoi(char c) {
	if (c >= '0' && c <= '9')
		return c - '0';
	else
		return -1;
}

long long pow_mod(int a, int b) {
	long long ans = 1;
	for (int i = 0; i < b; i++)
		ans = (ans * a) % MOD;

	return ans;
}

long long powll(long long a, long long  b) {
	long long ans = 1;
	for (long long i = 0; i < b; i++)
		ans = ans * a;

	return ans;
}

long long modinv(long long a) {

	long long b = MOD, u = 1, v = 0;
	while (b) {
		long long t = a / b;
		a -= t * b; swap(a, b);
		u -= t * v; swap(u, v);
	}
	u %= MOD;
	if (u < 0) u += MOD;

	return u;
}

long long _gcd(long long a, long long b)
{
	if (a < b)
		swap(a, b);

	if (a % b == 0)
		return b;
	else
		return _gcd(b, a % b);
}

long long _lcm(long long a, long long b)
{
	return (((a * b) % MOD) * modinv(_gcd(a, b))) % MOD;
}

long long ncr(long long n, long long r) {
	long long sum = 1;
	for (long long i = r + 1; i <= n; i++)
		sum *= i;

	return sum;
}


int main()
{

	long long n, x, t;
	cin >> n >> x >> t;



	cout << (int)ceil(n / (float)x) * t << endl;

	return 0;
}

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

#include<vector>
#include<iostream>
#include<list>


using namespace std;


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

Compiler output:
a.cc:9:1: error: '::main' must return 'int'
    9 | void main() {
      | ^~~~
Language: C++

/******************************************************************************

Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.

*******************************************************************************/
#include <stdio.h>
using namespace std;
#define ll long long int


int main()
{
    ll i,j,n;
    cin>>i>>j>>n;
    if(i%j==0){
        cout<<(i/j)*n;
    }
    else{
        cout<<((i/j)+1)*n;
    }
    
    //cout<<"YES"<<endl;
    //cout<<"NO"<<endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: 'cin' was not declared in this scope
   17 |     cin>>i>>j>>n;
      |     ^~~
a.cc:10:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    9 | #include <stdio.h>
  +++ |+#include <iostream>
   10 | using namespace std;
a.cc:19:9: error: 'cout' was not declared in this scope
   19 |         cout<<(i/j)*n;
      |         ^~~~
a.cc:19:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:9: error: 'cout' was not declared in this scope
   22 |         cout<<((i/j)+1)*n;
      |         ^~~~
a.cc:22:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

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

typedef long long ll;

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

	int m = n / x;
	if (m * x < n) ++m;
	cout << m * t << endl;

	return 0;
}


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

#include<iostream>
#include<vector>
#include<algorithm>
#include<string>

using namespace std;
int main()
{
	int N,X,T;
	cin >> N>>X>>T;
	if (N%X == 0) {
		cout << (N / X * T);
	}
	else {
		cout << ((N / X+1) * T);

	}
	return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<vector>
^
Main.java:3: error: illegal character: '#'
#include<algorithm>
^
Main.java:4: error: illegal character: '#'
#include<string>
^
Main.java:10: error: not a statement
	cin >> N>>X>>T;
	           ^
Main.java:12: error: not a statement
		cout << (N / X * T);
		     ^
Main.java:15: error: not a statement
		cout << ((N / X+1) * T);
		     ^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
8 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
 
int main() {
  ll N,X,T;
  ci>>N>>X>>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:8:3: error: 'ci' was not declared in this scope
    8 |   ci>>N>>X>>T;
      |   ^~
Language: C++

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

using namespace std;

int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  if(n%x==0) cout<<n/x<<endl;
  else cout<<n/x+1<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: 'n' was not declared in this scope
   11 |   if(n%x==0) cout<<n/x<<endl;
      |      ^
a.cc:11:8: error: 'x' was not declared in this scope
   11 |   if(n%x==0) cout<<n/x<<endl;
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define int long long
#define all(sdk) sdk.begin(),sdk.end()
#define mll map<ll, ll>
#define pb push_back
#define lb lower_bound
#define ub upper_bound
#define rep(i,a,b) for(ll i=a;i<b;++i)
#define repd(i,a,b) for(ll i=a;i>=b;--i)
//#define mp make_pair
#define hell 1000000007
#define endl '\n'
#define vvll vector<vector<int> >
#define vll vector<int>
#define mint map<int,int>
#define sz(x) (int)x.size()
#define sll set<int>
#define pll pair<int,int>
#define F first
#define S second
#define INF 1e18
#define NINF -1e16

#define maxn 1000005
int spf[maxn];
vll primes;
void sieve()
{
	rep(i,2,maxn)
	{
		if (spf[i]==0)
		{
			spf[i]=i;
			for(int j=2*i;j<=maxn;j+=i)
			{
				if(spf[j]==0)
					spf[j]=i;
			}
		}
	}
}
// void SieveOfEratosthenes(int n) 
// { 
//     bool prime[n+1]; 
//     memset(prime, true, sizeof(prime)); 
  
//     for (int p=2; p*p<=n; p++) 
//     { 
//         if (prime[p] == true) 
//         { 
//             for (int i=p*2; i<=n; i += p) 
//                 prime[i] = false; 
//         } 
//     }
//     for (int p=2; p<=n; p++) 
//       if (prime[p]) 
//           primes.pb(p); 
// } 
// bool isPrime(ll n) 
// { 
//     if (n <= 1) 
//         return false; 
//     if (n <= 3) 
//         return true; 
//     if (n % 2 == 0 || n % 3 == 0) 
//         return false; 
//     for (int i = 5; i * i <= n; i = i + 6) 
//         if (n % i == 0 || n % (i + 2) == 0) 
//             return false; 
//     return true; 
// } 
// ll power(ll x,ll y)
// {
//     ll X=x;
//     //X=X%p;//if x is greater than p
//     if(X==0)
//     {
//         return 0;
//     }
//     ll res=1ll;
//     while(y>0)
//     {
//         if(y&1)
//         {
//             res=((res)*(X));
//             y--;
//         }
//         y=y>>1;
//         X=((X)*(X));
//     }
//     // res=(res>=0)?(res%p):(res+p)%p;
//     return(res);
// }
void dfs(int u, int par){
    cnt[u] = 1;
    p[u] = par;
    for(int i : g[u]){
        if(i != par){
            dfs(i,u);
            cnt[u] += cnt[i];
        }
    }
}
int children(vll v[],int parent,int src,vll& chil)
{
	int ans =0;
	for(auto it:v[src])
	{
		if(it!=parent)
		{
			ans+= 1+children(v,src,it,chil);
		}
	}
	chil[src] = ans;
	return ans;
 
}
signed main() {
	//freopen("output.txt","w",stdout);
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	srand (static_cast <unsigned> (time(0)));
// 	SieveOfEratosthenes(300001); 
// 	sort(all(primes));
    //sieve();
	int t=1;
	//cin >> t;
	while (t--) 
	{
	    int n,x,t;
      cin >> n >> x >> t;
      int c=n/x;
      cout << c*t<<endl;
		
		
	}
	return 0;
}

Compiler output:
a.cc: In function 'void dfs(long long int, long long int)':
a.cc:97:5: error: 'cnt' was not declared in this scope; did you mean 'int'?
   97 |     cnt[u] = 1;
      |     ^~~
      |     int
a.cc:98:5: error: 'p' was not declared in this scope
   98 |     p[u] = par;
      |     ^
a.cc:99:17: error: 'g' was not declared in this scope
   99 |     for(int i : g[u]){
      |                 ^
Language: C++

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

int main{
  int n, x, t;
  cin >> n >> x >> t;
  cout << n/x *t << endl;
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int n, x, t;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> n >> x >> t;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << n/x *t << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

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

int main() {
	ios_base::syn_with_stdio(false);
	cin.tie(NULL);
	int N, X, T;
	cout << N / (X * T);	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: 'syn_with_stdio' is not a member of 'std::ios_base'
    6 |         ios_base::syn_with_stdio(false);
      |                   ^~~~~~~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:30: error: expected ';' before '}' token
    8 |         cout << T*((N+X-1)/X)
      |                              ^
      |                              ;
    9 | }
      | ~
Language: C

#include <iostream>
#include <string>
#include <vector>

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

using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;

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

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

  return 0;
}


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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public class Main {

    public static void main(String[] args) throws IOException {
        new Main().solve();
    }

    private void solve() throws IOException {
        BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out);

        StringTokenizer tokenizer = new StringTokenizer(f.readLine());
        int n = Integer.parseInt(tokenizer.nextToken());
        int x = Integer.parseInt(tokenizer.nextToken());
        int t = Integer.parseInt(tokenizer.nextToken());
        int time = (n / x) * t;
        if (n % x != 0) time += t;

        out.println(time);

        out.close();
    }

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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define REP(i, n) for(int i = 0; i < (int)(n); i++)
#define IN(type, n) type n; cin >> n

int main() {
  IN (int N);
  IN (int, X);
  IN (int, K);
  cout << ((N / X) + 1) * K << endl;

  return 0;
}


Compiler output:
a.cc:8:12: error: macro "IN" requires 2 arguments, but only 1 given
    8 |   IN (int N);
      |            ^
a.cc:5:9: note: macro "IN" defined here
    5 | #define IN(type, n) type n; cin >> n
      |         ^~
a.cc: In function 'int main()':
a.cc:8:3: error: 'IN' was not declared in this scope
    8 |   IN (int N);
      |   ^~
a.cc:11:13: error: 'N' was not declared in this scope
   11 |   cout << ((N / X) + 1) * K << endl;
      |             ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <algorithm>
using namespace std;
int main()
{
	int n, x, t;
	cin >> n >> x >> t;
	cout << int(ceil((double)n / x) * t);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: 'ceil' was not declared in this scope
   12 |         cout << int(ceil((double)n / x) * t);
      |                     ^~~~
Language: C++

#include<cstdio>
#include<algorithm>
#include<vector>
using namespace std;
#define re register
inline int read(){
	re int t=0;re char v=getchar();
	while(v<'0')v=getchar();
	while(v>='0')t=(t<<3)+(t<<1)+v-48,v=getchar();
	return t;
}
int n,a[1000002],m.k;
int main(){
	n=read(),m=read();k=read();
	printf("%d",((n-1)/m+1)*k);
}

Compiler output:
a.cc: In function 'int read()':
a.cc:7:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    7 |         re int t=0;re char v=getchar();
      |                ^
a.cc:7:28: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    7 |         re int t=0;re char v=getchar();
      |                            ^
a.cc: At global scope:
a.cc:12:19: error: expected initializer before '.' token
   12 | int n,a[1000002],m.k;
      |                   ^
a.cc: In function 'int main()':
a.cc:14:18: error: 'm' was not declared in this scope
   14 |         n=read(),m=read();k=read();
      |                  ^
a.cc:14:27: error: 'k' was not declared in this scope
   14 |         n=read(),m=read();k=read();
      |                           ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
  	int n, x, t;
    cin >> n >> x >> t;
  	cout << ceil((1.0 * n / x)) * t << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'ceil' was not declared in this scope
    8 |         cout << ceil((1.0 * n / x)) * t << '\n';
      |                 ^~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

using int64 = long long;
const int mod = 1e9 + 7;
//const int mod = 998244353;

const int64 infll = (1LL << 62) - 1;
const int inf = (1 << 30) - 1;

struct IoSetup {
  IoSetup() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(10);
    cerr << fixed << setprecision(10);
  }
} iosetup;


template< typename T1, typename T2 >
ostream &operator<<(ostream &os, const pair< T1, T2 > &p) {
  os << p.first << " " << p.second;
  return os;
}

template< typename T1, typename T2 >
istream &operator>>(istream &is, pair< T1, T2 > &p) {
  is >> p.first >> p.second;
  return is;
}

template< typename T >
ostream &operator<<(ostream &os, const vector< T > &v) {
  for(int i = 0; i < (int) v.size(); i++) {
    os << v[i] << (i + 1 != v.size() ? " " : "");
  }
  return os;
}

template< typename T >
istream &operator>>(istream &is, vector< T > &v) {
  for(T &in : v) is >> in;
  return is;
}

template< typename T1, typename T2 >
inline bool chmax(T1 &a, T2 b) { return a < b && (a = b, true); }

template< typename T1, typename T2 >
inline bool chmin(T1 &a, T2 b) { return a > b && (a = b, true); }

template< typename T = int64 >
vector< T > make_v(size_t a) {
  return vector< T >(a);
}

template< typename T, typename... Ts >
auto make_v(size_t a, Ts... ts) {
  return vector< decltype(make_v< T >(ts...)) >(a, make_v< T >(ts...));
}

template< typename T, typename V >
typename enable_if< is_class< T >::value == 0 >::type fill_v(T &t, const V &v) {
  t = v;
}

template< typename T, typename V >
typename enable_if< is_class< T >::value != 0 >::type fill_v(T &t, const V &v) {
  for(auto &e : t) fill_v(e, v);
}

template< typename F >
struct FixPoint : F {
  FixPoint(F &&f) : F(forward< F >(f)) {}

  template< typename... Args >
  decltype(auto) operator()(Args &&... args) const {
    return F::operator()(*this, forward< Args >(args)...);
  }
};

template< typename F >
inline decltype(auto) MFP(F &&f) {
  return FixPoint< F >{forward< F >(f)};
}

int main() {
  int N, X, Y;
  cin >> N >> X >> Y;
  cout << (N + X - 1) / X * T << "\n";

}



Compiler output:
a.cc: In function 'int main()':
a.cc:92:29: error: 'T' was not declared in this scope
   92 |   cout << (N + X - 1) / X * T << "\n";
      |                             ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
        int mod = 0;
        for(int i=0;i<s.length();i++){int a = String.valueOf(s.charAt(i));
                                      mod+=a;
                                      mod%=9;
                            }
        
		if(mod==0){System.out.println("Yes");}
      else{System.out.println("No");}
	}
}


Compiler output:
Main.java:7: error: incompatible types: String cannot be converted to int
        for(int i=0;i<s.length();i++){int a = String.valueOf(s.charAt(i));
                                                            ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
        int mod = 0;
        for(int i=0;i<s.length();i++){int a = String.ValueOf(s.charAt(i));
                                      mod+=a;
                                      mod%=9;
                            }
        
		if(mod==0){System.out.println("Yes");}
      else{System.out.println("No");}
	}
}


Compiler output:
Main.java:7: error: cannot find symbol
        for(int i=0;i<s.length();i++){int a = String.ValueOf(s.charAt(i));
                                                    ^
  symbol:   method ValueOf(char)
  location: class String
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
        int mod = 0;
        for(int i=0;i<s.length();i++){int a = string.ValueOf(s.charAt(i));
                                      mod+=a;
                                      mod%=9;
                            }
        
		if(mod==0){System.out.println("Yes");}
      else{System.out.println("No");}
	}
}


Compiler output:
Main.java:7: error: cannot find symbol
        for(int i=0;i<s.length();i++){int a = string.ValueOf(s.charAt(i));
                                              ^
  symbol:   variable string
  location: class Main
1 error
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'sum' was not declared in this scope
    8 |   sum = 0;
      |   ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main () {
string n;
  cin >> n;
  int sum = 0;
  for (int i = 0 ;i < n.size (); i++ ) {
    sum +=n[i] - '0'; }
  if (sum % 9 == 0 ) {
    cout << "Yes";}
  else {
    cout << "No";}

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

#include < bits/stdc++.h >
using namespace std;
int main () {
string n;
  cin >> n;
  int sum = 0;
  for (int i = 0 ;i < n.size (); i++ ) {
    sum +=n[i] - '0'; }
  if (sum % 9 == 0 ) {
    cout << "Yes";}
  else {
    cout << "No";}
    



}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'for'
    8 |   for(int i=0;i<n.size();i++){
      |   ^~~
a.cc:8:15: error: 'i' was not declared in this scope
    8 |   for(int i=0;i<n.size();i++){
      |               ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'string' was not declared in this scope
    2 |         string s; cin>>s;
      |         ^~~~~~
a.cc:2:19: error: 'cin' was not declared in this scope
    2 |         string s; cin>>s;
      |                   ^~~
a.cc:2:24: error: 's' was not declared in this scope
    2 |         string s; cin>>s;
      |                        ^
a.cc:5:22: error: 'cout' was not declared in this scope
    5 |         if(sum%9==0) cout<<"Yes";
      |                      ^~~~
a.cc:6:14: error: 'cout' was not declared in this scope
    6 |         else cout<<"No";
      |              ^~~~
Language: C++

#include<iostream>
using namespace std;

int main() {

	int N = 0;

	do {

		cin >> N ;

	} while (N < 0 || N >= pow(10,200000) );

	/*桁数判定*/
	int x = N;
	int sum = 0;
	do {
	  
		int frequency = x % 10;
		sum += frequency;
		x /= 10;
	
	} while (x > 0);

	if (sum % 9 == 0) {
		cout << "Yes";
	}
	else {
		cout << "No";
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:32: error: 'pow' was not declared in this scope
   12 |         } while (N < 0 || N >= pow(10,200000) );
      |                                ^~~
Language: C

#include<stdio.h>
#include<conio.h>

char s[200010];
int main(){
    scanf("%s",s);
    int len=strlen(s);
    int sum=0;
    for(int i=0;i<len;i++)sum+=s[i]-'0';
    if(sum%9==0){
        puts("Yes");
    }else{
        puts("No");
    }
}

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

#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long N;
cin>>N;

long r=0;
while((double)N/10>0){
r=r+(N%10);
N=N/10;
}
if(r%9==0){
  cout<<"Yes";
}
else{

cout<<"No";
}


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

//BISMILLAH
#include <bits/stdc++.h>
using namespace std;
int main(){
    
    string s;
    cin >> s;
    int sum = 0;
    int len = s.size();
    for(i = 0;i<len;i++){
        sum += (s[i] - '0');
    }
    if(sum % 9 == 0) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}

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

#include <iostream>
using namespace std;

int main() {
    char N[200010];
    scanf("%s", N);
    
    int len = strlen(N);
    int sum = 0;
    for (int i = 0; i < len; i++) {
        sum += (N[i] - '0');
    }
    if (sum % 9 == 0) {
        printf("%s\n", "Yes");
    } else {
        printf("%s\n", "No");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'strlen' was not declared in this scope
    8 |     int len = strlen(N);
      |               ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define IOS                           
    std::ios::sync_with_stdio(false); 
    cin.tie(NULL);                    
    cout.tie(NULL);
int main()
{
  IOS
    int n;
  cin >> n;
  if(n%9==0)
    cout <<"Yes";
  else
    cout << "No";
  return 0;
}


Compiler output:
a.cc:4:5: error: specializing member 'std::basic_ios<char>::sync_with_stdio' requires 'template<>' syntax
    4 |     std::ios::sync_with_stdio(false);
      |     ^~~
a.cc:5:5: error: 'cin' does not name a type
    5 |     cin.tie(NULL);
      |     ^~~
a.cc:6:5: error: 'cout' does not name a type
    6 |     cout.tie(NULL);
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 int i;
 
  string s;
    cin >> s;
  for(i=0; i < s.size(); ++i) {
   a += s.at(i); }
 cout << a <<endl;
  }
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:4: error: 'a' was not declared in this scope
   10 |    a += s.at(i); }
      |    ^
a.cc:11:10: error: 'a' was not declared in this scope
   11 |  cout << a <<endl;
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 int i;
 
  string s;
    cin >> s;
  for(i=0; i<s.size(); ++i) {
   a += s.at[i]; }
 cout << a <<endl;
  }
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:4: error: 'a' was not declared in this scope
   10 |    a += s.at[i]; }
      |    ^
a.cc:10:13: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   10 |    a += s.at[i]; }
      |             ^
a.cc:11:10: error: 'a' was not declared in this scope
   11 |  cout << a <<endl;
      |          ^
Language: C

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

int main(void){
  char n[200000] ;
  printf("input N > \n") ;
  fflush( stdout ) ;
  fscanf( stdin, "%s", n ) ;
  // printf( "%s\n", n ) ;
  int l = strlen(n) ;
  // printf( "%d\n", l ) ;
  int S = 0 ;
  int i, k ;
  for( i = 0 ; i < l ; i++ ) {
  	  k = n[i] - '0'
  	  if( 0 <= k && k<= 9 ) {
  	  	  S += k ;
  	  } else {
  	  	  printf("This is not a integer.\n")
  	  	  return 1 ;
  	  }
  }
  // printf( "%d\n", S ) ;
  if( S % 9 = 0 ) {
  	  printf("Yes\n") ;
  } else {
  	  printf("No\n") ;
  }
  return 0 ;
}
  

Compiler output:
main.c: In function 'main':
main.c:15:25: error: expected ';' before 'if'
   15 |           k = n[i] - '0'
      |                         ^
      |                         ;
   16 |           if( 0 <= k && k<= 9 ) {
      |           ~~             
main.c:24:13: error: lvalue required as left operand of assignment
   24 |   if( S % 9 = 0 ) {
      |             ^
Language: C++

#include <iostream>
#include <vector>
#include<string>
#include <set>
#include <map>
#include <algorithm>
#include <math.h>
using namespace std;
int main()
{
	std::string S;
	cin >> S;
	int x = S.size();
	int total = 0;
	for(int i = 0;i<=N;i++){
		if(i % 9 == 0){
			std::cout << "Yes" <<std::endl;
			return 0;
		}else{
			std::cout << "No" <<std::endl;
			return 0;
		}
	}
	
	return 0;
}


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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    string array;
    cin>>array;
    int sum=0;
    for(int i=0;i<array.length();i++){
        sum+=array[i]-'0';
        
    }
    if(sum%9==0){
        cout<<"Yes"
    }
    else{
        cout<<"No"
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: expected ';' before '}' token
   13 |         cout<<"Yes"
      |                    ^
      |                    ;
   14 |     }
      |     ~               
a.cc:16:19: error: expected ';' before '}' token
   16 |         cout<<"No"
      |                   ^
      |                   ;
   17 |     }
      |     ~
Language: C

#include<stdio.h>

int main(void){
  int i=0,wa;
  long int N,keta=0;
  int a[];
  scanf("%ld",&N);
  do{
    a[i]=N%10;
    N/=10;
    i++;
    keta++;
  }(while N!=0); 
  for(i=0;i<keta;i++){
    wa+=a[i];
  }
  if(wa%9==0)
    printf("Yes");
  else
    printf("No");
  
  return 0;
  

Compiler output:
main.c: In function 'main':
main.c:6:7: error: array size missing in 'a'
    6 |   int a[];
      |       ^
main.c:13:4: error: expected 'while' before '(' token
   13 |   }(while N!=0);
      |    ^
main.c:22:3: error: expected declaration or statement at end of input
   22 |   return 0;
      |   ^~~~~~
Language: C++

# include <bits/stdc++.h>
using namespace std;
int mul(int n){
     if (n<=0){
     return }
  return n%10+mul(n/10)


}
int main(){ 
  int n;
  cin>>n;
  int k = mul(n);
  if(k%9==0){
  cout<<"Yes"<<endl;
  }
  else{
  cout<<"No"<<endl;}


   return 0;
}

Compiler output:
a.cc: In function 'int mul(int)':
a.cc:5:13: error: expected primary-expression before '}' token
    5 |      return }
      |             ^
a.cc:5:12: error: expected ';' before '}' token
    5 |      return }
      |            ^~
      |            ;
a.cc:6:24: error: expected ';' before '}' token
    6 |   return n%10+mul(n/10)
      |                        ^
      |                        ;
......
    9 | }
      | ~