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

import java.util.Scanner;

public class Main
{
  public static void main(String args[])
  {
    Scanner std = new Scanner(System.in);
    int t = std.nextInt();
    int a = std.nextInt();
    
    do
    {
      if(t > 0)
      {
        t--;
      }
      else if(a > 0)
      {
        a--;
      }
      else
      {
        
      }
    }while(t > 0)
      
     System.out.println(t + " " + a);

Compiler output:
Main.java:25: error: ';' expected
    }while(t > 0)
                 ^
Main.java:27: error: reached end of file while parsing
     System.out.println(t + " " + a);
                                     ^
2 errors
Language: C++

int main()
{
	int A,B,K;
	cin >> A;
	cin >> B;
	cin >> K;

	while (K>0)
	{
		if (A > 0)
		{
			A--;
			K--;
		}
		else if (A== 0 && B>0)
		{
			B--;
			K--;
		}
		else if (A == 0 && B == 0)
		{
			break;
		}
	}
	
	cout << A << " " << B;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> A;
      |         ^~~
a.cc:26:9: error: 'cout' was not declared in this scope
   26 |         cout << A << " " << B;
      |         ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: no matching function for call to 'max(long int&, int&)'
   10 |     cout << 0<<" "<<max(b,C)<<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:10:24: note:   deduced conflicting types for parameter 'const _Tp' ('long int' and 'int')
   10 |     cout << 0<<" "<<max(b,C)<<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:10:24: note:   mismatched types 'std::initializer_list<_Tp>' and 'long int'
   10 |     cout << 0<<" "<<max(b,C)<<endl;
      |                     ~~~^~~~~
Language: C

#include<stdio.h>

int main(void) {
	int a, b, n;
	scanf_s("%d%d%d", &a, &b, &n);

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

	printf("%d %d", a, b);

	return 0;
}






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

#include<iostream>
using namespace std;
int main()
{

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

Compiler output:
a.cc:7:2: error: stray '#' in program
    7 | }#include<iostream>
      |  ^
a.cc:7:3: error: 'include' does not name a type
    7 | }#include<iostream>
      |   ^~~~~~~
a.cc:9:5: error: redefinition of 'int main()'
    9 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
Language: Java

