criyle/codenet-compile-errors huggingface dataset:
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 << endl;}
  else {
    cout << A,B-1 << endl;}
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |     cout << A-1,B << endl;}
      |                 ~~^~~~~~~
a.cc:14:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |     cout << A,B-1 << endl;}
      |               ~~~~^~~~~~~
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:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |     cout << A--,B << endl;}
      |                 ~~^~~~~~~
a.cc:14:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |     cout << A,B-- << endl;}
      |               ~~~~^~~~~~~
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--. B << endl;}
    
  else if(T==U) {
    cout << A. B-- << endl;}
  }
    


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: request for member 'B' in '(A --)', which is of non-class type 'int'
    8 |     cout << A--. B << endl;}
      |                  ^
a.cc:11:16: error: request for member 'B' in 'A', which is of non-class type 'int'
   11 |     cout << A. B-- << endl;}
      |                ^
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--; B << endl;}
    
  else if(T==U) {
    cout << A; B-- << endl;}
  }
    


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |     cout << A--; B << endl;}
      |                  ~~^~~~~~~
a.cc:11:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |     cout << A; B-- << endl;}
      |                ~~~~^~~~~~~
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-- B << endl;}
    
  else if(T==U) {
    cout << A B-- << endl;}
  }
    


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before 'B'
    8 |     cout << A-- B << endl;}
      |                ^~
      |                ;
a.cc:11:14: error: expected ';' before 'B'
   11 |     cout << A B-- << endl;}
      |              ^~
      |              ;
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--,B << endl;}
    
  else if(T==U) {
    cout << A,B-- << endl;}
  }
    


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |     cout << A--,B << endl;}
      |                 ~~^~~~~~~
a.cc:11:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |     cout << A,B-- << endl;}
      |               ~~~~^~~~~~~
Language: Java

import java.util.Scanner;

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));
		}
	

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(ll i=0; i<n; i++)
typedef long long ll;
typedef long long unsigned int llu;
ll MOD = 1000000007;
ll INF = 1000000009;

void solve(){

    string s,t;
    cin >> s >> t;
    int a,b;
    cin >> a >> b;
    string u;
    cin >> u;
    cout << (s==u? (a-1 << " " << b): (a << " " << b-1) ) << endl;

}

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  solve();
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:17:25: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
   17 |     cout << (s==u? (a-1 << " " << b): (a << " " << b-1) ) << endl;
      |                     ~~~ ^~ ~~~
      |                      |     |
      |                      int   const char [2]
a.cc:17:42: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
   17 |     cout << (s==u? (a-1 << " " << b): (a << " " << b-1) ) << endl;
      |                                        ~ ^~ ~~~
      |                                        |    |
      |                                        int  const char [2]
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(ll i=0; i<n; i++)
typedef long long ll;
typedef long long unsigned int llu;
ll MOD = 1000000007;
ll INF = 1000000009;

void solve(){

    string s,t;
    cin >> s >> t;
    int a,b;
    cin >> a >> b;
    string u;
    cin >> u;
    cout << (s==u? (a-1 << " " << b): a << " " << b-1 ) << endl;

}

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  solve();
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:17:25: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
   17 |     cout << (s==u? (a-1 << " " << b): a << " " << b-1 ) << endl;
      |                     ~~~ ^~ ~~~
      |                      |     |
      |                      int   const char [2]
a.cc:17:41: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
   17 |     cout << (s==u? (a-1 << " " << b): a << " " << b-1 ) << endl;
      |                                       ~ ^~ ~~~
      |                                       |    |
      |                                       int  const char [2]
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected ';' before 'if'
   12 |      c-=1
      |          ^
      |          ;
   13 |   if( b == less)
      |   ~~
Language: C++

