criyle/codenet-compile-errors huggingface dataset:
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:1:18: error: missing terminating > character
    1 | #include<iostream
      |                  ^
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: 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: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
#define ROOP(i, N) for(int i=0; i<N; i++)
#define RVROOP(i, N) for(int i=N; i>=0; i--)
#define INF 1e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
int main() {
  ll A,B,K; cin>>A>>B>>K;
  if(A>K){
    A=A-K;
  }
  else{
    B=max(B-(K-A), 0);
    A=0;
  }
  cout<<A<<" "<<B<<endl;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:38:23: error: expected primary-expression before '<<' token
   38 |         cout << a <<  << b << endl;
      |                       ^~
Language: C++

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

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'mamespace'
    2 | using mamespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |  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:15:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |  cout<<a<<" "<<b;
      |  ^~~~
      |  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  long A, B, K;
  cin>>A>>B>>K;
  if(A>=K){
    cout<<(A-K)<<" "<<B;
    return 0;
  }else if(B>(K-A)){
    cout<<0<<" "<<max(0,(B-(K-A)));
    return 0;
  }else{
    cout<<0<<" "<<0;
    return 0;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: no matching function for call to 'max(int, long int)'
   10 |     cout<<0<<" "<<max(0,(B-(K-A)));
      |                   ~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:10:22: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long int')
   10 |     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
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
int 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: Java

import java.util.Scanner;
public class MainB {
    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(a >= k){
            print(a-k,b);
        }else if(a+b >= k){
            print(0,b-(k-a));
        }else{
            print(0,0);
        }
    }
    public static void print(long a, long b){
        System.out.println(a+" "+b);
    }
}

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

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

ll gcd(ll a, ll b) {
	if(a==0||b==0) return 0;
	if(a<b) swap(a,b);
	ll tmp = a%b;
	while(tmp!=0) {
		a = b;
		b = tmp;
		tmp = a%b;
	}
	return b;
}

ll fac(ll x) {
	ll f=1;
	for(ll i=2; i<x; i++) {
		f*=i;
	}
	return f;
}

ll npr(ll n, ll r) {
	ll result=1;
	for(ll i=r+1; i<=n; i++) result*=i;
	return result;
}

bool IsPrime(ll num)
{
    if (num < 2) return false;
    else if (num == 2) return true;
    else if (num % 2 == 0) return false; // 偶数はあらかじめ除く

    double sqrtNum = sqrt(num);
    for (ll i = 3; i <= sqrtNum; i += 2)
    {
        if (num % i == 0)
        {
            // 素数ではない
            return false;
        }
    }

    // 素数である
    return true;
}

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

Compiler output:
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: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = long long int; _Compare = long long int]':
a.cc:53:36:   required from here
   53 |         cout << max(0LL,a-k) << " " << min(0LL,b,a+b-k) << endl;
      |                                        ~~~^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
Language: C

#include<stdio.h>

