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

import java.util.Scanner;
import java.util.regex.Pattern;
import java.util.regex.Matcher;

public class Main {
    public static void main(String[] args) throws MyException {
        
     // S,Tを入力
     Scanner scan = new Scanner(System.in);
     String S = scan.next();
     String T = scan.next();

     // S,Tは1文字以上10文字以下
     if(S.length()<1 || S.length()>10) throw new MyException("");
     if(T.length()<1 || T.length()>10) throw new MyException("");
     // S,Tは英字小文字からなる文字列
     if (!Pattern.matches("^[a-z]+$", S)) throw new MyException("");
     if (!Pattern.matches("^[a-z]+$", T)) throw new MyException("");

     // S≠T
     if(S.equals(T)) throw new MyException("");
          
     // A,Bを入力して下さい
    String As = scan.next();
    String Bs = scan.next();

     // A,Bは整数
     if(!Pattern.compile("^-?[0-9]+$").matcher(As).find()) throw new MyException("");
     if(!Pattern.compile("^-?[0-9]+$").matcher(Bs).find()) throw new MyException("");

    // A,Bを数値に変換
	int A = Integer.parseInt(As);
	int B = Integer.parseInt(Bs);

     // 1≦A, B≦10
     if(A<1 || A>10) throw new MyException("");
     if(B<1 || B>10) throw new MyException("");

     // Uを入力
     String U = scan.next ();
     // SまたはTと一致しなかったらエラー
     if(!U.equals(S) && !U.equals(T)) throw new MyException("");

     if(U.equals(S)) System.out.println((A-1) +" "+ B);
     if(U.equals(T)) System.out.println(A +" "+ (B-1));
          
     scan.close();
    }
}

