criyle/codenet-compile-errors huggingface dataset:
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=a-1;
    }
    if(t==u){
        b=b-1;
    }    cout<<a<<" "<<b;


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

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



}

Compiler output:
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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




Compiler output:
a.cc:1:1: error: 'string' does not name a type
    1 | string s,t,u;
      | ^~~~~~
a.cc:3:1: error: 'cin' does not name a type
    3 | cin>>s>>t;
      | ^~~
a.cc:4:1: error: 'cin' does not name a type
    4 | cin>>a>>b;
      | ^~~
a.cc:5:1: error: 'cin' does not name a type
    5 | cin>>u;
      | ^~~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(s==u){
      | ^~
a.cc:9:1: error: expected unqualified-id before 'if'
    9 | if(t==u){
      | ^~
a.cc:11:6: error: 'cout' does not name a type
   11 | }    cout<<a<<" "<<b;
      |      ^~~~
a.cc:12:5: error: expected declaration before '}' token
   12 |     }
      |     ^
Language: C++

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


    return 0;
}


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

s,t = input().split()
a,b = map(int,input().split())
u = input()

if u == s:
  print(a-1,b)
elif u == t:
  print(a,b-1)
else:
  print(a,b)

Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s,t = input().split()
      | ^
Language: C++

Ball = list(map(str, input().split()))
Num = list(map(int, input().split()))
OutputBall = input()
print((Num[0] - 1, Num[1]) if Ball[0] == OutputBall else (Num[0],
      Num[1] - 1))


Compiler output:
a.cc:1:1: error: 'Ball' does not name a type
    1 | Ball = list(map(str, input().split()))
      | ^~~~
Language: C++

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

