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

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

int main() {
    int x, y, z;
    cin >> x >> y >> z;

    cout << ((x - z) / (y + z)) <<endl;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:6: error: not a statement
    cin >> x >> y >> z;
                  ^
Main.java:8: error: not a statement
    cout << ((x - z) / (y + z)) <<endl;
                                ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: C++

#include <iostream>
usingnamespace std;

int main(){
  int X,Y,Z,i=0;cin >> X>>Y>>Z;
  while(X >= i*(Y+Z)+Z){
    i++;
  }
  cout << i << endl;
}


Compiler output:
a.cc:2:1: error: 'usingnamespace' does not name a type
    2 | usingnamespace std;
      | ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   int X,Y,Z,i=0;cin >> X>>Y>>Z;
      |                 ^~~
      |                 std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << i << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << i << endl;
      |                ^~~~
      |                std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include<stdio.h>

int main(){
    int num=1;
    int x, y, z;
    scanf("%d %d %d", &x, &y, &z);
    while(1){
        if(y*i+z*(i+1) > x) break;
        num++;
    }
    
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:14: error: 'i' undeclared (first use in this function)
    8 |         if(y*i+z*(i+1) > x) break;
      |              ^
main.c:8:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
    int num=1;
    int x, y, z;
    scanf("%d %d %d", &x, &y, &z);
    while(){
        if(y*i+z*(i+1) > x) break;
        num++;
    }
    
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:11: error: expected expression before ')' token
    7 |     while(){
      |           ^
Language: C++

#include<iostream>
using namespace stdd;
int main(){
    int x,y,z;
    cin>>x>>y>>z;
    cout<<(x-z)/(y+z)<<endl;
    return 0;
}

Compiler output:
a.cc:2:17: error: 'stdd' is not a namespace-name
    2 | using namespace stdd;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin>>x>>y>>z;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout<<(x-z)/(y+z)<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout<<(x-z)/(y+z)<<endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

int main() {
	int X, Y, Z;
	int Ans;

	cin >> X >> Y >> Z;

	Ans = X / (Y + Z);
	if (X % (Y + Z) == 0)Ans -= 1;

	cout << Ans;


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> X >> Y >> Z;
      |         ^~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << Ans;
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    long long t,b,c;
    cin>>t>>b>>c;
    t=t-c;
    cout<<t/(b+c)<<endl;
    return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected ';' before '}' token
    9 |     return 0
      |             ^
      |             ;
   10 | }
      | ~
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 m=sc.nextInt();a=sc.nextInt();
  System.out.println((n-a)/(m+a));
}
}


Compiler output:
Main.java:5: error: cannot find symbol
  int n=sc.nextInt();int m=sc.nextInt();a=sc.nextInt();
                                        ^
  symbol:   variable a
  location: class Main
Main.java:6: error: cannot find symbol
  System.out.println((n-a)/(m+a));
                        ^
  symbol:   variable a
  location: class Main
Main.java:6: error: cannot find symbol
  System.out.println((n-a)/(m+a));
                              ^
  symbol:   variable a
  location: class Main
3 errors
Language: Java

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


Compiler output:
Main.java:5: error: cannot find symbol
  int n=sc.nextInt();int m=sc.nextInt();a=sc.nextInt();
                                        ^
  symbol:   variable a
  location: class Main
Main.java:6: error: cannot find symbol
  System.out.println((n-a)/m);
                        ^
  symbol:   variable a
  location: class Main
2 errors
Language: C++

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

int main(){
    int x, y, x;
    cin >> x >> y >> z;
    cout << (x-z)/(y+z);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: redeclaration of 'int x'
    5 |     int x, y, x;
      |               ^
a.cc:5:9: note: 'int x' previously declared here
    5 |     int x, y, x;
      |         ^
a.cc:6:22: error: 'z' was not declared in this scope
    6 |     cin >> x >> y >> z;
      |                      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int x,y,z;cin>>x>>y>>z;
  for(int i=0;;i++){
    if(i*y+(i+1)*z>x){
      cout<<i-1;break}}}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before '}' token
    7 |       cout<<i-1;break}}}
      |                      ^
      |                      ;
Language: C++

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