    import java.util.Scanner;;
    public class Main{
        public static void main(String args[]) {
            Scanner sc = new Scanner(System.in);
            int A = Integer.parseInt(sc.next());
          if(A>=1000000000000){
            A=0;
          }
            int B = Integer.parseInt(sc.next());
          if(B>=1000000000000){
            B=0;
          }
            int K = Integer.parseInt(sc.next());
          if(K>=1000000000000){
            K=0;
          }
            for (int i=0; i < K; i++) {
                if (A >= 1) {
                    A = A - 1;
                } else if (A == 0) {
                    if (B >= 1) {
                        B = B - 1;
                    }
                }
            }
            System.out.println(A + " " + B);
        }
    }

Compiler output:
Main.java:6: error: integer number too large
          if(A>=1000000000000){
                ^
Main.java:10: error: integer number too large
          if(B>=1000000000000){
                ^
Main.java:14: error: integer number too large
          if(K>=1000000000000){
                ^
3 errors
Language: C++

#include <bits/stdc++.h>
#define st first
#define nd second
#define mp make_pair
#define pb push_back
#define sol (k+k)
#define sag (k+k+1)
#define orta ((bas+son)/2)
#define coc g[node][i]
#define mod 1000000007
#define inf 1000000009
#define N 1000005
using namespace std;
 
typedef long long ll;
typedef pair < int , int > ii;
 
long long a,b,k;

int main() {
	cin >> a >> b >> k;
	if(a < k)
	{
		if(a == 0)
		{
			cout << "0 ";
			continue;
		}

		k -= a;
		a = 0;
	}
	else
	{

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

	if(b < k)
	{
		if(b == 0)
		{
			cout << "0";
			continue;
		}

		k -= b;
		b = 0;
	}
	else
	{
		cout << "0 " << b - k;
		return 0;
	}

	cout << a << " " << b;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:25: error: continue statement not within a loop
   27 |                         continue;
      |                         ^~~~~~~~
a.cc:45:25: error: continue statement not within a loop
   45 |                         continue;
      |                         ^~~~~~~~
Language: C++

#include <iostream>

using namespace std;

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

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

#include <bits/stdc++.h>

#define REP(i, x) REPI(i, 0, n)
#define REPI(i, a, b) for (int i = int(a); i < int(b); ++i)
#define ALL(x) (x).begin(), (x).end()

typedef long long ll;
using namespace std;

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

  ll A, B, K;
  cin >> A >> B >> K;

  ll ans_0 = 0;
  ll ans_1 = 0;
  ans_0 = max(A - K, 0ll);
  if(A < K){
    K  = K - A
    ans_1 = max(B - K, 0ll);
  }

  cout << ans_0 << " " << ans_1 << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: expected ';' before 'ans_1'
   21 |     K  = K - A
      |               ^
      |               ;
   22 |     ans_1 = max(B - K, 0ll);
      |     ~~~~~
Language: C++

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

int main()
{
 int a,b,k;
 cin>>a>>b;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: expected '}' at end of input
   17 |  cout<<a<<" "<<b<<endl;
      |                        ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
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 {
    int ak = K-A
    cout << 0 << B-ak << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: expected ',' or ';' before 'cout'
   13 |     cout << 0 << B-ak << endl;
      |     ^~~~
Language: Java

import java.util.Scanner;

public class atcoder {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int ta = input.nextInt();
        int aoi = input.nextInt();
        int a = input.nextInt();
        while(a>0){
            a-=1;
            if(ta>0){
                ta-=1;
            }
            else if(aoi>0&&ta==0){
                aoi-=1;
            }
        }
        System.out.println(ta +" " +aoi);
    }
}

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

#include <bits/stdc++.h>
typedef long long int ll;
using namespace std;
const ll N = 1e6 +9;
const ll p = 31;
const ll m = 1e9 + 7;
const ll inf= 1e14;
ll mod = 1e9+7;
ll powm(ll a, ll b) { ll res = 1; while (b) { if (b & 1) res = (res * a) % mod; a = (a * a) % mod; b >>= 1; } return res; }

int main() {   
     ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    
     
     ll q = 1;
     // cin>>q;
 
     while(q--){
          ll a,b,k;cin>>a>>b>>k;
          ll na = max(a-k,0ll);
          k-=(a-na)
          ll nb = max(b-k,0ll);
          cout<<na<<" "<<nb;
     }
}         

Compiler output:
a.cc: In function 'int main()':
a.cc:23:20: error: expected ';' before 'll'
   23 |           k-=(a-na)
      |                    ^
      |                    ;
   24 |           ll nb = max(b-k,0ll);
      |           ~~        
a.cc:25:26: error: 'nb' was not declared in this scope; did you mean 'na'?
   25 |           cout<<na<<" "<<nb;
      |                          ^~
      |                          na
Language: C++

#include<iomanip>
#include<vector>
#include<map>
#include<set>
#include<algorithm>
#include<numeric>
#include<limits>
#include<bitset>
#include<functional>
#include<type_traits>
#include<queue>
#include<stack>
#include<array>
#include<random>
#include<utility>
#include<cstdlib>
#include<ctime>
 
#include<string>
    
using namespace std;
long int a, b, k;
int main() {
    if (a > k) {
        a = a -k ;
    } else if ( k-a < b) {
        a = 0;
        b = b - k + a;
    } else if (k-a >= b){
        a = 0;
        b = 0;
    }
    cout << a << b << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:5: error: 'cout' was not declared in this scope
   33 |     cout << a << b << endl;
      |     ^~~~
a.cc:18:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
   17 | #include<ctime>
  +++ |+#include <iostream>
   18 |
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:40: error: expected '}' at end of input
    9 |     else cout << 0 << " " << 0 << endl;
      |                                        ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

int main() {
    int a, b, k;
    if (a > k) cout << a-k << " " << b << endl;
    else if(a+b > k) cout << 0 << " " << b-k << endl;
    else cout << 0 << " " << 0 << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:3:16: error: 'cout' was not declared in this scope
    3 |     if (a > k) cout << a-k << " " << b << endl;
      |                ^~~~
a.cc:3:43: error: 'endl' was not declared in this scope
    3 |     if (a > k) cout << a-k << " " << b << endl;
      |                                           ^~~~
a.cc:4:22: error: 'cout' was not declared in this scope
    4 |     else if(a+b > k) cout << 0 << " " << b-k << endl;
      |                      ^~~~
a.cc:4:49: error: 'endl' was not declared in this scope
    4 |     else if(a+b > k) cout << 0 << " " << b-k << endl;
      |                                                 ^~~~
a.cc:5:10: error: 'cout' was not declared in this scope
    5 |     else cout << 0 << " " << 0 << endl;
      |          ^~~~
a.cc:5:35: error: 'endl' was not declared in this scope
    5 |     else cout << 0 << " " << 0 << endl;
      |                                   ^~~~
a.cc:5:40: error: expected '}' at end of input
    5 |     else cout << 0 << " " << 0 << endl;
      |                                        ^
a.cc:1:12: note: to match this '{'
    1 | int main() {
      |            ^
Language: C

#include <stdio.h>
int main(){
  int A,B,K;
  scanf("%d%d%d",&A,&B,&K);
  if(K > A){
    A = 0;
    K = K-A;
    if(K < B){
      B = B-K;
      printf("%d %d",A,B);
    }
    else{
      B = 0;
      printf("%d %d",A,B);
  }
  else if(K == A){
    A = 0;
    K = 0;
    printf("%d %d",A,B);
  }
  else{
    A = A-K;
    K = 0;
    printf("%d %d",A,B);
  }
}

Compiler output:
main.c: In function 'main':
main.c:16:3: error: expected '}' before 'else'
   16 |   else if(K == A){
      |   ^~~~
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 () {

    int a,b,k;

    for(int i;i < k;i ++){

        if(a >= 1){

            a - 1
        }else if(b >= 1){

            b - 1
        }else if(a == 0 && b == 0){

            break;
        }
    }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: expected ';' before '}' token
   14 |             a - 1
      |                  ^
      |                  ;
   15 |         }else if(b >= 1){
      |         ~         
a.cc:17:18: error: expected ';' before '}' token
   17 |             b - 1
      |                  ^
      |                  ;
   18 |         }else if(a == 0 && b == 0){
      |         ~
Language: C

#include <stdio.h>
int main(){
  int A,B,K;
  scanf("%d%d%d",&A,&B,&K);
  if(K > A){
    A = 0;
    K = K-A;
    if(K < B){
      B = B-K;
      printf("%d %d",A,B);
    }
    else printf('0' '0');
  }
  else if(K == A){
    A = 0;
    K = 0;
    printf("%d %d",A,B)
  }
  else{
    A = A-K;
    K = 0;
    printf("%d %d",A,B);
  }
}

Compiler output:
main.c: In function 'main':
main.c:12:20: error: expected ')' before '0'
   12 |     else printf('0' '0');
      |                ~   ^~~~
      |                    )
main.c:12:17: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   12 |     else printf('0' '0');
      |                 ^~~
      |                 |
      |                 int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:17:24: error: expected ';' before '}' token
   17 |     printf("%d %d",A,B)
      |                        ^
      |                        ;
   18 |   }
      |   ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a >> b >> k;
      |     ^~~
a.cc:4:16: error: 'cout' was not declared in this scope
    4 |     if (a > k) cout << a-k << " " << b << endl;
      |                ^~~~
a.cc:4:43: error: 'endl' was not declared in this scope
    4 |     if (a > k) cout << a-k << " " << b << endl;
      |                                           ^~~~
a.cc:5:22: error: 'cout' was not declared in this scope
    5 |     else if(a+b > k) cout << 0 << " " << b-k << endl;
      |                      ^~~~
a.cc:5:49: error: 'endl' was not declared in this scope
    5 |     else if(a+b > k) cout << 0 << " " << b-k << endl;
      |                                                 ^~~~
a.cc:6:10: error: 'cout' was not declared in this scope
    6 |     else cout << 0 << " " << 0 << endl;
      |          ^~~~
a.cc:6:35: error: 'endl' was not declared in this scope
    6 |     else cout << 0 << " " << 0 << endl;
      |                                   ^~~~
a.cc:6:40: error: expected '}' at end of input
    6 |     else cout << 0 << " " << 0 << endl;
      |                                        ^
a.cc:1:12: note: to match this '{'
    1 | int main() {
      |            ^
Language: C++

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> A >> B >> K;
      |   ^~~
a.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout << A << " " << B <<endl;
      |   ^~~~
a.cc:14:27: error: 'endl' was not declared in this scope
   14 |   cout << A << " " << B <<endl;
      |                           ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: lvalue required as left operand of assignment
   15 |   if(K>A+B || K=A+B){
      |      ~~~~~~^~~~
Language: C++

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

Compiler output:
a.cc:15:3: error: expected unqualified-id before 'if'
   15 |   if(K>A+B ||K=A+B){
      |   ^~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include<iostream>
#include<iomanip>
#include<vector>
#include<map>
#include<set>
#include<algorithm>
#include<numeric>
#include<limits>
#include<bitset>
#include<functional>
#include<type_traits>
#include<queue>
#include<stack>
#include<array>
#include<random>
#include<utility>
#include<cstdlib>
#include<ctime>

#include<string>
    
using namespace std;
long int a, b, k;
int main() {
    if (a > k) {
        a = a -k ;
    } else (if k-a < b) {
        a = 0;
        b = b - k + a;
    } else {
        a = 0;
        b = 0;
    }
    cout << a << b << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:13: error: expected primary-expression before 'if'
   27 |     } else (if k-a < b) {
      |             ^~
a.cc:27:13: error: expected ')' before 'if'
   27 |     } else (if k-a < b) {
      |            ~^~
      |             )
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef  long long  ll;
typedef vector<ll> vll;
#define rall(s) s.rbegin(),s.rend()
typedef map<ll,ll> mll;
#define fr(n,x) for(ll n=0;n<x;n++)
#define pb push_back
#define EL cout<<'\n'
#define all(s) s.begin(),s.end()

void solve(){
    ios_base::sync_with_stdio(0); cin.tie(0);
	ll x,y,k;
	cin>>x>>y>>k;
	if(x>=k){
        cout<<x-k<<' '<<y;
	}
	else{
        cout<<0<<' '<<max(y-(k-x),0);
	}
}

int main(){
    ll T=1;
    //cin>>T;
    while(T--)solve();
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:20:26: error: no matching function for call to 'max(ll, int)'
   20 |         cout<<0<<' '<<max(y-(k-x),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:20:26: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   20 |         cout<<0<<' '<<max(y-(k-x),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:20:26: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   20 |         cout<<0<<' '<<max(y-(k-x),0);
      |                       ~~~^~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
   
  int A;
  
  cin >> A;
      
  int B;
  
  cin >> B;
  
  int n;
  
  cin >> n;
  
  int n=i;
  
  if {(i=0;i<n;i++)
  cout << A+B << endl;
    }
     }

Compiler output:
a.cc: In function 'int main()':
a.cc:18:7: error: redeclaration of 'int n'
   18 |   int n=i;
      |       ^
a.cc:14:7: note: 'int n' previously declared here
   14 |   int n;
      |       ^
a.cc:18:9: error: 'i' was not declared in this scope
   18 |   int n=i;
      |         ^
a.cc:20:6: error: expected '(' before '{' token
   20 |   if {(i=0;i<n;i++)
      |      ^
      |      (
Language: C++

# your code goes here
a,b,c=map(int,input().split())
if a+b==c:
	print("0 0")
elif a>c:
	print(a-c,"",b)
elif c>=a:
	i=c-a;
	if(b>i):
		j=b-i
	else:
		j=i-b
	print("0 ",j)

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #your
    1 | # your code goes here
      |   ^~~~
a.cc:2:1: error: 'a' does not name a type
    2 | a,b,c=map(int,input().split())
      | ^
a.cc:9:9: error: expected unqualified-id before 'if'
    9 |         if(b>i):
      |         ^~
Language: C++

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

  int A, B;
  A = a - k;
  B = b
    
  if (a + b <= k){
    A = 0;
    B = 0;
  } else if (a >= k){
    A = a - k;
    B = b;
  } else {
    A = 0;
    B = b - (k - a);
  }
  cout << A << " " << B;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected ';' before 'if'
   10 |   B = b
      |        ^
      |        ;
   11 | 
   12 |   if (a + b <= k){
      |   ~~    
a.cc:15:5: error: 'else' without a previous 'if'
   15 |   } else if (a >= k){
      |     ^~~~
Language: C

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

int main() {
	
	unsigned long A = 0;
	unsigned long B = 0;
	unsigned long C = 0;
	unsigned long K = 0;

	scanf("%lu %lu %lu", &A, &B, &K);

	if (A =< K) {
		C = K - A;
		A = 0;
		B = B - C;
	}
	else {
		A = A - K;
	}

	printf("%lu %lu", A, B);

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:16: error: expected expression before '<' token
   13 |         if (A =< K) {
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){           
   ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
   //freopen("input.in","r",stdin); 
     long long a,b,k;
cin>>a>>b>>k;
   if(a>=k){
     cout<<(a-k)<<" "<<b;
   }
   else  {
      cout<<0<<" "<<max(0,(b-(k-a)));
}
   return 0;              
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: no matching function for call to 'max(int, long long int)'
   12 |       cout<<0<<" "<<max(0,(b-(k-a)));
      |                     ~~~^~~~~~~~~~~~~
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:12:24: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   12 |       cout<<0<<" "<<max(0,(b-(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
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:12:24: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   12 |       cout<<0<<" "<<max(0,(b-(k-a)));
      |                     ~~~^~~~~~~~~~~~~
Language: C++

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

int main() {
  int a,b,k;
  cin >> a,b,k;
  if(k>=1&&a>=1){
  for (int i = 0; i < k; i++) {
    a--;
  }
  if(k>=1&&b>=1)
   for (int j = 0; j < k-a; j++) {
    b--;
   }
  cout << a << endl;
    cout << b << endl;
}


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

#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <numeric>
#include <utility>
#include <cmath>
#include <tuple>
#include <queue>
#include <bitset>
#include <set>
#include <map>
#include <list>

using namespace std;


void solve(long long A, long long B, long long K){
  long long a, b;
  a = max(0LL, A - K);
  b = max(0, B + min(0LL, A - K));
  std::cout << a << " " << b << std::endl;
}

int main(){
  long long A;
  scanf("%lld",&A);
  long long B;
  scanf("%lld",&B);
  long long K;
  scanf("%lld",&K);
  solve(A, B, K);
  return 0;
}


Compiler output:
a.cc: In function 'void solve(long long int, long long int, long long int)':
a.cc:22:10: error: no matching function for call to 'max(int, long long int)'
   22 |   b = max(0, B + min(0LL, A - K));
      |       ~~~^~~~~~~~~~~~~~~~~~~~~~~~
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:22:10: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   22 |   b = max(0, B + min(0LL, 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,
                 from a.cc:5:
/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:22:10: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   22 |   b = max(0, B + min(0LL, A - K));
      |       ~~~^~~~~~~~~~~~~~~~~~~~~~~~
Language: Java

public class Main{
public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Integer A = 0;
        Integer B = 0;
        Integer K = 0;
        A = sc.nextInt();
        B = sc.nextInt();
        K = sc.nextInt();
        while (K > 0) {
            if (A > 0) {
                A--;
                K--;
            }
            else if (A == 0 && B > 0) {
                B --;
                K --;
            }
            else if ( A == 0 && B == 0)
            {
             break;
            }

        }

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


    }
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: no matching function for call to 'max(int, long int)'
    8 |   if(A<C) cout<<0<<" "<<max(0,A+B-C)<<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:8:28: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long int')
    8 |   if(A<C) cout<<0<<" "<<max(0,A+B-C)<<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:8:28: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    8 |   if(A<C) cout<<0<<" "<<max(0,A+B-C)<<endl;
      |                         ~~~^~~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: no matching function for call to 'max(long long int, int)'
    9 |   cout << 0 << ' ' << max(A+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:9:26: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
    9 |   cout << 0 << ' ' << max(A+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:9:26: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
    9 |   cout << 0 << ' ' << max(A+B-K,0);
      |                       ~~~^~~~~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
long long a,b,d;
  cin>>a>>b>>d;
  for(int i=0;i<d;i++){
  if(a==0&&b==0)break;
 
   if(a>0)a--;
  else b--;
  }
  cout<<a<<" "b<<endl;
  return 0;
}

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

import java.util.*;
import static java.lang.Math.*;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		
		// 入力
		long a = sc.nextLong();
		long b = sc.nextLong();
		long k = sc.nextLong();
		
		// 計算
		long takahashi = max(0, a - k);
		long aoki = max(0, b - max(0, k - a));
		
		
		// 出力
		System.out.println(takahashi + " " + aoki);
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import static java.lang.Math.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main {
      | ^~~~~~
Language: C++

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

int main(){
 
 unsigned long long A,B,K;
   
 cin >> A >> B >> K;
 
 if(A<=K){
   K = K-A;
   A = 0ULL;
 }else if(A>K){
      A = A-K;
      K = K-A;
 }
 if(B<K){
  B = 0ULL;
 }else(B>=K){
   B = B-K;
 }

 cout << A <<" "<< B << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: expected ';' before '{' token
   19 |  }else(B>=K){
      |             ^
      |             ;
Language: C++

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

int main() {
  
  int a, b, k;
  cin >> a >> b >> k;

  int sum = 0;
  cim >> 0;
    
   if(a > k) {
     cout << "a - k" << " b" << endl;
   }
   else if (a < k) {
     cout << "a" << " b - k" <<endl;
   }
   else {
     cout << "0 0" << endl;
   }
}
  

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

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<cmath>
#include<map>
#include<iomanip>
#include<queue>
#include<stack>
#include<time.h>
#define rep(i,n)for(int i=0;i<n;i++)
#define int long long
#define ggr getchar();getchar();return 0;
#define prique priority_queue
#define mod 1000000007
#define inf 1e15
#define key 1e9
using namespace std;
typedef pair<int, int>P;
void yes() { cout << "Yay!" << endl; }
void no() { cout << ":(" << endl; }
template<class T> inline void chmax(T& a, T b) {
	a = std::max(a, b);
}
template<class T> inline void chmin(T& a, T b) {
	a = std::min(a, b);
}
bool prime(int n) {
	int cnt = 0;
	for (int i = 1; i <= sqrt(n); i++) {
		if (n % i == 0)cnt++;
	}
	if (cnt != 1)return false;
	else return n != 1;
}
int gcd(int x, int y) {
	if (y == 0)return x;
	return gcd(y, x % y);
}
int lcm(int x, int y) {
	return x / gcd(x, y) * y;
}
int kai(int x, int y) {
	int res = 1;
	for (int i = x - y + 1; i <= x; i++) {
		res *= i; res %= mod;
	}
	return res;
}
int mod_pow(int x, int y, int m) {
	int res = 1;
	while (y) {
		if (y & 1) {
			res = res * x % m;
		}
		x = x * x % m;
		y >>= 1;
	}
	return res;
}
int comb(int x, int y) {
	if (y > x)return 0;
	return kai(x, y)* mod_pow(kai(y, y), mod - 2, mod) % mod;
}
struct edge { int to, cost; };
int a, b, k;
signed main() {
	cin >> a >> b >> k;
	if (k <= a)cout << a - k + b << " " << b << endl;
	else cout << 0 << " " << max(int(0),b - (k - a)) << endl;
	ggr
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected primary-expression before 'long'
   12 | #define int long long
      |             ^~~~
a.cc:70:38: note: in expansion of macro 'int'
   70 |         else cout << 0 << " " << max(int(0),b - (k - a)) << endl;
      |                                      ^~~
Language: C++

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

int main(){
  long long A,B,K,i;
  cin >> A >> B >> K;

  if(A>=K)
  A -= K;
  else if(A<K){
    K -= A;
    A = 0;
    if(B<K)
    B = 0;
    else
    B -= K;
  cout << A << " " << B << endl;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: no matching function for call to 'max(int, long long int)'
   10 |         cout<<"0 "<<max(0,b-(c-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:10:24: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   10 |         cout<<"0 "<<max(0,b-(c-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++

//This code was made by Chinese_zjc_.
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<string>
#define int long long
#define INF 0x3fffffffffffffff
using namespace std;
int a,b,c;
signed main()
{
	std::ios::sync_with_stdio(false);
	cin>>a>>b>>c;
	if(a<=c)
	{
		cout<<0<<' '<<max(b+a-c,0);
	}
	else
	{
		cout<<a-c<<' '<<b;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:34: error: no matching function for call to 'max(long long int, int)'
   17 |                 cout<<0<<' '<<max(b+a-c,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:2:
/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:17:34: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   17 |                 cout<<0<<' '<<max(b+a-c,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,
                 from a.cc:4:
/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:17:34: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   17 |                 cout<<0<<' '<<max(b+a-c,0);
      |                               ~~~^~~~~~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <typeinfo>
#include <numeric>
#include "math.h"
#include <string>
#include <vector>
#include <iomanip>

#define pai 3.14159265358979323846264338327950288
using namespace std;

//Greedy Takahashi

//*
void main() 
{
	 long long int  a, b, k;

	cin >> a >> b >> k;

	if (k > 100000000000 || a > 100000000000 || b > 100000000000) 
	{

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

	cout << a << " " << b;

}

//*/




Compiler output:
a.cc:16:1: error: '::main' must return 'int'
   16 | void main()
      | ^~~~
Language: C

#include<stdio.h>
#include<iostream>
using namespace std;
int main(){
	long long a,b,k;
	cin>>a>>b>>k;
	if(k<=a) a=a-k;
	if(k>a) {
		b-=(k-a);
		a=0;
	}
	
	if(b<0) b=0;
	printf("%lld %lld",a,b);
}

Compiler output:
main.c:2:9: fatal error: iostream: No such file or directory
    2 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

int main(){
  long long long A, B, K, ans1,ans2;
  cin >> A >>B >>K;

  if(A >= K){
      ans1=A-K;
      ans2=B;

  }
  else{
      ans1=0;
      ans2=A+B-K;
  }

  if(A=B=0){
    ans1=0;
    ans2=0;
  }
  cout << ans1 <<" "<<  ans2;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: 'long long long' is too long for GCC
    5 |   long long long A, B, K, ans1,ans2;
      |             ^~~~
Language: C++

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

Compiler output:
a.cc:15:3: error: expected unqualified-id before 'if'
   15 |   if(K>A+B){
      |   ^~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: Java

public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Integer A = 0;
        Integer B = 0;
        Integer K = 0;
        A = sc.nextInt();
        B = sc.nextInt();
        K = sc.nextInt();
        while (K > 0) {
            if (A > 0) {
                A--;
                K--;
            }
            else if (A == 0 && B > 0) {
                B --;
                K --;
            }
            else if ( A == 0 && B == 0)
            {
             break;
            }

        }

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


    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.Scanner; 

public class MyClass {
  public static void main(String[] args) {
    Scanner myObj = new Scanner(System.in);
    System.out.println("PLease enter A B K respectively.");
    int A = myObj.nextInt();
    int B = myObj.nextInt();
    int K = myObj.nextInt();
    
    while(K > 0) {
        if(A > 0) {
            A = A - 1;
        }
        else {
            A = 0;
            if (B > 0) {
                B = B - 1;
            }
            else B = 0;
        }
        K = K - 1;
    }
       
    System.out.println(A + " " + B);        
  }
}


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

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

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


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