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

#include <iostream>
#define int long long
using namespace std;
int32_t main()
{
  int a,b,k; cin>>a>>b>>k;
  int ans = a - min(a,k)<<" "<<b - k + min(a,k); 
  cout<<ans;
  return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:7:25: error: invalid operands of types 'long long int' and 'const char [2]' to binary 'operator<<'
    7 |   int ans = a - min(a,k)<<" "<<b - k + min(a,k);
      |             ~~~~~~~~~~~~^~~~~
      |               |           |
      |               |           const char [2]
      |               long long int
Language: Java

import java.util.Scanner;
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){
        A--;
      }else if(A=0 && B>0){
        B--;
      }
    }
    System.out.print(A + " " + B);
  }
}

Compiler output:
Main.java:11: error: bad operand types for binary operator '&&'
      }else if(A=0 && B>0){
                   ^
  first type:  int
  second type: boolean
Main.java:11: error: incompatible types: int cannot be converted to boolean
      }else if(A=0 && B>0){
                ^
2 errors
Language: C++

#include "stdafx.h" 
#include <iostream>
#include <string>

using namespace std;

void func149b()
{
    long long 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;
}

int main()
{
  func149b();
  return 0;
}


Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
	// sengen
	unsigned_int64 a,b,k,c;
	
	// nyuryoku
	cin >> a >> b >> k;
	c = a;
	// keisan
	if(k > a){
		a = 0;
		b = c + b -k;
	}else if(k == a){
		a = 0;
	}else{
		a -= k;
	}
	cout << a << b <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'unsigned_int64' was not declared in this scope
    6 |         unsigned_int64 a,b,k,c;
      |         ^~~~~~~~~~~~~~
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;
      |                          ^
a.cc:10:9: error: 'c' was not declared in this scope
   10 |         c = a;
      |         ^
Language: C++

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

int main(){
	// sengen
	int a,b,k,c;
	
	// nyuryoku
	cin >> a >> b >> k;
	c = a;
	// keisan
	if(k > a){
		a = 0;
		b = c + b -k;
	}else if(k == a){
		a = 0;
	}else{
		a -= k;
	}
	cout <

Compiler output:
a.cc: In function 'int main()':
a.cc:20:15: error: expected primary-expression at end of input
   20 |         cout <
      |               ^
a.cc:20:15: error: expected '}' at end of input
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C

#include <stdio.h>

int main(void){

    unsigned long long int A,B,X;
    scanf("%lu%lu%lu",&A,&B,&X);

    if ( A+B <= X ) {
        printf("%lu\n",0)
    }
    else {
        if ( X <= A ) {
            printf(printf("%lu%lu\n",A-X,B))
        }
        else if ( A < X && X - A >= B ) {
            printf(printf("%lu%lu\n",0,B))
        }
    }


}

Compiler output:
main.c: In function 'main':
main.c:9:26: error: expected ';' before '}' token
    9 |         printf("%lu\n",0)
      |                          ^
      |                          ;
   10 |     }
      |     ~                     
main.c:13:20: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   13 |             printf(printf("%lu%lu\n",A-X,B))
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~
      |                    |
      |                    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:13:45: error: expected ';' before '}' token
   13 |             printf(printf("%lu%lu\n",A-X,B))
      |                                             ^
      |                                             ;
   14 |         }
      |         ~                                    
main.c:16:20: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   16 |             printf(printf("%lu%lu\n",0,B))
      |                    ^~~~~~~~~~~~~~~~~~~~~~
      |                    |
      |                    int
/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:16:43: error: expected ';' before '}' token
   16 |             printf(printf("%lu%lu\n",0,B))
      |                                           ^
      |                                           ;
   17 |         }
      |         ~
Language: C++

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

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

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

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