class MyException extends Exception{
  public MyException(String msg){
    super(msg);
  }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.regex.Pattern;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.util.regex.Matcher;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Main {
      | ^~~~~~
a.cc:51:27: error: expected initializer before 'Exception'
   51 | class MyException extends Exception{
      |                           ^~~~~~~~~
Language: Java

 #include<iostream>
 using namespace std;

 int main(){
 string S,T,U;
 int A,B;
 cin>>S>>T>>A>>B>>U;
 if(S==U)A--;
 else B--;
 cout<<A<<"␣"<<B<<endl;
 }


Compiler output:
Main.java:1: error: illegal character: '#'
 #include<iostream>
 ^
Main.java:1: error: class, interface, enum, or record expected
 #include<iostream>
         ^
Main.java:7: error: not a statement
 cin>>S>>T>>A>>B>>U;
                ^
Main.java:10: error: not a statement
 cout<<A<<"?"<<B<<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<bits/stdc++h>
using namespace std;
int main()
  {
  string a,b,c;
  cin>>a>>b;
  int a2,b2;
  cin>>a2>>b2;
  cin>>c;
  cout<<a2-(a==c)<<" "<<b2-(c==b)<<endl;
  return 0;
  }

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

import java.util.Scanner;
import java.util.regex.Pattern;
import java.util.regex.Matcher;

public class Main {
    public static void main(String[] args) throws MyException {
        
     // S,Tを入力
     Scanner scan = new Scanner(System.in);
     String S = scan.next();
     String T = scan.next();

     // S,Tは1文字以上10文字以下
//     if(S.length()<1 || S.length()>10) throw new MyException("");
//     if(T.length()<1 || T.length()>10) throw new MyException("");
     // S,Tは英字小文字からなる文字列
//     if (!Pattern.matches("^[a-z]+$", S)) throw new MyException("");
//     if (!Pattern.matches("^[a-z]+$", T)) throw new MyException("");

     // S≠T
//     if(S.equals(T)) throw new MyException("");
          
     // A,Bを入力して下さい
    String As = scan.next();
    String Bs = scan.next();

     // A,Bは整数
//     if(!Pattern.compile("^-?[0-9]+$").matcher(As).find()) throw new MyException("");
//     if(!Pattern.compile("^-?[0-9]+$").matcher(Bs).find()) throw new MyException("");

    // A,Bを数値に変換
	int A = Integer.parseInt(As);
	int B = Integer.parseInt(Bs);

     // 1≦A, B≦10
     if(A<1 || A>10) throw new MyException("");
     if(B<1 || B>10) throw new MyException("");

     // Uを入力
     String U = scan.next();
     // SまたはTと一致しなかったらエラー
//     if(!U.equals(S) && !U.equals(T)) throw new MyException("");

     if(U.equals(S)) System.out.println(A-1);
     if(U.equals(T)) System.out.println(B-1);
          
     scan.close();
    }
}

//class MyException extends Exception{
//  public MyException(String msg){
//    super(msg);
//  }
//}

Compiler output:
Main.java:6: error: cannot find symbol
    public static void main(String[] args) throws MyException {
                                                  ^
  symbol:   class MyException
  location: class Main
Main.java:36: error: cannot find symbol
     if(A<1 || A>10) throw new MyException("");
                               ^
  symbol:   class MyException
  location: class Main
Main.java:37: error: cannot find symbol
     if(B<1 || B>10) throw new MyException("");
                               ^
  symbol:   class MyException
  location: class Main
3 errors
Language: Java

import java.util.Scanner;
//import java.util.regex.Pattern;
//import java.util.regex.Matcher;

public class Main {
    public static void main(String[] args) throws MyException {
        
     // S,Tを入力
     Scanner scan = new Scanner(System.in);
     String S = scan.next();
     String T = scan.next();

     // S,Tは1文字以上10文字以下
//     if(S.length()<1 || S.length()>10) throw new MyException("");
//     if(T.length()<1 || T.length()>10) throw new MyException("");
     // S,Tは英字小文字からなる文字列
//     if (!Pattern.matches("^[a-z]+$", S)) throw new MyException("");
//     if (!Pattern.matches("^[a-z]+$", T)) throw new MyException("");

     // S≠T
//     if(S.equals(T)) throw new MyException("");
          
     // A,Bを入力して下さい
    String As = scan.next();
    String Bs = scan.next();

     // A,Bは整数
//     if(!Pattern.compile("^-?[0-9]+$").matcher(As).find()) throw new MyException("");
//     if(!Pattern.compile("^-?[0-9]+$").matcher(Bs).find()) throw new MyException("");

    // A,Bを数値に変換
	int A = Integer.parseInt(As);
	int B = Integer.parseInt(Bs);

     // 1≦A, B≦10
     if(A<1 || A>10) throw new MyException("");
     if(B<1 || B>10) throw new MyException("");

     // Uを入力
     String U = scan.next();
     // SまたはTと一致しなかったらエラー
//     if(!U.equals(S) && !U.equals(T)) throw new MyException("");

     if(U.equals(S)) System.out.println(A-1);
     if(U.equals(T)) System.out.println(B-1);
          
     scan.close();
    }
}

//class MyException extends Exception{
//  public MyException(String msg){
//    super(msg);
//  }
//}

Compiler output:
Main.java:6: error: cannot find symbol
    public static void main(String[] args) throws MyException {
                                                  ^
  symbol:   class MyException
  location: class Main
Main.java:36: error: cannot find symbol
     if(A<1 || A>10) throw new MyException("");
                               ^
  symbol:   class MyException
  location: class Main
Main.java:37: error: cannot find symbol
     if(B<1 || B>10) throw new MyException("");
                               ^
  symbol:   class MyException
  location: class Main
3 errors
Language: C++

fn main() {
    let st: Vec<String> = {
        let mut s = String::new();
        std::io::stdin().read_line(&mut s).unwrap();
        s.trim().split_whitespace().map(|e| e.parse().unwrap()).collect()
    };
    let ab: Vec<i32> = {
        let mut s = String::new();
        std::io::stdin().read_line(&mut s).unwrap();
        s.trim().split_whitespace().map(|e| e.parse().unwrap()).collect()
    };
    let u: String = {
        let mut s = String::new();
        std::io::stdin().read_line(&mut s).unwrap();
        s.trim().parse().unwrap()
    };
    if st[0] == u {
        println!("{} {}", ab[0] - 1, ab[1]);
    }
    else {
        println!("{} {}", ab[0], ab[1] - 1);
    }
}


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

#include<bits\stdc++.h>
using namespace std;
int main() 
{
	int x, y;
	char s[15], t[15], u[15];
	cin >> s >> t >> x >> y >> u;
	int len1 = strlen(s);
	int len2 = strlen(u);
	if(len1 != len2)
	{
		cout << x << " " << --y;
		return 0;		
	} 
	for(int i = 0; i < len1; i++)
		if(s[i] != u[i])
		{
			cout << x << " " <<--y;
			return 0;
		}
	cout << --x << " " << y;
	return 0;
}

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

#include <bits/stdc++.h>
#include <iostream>
#include<map>
#include <algorithm>
#include <vector>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)

int main() {
    string s;
    cin >> s
    rep(0, s.size())
    {
        s[i]  = 'x';
    }
  cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before 'for'
   11 |     cin >> s
      |             ^
      |             ;
a.cc:12:9: error: lvalue required as increment operand
   12 |     rep(0, s.size())
      |         ^
a.cc:7:48: note: in definition of macro 'rep'
    7 | #define rep(i, n) for(int i = 0; i < (int)(n); i++)
      |                                                ^
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include<map>
#include <algorithm>
#include <vector>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)

int main() {
    string s;
    cin >> s
    rep(int i = 0, s.size())
    {
        s[i]  = 'x';
    }
  cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before 'for'
   11 |     cin >> s
      |             ^
      |             ;
a.cc:12:13: error: redeclaration of 'int i'
   12 |     rep(int i = 0, s.size())
      |             ^
a.cc:7:48: note: in definition of macro 'rep'
    7 | #define rep(i, n) for(int i = 0; i < (int)(n); i++)
      |                                                ^
a.cc:12:13: note: 'int i' previously declared here
   12 |     rep(int i = 0, s.size())
      |             ^
a.cc:7:34: note: in definition of macro 'rep'
    7 | #define rep(i, n) for(int i = 0; i < (int)(n); i++)
      |                                  ^
a.cc:12:17: error: lvalue required as increment operand
   12 |     rep(int i = 0, s.size())
      |                 ^
a.cc:7:48: note: in definition of macro 'rep'
    7 | #define rep(i, n) for(int i = 0; i < (int)(n); i++)
      |                                                ^
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include<map>
#include <algorithm>
#include <vector>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)

int main() {
    string s, t;
    int a, b;
    string u;
    cin >> s >> t >> a >> b >> u;

    if (u == s)  --a;
    else --b;

    cout << a << << b << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: expected primary-expression before '<<' token
   18 |     cout << a << << b << endl;
      |                  ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int> >;
#define rep(i, n)         for(int i = 0; i < (int)(n); i++)
#define brep(n)           for(int bit=0;bit<(1<<n);bit++)
#define erep(i,container) for (auto i : container)
#define irep(i, n)        for(int i = n-1; i >= (int)0; i--)
#define rrep(i,m,n) for(int i = m; i < (int)(n); i++)
#define reprep(i,j,h,w) rep(i,h)rep(j,w)
#define all(x) (x).begin(),(x).end()
#define aall(x,n) (x).begin(),(x).begin()+(n)
#define VEC(type,name,n) std::vector<type> name(n);rep(i,n)std::cin >> name[i];
#define pb push_back
#define pf push_front
#define lb lower_bound
#define ub upper_bound
#define fi first
#define se second
#define itn int
#define mp make_pair
#define sum accumulate
#define keta fixed<<setprecision
#define vvector(name,typ,m,n,a)vector<vector<typ> > name(m,vector<typ> (n,a))
#define vvvector(name,t,l,m,n,a) vector<vector<vector<t> > > name(l, vector<vector<t> >(m, vector<t>(n,a)));
#define vvvvector(name,t,k,l,m,n,a) vector<vector<vector<vector<t> > > > name(k,vector<vector<vector<t> > >(l, vector<vector<t> >(m, vector<t>(n,a)) ));
typedef long long ll;
const int INF = 2000000000;
const ll INF64 = 1000000000000000ll;
const ll MOD = 1000000007LL;
long long comb(int n, int r) {
	std::vector<std::vector<long long>> v(n + 1, std::vector<long long>(n + 1, 0));
	for (int i = 0; i < v.size(); i++) {
		v[i][0] = 1;
		v[i][i] = 1;
	}
	for (int j = 1; j < v.size(); j++) {
		for (int k = 1; k < j; k++) {
			v[j][k] = (v[j - 1][k - 1] + v[j - 1][k]);
		}
	}
	return v[n][r];
}
int main(){
    string s;
    std::cin >> s;
    ll k;
    std::cin >> k;
    ll ans=0ll;
    while(k>0ll&&s.size>1){
        rrep(i,1,s.size()){
            ans+=9ll*comb(i-1,k-1)*pow(9,k-1);
        }
       // std::cout << ans << std::endl;
        ans+=(s[0]-'0'-1)*comb(s.size()-1,k-1)*pow(9,k-1);
        k--;
     //   std::cout << ans << std::endl;
        s=s.substr(1,s.size()-1);
    }
    ans++;
    std::cout << ans << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:49:20: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   49 |     while(k>0ll&&s.size>1){
      |                  ~~^~~~
      |                        ()
Language: C++

#include<iostream>
#include<deque>
#include<algorithm>
#include<numeric>
using namespace std;

int main(){

	int N, K;
	cin >> N >> K;

	deque<float> exp_of_dice;
	float S_part_max = 0;
	float sum = 0;
	int p = 0;

	for(int i=0; i<N; ++i){
		cin >> p;
		exp_of_dice.push_back(  float( (1./2.)*(p+1.)) );
		//cout << float( (1./2.)*(p+1.) ) << endl;
		
		if(i==K-1){
			S_part_max = float(accumulate(exp_of_dice.begin(), exp_of_dice.end(), 0.f));
			if (K==1){exp_of_dice.pop_front();}
		}

		else if (i>K-1){
			sum = float(accumulate(exp_of_dice.begin(), exp_of_dice.end(), 0.f));
			if (sum > S_part_max){
				S_part_max = sum;
			}
			exp_of_dice.pop_front();
		}

	}

	cout << setprecision(9) << S_part_max << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:17: error: 'setprecision' was not declared in this scope
   37 |         cout << setprecision(9) << S_part_max << endl;
      |                 ^~~~~~~~~~~~
a.cc:5:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    4 | #include<numeric>
  +++ |+#include <iomanip>
    5 | using namespace std;
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int b1,b2;
		String str = sc.nextLine();
		String[] a = str.split(" ");
		String str1 = sc.nextLine();
		String[] a1 = str1.split(" ");
		String str2 = sc.nextLine();
		if(str2==a1[0]) {
			b1 = Integer.parseInt(a1[0])-1;
			b2 = Integer.parseInt(a1[1]);
		}
		else if(str2==a1[1]) {
			b1 = Integer.parseInt(a1[0]);
			b2 = Integer.parseInt(a1[1])-1;
		}
		System.out.println(b1+" "+b2);
		
	}
}

Compiler output:
Main.java:19: error: variable b1 might not have been initialized
		System.out.println(b1+" "+b2);
		                   ^
Main.java:19: error: variable b2 might not have been initialized
		System.out.println(b1+" "+b2);
		                          ^
2 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.nextLine().split(" ");
		String[] b = sc.nextLine().split(" ");
        String temp1= b[0];
        String temp2 = b[1];
		String c = sc.nextLine();
      
      	if (c == a[0]) {
          b[0] = Integer.toString(Integer.parseInt(temp1)++);
        } else if (c == a[1]) {
          b[1] = Integer.toString(Integer.parseInt(temp2)++);
        }
 
		// 出力
		System.out.println(b[0] + " " + b[1]);
	}
}

Compiler output:
Main.java:12: error: unexpected type
          b[0] = Integer.toString(Integer.parseInt(temp1)++);
                                                  ^
  required: variable
  found:    value
Main.java:14: error: unexpected type
          b[1] = Integer.toString(Integer.parseInt(temp2)++);
                                                  ^
  required: variable
  found:    value
2 errors
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int b1,b2;
		String str = sc.nextLine();
		String[] a = str.split(" ");
		String str1 = sc.nextLine();
		String[] a1 = str1.split(" ");
		String str2 = sc.nextLine();
		if(str2==a1[0]) {
			b1 = Integer.parseInt(a1[0])-1;
			b2 = Integer.parseInt(a1[1]);
		}
		else if(str2==a1[1]) {
			b1 = Integer.parseInt(a1[0]);
			b2 = Integer.parseInt(a1[1])-1;
		}
		System.out.println(b1+" "+b2);
		
	}

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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.nextLine().split(" ");
		String[] b = sc.nextLine().split(" ");
		String c = sc.nextLine();
      
      	if (c == a[0]) {
          b[0] = Integer.toString(b[0]++);
        } else if (c == a[1]) {
          b[1] = Integer.toString(b[1]++);
        }
 
		// 出力
		System.out.println(b[0] + " " + b[1]);
	}
}

Compiler output:
Main.java:10: error: bad operand type String for unary operator '++'
          b[0] = Integer.toString(b[0]++);
                                      ^
Main.java:12: error: bad operand type String for unary operator '++'
          b[1] = Integer.toString(b[1]++);
                                      ^
2 errors
Language: C

#include <stdio.h>
int main(){
    char S[10],T[10],U[];
    int A,B,ans;
    scanf("%s %s",S,T);
    scanf("%d %d",&A,&B);
    scanf("%s",U);
    if(S == U){
        ans = A + 1;
    }else{
        ans = B + 1;
    }
    printf("%d",ans);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:3:22: error: array size missing in 'U'
    3 |     char S[10],T[10],U[];
      |                      ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.nextLine().split(" ");
		String[] b = sc.nextLine().split(" ");
		String c = sc.nextLine();
      
      	if (c == a[0]) {
          b[0] = Integer.toString(Integer.parseInt((String)b[0])++);
        } else if (c == a[1]) {
          b[1] = Integer.toString(Integer.parseInt((String)b[1])++);
        }
 
		// 出力
		System.out.println(b[0] + " " + b[1]);
	}
}

Compiler output:
Main.java:10: error: unexpected type
          b[0] = Integer.toString(Integer.parseInt((String)b[0])++);
                                                  ^
  required: variable
  found:    value
Main.java:12: error: unexpected type
          b[1] = Integer.toString(Integer.parseInt((String)b[1])++);
                                                  ^
  required: variable
  found:    value
2 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.nextLine().split(" ");
		String[] b = sc.nextLine().split(" ");
		String c = sc.nextLine();
      
      	if (c == a[0]) {
          b[0] = Integer.toString(Integer.parseInt(b[0])++);
        } else if (c == a[1]) {
          b[1] = Integer.toString(Integer.parseInt(b[1])++);
        }
 
		// 出力
		System.out.println(b[0] + " " + b[1]);
	}
}

Compiler output:
Main.java:10: error: unexpected type
          b[0] = Integer.toString(Integer.parseInt(b[0])++);
                                                  ^
  required: variable
  found:    value
Main.java:12: error: unexpected type
          b[1] = Integer.toString(Integer.parseInt(b[1])++);
                                                  ^
  required: variable
  found:    value
2 errors
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class Ruuby {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String x = sc.next();
		String y = sc.next();
		int z = sc.nextInt();
		int n = sc.nextInt();
		String v = sc.next();
		if (v.equals(x)) {
			z = z - 1;
			System.out.println(z + " " + n);
		} else if (v.equals(y)) {
			n = n - 1;
			System.out.println(z + " " + n);

		}

	}

}


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