using namespace std;
int main()
{
	unsigned short a,b;
	string s,t,u;
	cin>>s>>t>>a>>b>>u;
	if(s==u){
		cout<<(a-1)<<" "<<b;
	}
	else{
		cout<<a<<" "<<(b-1);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string s,t,u;
      |         ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>s>>t>>a>>b>>u;
      |         ^~~
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:6:14: error: 's' was not declared in this scope
    6 |         cin>>s>>t>>a>>b>>u;
      |              ^
a.cc:6:17: error: 't' was not declared in this scope
    6 |         cin>>s>>t>>a>>b>>u;
      |                 ^
a.cc:6:26: error: 'u' was not declared in this scope
    6 |         cin>>s>>t>>a>>b>>u;
      |                          ^
a.cc:8:17: error: 'cout' was not declared in this scope
    8 |                 cout<<(a-1)<<" "<<b;
      |                 ^~~~
a.cc:8:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:17: error: 'cout' was not declared in this scope
   11 |                 cout<<a<<" "<<(b-1);
      |                 ^~~~
a.cc:11:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#ifdef tabr
#include "library/debug.cpp"
#else
#define debug(...)
#endif

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n, a, b;
    cin >> n >> a >> b;
    int m = 1 << n;
    int d = a ^ b;
    if (__buitin_popcount(d) % 2 == 1) {
        cout << "NO" << endl;
        return 0;
    }
    cout << "YES" << endl;
    vector<int> res(m);

    for (int i = 0; i < m; i++) {
        cout << res[i] ^ a << " ";
    }
    cout << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: '__buitin_popcount' was not declared in this scope; did you mean '__builtin_popcount'?
   17 |     if (__buitin_popcount(d) % 2 == 1) {
      |         ^~~~~~~~~~~~~~~~~
      |         __builtin_popcount
a.cc:25:28: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
   25 |         cout << res[i] ^ a << " ";
      |                          ~ ^~ ~~~
      |                          |    |
      |                          int  const char [2]
Language: C++

use std::io::Read;

fn main() {
    let mut input = String::new();
    std::io::stdin().read_to_string(&mut input).unwrap();
    let v: Vec<&str> = input.split_whitespace().collect();

    let s = v[0];
    let a: i32 = v[2].parse().unwrap();
    let b: i32 = v[3].parse().unwrap();
    let u = v[4];
    if s == u { println!("{} {}", a-1, b) }
    else { println!("{} {}", a, b-1) }
}


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

#include<stdio.h>
#include<string.h>
int main()
{
    char s[10],t[10],u[10];
    int a, b;
    gets(s);
    gets(t);
    scanf("%d %d", &a, &b);
    scanf("%s", &u);

   int d1 = strcmp(u,s);
   // int d2 = strcmp(u,t);

    if ( d1==0 )
        printf("%d %d", a-1, b);
    else
        printf("%d %d", a, b-1);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |     gets(s);
      |     ^~~~
      |     getw
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
    char s[10],t[10],u[10];
    int a, b;
    gets(s);
    gets(t);
    scanf("%d %d", &a, &b);
    scanf("%s", &u);

   // strcmp(u,s);
    //strcmp(u,t);

    if( s[0]==u[0])
    printf("%d %d",a-1, b);
    else
        printf("%d %d", a, b-1);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |     gets(s);
      |     ^~~~
      |     getw
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{string str1,str2,str;
 int n1,n2; 
 map<string,int>m1;
   	cin>>str1;
  m1[str1]=0;
 cin>>str2;
 m1[str2]=0;
 cin>>n1;
 m1[str1]=n1;
 cin>>n2;
 m1[str2]=n2;
 cin>>str;
 if(str==str1)
   m1[str1]--;
 else if(str==str2)
   m1[str2]--;
 cout<<m1[str1]<<" "<<m1[str2];
 retrun 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:37: error: expected primary-expression before ',' token
    9 |   if(s==u) cout << a-1 << " " << b <, endl;
      |                                     ^
Language: C++

//Remaining Balls
#include <bits/stdc++>
using namespace std;

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

    if (S == U) cout << A - 1 << " " << B << endl;
    else cout << A << " " << B - 1 << endl;
}

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

//Remaining Balls
#include <bits/stdc++>
using namespace std;

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

    if (S == U) cout << A - 1 << B << endl;
    else cout << A << B - 1 << endl;
}

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

//Remaining Balls
#include <bits/stdc++>
using namespace std;

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

    if (S == U) cout << A - 1 << B << endl;
    else cout << A << B - 1 << endl;
}

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

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

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

    if (S==U) cout << A - 1 << B << endl;
    else cout << A << B - 1 << endl;
}

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

import java.util.Scanner;
class Main{
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  String s = sc.next();
  String t = sc.next();
  int a = Integer.parseInt(sc.next());
  int b = Integer.parseInt(sc.next());
  String u = sc.next();
  if(s==u){
  a--;
  }else{
  b--;
  }
  System.out.println(a+""+b);
  }
}
import java.util.Scanner;
class Main{
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  String s = sc.next();
  String t = sc.next();
  int a = Integer.parseInt(sc.next());
  int b = Integer.parseInt(sc.next());
  String u = sc.next();
  if(s==u){
  a--;
  }else{
  b--;
  }
  System.out.println(a+" "+b);
  }
}