int main( void )
{
	ll A,B,K;
	cin >> A >> B >> K;
	
	ll x = min(A,K);
	A -= x;
	K -= x;
	b -= min(B,K);
	
	cout << A << " " << B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'b' was not declared in this scope
   14 |         b -= min(B,K);
      |         ^
Language: C++

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

int main( void )
{
	ll A,B,K;
	cin >> A >> B >> K;
	
	ll x = min(A,K);
	A -= x;
	K -= x;
	b -= min(B,K);
	
	cout << A << " " << B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:12: error: 'Long' was not declared in this scope; did you mean 'long'?
    4 | #define ll Long Long
      |            ^~~~
a.cc:8:9: note: in expansion of macro 'll'
    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;
      |                          ^
a.cc:4:17: error: expected ';' before 'Long'
    4 | #define ll Long Long
      |                 ^~~~
a.cc:11:9: note: in expansion of macro 'll'
   11 |         ll x = min(A,K);
      |         ^~
a.cc:12:14: error: 'x' was not declared in this scope
   12 |         A -= x;
      |              ^
a.cc:14:9: error: 'b' was not declared in this scope
   14 |         b -= min(B,K);
      |         ^
Language: C++

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

int main( void )
{
	ll A,B,K;
	cin >> A >> B >> K;
	
	ll x = min(A,K);
	A -= x;
	K -= x;
	b -= min(B,K);
	
	cout << A << " " << B << endl;
}

Compiler output:
a.cc:4:12: error: 'Long' does not name a type; did you mean 'long'?
    4 | using ll = Long Long;
      |            ^~~~
      |            long
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;
      |                          ^
a.cc:11:11: error: expected ';' before 'x'
   11 |         ll x = min(A,K);
      |           ^~
      |           ;
a.cc:12:14: error: 'x' was not declared in this scope
   12 |         A -= x;
      |              ^
a.cc:14:9: error: 'b' was not declared in this scope
   14 |         b -= min(B,K);
      |         ^
Language: C++

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

int main( void )
{
	ll A,B,K;
	cin >> A >> B >> K;
	
	ll x = min(A,K);
	A -= x;
	K -= x;
	b -= min(B,K);
	
	cout << A << " " << B << endl;
}

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'll'
    4 | using ll long long;
      |       ^~
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;
      |                          ^
a.cc:11:11: error: expected ';' before 'x'
   11 |         ll x = min(A,K);
      |           ^~
      |           ;
a.cc:12:14: error: 'x' was not declared in this scope
   12 |         A -= x;
      |              ^
a.cc:14:9: error: 'b' was not declared in this scope
   14 |         b -= min(B,K);
      |         ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ')' before ';' token
    9 |         for (; K > 0; K--; )
      |             ~            ^
      |                          )
a.cc:9:28: error: expected primary-expression before ')' token
    9 |         for (; K > 0; K--; )
      |                            ^
Language: C++

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

int main( void )
{
	int A,B,K;
	cin >> A >> B >> K;
	
	while ( A > 0 && K > 0)
	{
		A--;
		K--:
	}
	
	while ( B > 0 && K > 0)
	{
		B--;
		K--;
	}
	
	cout << A << B << endl;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected ';' before ':' token
   12 |                 K--:
      |                    ^
      |                    ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
  //vector<string> str;
  ll a, b, c, k;
    cin >> a >> b >> k;

      if(a>=1 && b>=1){
        c = a-k;
        a = max(a-k, 0LL);
      }
      
      if(b>=1){
        b = max(b+c, 0LL);
      }

    cout << a << ' ' << b << endl;

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

#include <iostream>
#include <math.h>
#include <algorithm>
#include <string>
#include <string.h>
#include <queue>
#include <vector>
#include <set>
#include <map>
#include <tuple>
#include <stdlib.h>
using namespace std;
#define PI 3.14159265358979
typedef long long int ll;

ll gcd(ll a,ll b){
	if(a<b)swap(a,b);
	return (a%b?gcd(a%b,b):b);
	
}

int main()
{
	ll a,b,c;
	string S,T;
	cin>>a>>b>>c;
	if(c<=a)cout<<a-c<<" "<<b;
	else cout<<0<<" "<<max(0,a+b-c);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:31: error: no matching function for call to 'max(int, ll)'
   28 |         else cout<<0<<" "<<max(0,a+b-c);
      |                            ~~~^~~~~~~~~
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:28:31: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'll' {aka 'long long int'})
   28 |         else cout<<0<<" "<<max(0,a+b-c);
      |                            ~~~^~~~~~~~~
/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:3:
/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:28:31: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   28 |         else cout<<0<<" "<<max(0,a+b-c);
      |                            ~~~^~~~~~~~~
Language: C++

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


int main(void){
  ll a,n,k; cin >> a >> b >> k;
  if(a > k) cout << a - k << " " << b << endl;
  else if(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:9:25: error: 'b' was not declared in this scope
    9 |   ll a,n,k; cin >> a >> b >> k;
      |                         ^
Language: C++

#include <bits/stdc++.h>
int main (void) {
  long long a, b, k; cin >> a >> b >> k;
  cout << max(a - k, 0LL) << " " << max(min(b + a - k, b), 0LL) << "\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:22: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |   long long a, b, k; cin >> a >> b >> k;
      |                      ^~~
      |                      std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:4:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    4 |   cout << max(a - k, 0LL) << " " << max(min(b + a - k, b), 0LL) << "\n";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:4:11: error: 'max' was not declared in this scope; did you mean 'std::max'?
    4 |   cout << max(a - k, 0LL) << " " << max(min(b + a - k, b), 0LL) << "\n";
      |           ^~~
      |           std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:4:41: error: 'min' was not declared in this scope; did you mean 'std::min'?
    4 |   cout << max(a - k, 0LL) << " " << max(min(b + a - k, b), 0LL) << "\n";
      |                                         ^~~
      |                                         std::min
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

a,b,k=map(int,input().split())
if a >= k:
  a -= k
else:
  b=max(b-(k-a),0)
  a=0
print("{} {}".format(a,b))

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,k=map(int,input().split())
      | ^
Language: C

#include <stdio.h>

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

	scanf_s("%ld %ld %ld", &a, &b, &k);
	if (a >= k) {
		printf("%ld %ld", a - k, b);
	}
	else {
		printf("%ld %ld", 0, b+a-k>0?b+a-k:0);
	}

	return 0;
}

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

#include <iostream>

using namespace std;

typedef long long ll;

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

    ll a, b, k;
    cin >> a >> b >> k;

    cout << max(0, a - k) << endl;
    cout << max(0, min(b, a + b - k)) << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: no matching function for call to 'max(int, ll)'
   14 |     cout << max(0, a - k) << 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:14:16: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'll' {aka 'long long int'})
   14 |     cout << max(0, 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
a.cc:15:16: error: no matching function for call to 'max(int, const long long int&)'
   15 |     cout << max(0, min(b, a + b - k)) << endl;
      |             ~~~^~~~~~~~~~~~~~~~~~~~~~
/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:15:16: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   15 |     cout << max(0, min(b, a + b - 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
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: expected ')' before ';' token
   11 | else(cout << "0" << " " << "0";)
      |     ~                         ^
      |                               )
a.cc:11:32: error: expected primary-expression before ')' token
   11 | else(cout << "0" << " " << "0";)
      |                                ^
a.cc:11:33: error: expected '}' at end of input
   11 | else(cout << "0" << " " << "0";)
      |                                 ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected initializer before '.' token
    5 | long long a.b.k;
      |            ^
a.cc:6:8: error: 'a' was not declared in this scope
    6 | cin >> a >> b >>k;
      |        ^
a.cc:6:13: error: 'b' was not declared in this scope
    6 | cin >> a >> b >>k;
      |             ^
a.cc:6:17: error: 'k' was not declared in this scope
    6 | cin >> a >> b >>k;
      |                 ^
a.cc:7:21: error: expected primary-expression before '<<' token
    7 | cout << max(a-k,0); << " ";
      |                     ^~
Language: C++

#include <iostream>
#include <math.h>
#include <strings.h>
using namespace std;

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: expected ';' before '}' token
   12 |  cout<<A<<" "<<"B"
      |                   ^
      |                   ;
   13 | }else if(A>K){
      | ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'K' was not declared in this scope
   15 |     else if (a<=K){
      |                 ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'K' was not declared in this scope
   15 |     else if (a<=K){
      |                 ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.Scanner;
import java.util.Arrays;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int takahashi = sc.nextInt();
    int aoki = sc.nextInt();
    int k = sc.nextInt();
    if(k > takahashi){
      k -= takahashi;
      takahashi = 0
      if(k > aoki){
        k-= aoki;
        aoki = 0;
      }else{
        aoki -= k;
      }
    }else{
      takahashi -= k;
    }
    System.out.println(takahashi + " " + aoki);
  }
}

Compiler output:
Main.java:11: error: ';' expected
      takahashi = 0
                   ^
1 error
Language: C

#include<stdio.h>


int main()
{
    long long int a,b,k;
    scanf("%lld %lld %lld",&a,&b,&k);

    if(k<=a){
        long long int c=a-k;
        printf("%lld\n",c);
    }
    else if(k<=a+b){
        long long int d=b-(k-a);
        printf("0 %lld\n",d);
    }
    else{
        printf("0 0\n");
    }


Compiler output:
main.c: In function 'main':
main.c:19:5: error: expected declaration or statement at end of input
   19 |     }
      |     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'll' was not declared in this scope
    5 |   ll a, b, k;
      |   ^~
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b >> k;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b >> k;
      |               ^
a.cc:6:20: error: 'k' was not declared in this scope
    6 |   cin >> a >> b >> k;
      |                    ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'll' was not declared in this scope
    7 |     ll a, b, k;
      |     ^~
a.cc:8:10: error: 'a' was not declared in this scope
    8 |   cin >> a >> b >> k;
      |          ^
a.cc:8:15: error: 'b' was not declared in this scope
    8 |   cin >> a >> b >> k;
      |               ^
a.cc:8:20: error: 'k' was not declared in this scope
    8 |   cin >> a >> b >> k;
      |                    ^
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-(A+B) <= 0) {
			System.out.println(0 + " " + 0);
		} else if (K < A) {
			System.out.println((K-A) + " " + B);
		} else {
			System.out.println(0 + " " + B-(K-A));
		}
	}
}

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

//author:luckYrat(twitter:@luckYrat_)
//#include <bits/stdc++.h>

//def
#include <iostream>

#include <cmath>
#include <algorithm>
#include <iomanip>

//array
#include <vector>
#include <set>
#include <stack>
#include <queue>
#include <map>
#include <utility>
#include <climits>



using namespace std;

using ll = long long;
using P = pair<ll,ll>;

#define anyfill(n,s) setw(n) << setfill(s)
#define loop(s) for(int i = 0; s > i; i++)
#define rep(i,q) for(int i = 0; (q) > i; i++)
#define repp(i,n,q) for(int i = n; (q) > i; i++)
#define dep(i,q) for(int i = (q); 0 < i; i--)


#define MAX 1000000000
const int mod = 1000000007;
#define EPS (1e-10)

#define pb push_back
#define fir first
#define scn second
#define ednl endl

#define YesNo(a) (a?"Yes":"No")
#define YESNO(a) (a?"YES":"NO")
#define yesno(a) (a?"yes":"no")


P ar4[4] = {{0,1},{0,-1},{1,0},{-1,0}};
P ar8[8] = {{-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,-1},{1,0},{1,1}};
/*
確認ポイント
cout << fixed << setprecision(n) << 小数計算//n桁の小数表記になる
vector.unique()は隣接した同じ要素を削除するので先にソートをする

計算量は変わらないが楽できるシリーズ
C++11以降でmin({a,b,c...})で複数個のmic,maxを処理できる
min(max)_element(iter,iter)で一番小さい(大きい)値のポインタが帰ってくる
count(iter,iter,int)でintがiterからiterの間にいくつあったかを取得できる

*/
__attribute__((constructor))
void initial() {
 cin.tie(0);
 ios::sync_with_stdio(false);
}



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


Compiler output:
a.cc: In function 'int main()':
a.cc:74:29: error: lvalue required as increment operand
   74 |     cout << 0 << " " << max(0++,b-k+a) << endl;
      |                             ^
Language: C

#include <stdio.h>
int main(void)
{
 long int A,B,K;
 long int ans1,ans2;
 scanf("%ld %ld %ld",&A,&B,&K);
 ans1 = A-K;
 ans2 = A+B-K;

 if(ans1>=0) printf("%ld %ld\n",ans1,B);
 else if(ans1<0&&ans>=0) printf("0 %ld\n",ans2);
 else printf("0 0\n");

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:18: error: 'ans' undeclared (first use in this function); did you mean 'ans2'?
   11 |  else if(ans1<0&&ans>=0) printf("0 %ld\n",ans2);
      |                  ^~~
      |                  ans2
main.c:11:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(void)
{
 long int A,B,K;
 long int ans1,ans2;
 scanf("%ld %ld %ld",&A,&B,&K);
 ans1 = A-K;
 ans2 = A+B-K;

 if(ans1>=0) printf("%ld %ld\n",ans1,B);
 else if(ans1<0&&ans>==0) printf("0 %ld\n",ans2);
 else printf("0 0\n");

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:18: error: 'ans' undeclared (first use in this function); did you mean 'ans2'?
   11 |  else if(ans1<0&&ans>==0) printf("0 %ld\n",ans2);
      |                  ^~~
      |                  ans2
main.c:11:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:23: error: expected expression before '=' token
   11 |  else if(ans1<0&&ans>==0) printf("0 %ld\n",ans2);
      |                       ^
Language: C++

a,b,k = map(int, input().split())

for i in range(k):
    if 1 <= a:
        a -= 1
    elif 1 <= b:
        b -= 1
        
print(a,b)

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

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

if(A - K >= 0){
    A = A - K;
}
else if(B + A - K >= 0){
    B = B + A - K;
    A = 0;
}
else{
    A = 0;
    B = 0;
}

    cout << A << " " << B << 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:17:5: error: 'cout' was not declared in this scope
   17 |     cout << A << " " << B << endl;
      |     ^~~~
a.cc:17:30: error: 'endl' was not declared in this scope
   17 |     cout << A << " " << B << endl;
      |                              ^~~~
Language: C++

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

if(A - K >= 0){
    A = A - K;
}
else if(B + A - K >= 0){
    B = B + A - K;
    A = 0;
}
else{
    A = 0;
    B = 0;
}

    cout << A << B << 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:17:5: error: 'cout' was not declared in this scope
   17 |     cout << A << B << endl;
      |     ^~~~
a.cc:17:23: error: 'endl' was not declared in this scope
   17 |     cout << A << B << endl;
      |                       ^~~~
Language: C++

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

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

if(A - K >= 0){
    A = A - K;
}
else if(B + A - K >= 0){
    B = B + A - K;
    A = 0;
}
else{
    A = 0;
    B = 0;

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

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

#include <bits/stdc++.h>
using namespace std;
 
 
int main(){
  int A, B, K;
  cin >> A >> B >> K;
  int tmp=min(A, K);
  A-=tmp;
  K-=tmp;
  tmp=min(B, K);
  B-=K;
  k-=tmp;
  cout << A << " " << B << endl;
  return 0;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'k' was not declared in this scope
   13 |   k-=tmp;
      |   ^
Language: C++

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

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

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

import java.util.*;
public 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();
    long L =Math.max(A-K,0);
    long R;
    if(L=0){R =B+A-K;}else{R =B;};
    System.out.println( L +" "+R );
  }
}

Compiler output:
Main.java:10: error: incompatible types: long cannot be converted to boolean
    if(L=0){R =B+A-K;}else{R =B;};
        ^
1 error
Language: Java

import java.util.*;
public 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();
    long L =Math.max(A-K,0);
    long R;
    if(L=0;){R =B+A-K;}else{R =B;};
    System.out.println( L +" "+R );
  }
}

Compiler output:
Main.java:10: error: ')' expected
    if(L=0;){R =B+A-K;}else{R =B;};
          ^
Main.java:10: error: illegal start of expression
    if(L=0;){R =B+A-K;}else{R =B;};
           ^
Main.java:10: error: 'else' without 'if'
    if(L=0;){R =B+A-K;}else{R =B;};
                       ^
3 errors
Language: Java

import java.util.*;
public 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();
    long L =Math.max(A-K,0);
    long R;
    if(L=0){R =B+A-K;}else{R =B;}
    System.out.println( L +" "+R );
  }
}