import java.util.*;
public class OjTest{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int b1,b2;
		String str = sc.nextLine();
		String[] a = str.split(" ");
		String str1 = sc.nextLine();
		String[] a1 = str1.split(" ");
		String str2 = sc.nextLine();
		if(str2==a1[0]) {
			b1 = Integer.parseInt(a1[0])-1;
			b2 = Integer.parseInt(a1[1]);
		}
		else {
			b1 = Integer.parseInt(a1[0]);
			b2 = Integer.parseInt(a1[1])-1;
		}
		System.out.println(b1+" "+b2);
		
	}
}

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

import java.util.*;
public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int b1,b2;
		String str = sc.nextLine();
		String[] a = str.split(" ");
		String str1 = sc.nextLine();
		String[] a1 = str1.split(" ");
		String str2 = sc.nextLine();
		if(str2==a1[0]) {
			b1 = Integer.parseInt(a1[0])-1;
			b2 = Integer.parseInt(a1[1]);
		}
		else {
			b1 = Integer.parseInt(a1[0]);
			b2 = Integer.parseInt(a1[1])-1;
		}
		System.out.println(b1+" "+b2);
		
	}

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

#include<iostream>
using namespace std;
int main() {
	char S, T;
	cin >> S >> T;
	int A, B;
	cin >> A >> B;
	char U;
	scanf("%s", &U);
	if (S == U) {
		A = A - 1;
		cout << A << B << endl;

	}
	else {}
	if (T == U) {
		B = B - 1;
		cout << A << B << endl;
	}
	else {}
	return 0;


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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.next().split(" ");
		String[] b = sc.next().split(" ");
		String c = sc.next();
      
      	if (c == a[0]) {
          b[0] = Integer.toString(Integer.parseInt(b[0])++);
        } else if (c == a[1]) {
          b[1] = Integer.toString(Integer.parseInt(b[1])++);
        }
 
		// 出力
		System.out.println(b[0] + " " + b[1]);
	}
}

