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

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

int main(){
    long a,b,k;
    cin>>a>>b>>k;
    for (long i=1; i<=k; i++){
        if (a!=0) a=a-1;
            else if (b!=0) b=b-1;
                else break;
    }
    cout<<a<<" "<<b;
    return 0;
}

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

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

int main(){
    int a,b,k;
    cin>>a>>b>>k;
    for (int i=1; i<=k; i++){
        if (a!=0) a=a-1;
            else if (b!=0) b=b-1;
                else break;
    }
    cout<<a<<" "<<b;
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
	long long a,b,k;
  cin>> a>>b>>k;
  if(k>=a) cout << "0 " << max(0,b+a-k);
  else cout << a-k << " "<<b;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:31: error: no matching function for call to 'max(int, long long int)'
    6 |   if(k>=a) cout << "0 " << max(0,b+a-k);
      |                            ~~~^~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:6:31: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
    6 |   if(k>=a) cout << "0 " << max(0,b+a-k);
      |                            ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:6:31: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    6 |   if(k>=a) cout << "0 " << max(0,b+a-k);
      |                            ~~~^~~~~~~~~
Language: C++

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

int main(){
  int t,a,k;
  cin>>t>>a>>k;
  if (t>=k){
    t=t-k;
    cout<<t<<' '<<a;}
  else if (k>(t+a)){
    cout<<'0 0';
  else {
    k=k-t;
    a=a-k;
    cout<<'0 '<<a;
  return 0;
}

Compiler output:
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     cout<<'0 0';
      |           ^~~~~
a.cc:15:11: warning: multi-character character constant [-Wmultichar]
   15 |     cout<<'0 '<<a;
      |           ^~~~
a.cc: In function 'int main()':
a.cc:12:3: error: expected '}' before 'else'
   12 |   else {
      |   ^~~~
a.cc:10:20: note: to match this '{'
   10 |   else if (k>(t+a)){
      |                    ^
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

int main() {
	long numA, numB, timesK;
	cin >> numA >> numB >> timesK;

	if ( numA - timesK >= 0 ) {
		numA -= timesK;
		cout << numA << numB << endl;
		return 0;
	}

	timesK -= numA;
	numA = 0;
	if( numB - timesK >= 0 ) {
		numB -= timesK;
		cout << numA << " " << numB << endl;
		return 0;
	}
	cout << "error"  << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> numA >> numB >> timesK;
      |         ^~~
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout << numA << numB << endl;
      |                 ^~~~
a.cc:7:41: error: 'endl' was not declared in this scope
    7 |                 cout << numA << numB << endl;
      |                                         ^~~~
a.cc:15:17: error: 'cout' was not declared in this scope
   15 |                 cout << numA << " " << numB << endl;
      |                 ^~~~
a.cc:15:48: error: 'endl' was not declared in this scope
   15 |                 cout << numA << " " << numB << endl;
      |                                                ^~~~
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout << "error"  << endl;
      |         ^~~~
a.cc:18:29: error: 'endl' was not declared in this scope
   18 |         cout << "error"  << endl;
      |                             ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
    long int A, B, K; // A: Takahashi B: Aoki
    cin >> A >> B >>K;
    if (K <= A){
	cout << A-K << B << endl;
    }
    else{
      if ( K-A <= B ){          
	  cout << 0 << B-(K - A) << endl;	  
      }
      else {
	  cour << 0 << 0 << endl;
      }
	  
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: 'cour' was not declared in this scope
   14 |           cour << 0 << 0 << endl;
      |           ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
    long int A, B, K; // A: Takahashi B: Aoki
    cin >> A >> B >>K;
    if (K <= A){
	cout << A-K << B endl;
    }
    else{
      if ( K-A <= B ){          
	  cout << 0 << B-(K - A))<< endl;;	  
      }
      else {
	  cour << 0 << 0 << endl;
      }
	  
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: expected ';' before 'endl'
    7 |         cout << A-K << B endl;
      |                         ^~~~~
      |                         ;
a.cc:11:33: error: expected ';' before ')' token
   11 |           cout << 0 << B-(K - A))<< endl;;
      |                                 ^
      |                                 ;
a.cc:14:11: error: 'cour' was not declared in this scope
   14 |           cour << 0 << 0 << endl;
      |           ^~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
    long long A, B, K;
    cin >> A >> B >> K;
    if (A <= K) cout << 0 << " " << max(A+B-K, 0) << endl;
    else cout << A-K << " " << B << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:40: error: no matching function for call to 'max(long long int, int)'
    7 |     if (A <= K) cout << 0 << " " << max(A+B-K, 0) << endl;
      |                                     ~~~^~~~~~~~~~
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:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:7:40: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
    7 |     if (A <= K) cout << 0 << " " << max(A+B-K, 0) << endl;
      |                                     ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
Language: C++

#include<bits/std++.h>
using namespace std;
int main()
{
  long long a,b,k;
  cin>>a>>b>>k;
  if(k&1){
    a=a-(k/2+1);
    b=b-(k/2);
  }
  else
  {
    a=a-(k/2);
    b=b-(k/2);
  }
  cout<<a<<b<<"\n";
  return 0;
}

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

#include <bits/stdc++.h>
#pragma gcc optimize("ofast")
using namespace std;

#define ll long long
#define ull unsigned long long
#define ui unsigned int
#define mod 1000000007
#define us unsigned short
#define IOS ios_base::sync_with_stdio(0);
#define INF LONG_MAX
#define PI 3.1415926535897932384626
#define mp make_pair
#define fi first
#define se second
#define pb push_back
#define rep(x,j,n)for(int x=j;x<n;x++)
typedef vector<pair<ll,ll>> vpi;
typedef vector<ll> vi;
typedef vector<vi> vvi;

ll modexp(ll a,ll b,ll m)
{
	ll r=1;
	a=a%m;
	while(b>0)
	{
	if(b&1)
		r=(r*a)%m;
	b=b/2;
	a=(a*a)%m;
	}
	return r%m;
}


int main() {
   ll a,b,k; cin>>a>>b>>k;
   if(k>=a)
   {
       cout<<0<<" "<<max(0,b+a-k)<<endl;
   }
   else
   {
       cout<<a-k<<" "<<b<<endl;
   }
   return 0;
}
/*

*/


Compiler output:
a.cc: In function 'int main()':
a.cc:41:25: error: no matching function for call to 'max(int, long long int)'
   41 |        cout<<0<<" "<<max(0,b+a-k)<<endl;
      |                      ~~~^~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:41:25: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   41 |        cout<<0<<" "<<max(0,b+a-k)<<endl;
      |                      ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:41:25: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   41 |        cout<<0<<" "<<max(0,b+a-k)<<endl;
      |                      ~~~^~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll a,b,k;
int main(){

cin>>a>>b>>k;
  a=max(0,a-k);
  if(a<=k&&a+b>=k)  a=0,b=b-(k-a);
  if(a<=k&&a+b<k)  a=0,b=0;
  if(a>=k)  a=a-k,b=b;
     cout<<a<<" "<<b;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: no matching function for call to 'max(int, long long int)'
    8 |   a=max(0,a-k);
      |     ~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:8:8: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
    8 |   a=max(0,a-k);
      |     ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:8:8: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    8 |   a=max(0,a-k);
      |     ~~~^~~~~~~
Language: C++

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

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

	ll a, b, k;
	cin >> a >> b >> k;
	if(a >= k) {
		cout << a - k << " " << b << endl;
	}else if(a + b >= k) {
		cout << 0 << " " << a + b - k << endl;
	}else {
		cout << 0 << " " << 0 << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'll' was not declared in this scope
    8 |         ll a, b, k;
      |         ^~
a.cc:9:16: error: 'a' was not declared in this scope
    9 |         cin >> a >> b >> k;
      |                ^
a.cc:9:21: error: 'b' was not declared in this scope
    9 |         cin >> a >> b >> k;
      |                     ^
a.cc:9:26: error: 'k' was not declared in this scope
    9 |         cin >> a >> b >> k;
      |                          ^
Language: C++

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

int main(){
    

    long long a,b,k;
    cin >> a >> b >> k;

    if(a >= k){

        cout << a -k << " " << b << endl;
    }else if(a + b >= k){

        cout << 0 << " " << a + b - k <<endl;
    }else {

        cout << 0 " " << 0 <<endl;
    }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:18: error: expected ';' before string constant
   20 |         cout << 0 " " << 0 <<endl;
      |                  ^~~~
      |                  ;
Language: C++

#include<iostream>
using namespace std;
int main(){
	long long a,b,k;
  	cin>>a>>b>>c;
    if(a>k) cout<<(a-k)<<" "<<b<<endl;
    if(k>=a&&k<(a+b)) cout<<0<<" "<<a+b-k<<endl;
    if(k>=(a+b)) cout<<0<<" "<<0<<endl;
    return 0;
}

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

#include<iostream>
using namespace std;
int main(){
	long long a,b,k;
  	cin>>a>>b>>c;
    if(a>k) cout<<(a-k)<<" "<<b<<endl;
    if(k>a&&k<(a+b)) cout<<0<<" "<<a+b-k<<endl;
    if(k>=(a+b)) cout<<0<<" "<<0<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: 'c' was not declared in this scope
    5 |         cin>>a>>b>>c;
      |                    ^
Language: Java

import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    long A=sc.nextLong();
    long B=sc.nextLong();
    long k=sc.nextLong();
    for(int i=0;i<k;i++) {
      if(A>=1) {
        A--;
      } else(B>=1) {
        B--;
      }
    }
    System.out.println(A);
    System.out.println(B);    
  }
}

Compiler output:
Main.java:12: error: not a statement
      } else(B>=1) {
            ^
Main.java:12: error: ';' expected
      } else(B>=1) {
                  ^
2 errors
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scannser(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int k = sc.nextInt();

        for(int i = 0; i < k; i++){
            if(a >= 1){
                a--;
            }
            else if(b >= 1){
                b--;
            }
        }

        System.out.print(a + " ");
        System.out.println(b);
    }
}


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

import java.util.*;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scannser(system.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int k = sc.nextInt();

        for(int i = 0; i < k; i++){
            if(a >= 1){
                a--;
            }
            else if(b >= 1){
                b--;
            }
        }

        System.out.print(a + " ");
        System.out.println(b);
    }
}


Compiler output:
Main.java:5: error: cannot find symbol
        Scanner sc = new Scannser(system.in);
                         ^
  symbol:   class Scannser
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner sc = new Scannser(system.in);
                                  ^
  symbol:   variable system
  location: class Main
2 errors
Language: C++

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

int main() {
  int A, B ,K;
  cin >> A >> B >> K;
  if ( A>=K ){
    cout <<A-K<<" "<<B endl;
  }
  else if ( A<K ){
    cout << 0 << A+B-K << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before 'endl'
    8 |     cout <<A-K<<" "<<B endl;
      |                       ^~~~~
      |                       ;
Language: C++

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

int main() {
  int A, B ,K;
  cin >> A >> B >> K;
  if ( A>=K ){
    cout <<A-K<<" "<<B endl;
  }
  else if ( A<K ){
    cout << 0 << A+B-K << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before 'endl'
    8 |     cout <<A-K<<" "<<B endl;
      |                       ^~~~~
      |                       ;
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.Scanner;

public class New {
    public static void main(String[] args) {
        Scanner in = new Scanner (System.in);
        int a = in.nextInt ();
        int b = in.nextInt ();
        int k = in.nextInt ();

        if(k <= a){
            System.out.println (a-k+" "+b);
        }else if(k <= a+b){
            System.out.println (0+" "+ (b-(k-a)));
        }else{
            System.out.println (0+" "+0);
        }
    }
}

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

import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {
                        Scanner in = new Scanner (System.in);
                      int a = in.nextInt ();
                        int b = in.nextInt ();
                        int k = in.nextInt ();

                 if(k <= a){
                 System.out.println (a-k+" "+b); 
                 }else if(k <= a+b){
                  System.out.println (a-k+" "+ b - (k-a);
                 }else{
                System.out.println (0+" "+0);
                 }
 }
 }


Compiler output:
Main.java:13: error: ')' or ',' expected
                  System.out.println (a-k+" "+ b - (k-a);
                                                        ^
1 error
Language: C++

        #include <iostream>
         #incldue <algorithm>
     
        int main(){
        long long a , b , k;
        std :: cin >> a >> b >> k;
         
        if(a > k)
        std :: cout << a - k << ' ' << b << '\n';
        else std :: cout << 0 << ' ' << std :: max(b - k + a , 0LL)<< '\n';
        }

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

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

public class A1283 {

    public static void main(String[] args) throws IOException {
        Scanner in = new Scanner(System.in);
        PrintWriter pw = new PrintWriter(System.out);
        int a = in.nextInt ();
        int b = in.nextInt ();
        int k = in.nextInt ();
        int remA = a-k;
        if (remA<0)
            remA=0;
        int remB = a+b - k;
        if(remB>b)
            remB=b;
        pw.println(remA+" "+ remB);
            pw.println(ans);
        
        pw.close();

    }

    static class Scanner {
        StringTokenizer st;
        BufferedReader br;

        public Scanner(InputStream s) {
            br = new BufferedReader(new InputStreamReader(s));
        }

        public Scanner(FileReader r) {
            br = new BufferedReader(r);
        }

        public String next() throws IOException {
            while (st == null || !st.hasMoreTokens())
                st = new StringTokenizer(br.readLine());
            return st.nextToken();
        }

        public int nextInt() throws IOException {
            return Integer.parseInt(next());
        }

        public long nextLong() throws IOException {
            return Long.parseLong(next());
        }

        public String nextLine() throws IOException {
            return br.readLine();
        }

        public double nextDouble() throws IOException {
            String x = next();
            StringBuilder sb = new StringBuilder("0");
            double res = 0, f = 1;
            boolean dec = false, neg = false;
            int start = 0;
            if (x.charAt(0) == '-') {
                neg = true;
                start++;
            }
            for (int i = start; i < x.length(); i++)
                if (x.charAt(i) == '.') {
                    res = Long.parseLong(sb.toString());
                    sb = new StringBuilder("0");
                    dec = true;
                } else {
                    sb.append(x.charAt(i));
                    if (dec)
                        f *= 10;
                }
            res += Long.parseLong(sb.toString()) / f;
            return res * (neg ? -1 : 1);
        }

        public boolean ready() throws IOException {
            return br.ready();
        }

    }
}

Compiler output:
Main.java:4: error: class A1283 is public, should be declared in a file named A1283.java
public class A1283 {
       ^
Main.java:19: error: cannot find symbol
            pw.println(ans);
                       ^
  symbol:   variable ans
  location: class A1283
2 errors
Language: C++

#include<iostream>
void main(){
        int a,b,k;
  cin>>a>>b>>k;
        int remA = a-k;
        if (remA<0)
            remA=0;
        int remB = a+b - k;
        if(remB>b)
            remB=b;
        cout<<remA+" "+ remB;
  return 0 ;
    }


Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>a>>b>>k;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         cout<<remA+" "+ remB;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
using namespace std;

int main() {
    int64_t A, B, K;
    cin >> A >> B >> K;
    printf("%lld %lld\n", max(0ll, A - K), max(0ll, B - max(0ll, K - A)));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: no matching function for call to 'max(long long int, int64_t)'
    7 |     printf("%lld %lld\n", max(0ll, A - K), max(0ll, B - max(0ll, K - A)));
      |                           ~~~^~~~~~~~~~~~
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:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:7:30: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int64_t' {aka 'long int'})
    7 |     printf("%lld %lld\n", max(0ll, A - K), max(0ll, B - max(0ll, K - A)));
      |                           ~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
a.cc:7:60: error: no matching function for call to 'max(long long int, int64_t)'
    7 |     printf("%lld %lld\n", max(0ll, A - K), max(0ll, B - max(0ll, K - A)));
      |                                                         ~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:7:60: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int64_t' {aka 'long int'})
    7 |     printf("%lld %lld\n", max(0ll, A - K), max(0ll, B - max(0ll, K - A)));
      |                                                         ~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  ios::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);

  long long a, b, k;
  cin >> a >> b >> k;
  cout << max(0ll, a - k) << ' ' << max(0ll, b - (k - (a - max(0ll, a - k)));

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:77: error: expected ')' before ';' token
   11 |   cout << max(0ll, a - k) << ' ' << max(0ll, b - (k - (a - max(0ll, a - k)));
      |                                        ~                                    ^
      |                                                                             )
Language: C++

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

int main() {
	long long int a, b, k ,d ,e, f;
	cin >> a;
	cin >> b;
	cin >> k;
	if (a < k) {
		d = k - a;
		f = b - d;
		e = 0;
	}
	elif (a + b < k) {
		e = 0;
		f = 0;
    }
	else {
		e = a - k;
		f = b;
	}
	cout << e << " " <<f;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'elif' was not declared in this scope
   15 |         elif (a + b < k) {
      |         ^~~~
a.cc:19:9: error: 'else' without a previous 'if'
   19 |         else {
      |         ^~~~
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
int main(){
  long long a,b,c;
  cin>>a>>b>>c;
  if(!(0<a=&&a<=pow(10,12))||!(0<b=&&b<=pow(10,12))||!(0<c=&&c<=pow(10,12))){
    cout<<0<<" "<<0<<endl;
  }
  else{
  for(long long i=0;i<c;i++){
    if(a>0){
      a--;
    }
    else if(b>0){
      b--;
    }
  }
  cout<<a<<" "<<b<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: invalid operands of types 'void*' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator<='
    7 |   if(!(0<a=&&a<=pow(10,12))||!(0<b=&&b<=pow(10,12))||!(0<c=&&c<=pow(10,12))){
      |            ~~~^~~~~~~~~~~~
      |            |       |
      |            void*   __gnu_cxx::__promote<double>::__type {aka double}
a.cc:7:39: error: invalid operands of types 'void*' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator<='
    7 |   if(!(0<a=&&a<=pow(10,12))||!(0<b=&&b<=pow(10,12))||!(0<c=&&c<=pow(10,12))){
      |                                    ~~~^~~~~~~~~~~~
      |                                    |       |
      |                                    void*   __gnu_cxx::__promote<double>::__type {aka double}
a.cc:7:63: error: invalid operands of types 'void*' and '__gnu_cxx::__promote<double>::__type' {aka 'double'} to binary 'operator<='
    7 |   if(!(0<a=&&a<=pow(10,12))||!(0<b=&&b<=pow(10,12))||!(0<c=&&c<=pow(10,12))){
      |                                                            ~~~^~~~~~~~~~~~
      |                                                            |       |
      |                                                            void*   __gnu_cxx::__promote<double>::__type {aka double}
a.cc:7:14: error: label 'a' used but not defined
    7 |   if(!(0<a=&&a<=pow(10,12))||!(0<b=&&b<=pow(10,12))||!(0<c=&&c<=pow(10,12))){
      |              ^
a.cc:7:38: error: label 'b' used but not defined
    7 |   if(!(0<a=&&a<=pow(10,12))||!(0<b=&&b<=pow(10,12))||!(0<c=&&c<=pow(10,12))){
      |                                      ^
a.cc:7:62: error: label 'c' used but not defined
    7 |   if(!(0<a=&&a<=pow(10,12))||!(0<b=&&b<=pow(10,12))||!(0<c=&&c<=pow(10,12))){
      |                                                              ^
Language: C++

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

int main() {
	long long int a, b, k ,d ,e, f;
	cin >> a;
	cin >> b;
	cin >> k;
	if (a < k) {
		d = k - a;
		f = b - d;
		e = 0;
	}
	elif (a + b < k) {
		e = 0;
		f = 0;
	else {
		e = a - k;
		f = b;
	}
	cout << e << " " <<f;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'elif' was not declared in this scope
   15 |         elif (a + b < k) {
      |         ^~~~
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int taka, aoki, loop = 0;
  cin >> taka;
  cin >> aoki;
  cin >> loop;
  
  for(int i = loop; i > 0; i--){
    if(taka > 0){
      taka--;
    }else if(aoki > 0){
      aoki--; 
    }
  }
  
  cout << taka << aoki << endl;
  
  cout << str2 << " " << str1 << endl;
   
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:11: error: 'str2' was not declared in this scope
   20 |   cout << str2 << " " << str1 << endl;
      |           ^~~~
a.cc:20:26: error: 'str1' was not declared in this scope
   20 |   cout << str2 << " " << str1 << endl;
      |                          ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
  long A, B, K;
  cin >> A >> B >> K;
  
  long a = A;
  long b = B;
  
  if(a > k){
    a -= K;
  }else if(b > k - a){
    b -= k + a;
    a = 0;
  }else{
    a = 0;
    b = 0;
  }
  
  cout << a << b << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'k' was not declared in this scope
   10 |   if(a > k){
      |          ^
Language: C++


#include<bits/stdc++.h>

using namespace std;
using ll = long long;


int main() {

    ll  a, b, k;
    cin>>a>>b>>k;
    if (a >= k) {
      cout<<a-k<<" "b<<endl;
    }
    else {
      ll b1 = k - a;
      if (b1 >= b) {
        cout<<0<<" "<<0<<endl;
      }
      else {
        cout<<0<<" "<<b-b1<<endl;
      }
    }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: unable to find string literal operator 'operator""b' with 'const char [2]', 'long unsigned int' arguments
   13 |       cout<<a-k<<" "b<<endl;
      |                  ^~~~
Language: C

#include <stdio.h>
int main() {
  long int A,B,K,i;
  scanf("%ld %ld %ld",&A,&B,&K);

  if(A>=K){
    A=A-K;
  }else {
    i = K - A;
    A = 0;
  }
  
    if(B >= i){
      B=B-i;
    }else B=0;
  }
  printf("%d %d",A,B);
  return 0;
}


Compiler output:
main.c:17:10: error: expected declaration specifiers or '...' before string constant
   17 |   printf("%d %d",A,B);
      |          ^~~~~~~
main.c:17:18: error: unknown type name 'A'
   17 |   printf("%d %d",A,B);
      |                  ^
main.c:17:20: error: unknown type name 'B'
   17 |   printf("%d %d",A,B);
      |                    ^
main.c:18:3: error: expected identifier or '(' before 'return'
   18 |   return 0;
      |   ^~~~~~
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C

#include <stdio.h>
int main() {
  long int A,B,K,i;
  scanf("&ld &ld &ld",&A,&B,&K);

  if(A>=K){
    A=A-K;
  }else {
    i = K - A;
    A = 0;
  }
    if(B >= i){
      B=B-i;
    }else B=0;
  }
  printf("%ld %ld",A,B);
  return 0;
}


Compiler output:
main.c:16:10: error: expected declaration specifiers or '...' before string constant
   16 |   printf("%ld %ld",A,B);
      |          ^~~~~~~~~
main.c:16:20: error: unknown type name 'A'
   16 |   printf("%ld %ld",A,B);
      |                    ^
main.c:16:22: error: unknown type name 'B'
   16 |   printf("%ld %ld",A,B);
      |                      ^
main.c:17:3: error: expected identifier or '(' before 'return'
   17 |   return 0;
      |   ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C

#include <stdio.h>
int main() {
  long int A,B,K,i;
  scanf("%ld %ld %ld",&A,&B,&K);

  if(A>=K){
    A=A-K;
  }else {
    i = K - A;
    A = 0;
  }
    if(B >= i){
      B=B-i;
    }else B=0;
  }
  printf("%ld %ld",A,B);
  return 0;
}


Compiler output:
main.c:16:10: error: expected declaration specifiers or '...' before string constant
   16 |   printf("%ld %ld",A,B);
      |          ^~~~~~~~~
main.c:16:20: error: unknown type name 'A'
   16 |   printf("%ld %ld",A,B);
      |                    ^
main.c:16:22: error: unknown type name 'B'
   16 |   printf("%ld %ld",A,B);
      |                      ^
main.c:17:3: error: expected identifier or '(' before 'return'
   17 |   return 0;
      |   ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main(
      |     ^~~~
a.cc:6:5: error: expected primary-expression before 'int'
    6 |     int a,b,k;
      |     ^~~
a.cc:6:5: error: expected '}' before 'int'
a.cc:5:3: note: to match this '{'
    5 |   {
      |   ^
a.cc:5:4: error: expected ')' before 'int'
    5 |   {
      |    ^
      |    )
    6 |     int a,b,k;
      |     ~~~
a.cc:4:9: note: to match this '('
    4 | int main(
      |         ^
a.cc:6:11: error: 'b' was not declared in this scope
    6 |     int a,b,k;
      |           ^
a.cc:6:13: error: 'k' was not declared in this scope
    6 |     int a,b,k;
      |             ^
a.cc:7:5: error: 'cin' does not name a type
    7 |     cin >> a >> b >> k;
      |     ^~~
a.cc:8:5: error: 'a' does not name a type
    8 |     a -= k;
      |     ^
a.cc:9:5: error: 'b' does not name a type
    9 |     b -= k;
      |     ^
a.cc:10:5: error: expected unqualified-id before 'if'
   10 |     if(a<0) a = 0;
      |     ^~
a.cc:11:5: error: expected unqualified-id before 'if'
   11 |     if (b<0) b = 0;
      |     ^~
a.cc:12:5: error: 'cout' does not name a type
   12 |     cout << a <<" "<< b << endl;
      |     ^~~~
a.cc:13:5: error: expected unqualified-id before 'return'
   13 |     return 0;
      |     ^~~~~~
a.cc:14:3: error: expected declaration before '}' token
   14 |   }
      |   ^
Language: Java

import java.util.Scanner;

public class Test_b {

	public static void Main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		String a = scan.next();
		String b = scan.next();
		String c = scan.next();
		int A = Integer.parseInt(a);
		int B = Integer.parseInt(b);
		int K = Integer.parseInt(c);

		for(int i = 1; i <= K; i++) {
			if(A > 0) {
			A = A-1;
			}else {
			B = B-1;
			}
		}
	}
}



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

import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
Long A = sc.nextLong();
Long B = sc.nextLong();
Long K = sc.nextLong();
if(k==0){
  System.out.println(A+" "+B);
}else{
for (int i=0;i<K;i++){
  if(A==0){
    if(B==0){
    }else{
      B=B-1;
    }
  }else{
    A=A-1;
  }
  System.out.println(A);
  System.out.println(B);
}

System.out.println(A+" "+B);
}
}
}

Compiler output:
Main.java:9: error: cannot find symbol
if(k==0){
   ^
  symbol:   variable k
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  long long a,b,k;
  cin >> a>> b >> k;
  if(a - k <= 0){
    a = 0;
    k -=a;
  }else{
    a -= k;
    k = 0;
  }
  b = max(b-k,0);
  printf("%d %d\n",a,b);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: no matching function for call to 'max(long long int, int)'
   13 |   b = max(b-k,0);
      |       ~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:13:10: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   13 |   b = max(b-k,0);
      |       ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:13:10: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   13 |   b = max(b-k,0);
      |       ~~~^~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  long long a,b,k;
  cin >> a>> b >> k;
  if(a - k <= 0){
    a = 0;
    k -=a;
  }else{
    a -= k;
    k = 0;
  }
  b = max(b-k,0);
  printf("%d %d\n",a,b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: no matching function for call to 'max(long long int, int)'
   13 |   b = max(b-k,0);
      |       ~~~^~~~~~~
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:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:13:10: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   13 |   b = max(b-k,0);
      |       ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
Language: C++

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

#define int long long int
#define REP(i, n) for (int i(0); i < n; ++i)
#define REQ(i, a, b) for (int i(a); i <= b; ++i)


signed main(){
	int a,b,k,c;
	cin >> a>> b >> k;
	cout << max((long long)0,a-k) << " " <<  max((long long)0,b-max(k-a,0));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:72: error: no matching function for call to 'max(long long int, int)'
   13 |         cout << max((long long)0,a-k) << " " <<  max((long long)0,b-max(k-a,0));
      |                                                                     ~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:13:72: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   13 |         cout << max((long long)0,a-k) << " " <<  max((long long)0,b-max(k-a,0));
      |                                                                     ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:13:72: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   13 |         cout << max((long long)0,a-k) << " " <<  max((long long)0,b-max(k-a,0));
      |                                                                     ~~~^~~~~~~
Language: Java

import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
Int A = sc.nextInt();
Int B = sc.nextInt();
Int K = sc.nextInt();
for (int i=0;i<K;i++){
  if(A==0){
    if(B==0){
    }else{
      B=B-1;
    }
  }else{
    A=A-1;
  }
  System.out.println(A);
  System.out.println(B);
}
System.out.println(A+" "+B);
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
Int A = sc.nextInt();
^
  symbol:   class Int
  location: class Main
Main.java:7: error: cannot find symbol
Int B = sc.nextInt();
^
  symbol:   class Int
  location: class Main
Main.java:8: error: cannot find symbol
Int K = sc.nextInt();
^
  symbol:   class Int
  location: class Main
3 errors
Language: Java

public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String[] scan_str = scan.nextLine().split(" ");
        Long n1 = Long.parseLong(scan_str[0]);
        Long n2 = Long.parseLong(scan_str[1]);
        Long n4 = Long.parseLong(scan_str[2]);
        Long n3 = n1 + n2;
        Long n;
        if(n1+n2 < n4){
            n = n1+n2;
        }else{
            n = n4;
        }
        for(long i = 0 ; i < n; i++){
            n1 = n1 - Long.parseLong("1");
            n3 = n3 - Long.parseLong("1");
        }
        if(n1 < 0){
            System.out.println("0" + " " + String.valueOf(n3));
        }else{
            System.out.println(String.valueOf(n1) + " " + String.valueOf(n3 - n1));
        }

    }
}

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

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

 
int main()
{
	int a,b,k;
	cin >>a>>b>>k;
 if(k<=a) cout << a - k << '␣' << b <<endl; }
 else if(k <= a+b){ cout << 0 << '␣' << b - (k-a) <<endl;  }
 else{ cout << 0 << '␣' << 0 <<endl;
}

Compiler output:
a.cc:9:28: warning: multi-character character constant [-Wmultichar]
    9 |  if(k<=a) cout << a - k << '␣' << b <<endl; }
      |                            ^~~
a.cc:10:34: warning: multi-character character constant [-Wmultichar]
   10 |  else if(k <= a+b){ cout << 0 << '␣' << b - (k-a) <<endl;  }
      |                                  ^~~
a.cc:11:21: warning: multi-character character constant [-Wmultichar]
   11 |  else{ cout << 0 << '␣' << 0 <<endl;
      |                     ^~~
a.cc:10:2: error: expected unqualified-id before 'else'
   10 |  else if(k <= a+b){ cout << 0 << '␣' << b - (k-a) <<endl;  }
      |  ^~~~
a.cc:11:2: error: expected unqualified-id before 'else'
   11 |  else{ cout << 0 << '␣' << 0 <<endl;
      |  ^~~~