Compiler output:
Main.java:18: error: class, interface, enum, or record expected
import java.util.Scanner;
^
1 error
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  String s = sc.next();
  String t = sc.next();
  int a = Integer.parseInt(sc.next());
  int b = Integer.parseInt(sc.next());
  String u = sc.next();
  if(s==u){
  a--;
  }else{
  b--
  }
  System.out.println(a+""+b);
  }
}

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

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String s = sc.next();
    String t = sc.next();
    byte a = sc.nextInt();
    byte b = sc.nextInt();
    String u = sc.next();
    
    if(s == u){
      a--;
    }else if(t == u){
      b--;
    }
    System.out.println(a + " " + b);
  }
}


Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from int to byte
    byte a = sc.nextInt();
                       ^
Main.java:9: error: incompatible types: possible lossy conversion from int to byte
    byte b = sc.nextInt();
                       ^
2 errors
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String s = sc.next()n
    String t = sc.next();
    byte a = sc.nextInt();
    byte b = sc.nextInt();
    String u = sc.next();
    
    if(s == u){
      a--;
    }else if(t == u){
      b--;
    }
    System.out.println(a + " " + b);
  }
}


Compiler output:
Main.java:6: error: ';' expected
    String s = sc.next()n
                        ^
Main.java:7: error: ';' expected
    String t = sc.next();
          ^
2 errors
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String s = sc.next():
    String t = sc.next();
    byte a = sc.nextInt();
    byte b = sc.nextInt();
    String u = sc.next();
    
    if(s == u){
      a--;
    }else if(t == u){
      b--;
    }
    System.out.println(a + " " + b);
  }
}

Compiler output:
Main.java:6: error: ';' expected
    String s = sc.next():
                        ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define MOD 1000000007
//#define MOD 998244353
#define INF 1000000010
#define EPS 1e-9
#define F first
#define S second

#define debug(x) cout<<x<<endl;
#define repi(i,x,n) for(int i=x;i<n;i++)
#define rep(i,n) repi(i,0,n)
#define lp(i,n) repi(i,0,n)
#define repn(i,n) for(int i=n;i>=0;i--)
#define int long long
#define endl "\n"

typedef pair<int,int> PII;
typedef pair<int,string> PIS;
typedef pair<string,int> PSI;