Compiler output:
Main.java:10: error: unexpected type
          b[0] = Integer.toString(Integer.parseInt(b[0])++);
                                                  ^
  required: variable
  found:    value
Main.java:12: error: unexpected type
          b[1] = Integer.toString(Integer.parseInt(b[1])++);
                                                  ^
  required: variable
  found:    value
2 errors
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main()
{
	char a[100],b[100],c[100];
	int m,n;
	scanf("%s %s",&a,&b);
	scanf("%d %d",&m,&n);
	scanf("%s",&c);
	if(strncmp(a,c)==0)
	m--;
	else
	n--;
	return 0;
	printf("%d %d",m,n);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:12: error: too few arguments to function 'strncmp'
   12 |         if(strncmp(a,c)==0)
      |            ^~~~~~~
In file included from main.c:3:
/usr/include/string.h:159:12: note: declared here
  159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n)
      |            ^~~~~~~
Language: C++

#include<Bits.h>
#include<iostream>
using namespace std;
int main() {
	char S, T;
	cin >> S >> T;
	int A, B;
	cin >> A >> B;
	char U;
	scanf("%s", &U);
	if (S == U) {
		A = A - 1;
		cout << A << B;
	}
	else {}
	if (T == U) {
		B = B - 1;
		cout << A << B;
	}
	else {}
	return 0;
}

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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.next().split(" ");
		// スペース区切りの整数の入力
		String[] b = sc.next().split(" ");
      
		String c = sc.next();
      
      	if (c == a[0]) {
          b[0] = Integer.toString(Integer.parseInt(b[0])++);
        } else if (c == a[1]) {
          b[1] = Integer.toString(Integer.parseInt(b[1])++);
        }
 
		// 出力
		System.out.println(Integer.toString(b[0]) + " " + Integer.toString(b[1]));
	}
}

