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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(U)' from 'std::__cxx11::basic_string<char>' to 'bool'
    8 |   if(S=U){
      |      ~^~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:11:7: error: could not convert 'T.std::__cxx11::basic_string<char>::operator=(U)' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |   if(T=U){
      |      ~^~
      |       |
      |       std::__cxx11::basic_string<char>
Language: C++

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

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


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

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

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

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

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

int main() {
  
  string S,T,U;
  cin >> S >>T >>U;
  int A,B;
  cin >> A >>B;
  int sum = A+B;
  
  if(S == U || T == U) {
    sum -=;
  }
  
  cout << sum <<endl;
  return 0;
}


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

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

int main() {
  
  string S,T,U;
  cin >> S >>T >>U;
  int A,B;
  cin >> A >>B;
  int sum A+B;
  
  if(S == U || T == U) {
    sum -=;
  }
  
  cout << sum <<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected initializer before 'A'
   10 |   int sum A+B;
      |           ^
a.cc:13:5: error: 'sum' was not declared in this scope
   13 |     sum -=;
      |     ^~~
a.cc:13:11: error: expected primary-expression before ';' token
   13 |     sum -=;
      |           ^
a.cc:16:11: error: 'sum' was not declared in this scope
   16 |   cout << sum <<endl;
      |           ^~~
Language: C++

#include <bits/stdc++.h>
#include <cstdlib>
#include <cmath>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;
const ll INF=1e18 ;
inline void chmax(ll& a,ll b){a=max(a,b);}
inline void chmin(ll& a,ll b){a=min(a,b);}
int main() {
 string s,t,u ;
 cin s>>t>>u ;
 int a,b ;
 cin >>a>>b ;
 if(s==u) 
 cout <<a-1<<" "<<b<<endl;
 else
  cout <<a<<" "<<b-1<<endl ; 
    return 0;
}






Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: expected ';' before 's'
   13 |  cin s>>t>>u ;
      |     ^~
      |     ;
Language: C

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

int main (void)
{
   char S[1000];
   int i,n;

   scanf("&s",S);
   n = strlen(S);

   for(i=0;i<n;i++){
     S[i] = 'x';
   }
   S[n] = '\0';
    printf("%s\n",S);
   return 0;
}
~


Compiler output:
main.c:19:1: error: expected identifier or '(' before '~' token
   19 | ~
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main () {
  string s, t;
  cin >> s >> t;
  int a, b;
  cin >> a >> b;
  string u;
  cin >> u;
  
  if (u==s) a-=1;
  else b-=1;
  printf("%d %d", a, b)

Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: expected ';' at end of input
   15 |   printf("%d %d", a, b)
      |                        ^
      |                        ;
a.cc:15:24: error: expected '}' at end of input
a.cc:5:13: note: to match this '{'
    5 | int main () {
      |             ^
Language: Java

import java.util.*;

/**
 * @author yamato
 *
 */
public class a154 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		String S = scanner.next();
		String T = scanner.next();
		int A = scanner.nextInt();
		int B = scanner.nextInt();
		String U = scanner.next();
		
		if(S.equals(U)) {
			A = A-1;
		}else if(T==U){
			B = B-1;
		}
		System.out.print(A+" "+B);
		
	}

}

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

#include <bits/stdc++.h>
using namespace std;
int main() {
  string a,b;
  int c,d;
  cin >> a >> b >> c >> d;
  string judge;
  cin >> judge;
  if(judge==a){
    cout << c-1 << d << endl;
  }
  else{
   cout << c << d-1 <, endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: expected primary-expression before ',' token
   13 |    cout << c << d-1 <, endl;
      |                      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  sting a,b;
  int c,d;
  cin >> a >> b >> c >> d;
  string judge;
  cin >> judge;
  if(judge==a){
    cout << c-1 << d << endl;
  }
  else{
   cout << c << d-1 <, endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'sting' was not declared in this scope
    4 |   sting a,b;
      |   ^~~~~
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b >> c >> d;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b >> c >> d;
      |               ^
a.cc:13:22: error: expected primary-expression before ',' token
   13 |    cout << c << d-1 <, endl;
      |                      ^
Language: C++

#include<bits/stdc++.h> 
//#define <- プログラムの文字列を置換する
//typedef <- 新しい型に名前を付けるためのキーワード

using namespace std;

#define MAX_N 1
#define PI 3.14159265359
#define mod 1000000007

const long long INF = 1000000000;

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


Compiler output:
a.cc:17:31: error: extended character 　 is not valid in an identifier
   17 |     cin >> s >> t >> a >> b >>　u;
      |                               ^
a.cc: In function 'int main()':
a.cc:17:31: error: '\U00003000u' was not declared in this scope
   17 |     cin >> s >> t >> a >> b >>　u;
      |                               ^~~
Language: C++

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected ';' before 'b'
   12 |     (u == t) b--;
      |             ^~
      |             ;
a.cc:12:8: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   12 |     (u == t) b--;
      |     ~~~^~~~~
In file included from /usr/include/c++/14/string:54,
                 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/basic_string.h:3755:5: note: declared here
 3755 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: Java

import java.util.*;
public class Main {
	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.equals(U)) {
			System.out.println(A-1 +" "+ B);
		} else {
			System.out.println(A + " "+ B-1);
		}
		
      	sc.close();
    }
		
		
}


Compiler output:
Main.java:14: error: bad operand types for binary operator '-'
			System.out.println(A + " "+ B-1);
			                             ^
  first type:  String
  second type: int
1 error
Language: C++

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

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

  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: could not convert 'U.std::__cxx11::basic_string<char>::operator=(S)' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |   if(U = S){
      |      ~~^~~
      |        |
      |        std::__cxx11::basic_string<char>
Language: C++

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

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

  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: could not convert 'N' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   11 |   if(string N = S){
      |                  ^
      |                  |
      |                  std::string {aka std::__cxx11::basic_string<char>}
Language: C++

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

int main() {
string S,T,U;
int A,B;
cin>>S>>T>>A>>B>>U;

if(S==U) cout<<a-1<<" "<<b;
else cout<<a<<" "<<b-1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'a' was not declared in this scope
    9 | if(S==U) cout<<a-1<<" "<<b;
      |                ^
a.cc:9:26: error: 'b' was not declared in this scope
    9 | if(S==U) cout<<a-1<<" "<<b;
      |                          ^
a.cc:10:12: error: 'a' was not declared in this scope
   10 | else cout<<a<<" "<<b-1;
      |            ^
a.cc:10:20: error: 'b' was not declared in this scope
   10 | else cout<<a<<" "<<b-1;
      |                    ^
Language: C++

#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <cmath>
#include <string>
#include <iomanip>
#include <deque>
#include <queue>
#include <stack>
#include <set>
#include <complex>
#include <ctime>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef int itn;
const ll LINF = 1e18;
const int INF = 1e9;

//マクロ定義
#define vvint(vec,n,m,l) vector<vector<int>> vec(n, vector<int>(m,l));	// lで初期化
#define vvll(vec,n,m,l) vector<vector<ll>> vec(n,vector<ll>(m,l));
#define vint vector<int>
#define pint pair<int,int>
#define rep(i,a) for(int i=0;i<(a);i++)
#define all(x) (x).begin(),(x).end()
#define debug system("pause")				//デバッグ用
#define ret return 0

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

using Graph = vector<vector<ll>>;

#define ketasitei setprecision(15) //15桁表示

const ll MOD = 1000000007;

int main(void)

{
	cin.tie(0);
	ios::sync_with_stdio(false);
	cout << ketasitei;

    string s,t;
    cin>>s>>t;
    int a,b;
    cin>>a>>b;
    string u;
    cin>>u;
    
    cout<<a-(s==u)<<" "<<b-(t==u)<<Endl;
	

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:56:36: error: 'Endl' was not declared in this scope
   56 |     cout<<a-(s==u)<<" "<<b-(t==u)<<Endl;
      |                                    ^~~~
Language: C

/*
 * コンテスト:AtCoder Beginner Contest 154
 * 問題:A問題
 * C++での開発
 */

#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.c:7:10: fatal error: iostream: No such file or directory
    7 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <string>

int main(){
  String S, T, U;
  int s, t;
  cin >> S >> T;
  cin >> s >> t;
  cin >> U;
  if(U==S) --s;
  if(U==T) --t;
  cout << s << " " << t;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'String' was not declared in this scope
    5 |   String S, T, U;
      |   ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> S >> T;
      |   ^~~
      |   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:10: error: 'S' was not declared in this scope
    7 |   cin >> S >> T;
      |          ^
a.cc:7:15: error: 'T' was not declared in this scope
    7 |   cin >> S >> T;
      |               ^
a.cc:9:10: error: 'U' was not declared in this scope
    9 |   cin >> U;
      |          ^
a.cc:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << s << " " << t;
      |   ^~~~
      |   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 <string>

int main(){
  string S, T, U;
  int s, t;
  cin >> S >> T;
  cin >> s >> t;
  cin >> U;
  if(U==S) --s;
  if(U==T) --t;
  cout << s << " " << t;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string S, T, U;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> S >> T;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:10: error: 'S' was not declared in this scope
    7 |   cin >> S >> T;
      |          ^
a.cc:7:15: error: 'T' was not declared in this scope
    7 |   cin >> S >> T;
      |               ^
a.cc:9:10: error: 'U' was not declared in this scope
    9 |   cin >> U;
      |          ^
a.cc:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << s << " " << t;
      |   ^~~~
      |   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 <bits/stdc++.h>
using namespace std;
int main() {
  string S, T; cin >> S >> T;
  int A, B; cin >> A >> B;
  sring U; cin >> U;
  ((U == S) ? A-- : B--);
  cout << A << " " << B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'sring' was not declared in this scope
    6 |   sring U; cin >> U;
      |   ^~~~~
a.cc:6:19: error: 'U' was not declared in this scope
    6 |   sring U; cin >> U;
      |                   ^
Language: C++

#include <iostream>
using namespace std;
 
int s[100];
 
int main()
{
	string s;
	cin >> s;
	int n = s.size();
	for (int i = 0; i < n, ++i)
		s[i] = 'x';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:35: error: expected ';' before ')' token
   11 |         for (int i = 0; i < n, ++i)
      |                                   ^
      |                                   ;
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

class Main {

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

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> firstRow = Arrays.asList(br.readLine().split(" "));
            List<String> secondRow = Arrays.asList(br.readLine().split(" "));
            String thirdRow = br.readLine();

            List<Integer> ballsCount = new ArrayList<>();
            for (String s : secondRow) {
                ballsCount.add(Integer.parseInt(s));
            }

            Map<String, Integer> ballsCountAndColor = new HashMap<>();

            for (int i = 0; i < firstRow.size(); i++) {
                ballsCountAndColor.put(firstRow.get(i), ballsCount.get(i));
            }

            ballsCountAndColor.put(thirdRow, ballsCountAndColor.get(thirdRow).intValue() - 1);

            int iterator = 1;
            String result = "";
            for (int output : ballsCountAndColor.values()) {
                if (iterator == 1) {
                    result = output + " ";
                    iterator++;
                } else {
                    result += output;
                }

            }

            System.out.print(ballsCountAndColor.get(firstRow.get(0)).intValue() + " " + ballsCountAndColor.get(firstRow.get(i)).intValue());

        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }
}

Compiler output:
Main.java:47: error: cannot find symbol
            System.out.print(ballsCountAndColor.get(firstRow.get(0)).intValue() + " " + ballsCountAndColor.get(firstRow.get(i)).intValue());
                                                                                                                            ^
  symbol:   variable i
  location: class Main
1 error
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before '{' token
   10 |   }else(T==U){
      |              ^
      |              ;
a.cc:10:10: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   10 |   }else(T==U){
      |        ~~^~~~
In file included from /usr/include/c++/14/string:54,
                 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/basic_string.h:3755:5: note: declared here
 3755 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
string S,T,U;
  int A,B;
  cin>>A>>B>>S>>T>>U;
  if(S==U){
  
   A--;
  }else if(T==U){
  B--;
  }
  cout<<a<<""<<b<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'a' was not declared in this scope
   13 |   cout<<a<<""<<b<<endl;
      |         ^
a.cc:13:16: error: 'b' was not declared in this scope
   13 |   cout<<a<<""<<b<<endl;
      |                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
string S,T,U;
  int A,B,a,b;
  cin>>A>>B>>S>>T>>U;
  if(S==U){
  a=A-1
  }else if(T==U){
  b=B-1
  }
  cout<<a<<b<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected ';' before '}' token
    8 |   a=A-1
      |        ^
      |        ;
    9 |   }else if(T==U){
      |   ~     
a.cc:10:8: error: expected ';' before '}' token
   10 |   b=B-1
      |        ^
      |        ;
   11 |   }
      |   ~
Language: C++

#定型文
using namespace std;
#include <bits/stdc++.h>
#define rep(i, s) for (int i = 0; i < s; ++i)
#define repr(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define all(v) (v.begin(), v.end())
#define EACH(i, s) for (__typeof__((s).begin()) i = (s).begin(); i != (s).end(); ++i)
#define VEC(a, n) vector<int>a(n)
#define PQ(a) priority_queue<int>a
#define PQmin(a) priority_queue< int, :vector<int>, greater<int> >a
#define PAIR pair<int, int>
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
#define EPS (1e-7)
#define INF (1e10)
#define PI (acos(-1))
const ll mod = 1000000007;
bool f(string s){
  bool ans=true;
  rep(i,s.size()/2){
    if(s[i]!=s[s.size()/2+i]){
      ans=false;
      break;
    }
  }
  return ans;
}

int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);
  int A,B;
  string N,M,P;
  cin>>N>>M>>A>>B>>P;
  if(N==P)
    cout<<A-1<<endl;
    cout<<B<<endl;
  if(M==P)
    cout<<A<<endl;
    cout<<B-1<<endl;
  else
    cout<<A<<endl;
    cout<<B<<endl;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #\U00005b9a\U0000578b\U00006587
    1 | #定型文
      |  ^~~~~~
a.cc: In function 'int main()':
a.cc:43:3: error: 'else' without a previous 'if'
   43 |   else
      |   ^~~~
Language: C++

#定型文
using namespace std;
#include <bits/stdc++.h>
#define rep(i, s) for (int i = 0; i < s; ++i)
#define repr(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define all(v) (v.begin(), v.end())
#define EACH(i, s) for (__typeof__((s).begin()) i = (s).begin(); i != (s).end(); ++i)
#define VEC(a, n) vector<int>a(n)
#define PQ(a) priority_queue<int>a
#define PQmin(a) priority_queue< int, :vector<int>, greater<int> >a
#define PAIR pair<int, int>
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
#define EPS (1e-7)
#define INF (1e10)
#define PI (acos(-1))
const ll mod = 1000000007;
bool f(string s){
  bool ans=true;
  rep(i,s.size()/2){
    if(s[i]!=s[s.size()/2+i]){
      ans=false;
      break;
    }
  }
  return ans;
}

int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);
  int N,M,A,B,P;
  cin>>N>>M>>A>>B>>P;
  if(N==P)
    cout<<A-1<<endl;
    cout<<B<<endl;
  if(M==P)
    cout<<A<<endl;
    cout<<B-1<<endl;
  else
    cout<<A<<endl;
    cout<<B<<endl;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #\U00005b9a\U0000578b\U00006587
    1 | #定型文
      |  ^~~~~~
a.cc: In function 'int main()':
a.cc:42:3: error: 'else' without a previous 'if'
   42 |   else
      |   ^~~~
Language: C++

#include<string>
#include<iostream>
#include <algorithm>
#include<vector>
#include<functional>
#include <cstdlib>
#include <iomanip>
#include <cmath>
#define ll long long
using namespace std;



int main(){
  string S;
  cin>>S;
  vector<char> X(S.size());
  for(int i=0;i<S.size();i++){
      X[i]='x';
  }
  for(int j=0;j<S.size();jLL){
  cout<<X[j];
  }
  cout<<endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:21:26: error: 'jLL' was not declared in this scope
   21 |   for(int j=0;j<S.size();jLL){
      |                          ^~~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <numeric>
#include <cmath>
#include <unordered_map>

using namespace std;
using ll = long long;

void _cin(){} template <class Head, class... Tail> void _cin(Head&& head, Tail&&... tail){ cin >> head; _cin(forward<Tail>(tail)...); }
void _cout(){ cout << "\n"; } template <class Head, class... Tail> void _cout(Head&& head, Tail&&... tail){ cout << head; _cout(forward<Tail>(tail)...); }
int gcd(int a, int b){ return (b == 0) ? a : gcd(b, a % b); }
template<typename S, typename T> ostream& operator<<(ostream &os, const pair<S, T> &p){ cout << "[" << p.first << ", " << p.second << "]"; return os; }

#define Sq(x) (x)*(x)
#define For(i, n) for(int i = 0; i < (n); i ++)
#define Rep(n) For(_, n)
#define Range(c) c.begin(), c.end()
#define RevRange(c) c.rbegin(), c.rend()
#define Contains(c, x) (find(Range(c), x) != c.end())
#define Search(rb, re, x) distance(rb, find(rb, re, x))
#define Sort(a) sort(Range(a))
#define DeSort(a) sort(RevRange(a))
#define Reverse(c) reverse(Range(c))
#define Unique(a) a.erase(unique(Range(a)), a.end())
#define Cusum(T, xs, sxs) vector<T> sxs(xs.size()+1); For(i, (int)xs.size()) sxs[i+1] = sxs[i] + xs[i]
#define Cin(T, ...) T __VA_ARGS__; _cin(__VA_ARGS__)
#define Cins(T, n, xs) vector<T> xs(n); For(i, n) cin >> xs[i]
#define Cins2(T, n, xs, ys) vector<T> xs(n), ys(n); For(i, n) cin >> xs[i] >> ys[i]
#define Cins3(T, n, xs, ys, zs) vector<T> xs(n), ys(n), zs(n); For(i, n) cin >> xs[i] >> ys[i] >> zs[i]
#define Cinss(T, n, m, xs) Vec2(T, n, m, xs); For(i, n) For(j, m) cin >> xs[i][j]
#define Cinm(T, n, map) unordered_map<T, int> map; Rep(n){ Cin(T, x); map[x] ++; }
#define Cout(...) _cout(__VA_ARGS__)
#define Couts(xs) { for(const auto &e : xs) cout << e << " "; cout << "\n"; }
#define Coutyn(cond) Cout((cond) ? "yes" : "no")
#define CoutYn(cond) Cout((cond) ? "Yes" : "No")
#define CoutYN(cond) Cout((cond) ? "YES" : "NO")
#define Return(expr) { Cout(expr); return 0; }
#define vc vector
#define Mini(a, x) a = min(a, x)
#define Maxi(a, x) a = max(a, x)

// constexpr int MOD = 1e9+7;

int main(void){
    Cin(string, s, t);
  	unordered_map<string, int> x;
  	cin >> x[s] >> x[t];
  	Cin(String, u);
  	x[u] --;
  	Cout(x[s], " ", x[t]);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:51:13: error: 'String' was not declared in this scope
   51 |         Cin(String, u);
      |             ^~~~~~
a.cc:29:21: note: in definition of macro 'Cin'
   29 | #define Cin(T, ...) T __VA_ARGS__; _cin(__VA_ARGS__)
      |                     ^
a.cc:51:21: error: 'u' was not declared in this scope
   51 |         Cin(String, u);
      |                     ^
a.cc:29:41: note: in definition of macro 'Cin'
   29 | #define Cin(T, ...) T __VA_ARGS__; _cin(__VA_ARGS__)
      |                                         ^~~~~~~~~~~
Language: Java

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

public class Main {
	public static void main(String[] args) throws IOException {
       InputReader in = new InputReader(System.in);
       String s1 = in.readString(); 
       String s2 = in.readString(); 
       int b1 = in.readInt(); 
       int b2 = in.readInt(); 
       String u = in.readString(); 
       if(u.equals(s1))
    	    b1--; 
    	  else b2--; 
    	  System.out.println(b1 + " " + b2); 
	}
}

class InputReader {

	private InputStream stream;
	private byte[] buf = new byte[1024];
	private int curChar;
	private int numChars;
	private SpaceCharFilter filter;

	public InputReader(InputStream stream) {
		this.stream = stream;
	}

	public int read() {
		if (numChars == -1)
			throw new InputMismatchException();
		if (curChar >= numChars) {
			curChar = 0;
			try {
				numChars = stream.read(buf);
			} catch (IOException e) {
				throw new InputMismatchException();
			}
			if (numChars <= 0)
				return -1;
		}
		return buf[curChar++];
	}

	public int readInt() {
		int c = read();
		while (isSpaceChar(c))
			c = read();
		int sgn = 1;
		if (c == '-') {
			sgn = -1;
			c = read();
		}
		int res = 0;
		do {
			if (c < '0' || c > '9')
				throw new InputMismatchException();
			res *= 10;
			res += c - '0';
			c = read();
		} while (!isSpaceChar(c));
		return res * sgn;
	}

	public String readString() {
		int c = read();
		while (isSpaceChar(c))
			c = read();
		StringBuilder res = new StringBuilder();
		do {
			res.appendCodePoint(c);
			c = read();
		} while (!isSpaceChar(c));
		return res.toString();
	}

	public long readLong() {
		int c = read();
		while (isSpaceChar(c)) {
			c = read();
		}
		int sgn = 1;
		if (c == '-') {
			sgn = -1;
			c = read();
		}
		long res = 0;
		do {
			if (c < '0' || c > '9') {
				throw new InputMismatchException();
			}
			res *= 10;
			res += c - '0';
			c = read();
		} while (!isSpaceChar(c));
		return res * sgn;
	}
	
	public boolean isSpaceChar(int c) {
		if (filter != null)
			return filter.isSpaceChar(c);
		return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
	}

	public String next() {
		return readString();
	}

	public interface SpaceCharFilter {
		public boolean isSpaceChar(int ch);
	}
}

class

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

import java.util.*; 
public class Main{
public static void main(String ... string){
Scanner sc = new Scanner(System.in); 
  String s1 = sc.nextLine(); 
  String s2 = sc.nextLine(); 
  int ball1 = sc.nextInt(); 
  int ball2 = sc.nextInt(); 
  String u = sc.nextLine(); 
  if(u.equals(ball1))
    s1--; 
  else s2--; 
  System.out.println(s1 + " " + s2); 
}
}

Compiler output:
Main.java:11: error: bad operand type String for unary operator '--'
    s1--; 
      ^
Main.java:12: error: bad operand type String for unary operator '--'
  else s2--; 
         ^
2 errors
Language: C++

#include <bits/stdc++.h>
 using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
 int main(){
   string s,t,u;
   int a,b;
   cin >>s>>t>>a>>b>>c;
   if(s==u){
   a--;
   }
   else{
   b--;
   }
  cout<<a<<""<<b<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'c' was not declared in this scope
    7 |    cin >>s>>t>>a>>b>>c;
      |                      ^
Language: C++

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

int main(){
	string s,t,u;
    ll a,b;
    cin >> s >> t;
    cin >> a >> b;
    cin >> u;
    if(u == s) a--;
    if(u == t) b--;
    
    cout << a << " " << b << endl;
    return 0;

}


Compiler output:
a.cc:6:4: error: expected ';' before 'main'
    6 | int main(){
      |    ^~~~~
      |    ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: expected '}' at end of input
   16 |   cout<<A<<" "<<B;
      |                   ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'con' was not declared in this scope; did you mean 'cos'?
    6 |   con>>s>>t;
      |   ^~~
      |   cos
Language: C++

#include<bits/stdc++. h>
using namespace sts;
int main() {
  string s, t, u;
  int a, b;
  con>>s>>t;
  cin>>a>>b;
  cin>>u;
  if ((s. compare(u)) ==0){
    a=a-1;
    cout<<a<<" "<<b<<endl;
  }
  else{
    b=b-1;
    cout<<a<<" "<<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: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before 'B'
   10 |     cout<<A-1 B<< endl;
      |              ^~
      |              ;
a.cc:13:12: error: expected ';' before 'B'
   13 |     cout<<A B-1<< endl;
      |            ^~
      |            ;
Language: C++

#include<iostream.h>
#include<conio.h>
#include<process.h>
using namespace std ;

int main()
{
  clrscr() ;
  int N, x;
  cout<<"Enter N:" ;
  cin>>N ;
  int elm[N] ;
  for(int m=0; m<N; m++)
  { cout<<"\n"<<"Enter element A("<<m+1<<") :"
    cin>>elm[m] ;
  }
  for(int i=0; i<N; i++)
  { for(int j=i+1; j<N; j++)
    { x=elm[i]-elm[j] ;
      if(x==0)
      { cout<<"NO" ;
        goto abc ;
      }
      else
      {continue ;
      }
    }
  }
  cout<<"YES" ;
  abc:
 getch() ;  
 return 0 ;
}

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

#include<iostream>
#include<stdlib.h>
using namespace std ;

int main()
{ int N, x ;
  cout<<"Enter 'N':" ;
  cin>>N ;
  int elm[N] ;
  for(int i=0; i<N; i++)
  { cout<<"\n"<<"Enter A"<<i+1<<" element:" ;
    cin>>elm[i] ;
  }
  for(int i=0; i<N; i++)
    for(int j=i+1; j<N; j++)
    { x=elm[i]-elm[j] ;
      if(x==0)
      {cout<<"\n"<<"NO" ;
       exit() ;
      }
      else
      { continue ;
      }
    }
  cout<<"\n"<<"YES" ;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:12: error: too few arguments to function 'void exit(int)'
   19 |        exit() ;
      |        ~~~~^~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdlib.h:756:13: note: declared here
  756 | extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
      |             ^~~~
Language: C++

#include<iostream.h>
#include<stdlib.h>
using namespace std ;

int main()
{ int N, x ;
  cout<<"Enter 'N':" ;
  cin>>N ;
  int elm[N] ;
  for(int i=0; i<N; i++)
  { cout<<"\n"<<"Enter A"<<i+1<<" element:" ;
    cin>>elm[i] ;
  }
  for(int i=0; i<N; i++)
    for(int j=i+1; j<N; j++)
    { x=elm[i]-elm[j] ;
      if(x==0)
      {cout<<"\n"<<"NO" ;
       exit() ;
      }
      else
      { continue ;
      }
    }
  cout<<"\n"<<"YES" ;
  return 0;
}

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

#include<iostream>
using namespace std ;

int main()
{ int N, x ;
  cout<<"Enter 'N':" ;
  cin>>N ;
  int elm[N]
  for(int i=0; i<N; i++)
  { cout<<"\n"<<"Enter A"<<i+1<<" element:" ;
    cin>>elm[i] ;
  }
  for(int i=0; i<N; i++)
    for(int j=i+1; j<N; j++)
    { x=elm[i]-elm[j] ;
      if(x==0)
      {cout<<"\n"<<"NO" ;
       exit() ;
      }
      else
      { continue ;
      }
    }
  cout<<"\n"<<"YES" ;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected initializer before 'for'
    9 |   for(int i=0; i<N; i++)
      |   ^~~
a.cc:9:16: error: 'i' was not declared in this scope
    9 |   for(int i=0; i<N; i++)
      |                ^
a.cc:15:9: error: 'elm' was not declared in this scope
   15 |     { x=elm[i]-elm[j] ;
      |         ^~~
a.cc:18:12: error: too few arguments to function 'void exit(int)'
   18 |        exit() ;
      |        ~~~~^~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdlib.h:756:13: note: declared here
  756 | extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
      |             ^~~~
Language: Java

import java.util.*;
 
public class Main
{
  public static void main(String[] args)
  {
    Scanner scan1 = new Scanner(System.in);
	scan1.nextLine();
 
	int redCount = scan1.nextInt();
	int blueCount = scan1.nextInt();
 
	String subtract = scan1.nextLine();
 
	if(subtract.equals("red"))
	{
 	 redCount-=1;
	}
	else
 	 blueCount-=1;
 
	Sysytem.out.println(redCount + "" + blueCount);
  }
}

Compiler output:
Main.java:22: error: package Sysytem does not exist
	Sysytem.out.println(redCount + "" + blueCount);
	       ^
1 error
Language: Java

import java.util.*;

public class Main
{
  public static void main(String[] args)
  {
    Scanner scan1 = new Scanner(System.in);
	scan1.nextLine();
 
	String redCount = scan1.nextInt();
	String blueCount = scan1.nextInt();
 
	String subtract = scan1.nextLine();
 
	if(subtract.equals("red"))
	{
 	 redCount-=1;
	}
	else
 	 blueCount-=1;
 
	Sysytem.out.println(redCount + "" + blueCount);
  }
}

Compiler output:
Main.java:10: error: incompatible types: int cannot be converted to String
	String redCount = scan1.nextInt();
	                               ^
Main.java:11: error: incompatible types: int cannot be converted to String
	String blueCount = scan1.nextInt();
	                                ^
Main.java:17: error: bad operand types for binary operator '-'
 	 redCount-=1;
 	         ^
  first type:  String
  second type: int
Main.java:20: error: bad operand types for binary operator '-'
 	 blueCount-=1;
 	          ^
  first type:  String
  second type: int
Main.java:22: error: package Sysytem does not exist
	Sysytem.out.println(redCount + "" + blueCount);
	       ^
5 errors
Language: Java

import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int length = sc.next().length();
    for (int i = 0; i < length; i++) {
      System.out.print(x);
    }
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
      System.out.print(x);
                       ^
  symbol:   variable x
  location: class Main
1 error
Language: Java

public class Main
{
  public static void main(String[] args)
  {
    Scanner scan1 = new Scanner(System.in);
	scan1.nextLine();
 
	String redCount = scan1.nextInt();
	String blueCount = scan1.nextInt();
 
	String subtract = scan1.nextLine();
 
	if(subtract.equals("red"))
	{
 	 redCount-=1;
	}
	else
 	 blueCount-=1;
 
	Sysytem.out.println(redCount + "" + blueCount);
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    Scanner scan1 = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
    Scanner scan1 = new Scanner(System.in);
                        ^
  symbol:   class Scanner
  location: class Main
Main.java:15: error: bad operand types for binary operator '-'
 	 redCount-=1;
 	         ^
  first type:  String
  second type: int
Main.java:18: error: bad operand types for binary operator '-'
 	 blueCount-=1;
 	          ^
  first type:  String
  second type: int
Main.java:20: error: package Sysytem does not exist
	Sysytem.out.println(redCount + "" + blueCount);
	       ^
5 errors
Language: Java

Scanner scan1 = new Scanner(System.in);
scan1.nextLine();

String redCount = scan1.nextInt();
String blueCount = scan1.nextInt();

String subtract = scan1.nextLine();

if(subtract.equals("red"))
{
  redCount-=1;
}
else
  blueCount-=1;

Sysytem.out.println(redCount + "" + blueCount);

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner scan1 = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:2: error: class, interface, enum, or record expected
scan1.nextLine();
^
Main.java:9: error: class, interface, enum, or record expected
if(subtract.equals("red"))
^
Main.java:12: error: class, interface, enum, or record expected
}
^
Main.java:16: error: class, interface, enum, or record expected
Sysytem.out.println(redCount + "" + blueCount);
^
5 errors
Language: C++

#include <iostream>
#include <string>
#include <map>
using namespace std;
int main(){
string a,b;
  cin>>a>>b;
  map<string, int> mp;
  cin >> mp[a] >> mp[b];
  style c;
  mp[c]--;
  cout<<mp[a]<<" " <<mp[b]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'style' was not declared in this scope
   10 |   style c;
      |   ^~~~~
a.cc:11:6: error: 'c' was not declared in this scope
   11 |   mp[c]--;
      |      ^
Language: C++

#include <iostream>
#include <string>
#include <map>
using namespace std;
int main(){
string a,b;
  cin>>a>>b;
  map<string, int> mp;
  cin >> mp[a] >> mp[b];
  style c;
  mp[c]--;
  cout<<mp[a]<<mp[b]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'style' was not declared in this scope
   10 |   style c;
      |   ^~~~~
a.cc:11:6: error: 'c' was not declared in this scope
   11 |   mp[c]--;
      |      ^
Language: C++

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

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

Compiler output:
a.cc:6:5: error: cannot declare '::main' to be a global variable
    6 | int main{
      |     ^~~~
a.cc:7:12: error: expected primary-expression before 's'
    7 |     string s,t;
      |            ^
a.cc:7:12: error: expected '}' before 's'
a.cc:6:9: note: to match this '{'
    6 | int main{
      |         ^
a.cc:10:5: error: 'cin' does not name a type
   10 |     cin >> s >> t;
      |     ^~~
a.cc:11:5: error: 'cin' does not name a type
   11 |     cin >>a >>b;
      |     ^~~
a.cc:12:5: error: 'cin' does not name a type
   12 |     cin >> u;
      |     ^~~
a.cc:13:5: error: expected unqualified-id before 'if'
   13 |     if(s==u)
      |     ^~
a.cc:15:5: error: expected unqualified-id before 'if'
   15 |     if(t==u)
      |     ^~
a.cc:17:5: error: expected unqualified-id before 'return'
   17 |     return 0;
      |     ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

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

int main(){
  string s, t, u;
  int a, b;
  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:10:8: error: could not convert 'u.std::__cxx11::basic_string<char>::operator=(s)' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |   if(u = s) a--;
      |      ~~^~~
      |        |
      |        std::__cxx11::basic_string<char>
Language: Java

import java.util.*;

public class Main {
    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);
        String s1 = sc.next();
        String s2 = sc.next();
        int cnt1 = sc.next();
        int cnt2 = sc.next();
        if(sc.next().equals(s1))
        	cnt1--;
        else
        	cnt2--;
        System.out.println(cnt1 + " " + cnt2);
    }
}


Compiler output:
Main.java:8: error: incompatible types: String cannot be converted to int
        int cnt1 = sc.next();
                          ^
Main.java:9: error: incompatible types: String cannot be converted to int
        int cnt2 = sc.next();
                          ^
2 errors
Language: C++

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

int main(){
    string A;
    cin >> A;
    string B;
    cin >> B;
    int C;
    cin >> C;
    int D;
    cin >> D;
    string E;
    cin >> E;
    if(E==A){C--;}
    else{D--;}
    cout<<C D<<endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: expected ';' before 'D'
   17 |     cout<<C D<<endl;
      |            ^~
      |            ;
Language: C++

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

int main(){
    string s1,s2,s3;
    int a,b;
    cin>>s1>>s2>>a>>b>>s3;
    if (s1==s3){
    a--
    }else{
    b--
    }
    cout<<a<<' '<<b<<endl;
    
    return 0;


}


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

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

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

  string u;
  cin >> u;
  if (s== u){
    a--;
  }else {
    b--;
  }
  cout << a << b;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected initializer before 's'
    5 |   string str s,t;
      |              ^
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s >> t;
      |          ^
a.cc:6:15: error: 't' was not declared in this scope; did you mean 'tm'?
    6 |   cin >> s >> t;
      |               ^
      |               tm
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
  int n;
  cin>>n;
  vector<int>a(n);
  rep(i,n) cin>>a[i];
  set<int>s;
  rep(i,n) s.insert(a[i]);
  if(s.size()==n)cout"Yes"<<endl;
  else cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: expected ';' before string constant
   13 |   if(s.size()==n)cout"Yes"<<endl;
      |                      ^~~~~
      |                      ;
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
  int n;
  cin>>n;
  vector<int>a(n);
  rep(i,n) cin>>a[i];
  set<int>s;
  rep(i,n) s.insert(a[i]);
  if(s.size()==n)cout"yes"<<endl;
  else cout<<"No"<<endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: expected ';' before string constant
   13 |   if(s.size()==n)cout"yes"<<endl;
      |                      ^~~~~
      |                      ;
a.cc:14:25: error: expected '}' at end of input
   14 |   else cout<<"No"<<endl;
      |                         ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected ';' before user-defined string literal
   12 |     cout << A-1" "B ;}
      |                ^~~~
      |                ;
a.cc:14:14: error: expected ';' before user-defined string literal
   14 |     cout << A" "B-1;}
      |              ^~~~
      |              ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected ';' before string constant
   12 |     cout << A-- " " B << endl;}
      |                ^~~~
      |                ;
a.cc:14:14: error: expected ';' before string constant
   14 |     cout << A " " B-- << endl;}
      |              ^~~~
      |              ;