signed main(){
  cin.tie(0);	
  ios::sync_with_stdio(false);
  string s,t;
  cin>>s>>t;
  int a,b,u;
  cin>>a>>b>>u;
  map<string,int> mp;
  mp[s]=a;
  mp[t]=b;
  mp[u]--;
  cout<<mp[s]<<" "<<mp[t]<<endl;
  
  

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:5: error: no match for 'operator[]' (operand types are 'std::map<std::__cxx11::basic_string<char>, long long int>' and 'long long int')
   33 |   mp[u]--;
      |     ^
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:504:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string<char>; _Tp = long long int; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, long long int> >; mapped_type = long long int; key_type = std::__cxx11::basic_string<char>]'
  504 |       operator[](const key_type& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_map.h:504:34: note:   no known conversion for argument 1 from 'long long int' to 'const std::map<std::__cxx11::basic_string<char>, long long int>::key_type&' {aka 'const std::__cxx11::basic_string<char>&'}
  504 |       operator[](const key_type& __k)
      |                  ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_map.h:524:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = std::__cxx11::basic_string<char>; _Tp = long long int; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, long long int> >; mapped_type = long long int; key_type = std::__cxx11::basic_string<char>]'
  524 |       operator[](key_type&& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_map.h:524:29: note:   no known conversion for argument 1 from 'long long int' to 'std::map<std::__cxx11::basic_string<char>, long long int>::key_type&&' {aka 'std::__cxx11::basic_string<char>&&'}
  524 |       operator[](key_type&& __k)
      |                  ~~~~~~~~~~~^~~
Language: C++

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

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;
  
  else if (t = u)
    cout << a << b -1 <<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(u)' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |   if(s = u)
      |      ~~^~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:16:14: error: could not convert 't.std::__cxx11::basic_string<char>::operator=(u)' from 'std::__cxx11::basic_string<char>' to 'bool'
   16 |   else if (t = u)
      |            ~~^~~
      |              |
      |              std::__cxx11::basic_string<char>
Language: C++

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

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;
  
  else if (t = u)
    cout << a << b -1 endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(u)' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |   if(s = u)
      |      ~~^~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:16:14: error: could not convert 't.std::__cxx11::basic_string<char>::operator=(u)' from 'std::__cxx11::basic_string<char>' to 'bool'
   16 |   else if (t = u)
      |            ~~^~~
      |              |
      |              std::__cxx11::basic_string<char>
a.cc:17:22: error: expected ';' before 'endl'
   17 |     cout << a << b -1 endl;
      |                      ^~~~~
      |                      ;
Language: C++

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

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;
  
  else if (t = u)
    cout << a << b -1 ;endl
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(u)' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |   if(s = u)
      |      ~~^~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:16:14: error: could not convert 't.std::__cxx11::basic_string<char>::operator=(u)' from 'std::__cxx11::basic_string<char>' to 'bool'
   16 |   else if (t = u)
      |            ~~^~~
      |              |
      |              std::__cxx11::basic_string<char>
a.cc:17:28: error: expected ';' before '}' token
   17 |     cout << a << b -1 ;endl
      |                            ^
      |                            ;
   18 | 
   19 | }
      | ~                           
a.cc:19:1: error: statement cannot resolve address of overloaded function
   19 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(u)' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |   if(s = u){
      |      ~~^~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:14:14: error: could not convert 't.std::__cxx11::basic_string<char>::operator=(u)' from 'std::__cxx11::basic_string<char>' to 'bool'
   14 |   else if (t = u){
      |            ~~^~~
      |              |
      |              std::__cxx11::basic_string<char>
a.cc:15:28: error: expected ';' before '}' token
   15 |     cout << a << b -1 ;endl
      |                            ^
      |                            ;
   16 |   }
      |   ~                         
a.cc:16:3: error: statement cannot resolve address of overloaded function
   16 |   }
      |   ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: no 'operator--(int)' declared for postfix '--' [-fpermissive]
    8 |     a--;
      |     ~^~
a.cc:11:6: error: no 'operator--(int)' declared for postfix '--' [-fpermissive]
   11 |     b--;
      |     ~^~
Language: C++

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

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

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

