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

#include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>

char x, y;
int main()
{
	scanf("%c%c", &x, &y);
	a = atoi(x);
	b = atoi(y);
	if(a > b)
	{
		printf(">");
	}
	else
	{
		if(a == b)
		{
			printf("=");
		}
		printf("<");
	}
	printf("\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'a' was not declared in this scope
   10 |         a = atoi(x);
      |         ^
a.cc:10:18: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   10 |         a = atoi(x);
      |                  ^
      |                  |
      |                  char
In file included from /usr/include/c++/14/bits/std_abs.h:38,
                 from /usr/include/c++/14/cmath:49,
                 from a.cc:3:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:11:9: error: 'b' was not declared in this scope
   11 |         b = atoi(y);
      |         ^
a.cc:11:18: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   11 |         b = atoi(y);
      |                  ^
      |                  |
      |                  char
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

#include <iostream>
using namespace std;
main int(){
char x,y;
int a=10,b=11,c=12,d=13,e=14,f=15;
cin>>x>>y;
if(x>y){
cout<<'>'<<endl;
}
else if (x<y){
cout <<'<'<<endl;
}
else if (x=y){
cout<<'='<<endl ;
}

}

Compiler output:
a.cc:3:1: error: 'main' does not name a type
    3 | main int(){
      | ^~~~
Language: C++

#include <cmath>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
using namespace std;  

int main()
{
int ans[1005];
int a,b,c;
while (scanf("%d,%d",a,b)
{
	if(a!=b)
{
if(a>b)
	printf("%d>%d\n",a,b);
	else
		printf("%d<%d\n",a,b)
}
else
	printf("%d=%d",a,b);
}
return 0


Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: expected ')' before '{' token
   12 | while (scanf("%d,%d",a,b)
      |       ~                  ^
      |                          )
   13 | {
      | ~                         
a.cc:19:38: error: expected ';' before '}' token
   19 |                 printf("%d<%d\n",a,b)
      |                                      ^
      |                                      ;
   20 | }
      | ~                                     
a.cc:24:9: error: expected ';' at end of input
   24 | return 0
      |         ^
      |         ;
a.cc:24:9: error: expected '}' at end of input
a.cc:9:1: note: to match this '{'
    9 | {
      | ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main() {
    int X, Y;
    cin >> X >> Y;
    if (X = Y) {
        cout << "=" << endl;
        return 0;
    }
    cout << (X < Y) ? "<" : ">" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: invalid operands of types 'const char [2]' and '<unresolved overloaded function type>' to binary 'operator<<'
   13 |     cout << (X < Y) ? "<" : ">" << endl;
      |                             ~~~~^~~~~~~
Language: C++

#include <iostream>

using namespace std;

int main(){
    char a,b;
    cin >> a >> b;
    if(a > b)
        cout << ">" << endl;
    if(a == b)
        cout << "=" << endl;
    if(a < b)
        cout << "<" << endl;
    return;
}


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

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		String X = scan.next();
		char x = X.charAt(0);
	
		String Y = scan.next();
		char y = Y.charAt(0);
		if(x>y){
			System.out.println(">");
		}else if(x == y){
			System.out.println("=");
		}else{
			System.out.println("<");
		}
		
	}

}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

package myPackage.main;
import java.util.*;

public class HEX01 {

	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		String firstString = sc.next();
		String secondString = sc.next();
		if(hoge(firstString) < hoge(secondString)) {
			System.out.println("<");
		}else if(hoge(firstString) == hoge(secondString)) {
			System.out.println("=");
		}else System.out.println(">");

	}
	static int hoge(String x) {
		if(x=="A") {
			return 10;
		}
		else if(x=="B") {
			return 11;
		}
		else if(x=="C") {
			return 12;
		}
		else if(x=="D") {
			return 13;
		}
		else if(x=="E") {
			return 14;
		}
		else if(x=="F") {
			return 15;
		}
		else return -1;
	}

}


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

public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		String X = scan.next();
		char x = X.charAt(0);
	
		String Y = scan.next();
		char y = Y.charAt(0);
		if(x>y){
			System.out.println(">");
		}else if(x == y){
			System.out.println("=");
		}else{
			System.out.println("<");
		}
		
	}

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

#include<cstdio>
#include<cstring>
int main()
{
	char x,y;
	while(~scanf("%c %c",&x,&y))
	{
			x = x-55;
			y = y-55;
			if(x == y)
			{
				printf("=");
				}
				else if(x < y)
				{
					printf("<");
					}
					else
					{
						printf(">");
						}
		}
		return 0;
	}

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

#include<cstdio>
#include<cmath>
#include<cstring>
#include<algorithm>
using namespace std;
int main()
{
	char X,Y;
	scanf(" %c %c",&X,&Y);
	X=X-'A'+10;
	Y=Y-'A'+10;
	if(X<Y)
		printf("<");
		if(X>Y)
			printf(">");
			if(X=Y)
				printf("=");
}


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

#include<ioatream>
#include<algorithm>
int main(){
	char a,b;
	cin>>a>>b;
	if(a>b)cout<<'>'<<endl;
	if(a==b)cout<<'='<<endl;
	if(a<b)cout<<'<'<<endl;
} 

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

#include<cstdio>
#include<algorithm>
int main(){
	char a,b;
	cin>>a>>b;
	if(a>b)cout<<'>'<<endl;
	if(a==b)cout<<'='<<endl;
	if(a<b)cout<<'<'<<endl;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>a>>b;
      |         ^~~
a.cc:6:16: error: 'cout' was not declared in this scope
    6 |         if(a>b)cout<<'>'<<endl;
      |                ^~~~
a.cc:6:27: error: 'endl' was not declared in this scope
    6 |         if(a>b)cout<<'>'<<endl;
      |                           ^~~~
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |         if(a==b)cout<<'='<<endl;
      |                 ^~~~
a.cc:7:28: error: 'endl' was not declared in this scope
    7 |         if(a==b)cout<<'='<<endl;
      |                            ^~~~
a.cc:8:16: error: 'cout' was not declared in this scope
    8 |         if(a<b)cout<<'<'<<endl;
      |                ^~~~
a.cc:8:27: error: 'endl' was not declared in this scope
    8 |         if(a<b)cout<<'<'<<endl;
      |                           ^~~~
Language: Java

	public static void Main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		String X = scan.next();
		char x = X.charAt(0);
	
		String Y = scan.next();
		char y = Y.charAt(0);
		if(x>y){
			System.out.println(">");
		}else if(X == Y){
			System.out.println("=");
		}else{
			System.out.println("<");
		}
		
	}


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

#include <iostream>

using namespace std;

int main() {
	string s, t;
	A = 1;
	B = 2;
	C = 3;
	D = 4;
	E = 5;
	F = 6;
	if(s > t){ 
		cout << ">";
	}if else( s < t){
		cout << ">";
	}if else( s = t){
		cout << "=";
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'A' was not declared in this scope
    7 |         A = 1;
      |         ^
a.cc:8:9: error: 'B' was not declared in this scope
    8 |         B = 2;
      |         ^
a.cc:9:9: error: 'C' was not declared in this scope
    9 |         C = 3;
      |         ^
a.cc:10:9: error: 'D' was not declared in this scope
   10 |         D = 4;
      |         ^
a.cc:11:9: error: 'E' was not declared in this scope
   11 |         E = 5;
      |         ^
a.cc:12:9: error: 'F' was not declared in this scope
   12 |         F = 6;
      |         ^
a.cc:15:13: error: expected '(' before 'else'
   15 |         }if else( s < t){
      |             ^~~~
      |             (
a.cc:17:13: error: expected '(' before 'else'
   17 |         }if else( s = t){
      |             ^~~~
      |             (
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef int64_t ll;
typedef long long ll;

int main(){
	ios_base::sync_with_stdio(0);
//	cin.tie(0);
	char x,y;
	cin>>x>>y;
	if(x>y)
		cout<<">\n";
	else if(x<y)
		cout<<"<\n";
	else
		cout<<"=\n";
}


Compiler output:
a.cc:6:19: error: conflicting declaration 'typedef long long int ll'
    6 | typedef long long ll;
      |                   ^~
a.cc:5:17: note: previous declaration as 'typedef int64_t ll'
    5 | typedef int64_t ll;
      |                 ^~
Language: C++

# coding: utf-8
# Your code here!
a = raw_input()
b = raw_input()
dic = {
    "0":0,
    "1":1,
    "2":2,
    "3":3,
    "4":4,
    "5":5,
    "6":6,
    "7":7,
    "8":8,
    "9":9,
    "A":10,
    "B":11,
    "C":12,
    "D":13,
    "E":14,
    "F":15,}
aa = dic[a]
bb = dic[b]

if(aa < bb):
    y = "<"
elif(aa > bb):
    y = ">"
else:
    y = "="
    
print(y)

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:2:3: error: invalid preprocessing directive #Your
    2 | # Your code here!
      |   ^~~~
a.cc:3:1: error: 'a' does not name a type
    3 | a = raw_input()
      | ^
a.cc:22:1: error: 'aa' does not name a type
   22 | aa = dic[a]
      | ^~
Language: C++

#include <iostream>

using namespace std;

int main()
{
	char x, y;
	cin >> x>> y;
	if (x == 'A')
		x = 10;
	else if (x == 'B')
		x = 11;
	else if (x == 'C')
		x = 12;
	else if (x == 'D')
		x = 13;
	else if (x == 'E')
		x = 14;
	else if (x == 'F')
		x = 15;

	if (y == 'A')
		y = 10;
	else if (y == 'B')
		y = 11;
	else if (y == 'C')
		y= 12;
	else if (y == 'D')
		y = 13;
	else if (y == 'E')
		y = 14;
	else if (y == 'F')
		y = 15;

	if (x < y)
		cout << "<" << endl;
	else if (x > y)
		cout << ">" << endl;
	else
		cout << "=" << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:40:37: error: expected '}' at end of input
   40 |                 cout << "=" << endl;
      |                                     ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h> // 文字列処理の関数
#include <ctype.h> // 文字変換(大文字/小文字)の関数

int main() {
char buf1[1];
scanf("%s",buf1);
char buf1[1];
scanf("%s",buf1);
int i,j;
if (buf1[0]=='A') i=10;
if (buf1[0]=='B') i=11;
if (buf1[0]=='C') i=12;
if (buf1[0]=='D') i=13;
if (buf1[0]=='E') i=14;
if (buf1[0]=='F') i=15;
if (buf2[0]=='A') j=10;
if (buf2[0]=='B') j=11;
if (buf2[0]=='C') j=12;
if (buf2[0]=='D') j=13;
if (buf2[0]=='E') j=14;
if (buf2[0]=='F') j=15;
if(i<j)
printf("<\n");
if(i>j)
printf(">\n");
if(i==j)
printf("=\n");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:6: error: redeclaration of 'buf1' with no linkage
    9 | char buf1[1];
      |      ^~~~
main.c:7:6: note: previous declaration of 'buf1' with type 'char[1]'
    7 | char buf1[1];
      |      ^~~~
main.c:18:5: error: 'buf2' undeclared (first use in this function); did you mean 'buf1'?
   18 | if (buf2[0]=='A') j=10;
      |     ^~~~
      |     buf1
main.c:18:5: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

    static Map<String, Integer> map = new HashMap() {
        {
            put("A",10);
            put("B",11);
            put("C",12);
            put("D",13);
            put("E",14);
            put("F",15);
        }
    };
    
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		String line = scanner.nextLine();
		
        String arr[] = line.split(" ", 0);
        
        int X = map.get(arr[0]);
        int Y = map.get(arr[1]);
        
        if (X<Y) {
            System.out.println("<");
        } else if(X>Y) {
            System.out.println(">");
        } else {
            System.out.println("=");
        }
        
		System.out.println(String.format("%d %d", X, Y));
	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
    static Map<String, Integer> map = new HashMap() {
           ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C

    static Map<String, Integer> map = new HashMap() {
        {
            put("A",10);
            put("B",11);
            put("C",12);
            put("D",13);
            put("E",14);
            put("F",15);
        }
    };
    
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		String line = scanner.nextLine();
		
        String arr[] = line.split(" ", 0);
        
        int X = map.get(arr[0]);
        int Y = map.get(arr[1]);
        
        if (X<Y) {
            System.out.println("<");
        } else if(X>Y) {
            System.out.println(">");
        } else {
            System.out.println("=");
        }
        
		System.out.println(String.format("%d %d", X, Y));
	}

Compiler output:
main.c:1:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 |     static Map<String, Integer> map = new HashMap() {
      |               ^
main.c:12:15: error: expected ';' before 'static'
   12 |         public static void main(String[] args) {
      |               ^~~~~~~
      |               ;
main.c:12:33: error: unknown type name 'String'
   12 |         public static void main(String[] args) {
      |                                 ^~~~~~
Language: C++

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

int main()
{
    char x[3];
    while(gets(x)!=NULL)
    {
        if (x[0]>x[2]) printf(">\n");
        else if (x[0]<x[2]) printf("<\n");
        else printf("=\n");
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |     while(gets(x)!=NULL)
      |           ^~~~
      |           getw
Language: C++

#include<iostream>
#iniclude<algorithm>
using namespace std;
int main()
{
    char x,y;
    while(cin>>x>>y)
    {
        if(x<y)
            cout<<"<\n";
        else if(x>y)
            cout<<">\n";
        else
            cout<<"=\n";
    }
    return 0;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #iniclude; did you mean #include?
    2 | #iniclude<algorithm>
      |  ^~~~~~~~
      |  include
Language: C++

int main() {
	char x, y;
	cin >> x >> y;
	if (x > y) {
		cout << ">\n";
	}
	else if (x == y) {
		cout << "=\n";
	}
	else if (x < y) {
		cout << "<\n";
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> x >> y;
      |         ^~~
a.cc:5:17: error: 'cout' was not declared in this scope
    5 |                 cout << ">\n";
      |                 ^~~~
a.cc:8:17: error: 'cout' was not declared in this scope
    8 |                 cout << "=\n";
      |                 ^~~~
a.cc:11:17: error: 'cout' was not declared in this scope
   11 |                 cout << "<\n";
      |                 ^~~~
Language: C++

object Main {
  def main(args: Array[String]) {
    val sc = new java.util.Scanner(System.in)
    val X = sc.next().charAt(0)
    val Y = sc.next().charAt(0)
    val r = if (X > Y) '>' else if (X < Y) '<' else '='
    println(r)
  }
}

Compiler output:
a.cc:1:1: error: 'object' does not name a type
    1 | object Main {
      | ^~~~~~
Language: C++

#include<cstdio>
#include<algorithm>
#include<iostream>
#include<cstring>
#include<cmath>
using namespace std;
int main()
{
	char a,b;
	while(~scanf(" %c %c",&a,&b))
	{
		if(a>b) printf(">\n");
		else if(a<b) printf("<\n");
		else if(a==b) printf("=\n");
	}
	return 0;

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

#include<iostream>
using namespace std;
int main(){
  char X,Y;
  cin>>X>>Y;
  if(X<Y) cout<<<;
  elif(X==Y) cout<<=;
  else cout<<>;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected primary-expression before '<' token
    6 |   if(X<Y) cout<<<;
      |                 ^
a.cc:6:18: error: expected primary-expression before ';' token
    6 |   if(X<Y) cout<<<;
      |                  ^
a.cc:7:3: error: 'elif' was not declared in this scope
    7 |   elif(X==Y) cout<<=;
      |   ^~~~
a.cc:8:3: error: 'else' without a previous 'if'
    8 |   else cout<<>;
      |   ^~~~
a.cc:8:14: error: expected primary-expression before '>' token
    8 |   else cout<<>;
      |              ^
a.cc:8:15: error: expected primary-expression before ';' token
    8 |   else cout<<>;
      |               ^
Language: C++

#include <bits/ stdc++.h>

using namespace std;

int main()
{
    char a, b;
    while (cin >> a >> b) {
        if (a > b)
            cout << ">" << endl;
        else if (a == b)
            cout << "=" << endl;
        else
            cout << "<" << endl;
    }
    return 0;
}

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>

#define pp push_back
#define pf push_front
#define mp make_pair
#define fs first
#define sc second
#define sf scanf

typedef long long ll;
typedef unsigned long long ull;

using namespace std;

const int N = (int) 1e9;

int main(int argc, char *argv[])
{
	// ios_base::sync_with_stdio(false);
	// cin.tie(NULL);

	char x, y;
	cin >> x >> y;
	if (x > y) {
		cout << ">";
	}
	else if (x < y) {
		cout << "<";
	}
	else {
		cout << "="
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:31:28: error: expected ';' before '}' token
   31 |                 cout << "="
      |                            ^
      |                            ;
   32 |         }
      |         ~
Language: C++

#include <iostream>


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

	if (x < y) cout << '<' << endl;
	if (x == y) cout << '=' << endl;
	if (x > Y) cout << '>' << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> x >> y;
      |         ^~~
      |         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:20: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         if (x < y) cout << '<' << 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:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         if (x < y) cout << '<' << 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)
      |     ^~~~
a.cc:10:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         if (x == y) cout << '=' << 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:10:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         if (x == y) cout << '=' << endl;
      |                                    ^~~~
      |                                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:17: error: 'Y' was not declared in this scope
   11 |         if (x > Y) cout << '>' << endl;
      |                 ^
a.cc:11:20: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         if (x > Y) cout << '>' << 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:11:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         if (x > Y) cout << '>' << endl;
      |                                   ^~~~
      |                                   std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

int main()
{
    //
    char c[2];
    scnaf("%c %c", &c[0], &c[1]);
    if (c[0] < c[1])
        puts("<");
    else if (c[0] > c[1])
        puts(">");
    else
        puts("=");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
    7 |     scnaf("%c %c", &c[0], &c[1]);
      |     ^~~~~
      |     scanf
Language: C++

//#pragma warning (disable:4996)
#include<iostream>
#include<cstdlib>
#include<algorithm>
#include<stack>
#include<set>
#include<vector>
#include<queue>
using namespace std;
using ll = long long;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'floor' was not declared in this scope
   15 |         cout << floor((X - Z) / (Y + Z)) << endl;
      |                 ^~~~~
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<stdbool.h>
#include<math.h>
#include<limits.h>
#define MAX 100004
ll X,Y,Z;

typedef long long ll;

ll max(ll a,ll b){
    if(a>b) return a;
    else return b;
}

ll min(ll a,ll b){
    if(a<b) return a;
    else return b;
}

/*qsort(array,num_of_index,sizeof(ll),compare_int); */
 ll compare_int(const void *a,const void *b){
     return *(ll*) a - *(ll *) b; 
 } 
 
ll b_search(ll* array,ll left,ll right,ll key){
    ll mid = left - (right - left)/2;
     if( right - left == 1){
         if(array[mid]==key)
             return mid;
          else
               return -1;
     }
     if(array[mid]==key)
         return mid;
     else if(array[mid]>key)
         b_search(array,left,mid,key);
     else if(array[mid]<key)
         b_search(array,mid,right,key);
}

ll check(ll ans){
    if(Y*ans + Z*(ans + 1) <= X) return 1;
    else return 0;
}

 ll upper_bound(ll  *array,ll left,ll right){
     if(right-left==1)
         return left;
     ll mid = left + (right - left)/2;
     if(check(mid))
         return upper_bound(array,mid,right);
     else
         return upper_bound(array,left,mid);
 }


ll main(){
    scanf("%lld %lld %lld",&X,&Y,&Z);
    ll num[MAX];
    for(ll i=1;i<MAX;i++)
        num[i] = i;
    printf("%lld",upper_bound(num,1,MAX));
}


Compiler output:
main.c:8:1: error: unknown type name 'll'
    8 | ll X,Y,Z;
      | ^~
Language: C++

#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#define ll long long
#define rep(i,n) for(ll i=0;i<(n);i++)
#define pll pair<ll,ll>
#define pq priority_queue
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
#define ios ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
#define lb(c,x) distance(c.begin(),lower_bound(all(c),x))
#define ub(c,x) distance(c.begin(),upper_bound(all(c),x))

using namespace std;

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

const ll mod=1e9+7;

int main(){
    ll x,y,z;
    cin >> x >> y >> z;
    x-=y+2*z;
    ll d=y+z;
    ans=1+x/d;
    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   27 |     ans=1+x/d;
      |     ^~~
      |     abs
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:14: error: 'cin' was not declared in this scope
    2 |   int x,y,z; cin>>x>>y>>z;
      |              ^~~
a.cc:3:3: error: 'cout' was not declared in this scope
    3 |   cout<<(x-1)/(z+y);
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
#include<cstdlib>
#include<cmath>
using namespace std;
int main(){
  int X; int Y; int Z; 
  cin>>X>>Y>>Z;
  int S=0; //人数カウント
  int A=2*Z; //幅カウント
 　while(A<X){
    S++;
    A+=Y;
    A+=Z;
  }
  cout<<S<<endl;
}
    

Compiler output:
a.cc:10:2: error: extended character 　 is not valid in an identifier
   10 |  　while(A<X){
      |  ^
a.cc: In function 'int main()':
a.cc:10:2: error: '\U00003000while' was not declared in this scope
   10 |  　while(A<X){
      |  ^~~~~~~
Language: C++

int x, y, z, answer, answer1;
scanf("%d %d %d", &x, &y, &z);
answer=(x-z)/(z+y);
answer1=floor(answer);
printf(answer1);

Compiler output:
a.cc:2:6: error: expected constructor, destructor, or type conversion before '(' token
    2 | scanf("%d %d %d", &x, &y, &z);
      |      ^
a.cc:3:1: error: 'answer' does not name a type
    3 | answer=(x-z)/(z+y);
      | ^~~~~~
a.cc:4:1: error: 'answer1' does not name a type
    4 | answer1=floor(answer);
      | ^~~~~~~
a.cc:5:7: error: expected constructor, destructor, or type conversion before '(' token
    5 | printf(answer1);
      |       ^
Language: C++

int x, y, z, answer, answer1;
scanf("%d %d %d", &x, &y, &z);
answer=(x-z)/(z+y)
answer1=floor(answer)
printf(answer1)

Compiler output:
a.cc:2:6: error: expected constructor, destructor, or type conversion before '(' token
    2 | scanf("%d %d %d", &x, &y, &z);
      |      ^
a.cc:3:1: error: 'answer' does not name a type
    3 | answer=(x-z)/(z+y)
      | ^~~~~~
Language: C++

int x, y, z, answer, answer1,
scanf("%d %d %d", &x, &y, &z)
answer=(x-z)/(z+y)
answer1=floor(answer)
printf(answer1)

Compiler output:
a.cc:2:1: warning: built-in function 'scanf' declared as non-function [-Wbuiltin-declaration-mismatch]
    2 | scanf("%d %d %d", &x, &y, &z)
      | ^~~~~
a.cc:2:29: error: expression list treated as compound expression in initializer [-fpermissive]
    2 | scanf("%d %d %d", &x, &y, &z)
      |                             ^
a.cc:2:29: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    2 | scanf("%d %d %d", &x, &y, &z)
      |                             ^
      |                             |
      |                             int*
a.cc:3:1: error: expected ',' or ';' before 'answer'
    3 | answer=(x-z)/(z+y)
      | ^~~~~~
Language: C++

int x, y, z,
scanf("%d %d %d", &x, &y, &z)
answer=(x-z)/(z+y)
answer1=floor(answer)
printf(answer1)

Compiler output:
a.cc:2:1: warning: built-in function 'scanf' declared as non-function [-Wbuiltin-declaration-mismatch]
    2 | scanf("%d %d %d", &x, &y, &z)
      | ^~~~~
a.cc:2:29: error: expression list treated as compound expression in initializer [-fpermissive]
    2 | scanf("%d %d %d", &x, &y, &z)
      |                             ^
a.cc:2:29: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    2 | scanf("%d %d %d", &x, &y, &z)
      |                             ^
      |                             |
      |                             int*
a.cc:3:1: error: expected ',' or ';' before 'answer'
    3 | answer=(x-z)/(z+y)
      | ^~~~~~
Language: C++

#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(x) (x).begin(),(x).end()
#define endl "\n"
 
using ll = long long;
using P = pair<int,int>;
using mp =  map<string,int>;
 
const int MOD = 1e9 + 7;
const int INF = 1001001001;
 
int main() {
    ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
 
    int x, y, z;
    cin >> x >> y >> z;
 
    x -= z;
    x /= y+z;
    cout << x << endl;
 
    return 0;
}
 

Compiler output:
a.cc:6:11: error: 'pair' does not name a type
    6 | using P = pair<int,int>;
      |           ^~~~
a.cc:7:13: error: 'map' does not name a type
    7 | using mp =  map<string,int>;
      |             ^~~
a.cc: In function 'int main()':
a.cc:13:5: error: 'ios_base' has not been declared
   13 |     ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
      |     ^~~~~~~~
a.cc:13:38: error: 'cin' was not declared in this scope
   13 |     ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
      |                                      ^~~
a.cc:13:46: error: 'NULL' was not declared in this scope
   13 |     ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
      |                                              ^~~~
a.cc:1:1: note: 'NULL' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | #define rep(i, n) for (int i = 0; i < n; ++i)
a.cc:13:52: error: 'cout' was not declared in this scope
   13 |     ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
      |                                                    ^~~~
Language: C++

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

int main() {
int x,y,z;
cin >> x >> y >> z;
int ans=0;
for(int i=1;i<n;i++){
    int dist=y*i+z*(i+1);
    if(dist<=x)ans=i;
}
cout << ans;
}


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

#include<bits/stdc++.h>
using namespace std;
int x, y, z, qaq, ans;
int main()
{
    cin >> x >> y >> z;
    qaq = z;、
    while(qaq + y + z <= x){
        qaq += y + z; 
        ans ++;
    }
    cout << ans <<endl;
    return 0;
}

Compiler output:
a.cc:7:13: error: extended character 、 is not valid in an identifier
    7 |     qaq = z;、
      |             ^
a.cc: In function 'int main()':
a.cc:7:13: error: '\U00003001' was not declared in this scope
    7 |     qaq = z;、
      |             ^~
Language: C++

#include<iostream>
signed main(){int x,y,z;std::cin>>x>>y>>z;std::cout<<(x-z)/(y+z)<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:67: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    2 | signed main(){int x,y,z;std::cin>>x>>y>>z;std::cout<<(x-z)/(y+z)<<endl;}
      |                                                                   ^~~~
      |                                                                   std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
signed main(){int x,y,z;std:cin>>x>>y>>z;std::cout<<(x-z)/(y+z)<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:29: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    2 | signed main(){int x,y,z;std:cin>>x>>y>>z;std::cout<<(x-z)/(y+z)<<endl;}
      |                             ^~~
      |                             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:2:66: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    2 | signed main(){int x,y,z;std:cin>>x>>y>>z;std::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>
signed main(){std::cout<<(x-z)/(y+z)<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:27: error: 'x' was not declared in this scope
    2 | signed main(){std::cout<<(x-z)/(y+z)<<endl;}
      |                           ^
a.cc:2:29: error: 'z' was not declared in this scope
    2 | signed main(){std::cout<<(x-z)/(y+z)<<endl;}
      |                             ^
a.cc:2:33: error: 'y' was not declared in this scope
    2 | signed main(){std::cout<<(x-z)/(y+z)<<endl;}
      |                                 ^
a.cc:2:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    2 | signed main(){std::cout<<(x-z)/(y+z)<<endl;}
      |                                       ^~~~
      |                                       std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<cstdio>
int main()
{
int x,y,z;
cin>>x>>y>>z;
cout<<(x-((1+y)*z))/y;
return 0;
}

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

import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int X = sc.nextInt();
   int Y = sc.nextInt();
   int Z = sc.nextInt();
   X -=Y+2*Z 
   System.out.println(1+X/(Y+Z));
 }
}

Compiler output:
Main.java:8: error: ';' expected
   X -=Y+2*Z 
            ^
1 error
Language: C++

int main(){
 int x,y,z;
 cin >> x >> y >>z;
int sum=0;
int cut=0;
while(sum=x-z){sum+=y+z;++cnt;
}
cout<<cnt-1<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:3:2: error: 'cin' was not declared in this scope
    3 |  cin >> x >> y >>z;
      |  ^~~
a.cc:6:27: error: 'cnt' was not declared in this scope; did you mean 'cut'?
    6 | while(sum=x-z){sum+=y+z;++cnt;
      |                           ^~~
      |                           cut
a.cc:8:1: error: 'cout' was not declared in this scope; did you mean 'cut'?
    8 | cout<<cnt-1<<endl;
      | ^~~~
      | cut
a.cc:8:7: error: 'cnt' was not declared in this scope; did you mean 'cut'?
    8 | cout<<cnt-1<<endl;
      |       ^~~
      |       cut
a.cc:8:14: error: 'endl' was not declared in this scope
    8 | cout<<cnt-1<<endl;
      |              ^~~~
a.cc:8:19: error: expected '}' at end of input
    8 | cout<<cnt-1<<endl;
      |                   ^
a.cc:1:11: note: to match this '{'
    1 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(false); cin.tie(0);
#define FOR(i,s,n) for(int i = s; i < (n); i++)
#define REP(i,n) FOR(i,0,n)
#define ALL(n) (n).begin(), (n).end()
#define RALL(n) (n).rbegin(), (n).rend()
#define ATYN(n) cout << ( (n) ? "Yes":"No") << endl;
#define CFYN(n) cout << ( (n) ? "YES":"NO") << endl;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int,int>;

int main(void)
{
    IOS
    int x, y, z;
    cin >> x >> y >> z;
    x -= z;
    int ans = x / (y+z);
    out(ans)

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'out' was not declared in this scope
   21 |     out(ans)
      |     ^~~
Language: C++

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

int main(){
  int x,y,z;
  cin >> x >> y >> z;
  if(x%(y+z)>=y){
    cout << x/(y+z)+1;
  }else{
    cout << x/(y+z);
  }
}

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;
using ll = long long;
using vl = vector<ll>;
using vvl = vector<vl>;
using vi = vector<int>;
using vvi = vector<vi>;
#define ote(x) cout<<(x)<<endl
#define all(x) (x).begin(),(x).end()
#define rp(i,s,e) for(int i=(s);i<(e);++i)
#define rpz(i,e) rp(i,0,e)

int main(){
	int X,Y,Z;
	cin>>X>>Y>>Z;
	int ans = X/(Y+Z);
	if(ans*(Y+Z)+Z > X){
		ote(ans-1;
	}
	else{
		ote(ans);
	}
}


Compiler output:
a.cc:23:2: error: unterminated argument list invoking macro "ote"
   23 | }
      |  ^
a.cc: In function 'int main()':
a.cc:18:17: error: 'ote' was not declared in this scope
   18 |                 ote(ans-1;
      |                 ^~~
a.cc:18:20: error: expected '}' at end of input
   18 |                 ote(ans-1;
      |                    ^
a.cc:17:28: note: to match this '{'
   17 |         if(ans*(Y+Z)+Z > X){
      |                            ^
a.cc:18:20: error: expected '}' at end of input
   18 |                 ote(ans-1;
      |                    ^
a.cc:13:11: note: to match this '{'
   13 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;
int n,b,i,tot;
int main()
{
	int n,b,i,tot,sum;
	cin>>n>>b>>i;
	for(i;i<=n;;)
	{sum=i+b;
	tot++;
	}
	cout<<tot;
}



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

#include <iostream>
using namespace std;

int main(void) {
    int x, y, z, cnt = 0;

    cin.tie(0);
    ios::sync_with_stdio(false);
    cin >> x >> y >> z;
    while (true) {
        int width = y * cnt + z * (cnt + 1);
        if (x < width) {
            cnt--;
            break;
        }

        cnt++;
    }

    cout << cnt << "\n";
    return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:21:14: error: expected '}' at end of input
   21 |     return 0;
      |              ^
a.cc:4:16: note: to match this '{'
    4 | int main(void) {
      |                ^
Language: C++

#include<bits/stdc++>
using namespace std;
int main(){
  int X,Y,Z;
  cin >> X >> Y >> Z;
  int a= X/(Y+Z);
  if(X-a*(Y+Z)>=Y){
    cout << a+1 << endl;
    return 0;
  }
  else{
    cout << a << endl;
    return 0;
  }
}
    

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

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

int main() {
    int X, Y, Z;
    cin >> X >> Y >> Z;
    int tmp = Z;
    int cnt;
    while (tmp + Y + Z <= X)
    {
        tmp += Y + Z;
        cnt++
    }
    cout << cnt << endl;
}


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

#include <iostream>
using namespace std; 
int main()
{
       int x = 0, y = 0, z = 0, a = 0;
       cin >> x >> y >> z;
       While (x > y)
       {
             x -= z;
             if(x >= y)
             {
                   x -= y;
                   a++;
              }
        }
    if(x >= z)
    {
   cout << x;
  }
   else
  {
   cout << x - 1;
   }

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'While' was not declared in this scope
    7 |        While (x > y)
      |        ^~~~~
Language: Java

import java.util.Scanner;

public class main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in);) {
			int X = sc.nextInt();
			int Y = sc.nextInt();
			int Z = sc.nextInt();

			int ans = (X - Z) / (Y + Z);

			System.out.println(ans);

		}
	}
}

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

int main(){
  int x,y,z;
  cin>>x>>y>>z;
  if(x%2!=0)int ans=z;
  else int ans=z*2;
  int cnt=0;
  while(ans<x){
    ans+=(y+z);
    cnt++;
  }
  cout<<cnt<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |   while(ans<x){
      |         ^~~
      |         abs
Language: C++

#include<iostream>
signed main(){
	int x,z,y;
	cin>>x>>y>>z;
	cout<<(x-z)/(y+z)<<std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         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:5:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |         cout<<(x-z)/(y+z)<<std::endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
signed main(){
	int x,z,y;
	std::cin>>x>>y>>z;
	std::cout<<(x-z)/(y+z)<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |         std::cout<<(x-z)/(y+z)<<endl;
      |                                 ^~~~
      |                                 std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         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:5:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |         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:5:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |         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 <stdio.h>
int main(){
  int x,y,z,i;
  scanf("%d%d%d",&x,&y,&z);
  x-=y*2+z
  for(i=0;x>=0;i++)x-=y+z;
  printf("%d",i);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:11: error: expected ';' before 'for'
    5 |   x-=y*2+z
      |           ^
      |           ;
    6 |   for(i=0;x>=0;i++)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<X;i++){
  if(X-Y*i-Z*(i+1)<0){
    cout<<i-1<<endl;
  }
}
}

    
    

Compiler output:
a.cc:6:3: error: expected initializer before 'int'
    6 |   int X,Y,Z;
      |   ^~~
a.cc:8:1: error: 'cin' does not name a type
    8 | cin>>X>>Y>>Z;
      | ^~~
a.cc:10:1: error: expected unqualified-id before 'for'
   10 | for(int i=0;i<X;i++){
      | ^~~
a.cc:10:13: error: 'i' does not name a type
   10 | for(int i=0;i<X;i++){
      |             ^
a.cc:10:17: error: 'i' does not name a type
   10 | for(int i=0;i<X;i++){
      |                 ^
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

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

int main() {
  int x, y, z, occ = 0, ans = 0;
  cin >> x >> y >> z;
  
  occ += z
    
  while(occ <= x){
    occ += y + z;
    ans++;
  }
  
  cout << ans - 1 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'while'
    8 |   occ += z
      |           ^
      |           ;
    9 | 
   10 |   while(occ <= x){
      |   ~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
const int maxn=0x7fffff;
int main(){
	int n,m,k;
	cin>>n>>m>>k;
	n-=k;
	cout<<n/=(m+k);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: no match for 'operator/=' (operand types are 'std::basic_ostream<char>' and 'int')
   11 |         cout<<n/=(m+k);
      |         ~~~~~~~^~~~~~~
Language: C++

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

int main() {
  int x, y z;

  char c = str.at(0);
  cout << (x - y) / (y + z) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected initializer before 'z'
    5 |   int x, y z;
      |            ^
a.cc:7:12: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |   char c = str.at(0);
      |            ^~~
      |            std
a.cc:8:16: error: 'y' was not declared in this scope
    8 |   cout << (x - y) / (y + z) << endl;
      |                ^
a.cc:8:26: error: 'z' was not declared in this scope
    8 |   cout << (x - y) / (y + z) << endl;
      |                          ^