int main() {
  int X,Y,Z;
  cin X >> Y >> Z;
  int ans=X-Z/Y;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'X'
    6 |   cin X >> Y >> Z;
      |      ^~
      |      ;
Language: C++

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

typedef long long int ll;
typedef pair<ll, ll> pll;

#define FOR(i, n, m) for (ll(i) = (m); (i) < (n); ++(i))
#define REP(i, n) FOR(i, n, 0)
#define OF64 std::setprecision(10)

const ll MOD = 1000000007;
const ll INF = (ll)1e15;

int main()
{
    ll X, Y, Z;
    in >> X >> Y >> Z;
    cout << (X - Z) / (Z + Y) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: 'in' was not declared in this scope; did you mean 'yn'?
   17 |     in >> X >> Y >> Z;
      |     ^~
      |     yn
Language: C++

# coding: utf-8
X, Y, Z = map(int, input().split())
print((X-Z) // (Y+Z))


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:2:1: error: 'X' does not name a type
    2 | X, Y, Z = map(int, input().split())
      | ^
Language: C++

using namespace std;
int main(void){
    // Your code here!
    int X,Y,Z;
    scanf("%d%d%d",&X,&Y,&Z);
    int ans=0;
    if(X==Y+2*Z){cout<<1<<endl;}
    else if(X<Y+2*Z){cout<<0<<endl;}
    else if(X>Y+2*Z){cout<<(X-(Y+2*Z))/(Y+Z)+1<<endl;}
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf("%d%d%d",&X,&Y,&Z);
      |     ^~~~~
a.cc:7:18: error: 'cout' was not declared in this scope
    7 |     if(X==Y+2*Z){cout<<1<<endl;}
      |                  ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:27: error: 'endl' was not declared in this scope
    7 |     if(X==Y+2*Z){cout<<1<<endl;}
      |                           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:8:22: error: 'cout' was not declared in this scope
    8 |     else if(X<Y+2*Z){cout<<0<<endl;}
      |                      ^~~~
a.cc:8:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:31: error: 'endl' was not declared in this scope
    8 |     else if(X<Y+2*Z){cout<<0<<endl;}
      |                               ^~~~
a.cc:8:31: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:9:22: error: 'cout' was not declared in this scope
    9 |     else if(X>Y+2*Z){cout<<(X-(Y+2*Z))/(Y+Z)+1<<endl;}
      |                      ^~~~
a.cc:9:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:49: error: 'endl' was not declared in this scope
    9 |     else if(X>Y+2*Z){cout<<(X-(Y+2*Z))/(Y+Z)+1<<endl;}
      |                                                 ^~~~
a.cc:9:49: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
	iint x, y, z;
	cin >> x >> y >> z;
	cout << (x - z) / (y + z) << endl;
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'iint' was not declared in this scope; did you mean 'uint'?
    4 |         iint x, y, z;
      |         ^~~~
      |         uint
a.cc:5:16: error: 'x' was not declared in this scope
    5 |         cin >> x >> y >> z;
      |                ^
a.cc:5:21: error: 'y' was not declared in this scope; did you mean 'yn'?
    5 |         cin >> x >> y >> z;
      |                     ^
      |                     yn
a.cc:5:26: error: 'z' was not declared in this scope
    5 |         cin >> x >> y >> z;
      |                          ^
Language: C++

#include <iostream>
using nameapce std;

int X,Y,Z;
int main(){
  cin >> X >> Y >> Z;
  cout << (X-Z)/(Y+Z) << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nameapce'
    2 | using nameapce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> X >> Y >> Z;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << (X-Z)/(Y+Z) << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << (X-Z)/(Y+Z) << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  cout<<(a-c)/(b+c)<<endl;
  return 0:
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before ':' token
    7 |   return 0:
      |           ^
      |           ;
a.cc:7:11: error: expected primary-expression before ':' token
Language: C++

#include <iostream>

using namespace std;

int main()
{
  	int X, Y, Z;
  	cin >> X >> Y >> Z;
  	X -= Z;
  	int ans = 0;
  	while(X - (Y+Z) >= 0){
      	x -= Y+Z;
      	ans++;
    }
  	cout << ans;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'x' was not declared in this scope
   12 |         x -= Y+Z;
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int x,y,z,dfd,dfder;
    cin>>x>>y>>z;
    dfd=x-z;
    dfder=z+y
    cout<<dfd/dfder<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'cout'
    7 |     dfder=z+y
      |              ^
      |              ;
    8 |     cout<<dfd/dfder<<endl;
      |     ~~~~
Language: C++

include"iostream"
using namespace std;

int main() {
	int x, y, z;
	cin >> x >> y >> z;
	cout << ((x - z) / (y + z)) << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include"iostream"
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> x >> y >> z;
      |         ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << ((x - z) / (y + z)) << endl;
      |         ^~~~
a.cc:7:40: error: 'endl' was not declared in this scope
    7 |         cout << ((x - z) / (y + z)) << endl;
      |                                        ^~~~
Language: C++

#include <iostream>

int main()
{
    int x, y, z; std::cin >> x >> y >> z;
    int x -= z;
    int cnt = 0;
    while(true) {
        if (x - (y + z) >= 0) {
            cnt++;
            x -= (y + z);
        } else {
            break;
        }
    }
    std::cout << cnt << std::endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected initializer before '-=' token
    6 |     int x -= z;
      |           ^~
Language: C++

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

int main(){
  int a,b,array[101],c,i=0,d;
  cin>>a>>b>>c;
  a-=c;
  while(a<0){
    a-=b+c;
    i++;
  }
  cout<<i-1<<endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |   ^~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout<<i-1<<endl;
      |   ^~~~
a.cc:12:14: error: 'endl' was not declared in this scope
   12 |   cout<<i-1<<endl;
      |              ^~~~
Language: C++

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

int main(){
  int a,b,array[101],c,i=0,d;
  cin>>a>>b>>c;
  a-=c;
  while(a<0){
    a-=b+c;
    i++
  }
  cout<<i-1<<endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |   ^~~
a.cc:10:8: error: expected ';' before '}' token
   10 |     i++
      |        ^
      |        ;
   11 |   }
      |   ~     
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout<<i-1<<endl;
      |   ^~~~
a.cc:12:14: error: 'endl' was not declared in this scope
   12 |   cout<<i-1<<endl;
      |              ^~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;

int main() {
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    
    x=x-z;
    printf("%d",(x/(y+z)));
	return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: expected '}' at end of input
   13 |         return 0;
      |                  ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
#include <typeinfo>
#include <cxxabi.h>
#ifdef LOCAL
  #include "dbgtoki.hpp"
  #define DUMP(i) dump((string)TOSTRING(i), demangle(typeid(i).name()), __LINE__ , i) 
DbgTimer D_t;
  #define TSTART() D_t.start()
  #define TSTOP() D_t.stop()
#else
  #define DUMP(i) 
  #define TSTART()
  #define TSTOP ()  
#endif

#define GETTYPE(i) 
#define TOSTRING(x) #x
#define SZ(x) (int)(x).size()
#define REP(i,n) for(int i=0;i<(n);i++)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define SSTR( x ) static_cast< std::ostringstream & >( \
        ( std::ostringstream() << std::dec << x ) ).str()
#define ALL(s) (s).begin(), (s).end()
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()) , v.end());
using namespace std;
typedef long long unsigned int llu;
typedef long long ll;

const int EPS = 1e-9;

int main (){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int x,y,z;
  while(cin >> x >> y >> z){
    TSTART();

    int ans = 0;
    while(x - y - z * 2 >= 0){
      ans++;
      x -= y + z;
    }
    cout << ans << endl;
    TSTOP();
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: expected primary-expression before ')' token
   13 |   #define TSTOP ()
      |                  ^
a.cc:44:5: note: in expansion of macro 'TSTOP'
   44 |     TSTOP();
      |     ^~~~~
Language: C++

<?php
fscanf(STDIN, "%d %d %d", $x, $y, $z);
echo floor(($x - $z) / ($y + $z));

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:1: error: 'echo' does not name a type
    3 | echo floor(($x - $z) / ($y + $z));
      | ^~~~
Language: C++

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

using namespace std;
int main(void){
    int n,a,b;
    cin>>n>>a>>b;
    x-=(z*2)+y;
    while(x>0){
        x-=y+z;
    }
    cout<<x<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'x' was not declared in this scope
    9 |     x-=(z*2)+y;
      |     ^
a.cc:9:9: error: 'z' was not declared in this scope
    9 |     x-=(z*2)+y;
      |         ^
a.cc:9:14: error: 'y' was not declared in this scope
    9 |     x-=(z*2)+y;
      |              ^
Language: C++

#include <iostream>

int main(){
  int x, y, z;
  std::cin >> x >> y >> z;
  cout << (x-z)/(y+z);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << (x-z)/(y+z);
      |   ^~~~
      |   std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#define _CRT_SECURE_NO_WARNING
#include <stdio.h>

int main(void)
{
    int X, Y, Z;

    scanf("%d, %d, %d" &X, &Y, &Z);

    printf("%d", (X-Y)/(X+Z));

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:24: error: invalid operands to binary & (have 'char *' and 'int')
    8 |     scanf("%d, %d, %d" &X, &Y, &Z);
      |           ~~~~~~~~~~~~ ^
      |           |
      |           char *
Language: C++

#include <stdio.h>
int main(){
  int a,b,c;
  scanf("%d%d%d",&a,6b,&c);
    int x=c*(b+1);
  int ans=(a-x)/b;
  
  printf("%d\n",ans);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:21: error: unable to find numeric literal operator 'operator""b'
    4 |   scanf("%d%d%d",&a,6b,&c);
      |                     ^~
Language: C

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

int main(void)
{
    int W, X, Y, Z;

    scanf_s("%d, %d, %d", &X, &Y, &Z);

    W = (X-Z)/(Y+Z);

    printf("%d", W);

    return 0;
}

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


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

int main(void)
{
    int W, X, Y, Z;

    scanf_s("%d, %d, %d", &X, &Y, &Z);

    W = (X-Z)/(Y+Z);

    printf("%d", W);

    return 0;
}

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

#include <stdio.h>

int main(void)
{
    int W, X, Y, Z;

    scanf_s("%d, %d, %d", &X, &Y, &Z);

    W = (X-Z)/(Y+Z);

    printf("%d", W);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |     scanf_s("%d, %d, %d", &X, &Y, &Z);
      |     ^~~~~~~
      |     scanf
Language: C

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

int main(void)
{
    int W, X, Y, Z;

    scanf("%d, %d, %d", &X, &Y, &Z);

    W = (X-Z)/(Y+Z);

    printf("%d", W);

    return 0;
}

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

#include <stdio.h>              
int main()                      
{
    int W, X, Y, Z;
    
    scanf("%d, %d, %d", X, Y, Z);

    W = X - (Y + 2Z);

    printf("%d", W);

    return 0;                   
}                               

Compiler output:
main.c: In function 'main':
main.c:8:18: error: invalid suffix "Z" on integer constant
    8 |     W = X - (Y + 2Z);
      |                  ^~
Language: C

#include <stdio.h>              
int main()                      
{
    int W, X, Y, Z;
    
    scanf("%d, %d, %d", X, Y, Z);

    W = X - (Y + 2Z)

    printf("%d", W)

    return 0;                   
}                               

Compiler output:
main.c: In function 'main':
main.c:8:18: error: invalid suffix "Z" on integer constant
    8 |     W = X - (Y + 2Z)
      |                  ^~
main.c:8:21: error: expected ';' before 'printf'
    8 |     W = X - (Y + 2Z)
      |                     ^
      |                     ;
    9 | 
   10 |     printf("%d", W)
      |     ~~~~~~
Language: C


#include <stdio.h>
int main(void){
	//X:椅子の長さが
	//Y椅子の幅
	//Z間に空ける幅
	int X, Y, Z;
	int a;
#define _CRT_SECURE_NO_WARNINGS
	scanf_s("%d %d %d", &X, &Y, &Z);
	a = X / (Y + Z);
	if(a < Z){
		a = (X - Z) / (Y + Z);
	}
	printf("%d", a);
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   10 |         scanf_s("%d %d %d", &X, &Y, &Z);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main(void){
	//X:椅子の長さが
	//Y椅子の幅
	//Z間に空ける幅
	int X, Y, Z;
	int a;
	scanf("%d, %d, %d", &X, &Y, &Z);
	a = X / (Y + 2 * Z);
	if(a < Z){
		a = (X - Z) / (Y + 2 * Z);
	}
	printf("%d", a);
	return 0
}



Compiler output:
main.c: In function 'main':
main.c:14:17: error: expected ';' before '}' token
   14 |         return 0
      |                 ^
      |                 ;
   15 | }
      | ~
Language: C

#include <stdio.h>
int main(void){
	//X:椅子の長さが
	//Y椅子の幅
	//Z間に空ける幅
	double X, Y, Z;
	int a;
	scanf("%d, %d, %d", &X, &Y, &Z);
	a = X / (Y + 2 * Z);
	if(a < Z){
		a = (X - Z) / (Y + 2 * Z);
	}
	printf("%d", a);
	return 0
}



Compiler output:
main.c: In function 'main':
main.c:14:17: error: expected ';' before '}' token
   14 |         return 0
      |                 ^
      |                 ;
   15 | }
      | ~
Language: C

#include <studio.h>
int main(void){
	//X:椅子の長さが
	//Y椅子の幅
	//Z間に空ける幅
	double X, Y, Z;
	int a;
	scanf("%d, %d, %d", &X, &Y, &Z);
	a = X / (Y + 2 * Z);
	if(a < Z){
		a = (X - Z) / (Y + 2 * Z);
	}
	printf("%d", a);
	return 0
}



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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int X,Y,Z;
  scanf("%d", &X);
  scanf("%d", &Y);
  scanf("%d", &Z);
  int total = 0;
  int i = 0;
  while(1)
    if((Y*i + Z*(i+1))>X){
      break;
    }
    i++;
  }
  total = Y*(i-1) + Z*(i);
  printf("%d",total);
  return 0;
 }

Compiler output:
a.cc:17:3: error: 'total' does not name a type
   17 |   total = Y*(i-1) + Z*(i);
      |   ^~~~~
a.cc:18:9: error: expected constructor, destructor, or type conversion before '(' token
   18 |   printf("%d",total);
      |         ^
a.cc:19:3: error: expected unqualified-id before 'return'
   19 |   return 0;
      |   ^~~~~~
a.cc:20:2: error: expected declaration before '}' token
   20 |  }
      |  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int X,Y,Z;
  scanf("%d", &X);
  scanf("%d", &Y);
  scanf("%d", &Z);
  int total = 0;
  int i;
  while(1)
    if((Y*i + Z*(i+1))>X){
      break;
    }
    i++;
  }
  total = Y*(i-1) + Z*(i);
  printf("%d",total);
  return 0;
 }


Compiler output:
a.cc:17:3: error: 'total' does not name a type
   17 |   total = Y*(i-1) + Z*(i);
      |   ^~~~~
a.cc:18:9: error: expected constructor, destructor, or type conversion before '(' token
   18 |   printf("%d",total);
      |         ^
a.cc:19:3: error: expected unqualified-id before 'return'
   19 |   return 0;
      |   ^~~~~~
a.cc:20:2: error: expected declaration before '}' token
   20 |  }
      |  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int X,Y,Z;
  scanf("%d", &X);
  scanf("%d", &Y);
  scanf("%d", &Z);
  int total = 0;
  int i = 0;
  while(){
    if((Y*i + z*(i+1))>X){
      break;
    }
    i++;
  }
  total = Y*i + z*(i+1);
  printf("%d",total);
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected primary-expression before ')' token
   11 |   while(){
      |         ^
a.cc:12:15: error: 'z' was not declared in this scope
   12 |     if((Y*i + z*(i+1))>X){
      |               ^
a.cc:17:17: error: 'z' was not declared in this scope
   17 |   total = Y*i + z*(i+1);
      |                 ^
Language: Java

import java.util.Scanner;

public class Hello {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
        int z = sc.nextInt();

        int ans = 0;

        int quo = (x - z) / (y + z);
        ans = quo;

        System.out.println(ans);
    }
}


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

#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
#include <map>
#define MOD 1000000007LL
using namespace std;

int main(){
	int x, y, x;
	cin >> x >> y >> z;
	cout << (x - z) / (y + z) << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: redeclaration of 'int x'
   10 |         int x, y, x;
      |                   ^
a.cc:10:13: note: 'int x' previously declared here
   10 |         int x, y, x;
      |             ^
a.cc:11:26: error: 'z' was not declared in this scope
   11 |         cin >> x >> y >> z;
      |                          ^
Language: Java

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

public class Main{
    public static void main(String[] args) throws IOException {
        FastScanner in = new FastScanner();

        int x = in.nextInt();
        int y = in.nextInt();
        int z = in.nextInt();
        boolean good = true;
        long people = 0;
        x = x-z

			
        while (good == true)
        {
            if (x-z>=0)
            {
                x = x -z;
                if (x-y>=0)
                {
                    x = x-y;
                    people ++;

                } else {
                	good = false;
                }
            }
            else
                {
                    good = false;
                }

        }

        System.out.println(people);
    }

    public static class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        public FastScanner(String s) {
            try {
                br = new BufferedReader(new FileReader(s));
            } catch (FileNotFoundException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }

        public FastScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String nextToken() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        String nextLine() {
            st = null;
            try {
                return br.readLine();
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            return null;
        }

        int nextInt() {
            return Integer.parseInt(nextToken());
        }

        long nextLong() {
            return Long.parseLong(nextToken());
        }

        double nextDouble() {
            return Double.parseDouble(nextToken());
        }
    }
}


Compiler output:
Main.java:13: error: ';' expected
        x = x-z
               ^
1 error
Language: Java

package Algorithms;

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

public class AtCoder078B {
    public static void main(String[] args) throws IOException {
        FastScanner in = new FastScanner();

        int x = in.nextInt();
        int y = in.nextInt();
        int z = in.nextInt();
        boolean good = true;
        long people = 0;


        while (good == true)
        {
            if (x-z>0)
            {
                x = x -z;
                if (x-y>0)
                {
                    x = x-y;
                    people ++;

                } else {
                	good = false;
                }
            }
            else
                {
                    good = false;
                }

        }

        System.out.println(people);
    }

    public static class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        public FastScanner(String s) {
            try {
                br = new BufferedReader(new FileReader(s));
            } catch (FileNotFoundException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }

        public FastScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String nextToken() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        String nextLine() {
            st = null;
            try {
                return br.readLine();
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            return null;
        }

        int nextInt() {
            return Integer.parseInt(nextToken());
        }

        long nextLong() {
            return Long.parseLong(nextToken());
        }

        double nextDouble() {
            return Double.parseDouble(nextToken());
        }
    }
}


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

#include<iostream>

using namespace std;

int main(void){
	int X,Y,Z;
	cin >> X ;
	cin >> Y;
	cin >> Z;
	
	int ans = 0;
	
	for(int i = 0; (i*(Y+Z)+1) <= X; i++){
		ans = i;
	}
	
	cout << ans << endl;
	
	
	

Compiler output:
a.cc: In function 'int main()':
a.cc:17:29: error: expected '}' at end of input
   17 |         cout << ans << endl;
      |                             ^
a.cc:5:15: note: to match this '{'
    5 | int main(void){
      |               ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(void){

    int a,b,c;
　cin >> a >> b >> c; 
    int i=0;
    a=a-c*2;
    while(a>b+c){
        i++;
        a=a/(b+c);
    }
    
    cout << i;
    
           
     return 0;   
}

Compiler output:
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　cin >> a >> b >> c;
      | ^
a.cc: In function 'int main()':
a.cc:7:1: error: '\U00003000cin' was not declared in this scope
    7 | 　cin >> a >> b >> c;
      | ^~~~~
Language: C++

>#include<iostream>
>#include<string>
>#include<algorithm>
>using namespace std;
>int main(){
>	int a,b,c;
>	cin>>a>>b>>c;
>		cout<<(a-c)/(b+c)<<endl;
>		
>}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | >#include<iostream>
      |  ^
a.cc:2:2: error: stray '#' in program
    2 | >#include<string>
      |  ^
a.cc:3:2: error: stray '#' in program
    3 | >#include<algorithm>
      |  ^
a.cc:1:1: error: expected unqualified-id before '>' token
    1 | >#include<iostream>
      | ^
a.cc:5:1: error: expected unqualified-id before '>' token
    5 | >int main(){
      | ^
Language: C++

#include <iostream>
using namespace std;

int Main(){
	int a,b,c;
	cin >> a >> b >> c;
	int sum;
	sum = (a-c)/(b+c);

	cout << sum << endl;
	return 0;
}


Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
using namespace std;

int Main(){
	int a,b,c;
	cin >> a >> b >> c;
	int sum;
	sum = (a-c)/(b+c);

	return sum;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include<stdio.h>
int main()
{
	int x,y,z,i=1,s;
	scanf("%d%d%d",&x,&y,&z);
	while(s<=x)
	{
	s=i*y+(i+1)*z
	i++;
	}
	printf("%d",i-2);
}

Compiler output:
main.c: In function 'main':
main.c:8:22: error: expected ';' before 'i'
    8 |         s=i*y+(i+1)*z
      |                      ^
      |                      ;
    9 |         i++;
      |         ~
Language: C

#include<stdio.h>
int main()
{
    long int x,y,z,s;
    scanf("%ld%ld%ld",&x,&y,&z);
    {
    s=x/(y+z);
    if(x==s*(y+z)) s--;
    printf("%ld\n",s);
    return 0;
}


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

#include<stdio.h>
int main()
{
    long int x,y,z,s;
    scanf("%ld%ld%ld",&x,&y,&z);
    {
    s=x/(y+z);
    if(x==s*(y+z)) s--;
    printf("%ld\n",s);
    return 0;
}


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

#include <stdio.h>
int main(){
	int x,y,z;
	scanf("%d %d %d",&x,&y,&z);
	if((y+2z)<=x) printf("%d\n",(x-z)/(y+z));
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: invalid suffix "z" on integer constant
    5 |         if((y+2z)<=x) printf("%d\n",(x-z)/(y+z));
      |               ^~
Language: C++

            #include <cstdio>
            #include <cmath>
            int main()
            {
            	long long  a, b, c;
            	while(~scanf("%lld %lld %lld",&a, &b, &c))
            		printf("%lld",(a - 2c)/(b + c));
            }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:44: error: unable to find numeric literal operator 'operator""c'
    7 |                         printf("%lld",(a - 2c)/(b + c));
      |                                            ^~
Language: C++

        #include <cstdio>
        #include <cmath>
        int main()
        {
        	long long  a, b, c;
        	while(~scanf("%ld %ld %ld",&a, &b, &c))
        		printf("%ld",(a - 2c)/(b + c));
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:43: error: unable to find numeric literal operator 'operator""c'
    7 |                         printf("%ld",(a - 2c)/(b + c));
      |                                           ^~
Language: C

#include<stdio.h>
int main(void){
  int x,y,z;
  scanf("%d%d%d",&x,&y,&z);
  if(x>=y+(2*z)){
    if(i<=x){
      if(z<=10*10*10*10*10){
        printf("%d",x%y+(2*z));
      }
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:8: error: 'i' undeclared (first use in this function)
    6 |     if(i<=x){
      |        ^
main.c:6:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
int a.b.c;
cin>>a>>b>>c;
cout<<(a-c)/(b+c);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: expected initializer before '.' token
    9 | int a.b.c;
      |      ^
a.cc:10:6: error: 'a' was not declared in this scope
   10 | cin>>a>>b>>c;
      |      ^
a.cc:10:9: error: 'b' was not declared in this scope
   10 | cin>>a>>b>>c;
      |         ^
a.cc:10:12: error: 'c' was not declared in this scope
   10 | cin>>a>>b>>c;
      |            ^
Language: C

#include<stdio.h>
int main(void){
  int x,y,z;
  scanf("%d%d%d",&x,&y,&z);
  pritnf("%d",x%y+(2*z));
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 |   pritnf("%d",x%y+(2*z));
      |   ^~~~~~
      |   printf
Language: C

#include<stdio.h>
int main(void){
  int x,y,z;
  scanf("%d%d%d",&x,&y,&z);
  printf("%d人"x%y+(2*z));
  retunr 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:16: error: expected ')' before 'x'
    5 |   printf("%d人"x%y+(2*z));
      |         ~      ^
      |                )
main.c:6:3: error: 'retunr' undeclared (first use in this function)
    6 |   retunr 0;
      |   ^~~~~~
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: expected ';' before numeric constant
    6 |   retunr 0;
      |         ^~
      |         ;
Language: C++

# include <iostream>
# include <algorithm>
# include <vector>
# include <string>
# include <set>
# include <map>
# include <cmath>
# include <iomanip>
# include <functional>
# include <tuple>
# include <utility>
# include <stack>
# include <queue>
# include <list>
# include <bitset>
# include <complex>
# include <chrono>
# include <random>
# include <limits.h>
# include <unordered_map>
# include <unordered_set>
# include <deque>
# include <cstdio>
# include <cstring>
using namespace std;
using LL = long long;
using ULL = unsigned long long;
constexpr long long MOD = 1000000000 + 7;
constexpr long long INF = 1e17 - 10;
const double PI = acos(-1);
typedef pair<LL, LL> Pll;
LL n, m, k, a[1000000] = {}, sum, ans = 0, dp[100000][10000] = {};
bitset<10000>bi[10] = {};
struct edge { LL to, cost; };
vector<edge>vec[100000];
string st[2],str;
int main(){
	cin >> n >> m >> k;
	n -= k;
	n = n / (m + k);
	cout << n << endl;
	return 0;
}

Compiler output:
/tmp/ccXJWcrS.o: in function `__tcf_0':
a.cc:(.text+0xc5): relocation truncated to fit: R_X86_64_PC32 against symbol `vec' defined in .bss section in /tmp/ccXJWcrS.o
a.cc:(.text+0xcc): relocation truncated to fit: R_X86_64_PC32 against symbol `vec' defined in .bss section in /tmp/ccXJWcrS.o
/tmp/ccXJWcrS.o: in function `__tcf_1':
a.cc:(.text+0xf9): relocation truncated to fit: R_X86_64_PC32 against symbol `st[abi:cxx11]' defined in .bss section in /tmp/ccXJWcrS.o
a.cc:(.text+0x100): relocation truncated to fit: R_X86_64_PC32 against symbol `st[abi:cxx11]' defined in .bss section in /tmp/ccXJWcrS.o
/tmp/ccXJWcrS.o: in function `__static_initialization_and_destruction_0()':
a.cc:(.text+0x127): relocation truncated to fit: R_X86_64_PC32 against symbol `vec' defined in .bss section in /tmp/ccXJWcrS.o
a.cc:(.text+0x16b): relocation truncated to fit: R_X86_64_PC32 against symbol `st[abi:cxx11]' defined in .bss section in /tmp/ccXJWcrS.o
a.cc:(.text+0x1af): relocation truncated to fit: R_X86_64_PC32 against symbol `str[abi:cxx11]' defined in .bss section in /tmp/ccXJWcrS.o
a.cc:(.text+0x1c8): relocation truncated to fit: R_X86_64_PC32 against symbol `str[abi:cxx11]' defined in .bss section in /tmp/ccXJWcrS.o
collect2: error: ld returned 1 exit status
Language: C++

# include <iostream>
# include <algorithm>
# include <vector>
# include <string>
# include <set>
# include <map>
# include <cmath>
# include <iomanip>
# include <functional>
# include <tuple>
# include <utility>
# include <stack>
# include <queue>
# include <list>
# include <bitset>
# include <complex>
# include <chrono>
# include <random>
# include <limits.h>
# include <unordered_map>
# include <unordered_set>
# include <deque>
# include <cstdio>
# include <cstring>
using namespace std;
using LL = long long;
using ULL = unsigned long long;
constexpr long long MOD = 1000000000 + 7;
constexpr long long INF = 1e17 - 10;
const double PI = acos(-1);
typedef pair<LL, LL> Pll;
LL n, m,k, a[1000000] = {}, sum, ans = 0, dp[100000][10000] = {};
bitset<10000>bi[10] = {};
struct edge { LL to, cost; };
vector<edge>vec[100000];
string st[2],str;
int main(){
	cin >> n >> m >> k;
	n -= k;
	n = n / (m + k);
	cout << n << endl;
	return 0;
}

Compiler output:
/tmp/ccBlanab.o: in function `__tcf_0':
a.cc:(.text+0xc5): relocation truncated to fit: R_X86_64_PC32 against symbol `vec' defined in .bss section in /tmp/ccBlanab.o
a.cc:(.text+0xcc): relocation truncated to fit: R_X86_64_PC32 against symbol `vec' defined in .bss section in /tmp/ccBlanab.o
/tmp/ccBlanab.o: in function `__tcf_1':
a.cc:(.text+0xf9): relocation truncated to fit: R_X86_64_PC32 against symbol `st[abi:cxx11]' defined in .bss section in /tmp/ccBlanab.o
a.cc:(.text+0x100): relocation truncated to fit: R_X86_64_PC32 against symbol `st[abi:cxx11]' defined in .bss section in /tmp/ccBlanab.o
/tmp/ccBlanab.o: in function `__static_initialization_and_destruction_0()':
a.cc:(.text+0x127): relocation truncated to fit: R_X86_64_PC32 against symbol `vec' defined in .bss section in /tmp/ccBlanab.o
a.cc:(.text+0x16b): relocation truncated to fit: R_X86_64_PC32 against symbol `st[abi:cxx11]' defined in .bss section in /tmp/ccBlanab.o
a.cc:(.text+0x1af): relocation truncated to fit: R_X86_64_PC32 against symbol `str[abi:cxx11]' defined in .bss section in /tmp/ccBlanab.o
a.cc:(.text+0x1c8): relocation truncated to fit: R_X86_64_PC32 against symbol `str[abi:cxx11]' defined in .bss section in /tmp/ccBlanab.o
collect2: error: ld returned 1 exit status
Language: C++

#include<iostream>
#include<stdio.h>

using namespace std;

int main()
{
    int X, Y, Z;
    int count = 0;

    X = 0;
    Y = 0;
    Z = 0;
    printf("椅子の大きさXを入力してください\n");
    scanf_s("%d", &X);
    printf("幅Yを入力してください\n");
    scanf_s("%d", &Y);
    printf("隙間Zを入力してください\n");
    scanf_s("%d", &Z);

    for (;;)
    {
        count++;
        if (count*(Y + Z)+Z > X)
        {
            count--;
            break;
        }
    }

    printf("%d\n", count);

}

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

# include <iostream>
# include <algorithm>
# include <vector>
# include <string>
# include <set>
# include <map>
# include <cmath>
# include <iomanip>
# include <functional>
# include <tuple>
# include <utility>
# include <stack>
# include <queue>
# include <list>
# include <bitset>
# include <complex>
# include <chrono>
# include <random>
# include <limits.h>
# include <unordered_map>
# include <unordered_set>
# include <deque>
# include <cstdio>
# include <cstring>
using namespace std;
using LL = long long;
using ULL = unsigned long long;
constexpr long long MOD = 1000000000 + 7;
constexpr long long INF = 1e17 - 10;
const double PI = acos(-1);
typedef pair<LL, LL> Pll;
LL n, m,k, a[1000000] = {}, sum, ans = 0, dp[100000][10000] = {};
bitset<10000>bi[10] = {};
struct edge { LL to, cost; };
vector<edge>vec[100000];
string st[2],str;
int main(){
	cin >> n >> m >> k;
	n -= k;
	n = n / (m + k);
	cout << n << endl;
	return 0;
}

Compiler output:
/tmp/ccbtKdwz.o: in function `__tcf_0':
a.cc:(.text+0xc5): relocation truncated to fit: R_X86_64_PC32 against symbol `vec' defined in .bss section in /tmp/ccbtKdwz.o
a.cc:(.text+0xcc): relocation truncated to fit: R_X86_64_PC32 against symbol `vec' defined in .bss section in /tmp/ccbtKdwz.o
/tmp/ccbtKdwz.o: in function `__tcf_1':
a.cc:(.text+0xf9): relocation truncated to fit: R_X86_64_PC32 against symbol `st[abi:cxx11]' defined in .bss section in /tmp/ccbtKdwz.o
a.cc:(.text+0x100): relocation truncated to fit: R_X86_64_PC32 against symbol `st[abi:cxx11]' defined in .bss section in /tmp/ccbtKdwz.o
/tmp/ccbtKdwz.o: in function `__static_initialization_and_destruction_0()':
a.cc:(.text+0x127): relocation truncated to fit: R_X86_64_PC32 against symbol `vec' defined in .bss section in /tmp/ccbtKdwz.o
a.cc:(.text+0x16b): relocation truncated to fit: R_X86_64_PC32 against symbol `st[abi:cxx11]' defined in .bss section in /tmp/ccbtKdwz.o
a.cc:(.text+0x1af): relocation truncated to fit: R_X86_64_PC32 against symbol `str[abi:cxx11]' defined in .bss section in /tmp/ccbtKdwz.o
a.cc:(.text+0x1c8): relocation truncated to fit: R_X86_64_PC32 against symbol `str[abi:cxx11]' defined in .bss section in /tmp/ccbtKdwz.o
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>


using namespace std;

int main(){

    int a,b;
    string X,Y;

    cin >>X >>Y;
    // a=(int)(X-'0');
    // b=(int)(Y-'0');

if(X=="A"){a=10;}
if(X=="B"){a=11;}
if(X=="C"){a=13;}
if(X=="E"){a=14;}
if(X=="D"){a=14;}
if(X=="F"){a=15;}
if(Y=="A"){b=10;}
if(Y=="B"){b=11;}
if(Y=="C"){b=12;}
if(Y=="D")){b=13;}
if(Y=="E"){b=14;}
if(Y=="F"){b=15;}

    if(a<b){cout<<"<"<<endl;}
    if(a==b){cout<<"="<<endl;}    
    else{cout<<">"<<endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:11: error: expected primary-expression before ')' token
   24 | if(Y=="D")){b=13;}
      |           ^
Language: C++

#include<cmath>
#include<cstring>
#include<algorithm>
#include<cstdlib>
using namespace std;
  main(){
   int x,y,z,n;
   printf(" ");
   scanf("%d %d %d %d",&x,&y,&z,&n);
   printf("%d\n",(x-2)/(z+y));
  }
         


Compiler output:
a.cc:6:3: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 |   main(){
      |   ^~~~
a.cc: In function 'int main()':
a.cc:8:4: error: 'printf' was not declared in this scope
    8 |    printf(" ");
      |    ^~~~~~
a.cc:5:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    4 | #include<cstdlib>
  +++ |+#include <cstdio>
    5 | using namespace std;
a.cc:9:4: error: 'scanf' was not declared in this scope
    9 |    scanf("%d %d %d %d",&x,&y,&z,&n);
      |    ^~~~~
Language: C

#include<stdio.h>
int main()
{
	int x,y,z,i,a;
	scanf("%d%d%d",&x,&y,&z);
	i=1;
	x=x-z*2;
	a=x;
	while(a>0){64145 123 45664145 123 456
		a=x-i*y-(i-1)*z;
		if(a<0){
			break;
		}
		i+=1; 
  	}
	printf("%d",i-1);
}

Compiler output:
main.c: In function 'main':
main.c:9:25: error: expected ';' before numeric constant
    9 |         while(a>0){64145 123 45664145 123 456
      |                         ^~~~
      |                         ;