#include<iostream>
#include<string>
using namespace std;
int main(){
     int A,B;
     cout<<"A and B balls : ";
     cin>>A>>B;
     string S,T,U;
     cout<<"the words on A balls : ";
     cin>>S;
     cout<<"the words on B balls : ";
     cin>>T;
     cout<<" a chosen word : ";
     cin>>U;
     if( U==S){
          A--;
          cout<<A<<" "<<B; break;
     }else if( U==T){
          B--;
          cout<<A<<" "<<B; break;
     }
      return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:28: error: break statement not within loop or switch
   17 |           cout<<A<<" "<<B; break;
      |                            ^~~~~
a.cc:20:28: error: break statement not within loop or switch
   20 |           cout<<A<<" "<<B; break;
      |                            ^~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
     int A,B;
     cout<<"A and B balls : ";
     cin>>A>>B;
     string S,T,U;
     cout<<"the words on A balls : ";
     cin>>S;
     cout<<"the words on B balls : ";
     cin>>T;
     cout<<" a chosen word : ";
     cin>>U;
     if( U==S){
          A--;
          cout<<A<<" "<<B; break;
     }else if( U==T){
          B--;
          cout<<A<<" "<<B; break;
     }
      return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:28: error: break statement not within loop or switch
   17 |           cout<<A<<" "<<B; break;
      |                            ^~~~~
a.cc:20:28: error: break statement not within loop or switch
   20 |           cout<<A<<" "<<B; break;
      |                            ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string S, T, U;
  int A, B;
  cin >> S >> T;
  cin >> A >> B;
  cin >> 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:13:19: error: expected primary-expression before '<<' token
   13 |     cout << A <<  <<B-1 << endl;
      |                   ^~
Language: C++

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

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

  return 0;
}

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

#include<stdio.h>