Compiler output:
Main.java:12: error: unexpected type
          b[0] = Integer.toString(Integer.parseInt(b[0])++);
                                                  ^
  required: variable
  found:    value
Main.java:14: error: unexpected type
          b[1] = Integer.toString(Integer.parseInt(b[1])++);
                                                  ^
  required: variable
  found:    value
Main.java:18: error: incompatible types: String cannot be converted to int
		System.out.println(Integer.toString(b[0]) + " " + Integer.toString(b[1]));
		                                     ^
Main.java:18: error: incompatible types: String cannot be converted to int
		System.out.println(Integer.toString(b[0]) + " " + Integer.toString(b[1]));
		                                                                    ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
4 errors
Language: C++

S,T = input().split(" ")
A,B = map(int,input().split(" "))
U = input()

if S==U:
  A-=1
else:
  B-=1
  
print("{} {}".format(A,B))

Compiler output:
a.cc:1:1: error: 'S' does not name a type
    1 | S,T = input().split(" ")
      | ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.next().spilt(" ");
		// スペース区切りの整数の入力
		int[] b = sc.next().spilt(" ");
      
		int c = sc.next();
      
      	if (c == a[0]) {
          b[0] = Integer.toString(Integer.parseInt(b[0])++);
        } else if (c == a[1]) {
          b[1] = Integer.toString(Integer.parseInt(b[1])++);
        }
 
		// 出力
		System.out.println(Integer.toString(b[0]) + " " + Integer.toString(b[1]));
	}
}


Compiler output:
Main.java:5: error: cannot find symbol
		String[] a = sc.next().spilt(" ");
		                      ^
  symbol:   method spilt(String)
  location: class String
Main.java:7: error: cannot find symbol
		int[] b = sc.next().spilt(" ");
		                   ^
  symbol:   method spilt(String)
  location: class String
Main.java:9: error: incompatible types: String cannot be converted to int
		int c = sc.next();
		               ^
Main.java:11: error: bad operand types for binary operator '=='
      	if (c == a[0]) {
      	      ^
  first type:  int
  second type: String
Main.java:12: error: incompatible types: int cannot be converted to String
          b[0] = Integer.toString(Integer.parseInt(b[0])++);
                                                    ^
Main.java:13: error: bad operand types for binary operator '=='
        } else if (c == a[1]) {
                     ^
  first type:  int
  second type: String
Main.java:14: error: incompatible types: int cannot be converted to String
          b[1] = Integer.toString(Integer.parseInt(b[1])++);
                                                    ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
7 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.next().split(" ");
		// スペース区切りの整数の入力
		int[] b = sc.nextInt().split(" ");
      
		int c = sc.next();
      
      	if (c == a[0]) {
          b[0]++;
        } else if (c == a[1]) {
          b[1]++;
        }
 
		// 出力
		System.out.println(Integer.toString(b[0]) + " " + Integer.toString(b[1]));
	}
}