int main()
{
  long long int cookieA,cookieB,k,i;
  
  scanf("%lld%lld%lld",&cookieA,&cookieB,&k);
  
  if(k<cookieA)
  {
    printf("%lld %lld",(cookieA-k),cookieB);
  }
  else
  {
    printf("0 %lld",(cookieB-(k-cookieA));
  }
  return 0;
}
          

Compiler output:
main.c: In function 'main':
main.c:15:42: error: expected ')' before ';' token
   15 |     printf("0 %lld",(cookieB-(k-cookieA));
      |           ~                              ^
      |                                          )
main.c:15:43: error: expected ';' before '}' token
   15 |     printf("0 %lld",(cookieB-(k-cookieA));
      |                                           ^
      |                                           ;
   16 |   }
      |   ~
Language: C++

#include<iostream
#include<string>
using namespace std;
int main(){
int 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:1:18: error: missing terminating > character
    1 | #include<iostream
      |                  ^
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++

#include <bits/stdc++.h> //C++の標準ライブラリを一行で一括でインクルードする
#include <math.h> //数学関数と数学定数を利用する
#define rep(i,n) for (int i = 0; i < (n); i++)
#define PI 3.141592653589793
using namespace std;
typedef long long ll;
template<class T> void chmax(T &a,T b) { if (a<b) a=b;}
template<class T> void chmin(T &a,T b) { if (a>b) a=b;}
int gcd(int a, int b){//ユークリッドの互除法
  if (a < b) gcd(b,a); //aの方がbよりでかいのが前提
  if (b == 0) return a; //aをbで割り切れたらreturn
  else gcd(b, a % b);
}
const int INF = 1<<30;
const int MOD = 1000000007;
int dx[4] = {0,0,-1,1};
int dy[4] = {-1,1,0,0};

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


Compiler output:
a.cc: In function 'int main()':
a.cc:24:12: error: no matching function for call to 'max(ll, int)'
   24 |     b = max(b-k,0);
      |         ~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:24:12: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   24 |     b = max(b-k,0);
      |         ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:24:12: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   24 |     b = max(b-k,0);
      |         ~~~^~~~~~~
a.cc:25:11: error: expected '(' before '{' token
   25 |   }else if{
      |           ^
      |           (
a.cc: In function 'int gcd(int, int)':
a.cc:12:11: warning: control reaches end of non-void function [-Wreturn-type]
   12 |   else gcd(b, a % b);
      |        ~~~^~~~~~~~~~
Language: C++

k=input().split()
a=int(k[0])
b=int(k[1])
c=int(k[2])
if(a>c):
    a=a-c
else:
    
    b=(b+a)-c
    a=0
print(a,b)    


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

#include<bits/stdc++.h>
using namespace std;
int main(){
    long long a, b, k;
    scanf("%lld %lld %lld", &a, &b, &k);
    if(k <= a){
        printf("%lld %lld\n", a-k, b);
        return 0;
    }
    else if(k <= (a+b)){
        cout << a;
        printf("0 %lld\n", a+b-k);
        return 0;
    }
    else{
        cout << "hey";
        printf("0 0\n");
        return 0;
    }

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

                        /*IT'S A VERY LONG ROAD BUT IT WILL BE WORTH IT*/
#include<bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define pb push_back 
#define all(a) a.begin(),a.end()
#define lb lower_bound
#define ub upper_bound
#define pii pair<int,int>
#define ld long double
#define int long long int
signed main() 
{ 
    fast;
    int a,b,k;
    cin>>a>>b>>k;
    if(k>=b)
    {
        cout<<0<<" ";
        k-=b;
        cout<<max(int(0),a-k);
    }
    else
    {
        cout<<b-k<<" "<<a;
    }
} 

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

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

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:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> a >> b >> k;
      |   ^~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << 0  << " " << 0 << endl;
      |     ^~~~
a.cc:7:31: error: 'endl' was not declared in this scope
    7 |     cout << 0  << " " << 0 << endl;
      |                               ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << 0 << " " << b - (k-a) << endl;
      |     ^~~~
a.cc:10:38: error: 'endl' was not declared in this scope
   10 |     cout << 0 << " " << b - (k-a) << endl;
      |                                      ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << a-k << " " << b << endl;
      |     ^~~~
a.cc:13:32: error: 'endl' was not declared in this scope
   13 |     cout << a-k << " " << b << endl;
      |                                ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
template <class A, class B> inline bool chmax(A &a, const B &b) { return b > a && (a = b, true); }
template <class A, class B> inline bool chmin(A &a, const B &b) { return b < a && (a = b, true); }
typedef long long ll;
typedef vector<int> vint;
typedef pair<int, int> pint;
typedef vector<long long> vlong;
#define vpush(a,x) a.push_back(x);
#define rep(i, n) REP(i, 0, n)
#define all(v) v.begin(), v.end()
#define REP(i, x, n) for(int i = x; i < n; i++)
signed main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    ll a,b,k;
    cin>>a>>b>>k;
    if(a-k<=0){
      	if(b-(k-a)>=0){
        cout<<0<<' '<<b-(k-a);
        }
      	else{
          cout<<0<<' '<<0;
    }
    else{
        cout<<a-k<<' '<<b;
    }
    return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:5: error: expected '}' before 'else'
   25 |     else{
      |     ^~~~
a.cc:18:15: note: to match this '{'
   18 |     if(a-k<=0){
      |               ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<iomanip>
#include<math.h>
#include<complex>
#include<queue>
#include<deque>
#include<stack>
#include<map>
#include<set>
#include<bitset>
#include<functional>
#include<assert.h>
#include<numeric>

using namespace std;

#define REP(i,m,n) for(int i=(int)(m) ; i < (int) (n) ; ++i )
#define rep(i,n) REP(i,0,n)

using ll = long long;
const int inf=1e9+7;
const ll longinf=1LL<<60 ;
const ll mod=1e9+7 ;

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

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

    ll diff = a-k;
    ll res_a, res_b;
    if (diff < 0) {
        res_a = 0;
        res_b = min(b + diff, 0);
    } else {
        res_a = diff;
        res_b = b;
    }
    cout << res_a << " " << res_b << "\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:20: error: no matching function for call to 'min(ll, int)'
   39 |         res_b = min(b + diff, 0);
      |                 ~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:39:20: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   39 |         res_b = min(b + diff, 0);
      |                 ~~~^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281: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:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:39:20: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   39 |         res_b = min(b + diff, 0);
      |                 ~~~^~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef unsigned long long uwl;

int main() {
#ifdef  DEBUG
  ifstream in("input.txt");
  cin.rdbuf(in.rdbuf());
#endif  // for local.
  uwl a, b, k;
  cin a >> b >> k;
  a -= k;
  k = a > k ? 0 : a-k;
  b = b < k ? 0 : b-k;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: expected ';' before 'a'
   12 |   cin a >> b >> k;
      |      ^~
      |      ;
Language: C++

#include<iostream>
#include <cassert>
#include <algorithm>
#include <functional>
using namespace std;
int main(){
  long A, B, K;
  cin>>A>>B>>K;
  if(A>=K){
    cout<<(A-K)<<" "<<B;
    return 0;
  }else{
    cout<<0<<" "<<max(0,(B-(K-A)));
    return 0;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: no matching function for call to 'max(int, long int)'
   13 |     cout<<0<<" "<<max(0,(B-(K-A)));
      |                   ~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:13:22: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long int')
   13 |     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,
                 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:13:22: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   13 |     cout<<0<<" "<<max(0,(B-(K-A)));
      |                   ~~~^~~~~~~~~~~~~
Language: C++

// B

#include <bits/stdc++.h>
using ll = long long;
using namespace std;
ll mod=1e9+7;
#define pa(x,n) for(ll i=0;i<n;i++){cout<<(x[i])<<" \n"[i==n-1];};

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected ';' before '<' token
    7 |   for(int i = 0, i < K, i++){
      |                   ^~
      |                   ;
a.cc:7:20: error: expected primary-expression before '<' token
    7 |   for(int i = 0, i < K, i++){
      |                    ^
a.cc:7:28: error: expected ';' before ')' token
    7 |   for(int i = 0, i < K, i++){
      |                            ^
      |                            ;
Language: Java

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 t = A;
        long a = B;

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

        System.out.println(t);
        System.out.println(a);
    }
}


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;
typedef long long int ll;
int main()
{
    ll a,b,k;
    cin>>a>>b>>k;
    if(a<k)
    {
        cout<<0<<" "<<max(0,(a+b-k))<<endl;
    }
    else
    {
        cout<<(a-k)<<" "<<b<<endl;
    }
    return 0;
}


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

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

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

    if (a < k) {
        k -= a;
        a = 0;
    } else {
        a -= k;
        k = 0;
    }

    b = max(0, b - k);

    printf("%lld %lld\n", a, b);
    return 0;
}


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

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

using ll=long long;

template <typename T>
T in(){
    T x;
    cin >> x;
    return x;
}

template <typename T,typename U>
void forin(T* x,U n){
    for (U i=0;i<n;i++) cin >> x[i];
}

template <typename T>
int div1(T x) {
    return x%1000000007;
}

main(){
    ll a=in<ll>(),v=in<ll>(),k=in<ll>();
    for (ll i=0;i<k;i++){
        if (a>0) a--;
        else if (b>0) b--;
    }
    cout << a << b << endl;
}

Compiler output:
a.cc:24:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   24 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:28:18: error: 'b' was not declared in this scope
   28 |         else if (b>0) b--;
      |                  ^
a.cc:30:18: error: 'b' was not declared in this scope
   30 |     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 = 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: Java

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

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

Compiler output:
Main.java:1: error: illegal character: '#'
#include<bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<bits/stdc++.h>
        ^
Main.java:5: error: not a statement
  long long A,B,K;
  ^
Main.java:6: error: not a statement
  cin >> A >> B >> K;
                ^
Main.java:7: error: not a statement
  long long taka,aoki;
  ^
Main.java:17: error: not a statement
  cout << taka << " " << aoki << endl;
                              ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: ';' expected
  long long A,B,K;
      ^
Main.java:7: error: ';' expected
  long long taka,aoki;
      ^
9 errors
Language: C

# -*- coding: utf-8 -*-
# abc149/abc149_b
import sys

s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [i2s() for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))

def main():
    A, B, K = i2nn()
    if (A > K):
        print(A - K, B)
    else:
        print(0, B + A - K)
    return

main()


Compiler output:
main.c:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
main.c:2:3: error: invalid preprocessing directive #abc149
    2 | # abc149/abc149_b
      |   ^~~~~~
main.c:3:1: error: unknown type name 'import'
    3 | import sys
      | ^~~~~~
main.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 's2nn'
    5 | s2nn = lambda s: [int(c) for c in s.split(' ')]
      | ^~~~
Language: Java

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

      long a = sc.nextLong();
      long b = sc.nextLong();
      long k = sc.nextLong();


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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: expected primary-expression before '<<' token
   16 |   cout<<a<< <<b<<endl;
      |             ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: expected ';' before 'return'
    8 |         else cout<<"0 "<<a+b-k;6
      |                                 ^
      |                                 ;
    9 |         return 0;
      |         ~~~~~~
Language: C++


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


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

#ifndef BZ
#pragma GCC optimize "-O3"
#endif
#include <bits/stdc++.h>
#define FASTIO ios_base::sync_with_stdio(false),cin.tie(0),cout.tie(0);
#define rep(i, l, r) for (ll i = (l); i < (r); ++i)
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pli pair<ll, int> 
#define pdd pair<ld, ld> 
#define pb push_back
#define reset(x,v) memset(x,v,sizeof(x))
#define mod 1000000007
using namespace std;

int main(){
    FASTIO
    ll a, b, k;
  cin >> a >> b >> k;
  ll t = min(a, k)
  a -= t;
  k -= t;
  t = min(b, k)
  b -= t;
  b -= t;
    cout << a << " " << b;
     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:3: error: expected ',' or ';' before 'a'
   24 |   a -= t;
      |   ^
a.cc:26:16: error: expected ';' before 'b'
   26 |   t = min(b, k)
      |                ^
      |                ;
   27 |   b -= t;
      |   ~
Language: C++

#inculde <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 << ' ' << A+B-K;
 }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope
    5 |  cin >> A >> B >> K;
      |  ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inculde <bits/stdc++.h>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << A-K << ' ' << B;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout << 0 << ' ' << A+B-K;
      |   ^~~~
a.cc:9:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> // Common file
#include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update
#define IO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
 
using namespace std;
using namespace __gnu_pbds;
using lli = long long int;
 
template<typename key> using ordered_set = tree <key, null_type, less<key>, rb_tree_tag, tree_order_statistics_node_update>;
 
int main () {
   IO;
   lli a, b, k;
   cin a >> b >> k ;
   if(a >= k) {
	  cout << a - k << " " << b;
   }
   else 
	  cout << k -  a << " ";
   k-=a;
   cout << abs(k-b);
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:7: error: expected ';' before 'a'
   15 |    cin a >> b >> k ;
      |       ^~
      |       ;
Language: C++

//   _/                _/                 _/_/_/   _/
//_/_/_/_/   _/_/   _/_/_/_/   _/_/    _/       _/_/
// _/     _/    _/   _/     _/    _/  _/_/_/     _/
//_/     _/    _/   _/     _/    _/  _/    _/   _/
// _/_/   _/_/       _/_/   _/_/      _/_/     _/
#include<iostream>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<set>
#include<map>
#include<queue>
#include<vector>
using namespace std;
typedef long long ll;
const int MOD=1e9+7;
const double pi=3.14159265358979323846;
const int inf=1e9;
const ll INF=5e18;
typedef pair<int,int> P;
int main() {
  cin.tie(0),cout.tie(0);
  ios::sync_with_stdio(false);
  ll 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:30:28: error: no matching function for call to 'max(int, ll)'
   30 |     cout << 0 << " " << max(0,b-(k-a)) << 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:6:
/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:30:28: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'll' {aka 'long long int'})
   30 |     cout << 0 << " " << max(0,b-(k-a)) << 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,
                 from a.cc:7:
/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:30:28: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   30 |     cout << 0 << " " << max(0,b-(k-a)) << endl;
      |                         ~~~^~~~~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <math.h>

using namespace std;

int main(void)
{
    long long int sum=0,range=0,a1,b1,a2,b2;
    double ans=0.0,half;
    long long int m,n,o,i,j,k=0,money;
    long long int a1,a2,a3;
    //vector <int> v;
    //float f,g,h;
    //int c,d,big=0;
    string s,s1;
    cin>>a1>>a2>>n;
    for(i=0;i<n;i++)
    {
        if(a1>0) a1--;
        else
        {
            if(a2>0) a2--;
            else break;
        }
    }
    cout<<a1<<" "<<a2;
    return 0;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: redeclaration of 'long long int a1'
   12 |     long long int a1,a2,a3;
      |                   ^~
a.cc:9:33: note: 'long long int a1' previously declared here
    9 |     long long int sum=0,range=0,a1,b1,a2,b2;
      |                                 ^~
a.cc:12:22: error: redeclaration of 'long long int a2'
   12 |     long long int a1,a2,a3;
      |                      ^~
a.cc:9:39: note: 'long long int a2' previously declared here
    9 |     long long int sum=0,range=0,a1,b1,a2,b2;
      |                                       ^~