int main(void)
{
  string s,t,u;
  int a,b;
  scanf("%s %s",&s,&t);
  scanf("%d %d",&a,&b);
  scanf("%s",&u);
  if(s==u)
  {
    a = a - 1;
    printf("%d",a,b);
  }
  if(t==u)
  {
    b = b - 1;
    printf("%d",a,b);
  }
  else
  {
    printf("%d",a,b);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: unknown type name 'string'; did you mean 'stdin'?
    5 |   string s,t,u;
      |   ^~~~~~
      |   stdin
Language: C++

#include <iostream>

using namespace std;

char a[15];
char b[15];
char t[15];

int main()
{
    int n, m;

    cin >> a >> b;
    cin >> n >> m;
    cin >> t;

    if (strcmp(a, t) == 0)
        n--;
    else
        m--;

    cout << n << " " << m;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'strcmp' was not declared in this scope
   17 |     if (strcmp(a, t) == 0)
      |         ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 |
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <math.h>
#include <algorithm>
#include <stdint.h>
#include <queue>
#include <bitset>
#include <iomanip>
#define PI (3.14159265358979323846)
#define INF (1e+9)
#define DIV_NUM (1000000007)

using namespace std;

int main()
{

	/*--------------------------------*/
		/* 数字宣言と入力*/
		
		
//    string iS,iT,iU;
	char S ,T;
	cin >> S >> T;

		
	int a, b;
	
	cin >> a >>b;
	
	char u ;
	
	cin >>u;
	
	if(u==s){
//		tmpX = a-1;
		cout << a-1 << b << endl;
	}
	
	elseif(u==t){
		cout << a << b-1 << endl;
	}
	else{
		cout << a << b << endl;
		
	}



	/*---------------------------------*/
		/* 出力 */
//	cout << tmpX << endl;


	/*----------------------------------*/
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:15: error: 's' was not declared in this scope
   36 |         if(u==s){
      |               ^
a.cc:41:19: error: 't' was not declared in this scope
   41 |         elseif(u==t){
      |                   ^
a.cc:41:9: error: 'elseif' was not declared in this scope
   41 |         elseif(u==t){
      |         ^~~~~~
a.cc:44:9: error: 'else' without a previous 'if'
   44 |         else{
      |         ^~~~
Language: C++

import java.util.Collections;
import java.util.Scanner;

public class Main {
    // AtCoder Beginner Contest 154
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String splt[] = scanner.nextLine().split(" ");
        String spltNum[] = scanner.nextLine().split(" ");
        String throwU = scanner.nextLine();
        if(throwU.equals(splt[0])){
            System.out.println(Integer.parseInt(spltNum[0])-1 + " " + spltNum[1]);
        }else{
            System.out.println(Integer.parseInt(spltNum[0]) + " " + (Integer.parseInt(spltNum[1]) - 1) );
        }

    }




}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Collections;
      | ^~~~~~
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.Scanner;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{

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

    return 0;
}

Compiler output:
a.cc:20:21: error: empty character constant
   20 |         cout << A <<''<< B ;
      |                     ^~
Language: C++

#include <iostream>

using namespace std;

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

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

#include <iostream>

using namespace std;

int main()
{

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

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

int main(){
string r,b;
  int rn,bn;
  cin>>r>>b;
  cin>>rn>>bn;
  cin>>tag;
  if(r==tag){
  cout<<rn-1;
  }else{  cout<<bn-1;}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:1: error: 'string' was not declared in this scope
    2 | string r,b;
      | ^~~~~~
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin>>r>>b;
      |   ^~~
a.cc:4:8: error: 'r' was not declared in this scope; did you mean 'rn'?
    4 |   cin>>r>>b;
      |        ^
      |        rn
a.cc:4:11: error: 'b' was not declared in this scope; did you mean 'bn'?
    4 |   cin>>r>>b;
      |           ^
      |           bn
a.cc:6:8: error: 'tag' was not declared in this scope
    6 |   cin>>tag;
      |        ^~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout<<rn-1;
      |   ^~~~
a.cc:9:11: error: 'cout' was not declared in this scope
    9 |   }else{  cout<<bn-1;}
      |           ^~~~
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-=1;
}
if(u==t){
b-=1;
}
cout<<a<<" "<<b;
}
else{cout<<n;}
 return 0;
}


Compiler output:
a.cc:17:1: error: expected unqualified-id before 'else'
   17 | else{cout<<n;}
      | ^~~~
a.cc:18:2: error: expected unqualified-id before 'return'
   18 |  return 0;
      |  ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
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-=1;
}
if(u==){
b-=1;
}
cout<<a<<" "<<b;
}
else{cout<<n;}
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: expected primary-expression before ')' token
   12 | if(u==){
      |       ^
a.cc: At global scope:
a.cc:17:1: error: expected unqualified-id before 'else'
   17 | else{cout<<n;}
      | ^~~~
a.cc:18:2: error: expected unqualified-id before 'return'
   18 |  return 0;
      |  ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include<iostream>
#include<map>

using namespace std;


int main(){
  int N;
  cin>>N;
  map<int,int> mp;
  
  for(int i=0;i<N;++i){
    int tmp;
    cin>>tmp;
    mp[tmp]++;
  }
  
  for(auto itr=mp.begin();itr!=mp.end();itr++){
   if(itr.second>1){
    cout<<"NO"<<endl;
     return 0;
   }
    
  }
 	cout<<"YES"<<endl; 
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:11: error: 'struct std::_Rb_tree_iterator<std::pair<const int, int> >' has no member named 'second'
   19 |    if(itr.second>1){
      |           ^~~~~~
Language: C++

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

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

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

#include<stdio.h>
int main(void){
  char s[9],t[9],u[9];
  int a,b;
  scanf("%s %s\n",s,t);
  scanf("%d %d\n",a,b);
  scanf("%s\n",u);
  if(s=u){
    a=a-1;
  }else{
    b=b-1;
  }
  printf("%d %d\n",a,b);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:7: error: assignment to expression with array type
    8 |   if(s=u){
      |       ^
Language: C++

#include <iostream>
using namespace std;
int main (){
    string s,t,u;
    int a,b;
    cin>>s>>t;
    cin>>a>>b;
    cin>>u;
    if (s==u){
        a-=1;
        cout<<a<<" "<<b;
    }else{
        b-=1;
        cout<<a<<" "<<b;
    }
    return 0;


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

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: no 'operator--(int)' declared for postfix '--' [-fpermissive]
   13 |     if (s == u) s--;
      |                 ~^~
a.cc:14:11: error: no 'operator--(int)' declared for postfix '--' [-fpermissive]
   14 |     else t--;
      |          ~^~
Language: C++

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: no 'operator--(int)' declared for postfix '--' [-fpermissive]
   13 |     if (s == u) s--;
      |                 ~^~
a.cc:14:11: error: no 'operator--(int)' declared for postfix '--' [-fpermissive]
   14 |     else t--;
      |          ~^~
Language: C++

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


int main{
    string s, t;
    int a, b;
    string u;
    cin >> s, t;
    cin >> a, b;
    cin >> u;
    if (s = u) cout << s - 1 << " " << t << endl;
    else cout << s << " " << t - 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) cout << s - 1 << " " << t << endl;
      |     ^~
a.cc:14:5: error: expected unqualified-id before 'else'
   14 |     else cout << s << " " << t - 1 << endl;
      |     ^~~~
a.cc:15:5: error: expected unqualified-id before 'return'
   15 |     return 0;
      |     ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

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


int main{
    string s, t, u;
    int a, b;
    cin >> s, t;
    cin >> a, b;
    cin >> u;
    if (s = u) cout << s - 1 << " " << t << endl;
    else cout << s << " " << t - 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, u;
      |            ^
a.cc:7:12: error: expected '}' before 's'
a.cc:6:9: note: to match this '{'
    6 | int main{
      |         ^
a.cc:9:5: error: 'cin' does not name a type
    9 |     cin >> s, t;
      |     ^~~
a.cc:10:5: error: 'cin' does not name a type
   10 |     cin >> a, b;
      |     ^~~
a.cc:11:5: error: 'cin' does not name a type
   11 |     cin >> u;
      |     ^~~
a.cc:12:5: error: expected unqualified-id before 'if'
   12 |     if (s = u) cout << s - 1 << " " << t << endl;
      |     ^~
a.cc:13:5: error: expected unqualified-id before 'else'
   13 |     else cout << s << " " << t - 1 << endl;
      |     ^~~~
a.cc:14:5: error: expected unqualified-id before 'return'
   14 |     return 0;
      |     ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: Java

import java.util.Scanner;

public class Main{
  private void main(String[] args){
    Scanner scanner = new Scanner();
    Scanner scanInt = new Scanner(System.in);
    String S = scanner.next();
    String T = scanner.next();
    int a = scanInt.nextInt();
    int b = scanInt.nextInt();
    String U = scanner.next();
    
    S = U ? a-- : b--;
    System.out.println(a + " " + b);
    
  }
}

Compiler output:
Main.java:5: error: no suitable constructor found for Scanner(no arguments)
    Scanner scanner = new Scanner();
                      ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
Main.java:13: error: incompatible types: String cannot be converted to boolean
    S = U ? a-- : b--;
        ^
Main.java:13: error: incompatible types: int cannot be converted to String
    S = U ? a-- : b--;
          ^
3 errors
Language: C++

private fun readLn() = readLine()!! // string line
private fun readInt() = readLn().toInt() // single int
private fun readStrings() = readLn().split(" ") // list of strings
private fun readInts() = readStrings().map { it.toInt() } // list of ints

fun main(args: Array<String>) {
    val (s, _) = readStrings()
    var (a, b) = readInts()
    val u = readLn()
    if (u == s) {
        a--
    } else {
        b--
    }
    println(listOf(a, b).joinToString(" "))
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'private'
    1 | private fun readLn() = readLine()!! // string line
      | ^~~~~~~
a.cc:6:1: error: 'fun' does not name a type
    6 | fun main(args: Array<String>) {
      | ^~~
Language: C++

#include <iostream>

using namespace std;

int main() {
       string s ; int i;
       cin >> s;
       for(i=0 ; i< s.length() ; i++ ){
           if (s[i]==','){
               s[i] = '' ;
           }
           cout<< s[i] ;
       }
    return 0;
}

Compiler output:
a.cc:10:23: error: empty character constant
   10 |                s[i] = '' ;
      |                       ^~
Language: C++

#include <iostream>

using namespace std;

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

    int A,B ;
    cin >> A>> B ;
    cin>> U;
    if (U == S) {
        A = A-1
        cout << A<<' '<<B ;
    }
    else {
        B =B-1 ;
        cout <<A <<' '<<B;
    }
    return 0;
}


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

#include <iostream>

using namespace std;

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

    int A,B ;
    cin >> A>> B ;
    cin>> U;
    if (U == S) {
        A = A-1
        cout << A<<' '<<B ;
    }
    else {
        B =B-1 ;
        cout <<A <<' '<<B;
    }
    return 0;
}

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

#include <iostream>

using namespace std;

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

    int A,B ;
    cin>>A>>B ;
    cin>> U;
    if (U == S) {
        A = A-1
        cout<<A<<''<<B;
    }
    else {
        B=B-1 ;
        cout<<A<<''<<B;
    }
    return 0;
}


Compiler output:
a.cc:15:18: error: empty character constant
   15 |         cout<<A<<''<<B;
      |                  ^~
a.cc:19:18: error: empty character constant
   19 |         cout<<A<<''<<B;
      |                  ^~
a.cc: In function 'int main()':
a.cc:14:16: error: expected ';' before 'cout'
   14 |         A = A-1
      |                ^
      |                ;
   15 |         cout<<A<<''<<B;
      |         ~~~~
Language: C++

int main(){
	string A, B, U;
  	cin >> A >> B;
  	int num_a, num_b;
  	cin >> num_a >> num_b;
  	cin >> U;
  	
  if(U == A){
  num_a--;
  }
  if(U == B){
  num_b--;
  }
  
  cout << num_a << num_b <<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'string' was not declared in this scope
    2 |         string A, B, U;
      |         ^~~~~~
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> A >> B;
      |         ^~~
a.cc:3:16: error: 'A' was not declared in this scope
    3 |         cin >> A >> B;
      |                ^
a.cc:3:21: error: 'B' was not declared in this scope
    3 |         cin >> A >> B;
      |                     ^
a.cc:6:16: error: 'U' was not declared in this scope
    6 |         cin >> U;
      |                ^
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << num_a << num_b <<endl;
      |   ^~~~
a.cc:15:28: error: 'endl' was not declared in this scope
   15 |   cout << num_a << num_b <<endl;
      |                            ^~~~
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){
    a-=1
    cout << a;
  }
    
  if(u == t){
    b-=1;
    cout << b;
  }
  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: expected ';' before 'cout'
   16 |     a-=1
      |         ^
      |         ;
   17 |     cout << a;
      |     ~~~~
Language: C++

#include <bits/stdc++.h>//..1..2..3:Correct:Solved by F2tekkz:)
#define ll long long
#define str string
#define sonic ios_base::sync_with_stdio(0)
using namespace std;
ll n , m , k , i , j , t , q , cnt , cnt1 , cnt2 , cnt3;
ll cnt4 , cnt5 , ans , ans1 , ans2 , ans3 , sum , sum1 , sum2;
ll mini = 1e9 , maxi = -999;
int main(){
	sonic;
	str s1 , s2;
	cin >> s1 >> s2;
	cin >> n >> m;
	cin >> s3;
	if(s3.size() == s2.size()){
		cout << n << " " << m - 1;
	}
	else{
		cout << n - 1 << " " << m;
	}
}
//     *    *  *  ****    *    *   *
//    *	*   * *   *      * *   *   *
//   *****  **    ****  *****  *****
//   *   *  * *      *  *   *      *
//   *   *  *  *  ****  *   *  *****

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: 's3' was not declared in this scope; did you mean 's2'?
   14 |         cin >> s3;
      |                ^~
      |                s2
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'B'
    4 |   int A B;
      |         ^
main.c:4:9: error: 'B' undeclared (first use in this function)
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:17: error: 'A' undeclared (first use in this function)
    6 |   scanf("%d %d",A,B);
      |                 ^