Compiler output:
Main.java:7: error: int cannot be dereferenced
		int[] b = sc.nextInt().split(" ");
		                      ^
Main.java:9: error: incompatible types: String cannot be converted to int
		int c = sc.next();
		               ^
Main.java:11: error: bad operand types for binary operator '=='
      	if (c == a[0]) {
      	      ^
  first type:  int
  second type: String
Main.java:13: error: bad operand types for binary operator '=='
        } else if (c == a[1]) {
                     ^
  first type:  int
  second type: String
4 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String[] a = sc.next().spilt(" ");
		// スペース区切りの整数の入力
		int[] b = sc.nextInt().spilt(" ");
      
		int c = sc.next();
      
      	if (c == a[0]) {
          b[0]++;
        } else if (c == a[1]) {
          b[1]++;
        }

		// 出力
		System.out.println(Integer.toString(b[0]) + " " + Integer.toString(b[1]));
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		String[] a = sc.next().spilt(" ");
		                      ^
  symbol:   method spilt(String)
  location: class String
Main.java:7: error: int cannot be dereferenced
		int[] b = sc.nextInt().spilt(" ");
		                      ^
Main.java:9: error: incompatible types: String cannot be converted to int
		int c = sc.next();
		               ^
Main.java:11: error: bad operand types for binary operator '=='
      	if (c == a[0]) {
      	      ^
  first type:  int
  second type: String
Main.java:13: error: bad operand types for binary operator '=='
        } else if (c == a[1]) {
                     ^
  first type:  int
  second type: String
5 errors
Language: C++

using namespace std;
 
int main() {
int red,blue;
  cin >> red >> blue;
  int  redn,bluen;
  cin >> redn >> bluen
    int U;
    cin >> U;
  if(U == red){
  cout << redn - U << endl << bluen;
  }
  else{cout << redn << endl<< bluen - U << }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> red >> blue;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:9:12: error: 'U' was not declared in this scope
    9 |     cin >> U;
      |            ^
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout << redn - U << endl << bluen;
      |   ^~~~
a.cc:11:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:23: error: 'endl' was not declared in this scope
   11 |   cout << redn - U << endl << bluen;
      |                       ^~~~
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:13:8: error: 'cout' was not declared in this scope
   13 |   else{cout << redn << endl<< bluen - U << }
      |        ^~~~
a.cc:13:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:24: error: 'endl' was not declared in this scope
   13 |   else{cout << redn << endl<< bluen - U << }
      |                        ^~~~
a.cc:13:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:13:44: error: expected primary-expression before '}' token
   13 |   else{cout << redn << endl<< bluen - U << }
      |                                            ^
Language: C++

#include <iostream>
#include <string.h>
#include<bits/stdc++.h>
using namespace std;
int main()
{
  int A,B;
  char S[10],U[10],T[10];
  cin>>A>>B;
  cin>>S;
  cin>>U;
  cin>>T;
  if(strcmp(S, U)==0)
	{
		cout<<A-1<<" "<<B;
	else
	{
		cout<<A<<" "<<B-1;
    }
     	
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: expected '}' before 'else'
   16 |         else
      |         ^~~~
a.cc:14:9: note: to match this '{'
   14 |         {
      |         ^
a.cc:19:6: error: expected '}' at end of input
   19 |     }
      |      ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int A,B;
  int string S,T,U;
  cin>>S>>T>>A>>B>>U;
  if(U=="S")
    cout<<A--<<B<<endl;
  else
    cout<<A<<B--<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected initializer before 'S'
    5 |   int string S,T,U;
      |              ^
a.cc:6:8: error: 'S' was not declared in this scope
    6 |   cin>>S>>T>>A>>B>>U;
      |        ^
a.cc:6:11: error: 'T' was not declared in this scope
    6 |   cin>>S>>T>>A>>B>>U;
      |           ^
a.cc:6:20: error: 'U' was not declared in this scope
    6 |   cin>>S>>T>>A>>B>>U;
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
int red,blue;
  cin >> red >> blue;
  int << redn << bluen;
  cin >> redn >> bluen
    int U;
    cin >> U;
  if(U == red){
  cout << redn - U << endl << bluen;
  }
  else{cout << redn << endl<< bluen - U << }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected unqualified-id before '<<' token
    7 |   int << redn << bluen;
      |       ^~
a.cc:8:10: error: 'redn' was not declared in this scope; did you mean 'red'?
    8 |   cin >> redn >> bluen
      |          ^~~~
      |          red
a.cc:8:18: error: 'bluen' was not declared in this scope; did you mean 'blue'?
    8 |   cin >> redn >> bluen
      |                  ^~~~~
      |                  blue
a.cc:10:12: error: 'U' was not declared in this scope
   10 |     cin >> U;
      |            ^
a.cc:14:44: error: expected primary-expression before '}' token
   14 |   else{cout << redn << endl<< bluen - U << }
      |                                            ^
Language: C++

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

int main() {
    int a, b;
  	string s,t;
    cin >> s >> t;
  	cin >> a>>b;
 	cin >>u;
    if (u== s) cout << a-1 << endl;
    else cout << b-1 << endl;
}

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

#include <stdio.h>
#include <string.h>
  long n;
  long numbers[1000000000];
  long p=0;


int search(long key){
for(long i=0;i<p;i++){
if(numbers[i]==key)return 1;//Found
}

return 0;//Not found
}


int main(void)
{
 
scanf("%ld",&n);

int flg=0;

for(int i=0;i<n;i++){
    long tmp=0;
    scanf("%ld",&tmp);

    if(flg==0){
    if(search(tmp)==0){
        numbers[p]=tmp;
        p++;
    }else{
        flg=1;
    }
    }
}

if(flg==0){
    printf("YES");
}else{
    printf("NO");
}
  return 0;
}


Compiler output:
/tmp/ccd3W4cM.o: in function `search(long)':
a.cc:(.text+0x3e): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/ccd3W4cM.o
/tmp/ccd3W4cM.o: in function `main':
a.cc:(.text+0xc6): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/ccd3W4cM.o
a.cc:(.text+0xe4): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/ccd3W4cM.o
a.cc:(.text+0xef): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in /tmp/ccd3W4cM.o
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>
#define fi        first
#define se        second
#define PI        acos(-1)
#define LC(a)     ((a<<1))
#define RC(a)     ((a<<1)+1)
#define MID(a,b)  ((a+b)>>1)
#define mem(a, b) memset(a, b, sizeof(a))
#define IOS()     std::ios::sync_with_stdio(false),cin.tie(0),cout.tie(0)
using namespace std;
typedef long long ll;
typedef unsigned long long ULL;
typedef pair<int,int> PII;
typedef pair<ll,ll>   PLL;
typedef pair<ll,int>  PLI;
const int INF = 0X3F3F3F3F;
const int MIN = -(1<<30);
const ll N = 1e8+7;
int a[N]
int main()
{
	IOS();

	string s,t;
	int a,b;
	cin>>s>>t>>a>>b;
	map<string,int> mp;
	mp[s] = a;
	mp[t] = b;
	string u;
	cin>>u;
	mp[u]--;
	cout<<mp[s]<<" "<<mp[t]<<endl;	
	
	
	
	
	
	
	

	
	
	return 0;
}



Compiler output:
a.cc:20:1: error: expected initializer before 'int'
   20 | int main()
      | ^~~
Language: C

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
void main()
{
  int a,b;
  char s[10],t[10],u[10];
  scanf("%s",s);
  scanf("%s",t);
  scanf("%d %d",&a,&b);
  scanf("%s",u);
  if (strcmp(u,s))
  	a--;
  else
    b--;
  pritnf("%d %d",a,b);
}

Compiler output:
main.c: In function 'main':
main.c:16:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   16 |   pritnf("%d %d",a,b);
      |   ^~~~~~
      |   printf
Language: Java

package Haw;


import java.util.Arrays;
import java.util.Scanner;
public class Haw {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		
		String t =sc.next();
		int a=sc.nextInt();
		int b=sc.nextInt();
		String u = sc.next();
		if(s=="red") {
			if(u=="red")a--;
			else b--;
		}else {
			if(u=="blue")a--;
			else b--;
		}
		System.out.println(a+" "+b);
	}
}

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

#include<stdio.h>

int main(
  int A, B;
  cin >> A >> B;
  string S, T, U;
  cin >> S >> T >> U;
  if (S == U)(
    return A-1 \t B
    )
  else(
    return A \t B-1
    

Compiler output:
a.cc:9:16: error: stray '\' in program
    9 |     return A-1 \t B
      |                ^
a.cc:12:14: error: stray '\' in program
   12 |     return A \t B-1
      |              ^
a.cc:4:10: error: 'B' has not been declared
    4 |   int A, B;
      |          ^
a.cc:4:11: error: expected ')' before ';' token
    4 |   int A, B;
      |           ^
      |           )
a.cc:3:9: note: to match this '('
    3 | int main(
      |         ^
a.cc:3:5: warning: second argument of 'int main(int, int)' should be 'char **' [-Wmain]
    3 | int main(
      |     ^~~~
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> A >> B;
      |   ^~~
a.cc:6:3: error: 'string' does not name a type; did you mean 'stdin'?
    6 |   string S, T, U;
      |   ^~~~~~
      |   stdin
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> S >> T >> U;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if (S == U)(
      |   ^~
Language: C

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
void main()
{
  int a,b;
  char s[10],t[10],u[10];
  scanf("%s %s",s);
  scanf("%s",t);
  scanf("%d %d",&a,&b);
  scanf("%s",u);
  if (strcmp(u,s))
  	a--;
  else
    b--;
  pritnf("%d %d",a,b);
}

Compiler output:
main.c: In function 'main':
main.c:16:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   16 |   pritnf("%d %d",a,b);
      |   ^~~~~~
      |   printf
Language: C

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
void main()
{
  int a,b;
  char s[10],t[10],u[10];
  scanf("%s %s",s,t);
  //scanf("%s",t);
  scanf("%d %d",&a,&b);
  scanf("%s",u);
  if (strcmp(u,s))
  	a--;
  else
    b--;
  pritnf("%d %d",a,b);
}

Compiler output:
main.c: In function 'main':
main.c:16:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   16 |   pritnf("%d %d",a,b);
      |   ^~~~~~
      |   printf
Language: C

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
void main()
{
  int a,b;
  char s[10];t[10],u[10];
  scanf("%s %s",s,t);
  //scanf("%s",t);
  scanf("%d %d",&a,&b);
  scanf("%s",u);
  if (strcmp(u,s))
  	a--;
  else
    b--;
  pritnf("%d %d",a,b);
}

Compiler output:
main.c: In function 'main':
main.c:7:14: error: 't' undeclared (first use in this function)
    7 |   char s[10];t[10],u[10];
      |              ^
main.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:20: error: 'u' undeclared (first use in this function)
    7 |   char s[10];t[10],u[10];
      |                    ^
main.c:16:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   16 |   pritnf("%d %d",a,b);
      |   ^~~~~~
      |   printf
Language: Java

import java.util.Scanner;

public class SnakeToy {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		int n = S.length();
		StringBuilder st = new StringBuilder("x");
		for (int x = 1; x < n; x++) {
			st.append("x");
		}
		System.out.println(st);
	}
}


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

s, t = map(str, input().lower().split())
a, b = map(int, input().lower().split())
u = input()
dicts = {}
dicts.update([(s,a),(t,b)])
dicts[u] = dicts[u] - 1
print("%d %d" %(dicts[s], dicts[t]))

Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s, t = map(str, input().lower().split())
      | ^
a.cc:5:1: error: 'dicts' does not name a type
    5 | dicts.update([(s,a),(t,b)])
      | ^~~~~
Language: C++

s, t = map(str, input().lower().split())
a, b = map(int, input().lower().split())
u = input()
dicts = {}
dicts.update([(s,a),(t,b)])
dicts[u] = dicts[u] - 1
print("%d %d" %(dicts[s], dicts[s]))

Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s, t = map(str, input().lower().split())
      | ^
a.cc:5:1: error: 'dicts' does not name a type
    5 | dicts.update([(s,a),(t,b)])
      | ^~~~~
Language: C++

#include<bits/stdc++.h>
#include<cstring>
using namespace std;
int main()
{
  string s,t,u;
  int a,b;
  cin>>s>>t;
  cin>>a>>b;
  cin>>u;
  if(strcmp(s,u))
    cout<<a-1<<" "<<b;
  else
    cout<<a<<" "<<b-1;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   11 |   if(strcmp(s,u))
      |             ^
      |             |
      |             std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
Language: C

#include<stdio.h>
int main(){
  char red[11];
  char blue[11];
  char ans[11];
  int A,B;
  scanf(%s %s/n%d %d/n%s,red,blue,A,B,ans);
  if(red==ans){
    A=A-1;
  }else if(blue==ans){
    B=B-1;
  }
  printf("%d %d",A,B);
  return 0;
}
  
  

Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected expression before '%' token
    7 |   scanf(%s %s/n%d %d/n%s,red,blue,A,B,ans);
      |         ^
Language: C++

#include<bits/stdc++.h>
#define ll long long
#define inf 1000000009
using namespace std;
int main()
{
    char a[20],b[20],c[20];
    int x,y;
    scanf("%s%s%d%d%s",a,b,&x,&y,c);
    if(strcmp(a,c)==0)
        printf("%d %d",x-1,y);
    else
        prinatf("%d %d",x,y-1);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'prinatf' was not declared in this scope; did you mean 'printf'?
   13 |         prinatf("%d %d",x,y-1);
      |         ^~~~~~~
      |         printf
Language: C++

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

int main(){
  string a,b;
  int a1,b1;
  string c;
  cin>>a>>b;
  cin>>a1>>b1;
  string c;
  if(c==a) a1--;
  else if(c==b) b1--;
  cout<<a1<<" "<<b1<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: redeclaration of 'std::string c'
   10 |   string c;
      |          ^
a.cc:7:10: note: 'std::string c' previously declared here
    7 |   string c;
      |          ^
Language: C++

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

int main()
{
  string s,t,n;
  int s1,t1;
  cin >> s >> t;
  cin >> s1 >> t1;
  cin >> n ;
  if (n==s)
    cout << s1-1 << ' ' << t1;
  else cout << s1 << ' ' << t1-1;
  return 0;
}

Compiler output:
a.cc:2:17: error: 'sdt' is not a namespace-name
    2 | using namespace sdt;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s,t,n;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> s >> t;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:10: error: 's' was not declared in this scope; did you mean 's1'?
    8 |   cin >> s >> t;
      |          ^
      |          s1
a.cc:8:15: error: 't' was not declared in this scope; did you mean 't1'?
    8 |   cin >> s >> t;
      |               ^
      |               t1
a.cc:10:10: error: 'n' was not declared in this scope; did you mean 'yn'?
   10 |   cin >> n ;
      |          ^
      |          yn
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout << s1-1 << ' ' << t1;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   else cout << s1 << ' ' << t1-1;
      |        ^~~~
      |        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>
#include <vector>
#include <string>

using namespace std;

int main(void){
  String a, b, e;
  int c, d;

  cin >> a, b;
  cin >> c, d;
  cin >> e;

  if(a==e){
    cout << c-1 << " " << d << endl;
  }else{
    cout << c << " " << d-1 << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'String' was not declared in this scope
    8 |   String a, b, e;
      |   ^~~~~~
a.cc:11:10: error: 'a' was not declared in this scope
   11 |   cin >> a, b;
      |          ^
a.cc:11:13: error: 'b' was not declared in this scope
   11 |   cin >> a, b;
      |             ^
a.cc:13:10: error: 'e' was not declared in this scope
   13 |   cin >> e;
      |          ^