Compiler output:
Main.java:10: error: incompatible types: long cannot be converted to boolean
    if(L=0){R =B+A-K;}else{R =B;}
        ^
1 error
Language: Java

import java.util.*;
public 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();
    int L =Math.max(A-K,0);
    int R =B-L;
    System.out.println( L +""+R )
  }
}

Compiler output:
Main.java:10: error: ';' expected
    System.out.println( L +""+R )
                                 ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i, n) for(int i = 0; i < n; i++)
#define all(a) a.begin(), a.end()
#define P pair<int, int>
#define F first
#define S second
#define mod 1000000007
#define INF 40000000000000000
int dx8[8] = {-1, 0, 1, 1, 1, 0, -1, -1};
int dy8[8] = {1, 1, 1, 0, -1, -1, -1, 0};
int dx4[4] = {-1, 0, 1, 0};
int dy4[4] = {0, -1, 0, 1};
signed main(void) {
    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: In function 'int main()':
a.cc:18:25: error: expected primary-expression before '<<' token
   18 |     else if(K<A+B)cout<<<<0<<' '<<B-(K-A)<<endl;
      |                         ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
typedef long long ll;
int main(){
  ll a,b,k;
  cin>>a>>b>>k;
    if(a>=k){
      a=a-k;
    }
    else if(a<=k){
      a=0;
      if(b+a>=k){
        b=b-k+);
      }
      else{
        b=0;
      }
   }
  cout<<a<<' '<<b<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: expected primary-expression before ')' token
   14 |         b=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(){
  int64_t a,b,k;
  cin>>a>>b>>k;
    if(a>=k){
      a-=k;
    }
    else if(b+a>=k))
      b-=(k-a);
    else
      a=0;b=0;
  }
  cout<<a<<" "<<b<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected primary-expression before ')' token
   10 |     else if(b+a>=k))
      |                    ^
a.cc: At global scope:
a.cc:15:3: error: 'cout' does not name a type
   15 |   cout<<a<<" "<<b<<endl;
      |   ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

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

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

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
  int64_t a,b,k;
  cin>>a>>b>>k;
  rep(i,k){
    if(a>0){
      a--;
    }
    else if(b>0)
      b--;
    else
      continue;
  }
  cout<<aLL<<" "<<bLL<<endl;
}

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

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
  long long a,b,k;
  cin>>a>>b>>k;
  rep(i,k){
    if(a>0){
      a--;
    }
    else if(b>0)
      b--;
    else
      continue;
    }
  }
  cout<<a<<' '<<b<<endl;
}

Compiler output:
a.cc:17:3: error: 'cout' does not name a type
   17 |   cout<<a<<' '<<b<<endl;
      |   ^~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

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

int main(){
  long long a, b, k;
  cin >> a >> b >> k;
  cout << max(0, a + b - k) << endl;
}

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

#include <bits/stdc++.h>

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: expected ';' before ':' token
   11 |     cout << C << B << endl:
      |                           ^
      |                           ;