int main(){
    map<string int> mp;
    string a,b,U;
    int A,B;
    cin >> a >> b;
    cin >> A >> B;
    cin >> U;
    mp[a]+=A;
    mp[b]+=B;
    mp[U]--;

    cout << a << b << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: two or more data types in declaration of 'type name'
    5 |     map<string int> mp;
      |         ^~~~~~
a.cc:5:19: error: wrong number of template arguments (1, should be at least 2)
    5 |     map<string int> mp;
      |                   ^
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:102:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  102 |     class map
      |           ^~~
a.cc:11:7: error: no match for 'operator[]' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   11 |     mp[a]+=A;
      |       ^
a.cc:12:7: error: no match for 'operator[]' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   12 |     mp[b]+=B;
      |       ^
a.cc:13:7: error: no match for 'operator[]' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   13 |     mp[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.equal(s)) {
     cout << a - 1 << b << endl;
   } else {
     cout << a << b - 1 << endl;
   }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equal'
    9 |    if (u.equal(s)) {
      |          ^~~~~
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.equil(s)) {
     cout << a - 1 << b << endl;
   } else {
     cout << a << b - 1 << endl;
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'equil'
    9 |    if (u.equil(s)) {
      |          ^~~~~
Language: C++

#include <iostream>
#include <string>

int main()
{
	using namespace std;
	string c1, c2;
	int nc1,nc2;
	getline(cin, c1);
	getline(cin, c2);
	cin >> nc1 ;
	cin>> nc2 ;
	cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
	string colour;
	getline(cin, colour);
	if (c1 == colour) {
		cout <<nc1 - 1 <<" "<< nc2;
	}
	if (c2 == colour) {
		cout << nc1 <<" "<< nc2 - 1;
	}
	cout << c1 << c2 << nc1 << nc2 << "b" << colour << "b";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: 'numeric_limits' is not a member of 'std'
   13 |         cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
      |                         ^~~~~~~~~~~~~~
a.cc:13:55: error: expected primary-expression before '>' token
   13 |         cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
      |                                                       ^
a.cc:13:58: error: '::max' has not been declared; did you mean 'std::max'?
   13 |         cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
      |                                                          ^~~
      |                                                          std::max
In file included from /usr/include/c++/14/string:51,
                 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/c++/14/bits/stl_algobase.h:303:5: note: 'std::max' declared here
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
Language: C

#include <stdio.h>
int main(void) {

	char s, t, u;
	int a, b;

	scanf_s("%s%s%d%d%s", &s, &t, &a, &b, &u);

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

	printf("%d%d", a, b);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scanf_s("%s%s%d%d%s", &s, &t, &a, &b, &u);
      |         ^~~~~~~
      |         scanf
Language: Java

import java.util.Scanner;
public class Abc01{
    public static void main(String args[]){
        
        Scanner scan = new Scanner(System.in);

        String S = scan.next();
        String T = scan.next();
        int A = scan.nextInt();
        int B = scan.nextInt();
        String U = scan.next();
        if(S.equals(U)) A=A-1;
        else B=B-1;
        System.out.printf("%d %d",A,B);

    }
}

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

import java.util.Scanner;
public class main{
    public static void main(String args[]){
        
        Scanner scanner = new Scanner(System.in);

        String S = scan.next();
        String T = scan.next();
        int A = scan.nextInt();
        int B = scan.nextInt();
        String U = scan.next();
        if(S.equals(U)) A=A-1;
        else B=B-1;
        System.out.printf("%d %d",A,B);

    }
}

Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public class main{
       ^
Main.java:7: error: cannot find symbol
        String S = scan.next();
                   ^
  symbol:   variable scan
  location: class main
Main.java:8: error: cannot find symbol
        String T = scan.next();
                   ^
  symbol:   variable scan
  location: class main
Main.java:9: error: cannot find symbol
        int A = scan.nextInt();
                ^
  symbol:   variable scan
  location: class main
Main.java:10: error: cannot find symbol
        int B = scan.nextInt();
                ^
  symbol:   variable scan
  location: class main
Main.java:11: error: cannot find symbol
        String U = scan.next();
                   ^
  symbol:   variable scan
  location: class main
6 errors
Language: Java

import java.util.Scanner;
public class Abc01{
    public static void main(String args[]){
        
        Scanner scanner = new Scanner(System.in);

        String S = scan.next();
        String T = scan.next();
        int A = scan.nextInt();
        int B = scan.nextInt();
        String U = scan.next();
        if(S.equals(U)) A=A-1;
        else B=B-1;
        System.out.printf("%d %d",A,B);

    }
}

Compiler output:
Main.java:2: error: class Abc01 is public, should be declared in a file named Abc01.java
public class Abc01{
       ^
Main.java:7: error: cannot find symbol
        String S = scan.next();
                   ^
  symbol:   variable scan
  location: class Abc01
Main.java:8: error: cannot find symbol
        String T = scan.next();
                   ^
  symbol:   variable scan
  location: class Abc01
Main.java:9: error: cannot find symbol
        int A = scan.nextInt();
                ^
  symbol:   variable scan
  location: class Abc01
Main.java:10: error: cannot find symbol
        int B = scan.nextInt();
                ^
  symbol:   variable scan
  location: class Abc01
Main.java:11: error: cannot find symbol
        String U = scan.next();
                   ^
  symbol:   variable scan
  location: class Abc01
6 errors
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 == U) S--;
    else T--;
    System.out.println(S + " " + T);
    
    
  }
}

Compiler output:
Main.java:11: error: bad operand type String for unary operator '--'
    if( S == U) S--;
                 ^
Main.java:12: error: bad operand type String for unary operator '--'
    else T--;
          ^
2 errors
Language: C++

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

int main(){
  string a,b,c;
  int d,e;
  cin >> a >> b;
  cin >> d >> e;
  cin >> c;
  if(a==c)d--;
  if(b==c)e--;
  cout << d << " " << e << endl;
}



Compiler output:
a.cc:4:12: error: 'Long' does not name a type; did you mean 'long'?
    4 | using ll = Long Long;
      |            ^~~~
      |            long
Language: C++

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

int main(){
  string a,b,c;
  int d,e;
  cin >> a >> b >> d >> e >> c;
  if(a==c)d--;
  if(b==c)e--;
  cout << d << " " << e << endl;
}



Compiler output:
a.cc:4:12: error: 'Long' does not name a type; did you mean 'long'?
    4 | using ll = Long Long;
      |            ^~~~
      |            long
Language: C++



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

int main(){
  string S,T,U;
  int A,B;
  //1<=A,B<=10から
  scanf("%10s %10s",S,T);
  scanf("%d %d",&A,&B);
  scanf("%10s",U);
  if(S==U){
    A -= 1;
  }else{
    B -= 1;
  } 
  
  printf("%d %d",A,B);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string S,T,U;
      |   ^~~~~~
a.cc:7: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:4:
/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:10:21: error: 'S' was not declared in this scope
   10 |   scanf("%10s %10s",S,T);
      |                     ^
a.cc:10:23: error: 'T' was not declared in this scope
   10 |   scanf("%10s %10s",S,T);
      |                       ^
a.cc:12:16: error: 'U' was not declared in this scope
   12 |   scanf("%10s",U);
      |                ^
Language: C++

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

int main()
{
    string S , T , U;
    S.size(10);
    t.size(10)
    int A , B;
    cin>>S>>T;
    cin>>A>>B;
    if(S==T){break;}
    if(a>=1 && b<=10){
    cin>>U;
    if(U == S ){A=A-1;}
    else if(U == T){B=B-1;}
    cout<<A<<B;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int)'
    8 |     S.size(10);
      |     ~~~~~~^~~~
In file included 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/c++/14/bits/basic_string.h:1076:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 1076 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
/usr/include/c++/14/bits/basic_string.h:1076:7: note:   candidate expects 0 arguments, 1 provided
a.cc:9:5: error: 't' was not declared in this scope
    9 |     t.size(10)
      |     ^
a.cc:12:10: error: 'A' was not declared in this scope
   12 |     cin>>A>>B;
      |          ^
a.cc:12:13: error: 'B' was not declared in this scope
   12 |     cin>>A>>B;
      |             ^
a.cc:13:14: error: break statement not within loop or switch
   13 |     if(S==T){break;}
      |              ^~~~~
a.cc:14:8: error: 'a' was not declared in this scope
   14 |     if(a>=1 && b<=10){
      |        ^
a.cc:14:16: error: 'b' was not declared in this scope
   14 |     if(a>=1 && b<=10){
      |                ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected ';' before ':' token
   13 |   if(u == s) a--:
      |                 ^
      |                 ;
Language: 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<<endln;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: 'endln' was not declared in this scope
   12 |   cout<<A<<" "<<B<<endln;
      |                    ^~~~~
Language: 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<<endln;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'String' was not declared in this scope
    5 |  String S,T,U;
      |  ^~~~~~
a.cc:7:7: error: 'S' was not declared in this scope
    7 |  cin>>S>>T>>A>>B>>U;
      |       ^
a.cc:7:10: error: 'T' was not declared in this scope
    7 |  cin>>S>>T>>A>>B>>U;
      |          ^
a.cc:7:19: error: 'U' was not declared in this scope
    7 |  cin>>S>>T>>A>>B>>U;
      |                   ^
a.cc:12:20: error: 'endln' was not declared in this scope
   12 |   cout<<A<<" "<<B<<endln;
      |                    ^~~~~
Language: Java

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

class Atcoder{
public static void main(String []args){
	Scanner sc=new Scanner(System.in);
  	String red=sc.next();
  	String blue=sc.next();
	int r=sc.nextInt();
  	int b=sc.nextInt();
  	String rb=sc.next();
  	if(rb==red){
    r--;
    }
  else{
  b--
  }
}
}


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

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

public class Atcoder{
public static void main(String []args){
	Scanner sc=new Scanner(System.in);
  	String red=sc.next();
  	String blue=sc.next();
	int r=sc.nextInt();
  	int b=sc.nextInt();
  	String rb=sc.next();
  	if(rb==red){
    r--;
    }
  else{
  b--;
  }
}
}


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

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

public class Atcoder{
public static void main(String []args){
	Scanner sc=new Scanner(System.in);
  	String red=sc.next();
  	String blue=sc.next();
	int r=sc.nextInt();
  	int b=sc.nextInt();
  	String rb=sc.next();
  	if(rb==red){
    r--;
    }
  else{
  b--
  }
}
}

Compiler output:
Main.java:17: error: ';' expected
  b--
     ^
1 error
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 (a>=10||b>=10)
   {
       cin>>a>>b;
   }
       if(s==u)
        a--;
       else
        b--;

    cout <<a<<" "<<b;
    return 0;
}


Chat conversation end
Type a message...


Compiler output:
a.cc:25:1: error: 'Chat' does not name a type
   25 | Chat conversation end
      | ^~~~
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) --a;
  if (u == t) --b;
  
  cout << a << b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   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 | //#include <bits/stdc++.h>
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> s >> t;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | //#include <bits/stdc++.h>
a.cc:8:10: error: 's' was not declared in this scope
    8 |   cin >> s >> t;
      |          ^
a.cc:8:15: error: 't' was not declared in this scope
    8 |   cin >> s >> t;
      |               ^
a.cc:10:10: error: 'u' was not declared in this scope
   10 |   cin >> u;
      |          ^
a.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout << a << b;
      |   ^~~~
a.cc:14:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc:2:9: error: #include expects "FILENAME" or <FILENAME>
    2 | #include(string)
      |         ^
a.cc:4:1: error: 'string' does not name a type
    4 | string S;
      | ^~~~~~
a.cc:5:1: error: 'cin' does not name a type
    5 | cin>>S;
      | ^~~
a.cc:6:1: error: 'string' does not name a type
    6 | string T;
      | ^~~~~~
a.cc:7:1: error: 'cin' does not name a type
    7 | cin>>T;
      | ^~~
a.cc:10:1: error: 'cin' does not name a type
   10 | cin>>A;
      | ^~~
a.cc:11:1: error: 'cin' does not name a type
   11 | cin>>B;
      | ^~~
a.cc:12:1: error: 'string' does not name a type
   12 | string U;
      | ^~~~~~
a.cc:13:1: error: 'cin' does not name a type
   13 | cin>>U;
      | ^~~
a.cc:14:5: error: cannot declare '::main' to be a global variable
   14 | int main{
      |     ^~~~
a.cc:15:1: error: expected primary-expression before 'if'
   15 | if U==S;
      | ^~
a.cc:15:1: error: expected '}' before 'if'
a.cc:14:9: note: to match this '{'
   14 | int main{
      |         ^
a.cc:16:3: error: 'cout' does not name a type
   16 |   cout<<(A-1)+B;
      |   ^~~~
a.cc:17:3: error: expected unqualified-id before 'else'
   17 |   else;
      |   ^~~~
a.cc:18:5: error: 'cout' does not name a type
   18 |     cout<<A+(B-1);
      |     ^~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(void){
string S[2], U;
int N[2];

for(i = 0; i < 2; i++){
  cin >> S[i];
}

for(i = 0; i < 2; i++){
  cin >> N[i];
}

cin >> U;

if(U == S[0]) cout << N[0] - 1 << " " << N[1]<<endl;
if(U == S[1]) cout << N[0] << " " << N[1] - 1<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'i' was not declared in this scope
    9 | for(i = 0; i < 2; i++){
      |     ^
a.cc:13:5: error: 'i' was not declared in this scope
   13 | for(i = 0; i < 2; i++){
      |     ^
Language: C++

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'cou' was not declared in this scope; did you mean 'cos'?
   16 |         cou << a << b - 1 << endl;
      |         ^~~
      |         cos
Language: Java

 public class Main{
  
  public static void main(String[] args){
    
    if(args[4].equals(args[0])){
      int ball1 = Integer.parseInt(args[2]) - 1;
    }
    else if(args[4].equals(args[1])){
      int ball2 = Integer.parseInt(args[3]) - 1;
    }
    
    system.out.println(ball1+" "+ball2);
    
  }
}

Compiler output:
Main.java:12: error: cannot find symbol
    system.out.println(ball1+" "+ball2);
                       ^
  symbol:   variable ball1
  location: class Main
Main.java:12: error: cannot find symbol
    system.out.println(ball1+" "+ball2);
                                 ^
  symbol:   variable ball2
  location: class Main
Main.java:12: error: package system does not exist
    system.out.println(ball1+" "+ball2);
          ^
3 errors
Language: Java

 public class Main{
  
  public static void main(String[] args){
    
    if(args[4].equals(args[0])){
      args[2] = args[2] - 1;
    }
    else if(args[4].equals(ball2.name)){
      args[3] = args[3] - 1;
    }
    
    system.out.println(args[2]+" "+args[3]);
    
  }
}

Compiler output:
Main.java:6: error: bad operand types for binary operator '-'
      args[2] = args[2] - 1;
                        ^
  first type:  String
  second type: int
Main.java:8: error: cannot find symbol
    else if(args[4].equals(ball2.name)){
                           ^
  symbol:   variable ball2
  location: class Main
Main.java:9: error: bad operand types for binary operator '-'
      args[3] = args[3] - 1;
                        ^
  first type:  String
  second type: int
Main.java:12: error: package system does not exist
    system.out.println(args[2]+" "+args[3]);
          ^
4 errors
Language: Java

 public class Main{
  
  public void static main(String[] args){
    
    if(args[4].equals(args[0])){
      args[2] = args[2] - 1;
    }
    else if(args[4].equals(ball2.name)){
      args[3] = args[3] - 1;
    }
    
    system.out.println(args[2]+" "+args[3]);
    
  }
}

Compiler output:
Main.java:3: error: <identifier> expected
  public void static main(String[] args){
             ^
Main.java:3: error: '(' expected
  public void static main(String[] args){
              ^
Main.java:3: error: invalid method declaration; return type required
  public void static main(String[] args){
                     ^
3 errors
Language: Java

public class Ball{
  private String name;
  private int count;
  
  public Ball(String name,int count){
    this.name = name;
    this.count = count;
  }
  
  public String getName(){
    return this.name;
  }
  
  public void setName(String name){
    this.name = name;
  }
  
  public int getCount(){
    return this.count;
  }
  
  public void setCount(int count){
    this.count = count;
  }
   
}
 
public class BallGame{
  
  public void static main(String[] args){
    Ball ball1 = new Ball(args[0],args[2]);
    Ball ball2 = new Ball(args[1],args[3]);
 
    if(args[4].equals(ball1.name)){
      ball1.setCount(ball1.getCount()-1);
      break;
    }
    else if(args[4].equals(ball2.name)){
      ball2.setCount(ball2.getCount()-1);
    }
    
    system.out.print(ball1.getCount()+" "+ball2.getCount());
    
  }
}

Compiler output:
Main.java:30: error: <identifier> expected
  public void static main(String[] args){
             ^
Main.java:30: error: '(' expected
  public void static main(String[] args){
              ^
Main.java:30: error: invalid method declaration; return type required
  public void static main(String[] args){
                     ^
3 errors
Language: Java

public class Ball{
  private String name;
  private int count;
  
  public Ball(String name,int count){
    this.name = name;
    this.count = count;
  }
  
  public String getName(){
    return this.name;
  }
  
  public void setName(String name){
    this.name = name;
  }
  
  public int getCount(){
    return this.count;
  }
  
  public void setCount(int count){
    this.count = count;
  }
   
}

public class BallGame{
  
  public void static main(String[] args){
    Ball ball1 = new Ball(args[0],args[2]);
    Ball ball2 = new Ball(args[1],args[3]);

    if(args[4].equals(ball1.name)){
      ball1.setCount(ball1.getCount()-1);
      break;
    }
    else if(args[4].equals(ball2.name)){
      ball2.setCount(ball2.getCount()-1);
    }
    
    system.out.print(ball1.getCount()+" "+ball2.getCount());
  
  
  

Compiler output:
Main.java:30: error: <identifier> expected
  public void static main(String[] args){
             ^
Main.java:30: error: '(' expected
  public void static main(String[] args){
              ^
Main.java:30: error: invalid method declaration; return type required
  public void static main(String[] args){
                     ^
Main.java:42: error: reached end of file while parsing
    system.out.print(ball1.getCount()+" "+ball2.getCount());
                                                            ^
4 errors
Language: C++

s,t = input().split()
a,b = map(int,input().split())
u = input()

if u == s:
    print(a - 1, b)
else:
    print(a, b- 1)

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

import java.util.Scanner;

class atcorder {

	public static void main(String[] args) {
		
		Scanner stdIn = new Scanner(System.in);

		String S = stdIn.next();
		String T = stdIn.next();
		
		int A = stdIn.next();
		int B = stdIn.next();

		String U = stdIn.next();
	
		if( S != U or T != U )
			System.out.print( A +" "+ B);
		else if(S == U)
			System.out.print( A-1 +" "+ B);
		else
			System.out.print( A +" "+ B-1);
	}
    
}

Compiler output:
Main.java:17: error: ')' expected
		if( S != U or T != U )
		          ^
Main.java:17: error: ';' expected
		if( S != U or T != U )
		               ^
Main.java:17: error: variable declaration not allowed here
		if( S != U or T != U )
		              ^
Main.java:17: error: not a statement
		if( S != U or T != U )
		                   ^
Main.java:17: error: ';' expected
		if( S != U or T != U )
		                    ^
Main.java:19: error: 'else' without 'if'
		else if(S == U)
		^
6 errors
Language: C++

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

int main(){
	string s1, s2;
	int a, b;
	string cut;
	cin >> s1 >> s2 >> a >> b >> cut;
	if(s1==cut) cout << a-1 << ' ' << b;
	else cout << b-1 << ' ' << b;
}

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

#define rep(i,n) for (int (i) = 0; (i) <(n); (i)++) 
#include <math.h>
#include <bits/stdc++.h>
using namespace std;
int binary(int bina){
    int ans = 0;
    for (int i = 0; bina>0 ; i++)
    {
        ans = ans+(bina%2)*pow(10,i);
        bina = bina/2;
    }
    return ans;
}
long comb(int n, int r) {
    long ans = 1;
    for (int i = n; i > n - r; --i) {
        ans = ans*i;
    }
    for (int i = 1 ; i < r + 1; ++i) {
        ans = ans / i;
    }
    return ans;
}
using namespace std;

int main(){
  string a,b,e;
  std::cin >> a>>b;
  int c,d;
  std::cin >> c>>d>>e;
  if(a==e)std::cout << c-1<<" "<<d << std::endl;
  else std::cout << c<<d-1 << std::endl;
  
  
}


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

#include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <functional>
#include <iomanip>
#include <queue>
#include <stack>
#include <stdlib.h>
using namespace std;
#define rep(i,n) for (int (i) = 0; (i) <(n); (i)++) 
#include <math.h>
#include <bits/stdc++.h>
using namespace std;
int binary(int bina){
    int ans = 0;
    for (int i = 0; bina>0 ; i++)
    {
        ans = ans+(bina%2)*pow(10,i);
        bina = bina/2;
    }
    return ans;
}
long comb(int n, int r) {
    long ans = 1;
    for (int i = n; i > n - r; --i) {
        ans = ans*i;
    }
    for (int i = 1 ; i < r + 1; ++i) {
        ans = ans / i;
    }
    return ans;
}
using namespace std;

int main(){
  string a,b,e;
  std::cin >> a>>b;
  int c,d;
  std::cin >> c>>d>>e;
  if(a==e)std::cout << c-1<<" "<<d << std::endl;
  else std::cout << c<<d-1 << std::endl;
  
  
}


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


import java.util.Scanner;
public class main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String s = input.nextLine();
        String t = input.nextLine();
        Scanner input1 = new Scanner(System.in);
        int a = input1.nextInt();
        int b = input1.nextInt();
        String u = input.nextLine();
        if(s == u)  --b;
        else    --a;
        System.out.print(a + " " + b);
    }
}

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

#include <bits/stdc++.h>
#define ALL(v) v.begin(), v.end()
#define MOD 1000000007
#define rep(i, n) for(int i = 0; i < (int)(n); i++)

using namespace std;
typedef long long ll;
typedef pair<int, int> P;

//cout << fixed << setprecision(10);//
//最小公倍数//
ll gcd(ll x, ll y) {
	if (x == 0) return y;
	return gcd(y%x, x);
}
ll lcm(ll x, ll y) { return x * y / gcd(x, y); }

//逆元mod(mを法とするaの逆元)//
long long modinv(long long a, long long m) {
	long long b = m, u = 1, v = 0;
	while (b) {
		long long t = a / b;
		a -= t * b; swap(a, b);
		u -= t * v; swap(u, v);
	}
	u %= m;
	if (u < 0) u += m;
	return u;
}

//Cmonp//
//
const int MAX = 510000;
const int MOD = 1000000007;

ll fac[MAX], finv[MAX], inv[MAX];

// テーブルを作る前処理
void COMinit() {
	fac[0] = fac[1] = 1;
	finv[0] = finv[1] = 1;
	inv[1] = 1;
	for (int i = 2; i < MAX; i++) {
		fac[i] = fac[i - 1] * i % MOD;
		inv[i] = MOD - inv[MOD%i] * (MOD / i) % MOD;
		finv[i] = finv[i - 1] * inv[i] % MOD;
	}
}

// 二項係数計算
ll COM(int n, int k) {
	if (n < k) return 0;
	if (n < 0 || k < 0) return 0;
	return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}

int main() {
	// 前処理
	COMinit();

	// 計算例
	cout << COM(100000, 50000) << endl;
}
//




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


}


Compiler output:
a.cc:3:13: error: expected unqualified-id before numeric constant
    3 | #define MOD 1000000007
      |             ^~~~~~~~~~
a.cc:34:11: note: in expansion of macro 'MOD'
   34 | const int MOD = 1000000007;
      |           ^~~
a.cc:69:5: error: redefinition of 'int main()'
   69 | int main() {
      |     ^~~~
a.cc:57:5: note: 'int main()' previously defined here
   57 | int main() {
      |     ^~~~
a.cc: In function 'int main()':
a.cc:76:15: error: expected ';' before ':' token
   76 |   if(s==u){a--:}
      |               ^
      |               ;
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 == u){
      a = a - 1;
    }else{
      b = b - 1;
    }
    
    System.out.prinln(a + " " + b);
    
    sc.close();
    
  }
}


Compiler output:
Main.java:21: error: cannot find symbol
    System.out.prinln(a + " " + b);
              ^
  symbol:   method prinln(String)
  location: variable out of type PrintStream
1 error
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 == u){
      a = a - 1;
    }else{
      b= b-1;
    }
    
    System.out.prinln(a + " " + b);
    
    sc.close();
    
  }
}


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

int main(void){
  char s[10],t[10];
  int a,b;
  char u[10];
  scanf("%s %s",s,t);
  scanf("%d %d",&a,&b);
  scanf("%s",u);
  if(s == u){printf("%d %d\n"a-1,b);}
  else{printf("%d %d\n"b,a-1);}
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'scanf' was not declared in this scope
    5 |   scanf("%s %s",s,t);
      |   ^~~~~
a.cc:8:21: error: unable to find string literal operator 'operator""a' with 'const char [7]', 'long unsigned int' arguments
    8 |   if(s == u){printf("%d %d\n"a-1,b);}
      |                     ^~~~~~~~~~
a.cc:8:14: error: 'printf' was not declared in this scope
    8 |   if(s == u){printf("%d %d\n"a-1,b);}
      |              ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void){
a.cc:9:15: error: unable to find string literal operator 'operator""b' with 'const char [7]', 'long unsigned int' arguments
    9 |   else{printf("%d %d\n"b,a-1);}
      |               ^~~~~~~~~~
a.cc:9:8: error: 'printf' was not declared in this scope
    9 |   else{printf("%d %d\n"b,a-1);}
      |        ^~~~~~
a.cc:9:8: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

int main(void){
  char s[10],t[10];
  int a,b;
  char u[10];
  scanf("%s %s",s,t);
  scanf("%d %d",&a,&b);
  scanf("%s",u);
  if(s == u):printf("%d %d\n"a-1,b);
  else:printf("%d %d\n"b,a-1);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'scanf' was not declared in this scope
    5 |   scanf("%s %s",s,t);
      |   ^~~~~
a.cc:8:13: error: expected primary-expression before ':' token
    8 |   if(s == u):printf("%d %d\n"a-1,b);
      |             ^
a.cc:9:7: error: expected primary-expression before ':' token
    9 |   else:printf("%d %d\n"b,a-1);
      |       ^
Language: C++

int main(void){
  char s[10],t[10];
  int a,b;
  str u[10];
  scanf("%s %s",s,t);
  scanf("%d %d",&a,&b);
  scanf("%s",u);
  if(s == u):printf("%d %d\n"a-1,b);
  else:printf("%d %d\n"b,a-1);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'str' was not declared in this scope; did you mean 'std'?
    4 |   str u[10];
      |   ^~~
      |   std
a.cc:5:3: error: 'scanf' was not declared in this scope
    5 |   scanf("%s %s",s,t);
      |   ^~~~~
a.cc:7:14: error: 'u' was not declared in this scope
    7 |   scanf("%s",u);
      |              ^
a.cc:8:13: error: expected primary-expression before ':' token
    8 |   if(s == u):printf("%d %d\n"a-1,b);
      |             ^
a.cc:9:7: error: expected primary-expression before ':' token
    9 |   else:printf("%d %d\n"b,a-1);
      |       ^
Language: Java

import java.util.Scanner;
public class A {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		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)) A--;
		else if(T.equals(U)){
			B--;
		}

		System.out.printf("%d %d",A,B);
		sc.close();
	}

}


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

import java.util.Scanner;
public class A {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		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)) A--;
		else {
			B--;
		}

		System.out.printf("%d %d",A,B);
		sc.close();
	}

}


Compiler output:
Main.java:2: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
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) {
    a--;
     else {
       b--;
     }
    cout << a << ' ' << b << endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: expected '}' before 'else'
   13 |      else {
      |      ^~~~
a.cc:11:15: note: to match this '{'
   11 |   if (s == u) {
      |               ^
Language: Java

public class Main {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        String tokens1[] = scanner.nextLine().split(" ");
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        scanner.nextLine().split(" ");
        String tokens3[] = scanner.nextLine().split(" ");
        
        System.out.println(Arrays.asList(tokens1));
        System.out.println(a);
        System.out.println(b);
        System.out.println(Arrays.asList(tokens3));
        scanner.close();

        if (tokens1[0].equals(tokens3[0])) {
            a--;
        } else {
            b--;
        }
        System.out.println(a + " " + b);
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Main
Main.java:11: error: cannot find symbol
        System.out.println(Arrays.asList(tokens1));
                           ^
  symbol:   variable Arrays
  location: class Main
Main.java:14: error: cannot find symbol
        System.out.println(Arrays.asList(tokens3));
                           ^
  symbol:   variable Arrays
  location: class Main
4 errors
Language: C++



using namespace std;

int main()

{
string color1 , color2 ,color3;
    cin>>color1>>color2;
    int cno1,cno2;
    cin>>cno1>>cno2;
    cin>>color3;

if (color1==color3){
    cno1--;
}
else{
    cno2--;
}
cout<<cno1<<cno2<<endl;


 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'string' was not declared in this scope
    8 | string color1 , color2 ,color3;
      | ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | 
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin>>color1>>color2;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:9:10: error: 'color1' was not declared in this scope
    9 |     cin>>color1>>color2;
      |          ^~~~~~
a.cc:9:18: error: 'color2' was not declared in this scope
    9 |     cin>>color1>>color2;
      |                  ^~~~~~
a.cc:12:10: error: 'color3' was not declared in this scope
   12 |     cin>>color3;
      |          ^~~~~~
a.cc:20:1: error: 'cout' was not declared in this scope
   20 | cout<<cno1<<cno2<<endl;
      | ^~~~
a.cc:20:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:19: error: 'endl' was not declared in this scope
   20 | cout<<cno1<<cno2<<endl;
      |                   ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 |
Language: C++

#include <iostream>
using namespace std;

string a,b,u;
int x,y;
int main()
{
    cin >> a >> b;
    cin >> x >> y;
    cin >> u;
    if(u==a) {
        x-=1;
    }
    else {
        y-=1;
    }
    cout << x << ' ' < <y;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: expected primary-expression before '<' token
   17 |     cout << x << ' ' < <y;
      |                        ^
Language: C++

/*
    author: Salam_35
    Created at :

*/

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

#define ll long long int
#define pb push_back
#define sc(n) scanf("%d",&n)
#define Max 100005
#define scan(n) scanf("%lld",&n)
#define pi acos(-1.0)
#define _fastio  ios_base:: sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define ALL(x) x.begin(),x.end()
#define sci(n) scanf("%d",&n);
#define scl(n) scanf("%lld",&n);
#define load(array,size)  for(ll i=0 ; i<size ; i++) cin>>array[i] ;
#define load1(array,size)  for(ll i=1 ; i<=size ; i++) cin>>array[i] ;
#define INF	1LL<<19
#define pll pair<ll,ll>
#define mst(arr,value) memset(arr,value,sizeof(arr));


const ll MOD = 1e9+7;

typedef vector<ll>vec;
typedef pair<ll,ll> pii;
typedef map<ll,ll>mpll;
typedef set<ll>seet;
vec primes;


int main()
{
    string a,b;
  int aa,bb;
  string s;
  cin >> a>> b>>aa>>bb>>s;
  if(s==a)cout<<<aa-1<<' '<<bb<<endl;
  else cout<<aa<<' '<<bb-1<<endl;
  return 0;


}



Compiler output:
a.cc: In function 'int main()':
a.cc:42:17: error: expected primary-expression before '<' token
   42 |   if(s==a)cout<<<aa-1<<' '<<bb<<endl;
      |                 ^
a.cc:42:22: warning: left shift count >= width of type [-Wshift-count-overflow]
   42 |   if(s==a)cout<<<aa-1<<' '<<bb<<endl;
      |                  ~~~~^~~~~
a.cc:42:31: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   42 |   if(s==a)cout<<<aa-1<<' '<<bb<<endl;
      |                  ~~~~~~~~~~~~~^~~~~~
Language: C++

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

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:5: 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 | #incldue<bits/stdc++.h>
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     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 | #incldue<bits/stdc++.h>
a.cc:7:12: error: 'S' was not declared in this scope
    7 |     cin >> S >> T >> A >> B >> U;
      |            ^
a.cc:7:17: error: 'T' was not declared in this scope
    7 |     cin >> S >> T >> A >> B >> U;
      |                 ^
a.cc:7:32: error: 'U' was not declared in this scope
    7 |     cin >> S >> T >> A >> B >> U;
      |                                ^
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << A <<" "<< B <<"\n";
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesace'
    2 | using namesace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string S,T,U;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc: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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:8: error: 'S' was not declared in this scope
    7 |   cin>>S>>T;
      |        ^
a.cc:7:11: error: 'T' was not declared in this scope
    7 |   cin>>S>>T;
      |           ^
a.cc:10:8: error: 'U' was not declared in this scope
   10 |   cin>>U;
      |        ^
a.cc:16:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   cout<<r_number<<b_number;
      |   ^~~~
      |   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 a,b,c;
    int e,r;
    cin >> a >> b >> e >> r >> c;
    if(a==c)
    e= e-1;
    else
    r= r-1;
    cout << e << " " <<<r;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: expected primary-expression before '<' token
   12 |     cout << e << " " <<<r;
      |                        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: unable to find string literal operator 'operator""r' with 'const char [2]', 'long unsigned int' arguments
   12 |     cout << e << " "r;
      |                  ^~~~