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

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

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

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

int main() {
  int a,b,c;
  cin >> a >> b >> c;
  cout << max(a-c,0) << min(a+b-c.b);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:35: error: request for member 'b' in 'c', which is of non-class type 'int'
    8 |   cout << max(a-c,0) << min(a+b-c.b);
      |                                   ^
Language: C++

#include <iostream>
using namespace std;

int main(){

  long long a,b,k;
  cin >> a >> b >> k;
  
  k-=a;
  a=max(0,-k);
  b=max(0,b-max(k,0));
  
  cout << a << ' ' << b << endl;
  return 0;
}

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

#include <bits/stdc++.h>

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

using namespace std;

using ll = long long;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll a, b, k;
  cin >> a >> b >> k;
  cout << max(0LL, a - k) << ' ' << max(0LL, min(b, a + b - k);
  return 0;
}


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

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

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

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

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

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

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | int64_t main() {
      | ^~~~~~~
Language: C++

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

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

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

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

using namespace std;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

int dx[] = { 0, 1, -1, 0, 1, -1, 1, -1 };  // i<4:4way i<8:8way
int dy[] = { 1, 0, 0, -1, 1, -1, -1, 1 };

const ll mod = 1e9 + 7;
const ll INF = -1 * ((1LL << 63) + 1);
const int inf = -1 * ((1 << 31) + 1);

int main(void){
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(20);
    ll a,b,k;
    cin >> a >> b >> k;
    ll r = min(a,k);
    cout << a - r << " " << max(0,b - (k - r)) << endl;
}

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

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

Compiler output:
main.c:1:1: error: expected identifier or '(' before 'if'
    1 | if(a >= 1) {
      | ^~
main.c:3:7: error: expected identifier or '(' before 'else'
    3 |     } else if(b >= 1) {
      |       ^~~~
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 cnt=1;
      while(cnt<=k){
         if(A>=1){
            A--;
         }else if(B>=1){
            B--;
         }
         cnt++;
      }
      System.out.print(A);
      System.out.print(B);
   }
}


Compiler output:
Main.java:9: error: cannot find symbol
      while(cnt<=k){
                 ^
  symbol:   variable k
  location: class Main
1 error
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:9: error: expected ';' before 'printf'
   11 |    B=B-K
      |         ^
      |         ;
   12 |    printf("%d %d",A,B);
      |    ~~~~~~
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 count = 0;      
      while(count < k){
        if(a>=1){
          a-=1;
          k-=1;
        }else if(b>=1){
          b-=1;
          k-=1;
        }else{
          k-=1;
        }        		
	}
}


Compiler output:
Main.java:20: error: reached end of file while parsing
}
 ^
1 error
Language: C++


#include<bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define REP(i,a,b) for(inti=a;i<=b;i++)

typedef long long int ll;
typedef vector<int>vi;
typedef pair<int,int>pi;



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

cout<<max(0LL,a-k)<<" "<<max(b-(max(0LL,k-a)),0)<<endl;
 return 0;
}


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

      if(K <= A){
       System.out.println(A - K + " " + B);

      }else if(K <= A + B){
       System.out.println(0 + " " + B - (K - A));

      }else{
        A = 0; B = 0;
       System.out.println(A + " " + B);

      }
   }
 }

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

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


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

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

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

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

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

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

Compiler output:
a.cc: In function 'int mmain()':
a.cc:12:1: warning: no return statement in function returning non-void [-Wreturn-type]
   12 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

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

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b,k=map(int,input().split())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a,b,k=map(int,input().split())
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'k' [-Wimplicit-int]
    1 | a,b,k=map(int,input().split())
      |     ^
main.c:1:7: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 | a,b,k=map(int,input().split())
      |       ^~~
main.c:1:11: error: expected expression before 'int'
    1 | a,b,k=map(int,input().split())
      |           ^~~
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if a>=k:a=a-k:
      | ^~
Language: C

a,b,k=map(int,input().split())
if a>=k:a=a-k:
else:
    a=0
    b=0
print(a,b)

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b,k=map(int,input().split())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a,b,k=map(int,input().split())
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'k' [-Wimplicit-int]
    1 | a,b,k=map(int,input().split())
      |     ^
main.c:1:7: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 | a,b,k=map(int,input().split())
      |       ^~~
main.c:1:11: error: expected expression before 'int'
    1 | a,b,k=map(int,input().split())
      |           ^~~
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if a>=k:a=a-k:
      | ^~
Language: Java

import java.util.Scanner;

public class ABC149B {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

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

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

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

Compiler output:
Main.java:3: error: class ABC149B is public, should be declared in a file named ABC149B.java
public class ABC149B {
       ^
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();

      while(N > 0){
       if(A > 0){
        A--; K--;
       }else{
        B--; K--;
       }
 
       if(A == 0 && B == 0){
        K--;
       }
      }

      System.out.print(A);
      System.out.print(B);
   }
 }

Compiler output:
Main.java:10: error: cannot find symbol
      while(N > 0){
            ^
  symbol:   variable N
  location: class Main
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 N = sc.nextInt();

      while(N > 0){
       if(A > 0){
        A--; N--;
       }else{
        B--; N--;
       }
 
       if(A = 0 && B = 0){
        N--;
       }
      }

      System.out.print(A);
      System.out.print(B);
   }
 }

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

#include<stdio.h>
void main()
{
  int a,b,k;
  scanf("%d %d %d",&a,&b,&k);
  if(a<=k)
  {
  for(i=1;i<=k;i++)
      {
          if(a-i==0)
         {
           r=i;
           break;
         }
       }
    printf("%d %d",0,b-k-r);
  }
  else
    printf("%d %d",a-k,b);
}
  

Compiler output:
main.c: In function 'main':
main.c:8:7: error: 'i' undeclared (first use in this function)
    8 |   for(i=1;i<=k;i++)
      |       ^
main.c:8:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:12: error: 'r' undeclared (first use in this function)
   12 |            r=i;
      |            ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: expected '(' before 'a'
   17 |   else if a = b = 0;
      |           ^
      |           (
Language: C++

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

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
	long long int a,b,k;
	cin>>a>>b>>k;
	if(a==k){
		cout<<"0 "<<b;
	}
	else{
		if(a<k){
			cout<<"0 "<<max((b-k+a),0);
		}
		else{
			cout<<(a-k)<<" "<<b;
		}
	}
	return 0;
}

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

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

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

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

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

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

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | ll main()
      | ^~
a.cc: In function 'int main()':
a.cc:13:18: error: expected ';' before 'cout'
   13 |         else cout cout << 0 << " " << 0 << endl;
      |                  ^~~~~
      |                  ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'll' was not declared in this scope
    5 |         ll a, b, k;
      |         ^~
a.cc:6:32: error: 'a' was not declared in this scope
    6 |         scanf("%lld%lld%lld", &a, &b, &k);
      |                                ^
a.cc:6:36: error: 'b' was not declared in this scope
    6 |         scanf("%lld%lld%lld", &a, &b, &k);
      |                                    ^
a.cc:6:40: error: 'k' was not declared in this scope
    6 |         scanf("%lld%lld%lld", &a, &b, &k);
      |                                        ^
a.cc:7:11: error: expected ';' before 'ans'
    7 |         ll ans = 0;
      |           ^~~~
      |           ;
Language: C++

#include <iostream>
using namespace std;

int main() {
	unsigned int A,B,K;
  	cin >> A,B,K;
  	for(int i=0; i<K; i++){
      if(A >= 1){
        A -=1;
      }elif(B >= 1){
        B -=1;
      }
    }
  	cout << A << B;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'elif' was not declared in this scope
   10 |       }elif(B >= 1){
      |        ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
#define FOR(i,x,n) for(int i=x; i<(n); i++)
#define ALL(n) begin(n),end(n)
#define MOD (1000000007)
#define INF (1e9)
#define INFL (1e18)

typedef long long ll;
typedef unsigned int ui;
typedef unsigned long long ull;
template<class T>using arr=vector<vector<T>>;
template<class T>void pr(T x){cout << x << endl;}
template<class T>void prvec(vector<T>& a){rep(i, a.size()-1){cout << a[i] << " ";} pr(a[a.size()-1]);}
template<class T>void prarr(arr<T>& a){rep(i, a.size()) if(a[i].empty()) pr(""); else prvec(a[i]);}
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int main()
{
    ll a, b, k; cin >> a >> b >> k;
    if(k<=a){
        a -= k;
    }else{
        a = 0;
        k -= a;
        b = max(b-k, 0);
    }
    printf("%lld %lld\n", a, b);
    return 0;}

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

#include<stdio.h>

int main(){
   long A,B,K;
   scanf("%ld %ld %ld",&A,&B,&K);
 

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

      }else{
         A=0;
         B=0;

      }

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

#include<stdio.h>

int main(void){

int a,b,k;

scanf("%d %d %d",&a,&b,&k);

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

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

return 0;
}

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

#include <bits/stdc++.h>
#include <math.h>
#include <vector>
#include <queue>
#include <iomanip>
#include <string>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep_1 (i,j,n) for(int i=j;i<n;i++)
typedef long long ll;
typedef long l;
const ll l_INF = 101010101000;
const int INF = 1010101010;
const int dx[4] = {-1,0,1,0};
const int dy[4] = {0,-1,0,1};
using vi = vector<int>;
using vvi = vector<vi>;
using pii = pair<int,int>;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:3: error: expected initializer before 'cin'
   23 |   cin>>a>>b>>k;
      |   ^~~
a.cc:24:9: error: 'k' was not declared in this scope
   24 |   if(a>=k) a-=k;
      |         ^
Language: Java

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

        long A = scanner.nextLong();;
        long B = scanner.nextLong();;
        long K = scanner.nextLong();;
 
        while(!(K == 0L)){
            if(!(A == 0L)){
                K = K - A;
                if(K >= 0L){
                    A = 0L;
                }
            }else{
                if(B >= K){
                    B = B - K;
                    k = 0L;
                }else{
                    B = 0L;
                    K = 0L;
                }
            }
          	K--;
        }
        System.out.print(A);
      	System.out.print(B);
	}
}

Compiler output:
Main.java:19: error: cannot find symbol
                    k = 0L;
                    ^
  symbol:   variable k
  location: class Main
1 error
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 C = sc.nextLong();
        A -= K;
        if(A<0) {
            B += A;
            A = 0;
        }
        if(B < 0) {
            B = 0;
        }
        System.out.println(A+" "+B);
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
        A -= K;
             ^
  symbol:   variable K
  location: class Main
3 errors
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 C = sc.nextLong();
        A -= K;
        if(A<0) {
            B += A;
            A = 0;
        }
        if(B < 0) {
            B = 0;
        }
        System.out.println(A);
        System.out.println(B);
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
        A -= K;
             ^
  symbol:   variable K
  location: class Main
3 errors
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 C = sc.nextLong();
        A -= K;
        if(A<0) {
            B += A;
            A = 0;
        }
        if(B < 0) {
            B = 0;
        }
        System.out.println(a);
        System.out.println(b);
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
        A -= K;
             ^
  symbol:   variable K
  location: class Main
Main.java:15: error: cannot find symbol
        System.out.println(a);
                           ^
  symbol:   variable a
  location: class Main
Main.java:16: error: cannot find symbol
        System.out.println(b);
                           ^
  symbol:   variable b
  location: class Main
5 errors
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 C = sc.nextLong();
        A -= K;
        if(A<0) {
            B += A;
            A = 0;
        }
        if(B < 0) {
            B = 0;
        }
        System.out.println(a);
        System.out.println(b);
    }

Compiler output:
Main.java:17: error: reached end of file while parsing
    }
     ^
1 error
Language: C

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long A = sc.nextLong();
        long B= sc.nextLong();
        long C = sc.nextLong();
        A -= K;
        if(A<0) {
            B += A;
            A = 0;
        }
        if(B < 0) {
            B = 0;
        }
        System.out.println(a);
        System.out.println(b);
    }

Compiler output:
main.c:1:1: error: unknown type name 'public'
    1 | public class Main {
      | ^~~~~~
main.c:1:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    1 | public class Main {
      |              ^~~~
Language: C++

#include <iostream>
 using namespace std;

 int main(){
 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;
 }

Compiler output:
a.cc:9:19: warning: multi-character character constant [-Wmultichar]
    9 |  cout << a - k << '␣' << b <<endl;
      |                   ^~~
a.cc:11:15: warning: multi-character character constant [-Wmultichar]
   11 |  cout << 0 << '␣' << b - (k-a) <<endl;
      |               ^~~
a.cc:13:15: warning: multi-character character constant [-Wmultichar]
   13 |  cout << 0 << '␣' << 0 <<endl;
      |               ^~~
a.cc: In function 'int main()':
a.cc:14:3: error: expected '}' at end of input
   14 |  }
      |   ^
a.cc:4:12: note: to match this '{'
    4 |  int main(){
      |            ^
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define _GLIBCXX_DEBUG
using namespace std;
int main() {

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'int_64t' was not declared in this scope; did you mean 'int64_t'?
    7 |   int_64t A,B,K;cin>>A>>B>>K;
      |   ^~~~~~~
      |   int64_t
a.cc:7:22: error: 'A' was not declared in this scope
    7 |   int_64t A,B,K;cin>>A>>B>>K;
      |                      ^
a.cc:7:25: error: 'B' was not declared in this scope
    7 |   int_64t A,B,K;cin>>A>>B>>K;
      |                         ^
a.cc:7:28: error: 'K' was not declared in this scope
    7 |   int_64t A,B,K;cin>>A>>B>>K;
      |                            ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: no matching function for call to 'max(int, long long int)'
   14 |         cout<<0<<' '<<max(0,B-(K-A))<<endl;
      |                       ~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/bits/specfun.h:43,
                 from /usr/include/c++/14/cmath:3906,
                 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:14:26: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   14 |         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:4:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:14:26: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   14 |         cout<<0<<' '<<max(0,B-(K-A))<<endl;
      |                       ~~~^~~~~~~~~~~
Language: C++

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

#define ll long long

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

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

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

int main(){
  long long A,B,K;
  cin>>A>>B>>K;
  cout<<max(A-K,0LL)<<' '<<max(B-max(0LL,K-A),0)<<endl;
}

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

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (int)(n); ++i)
#define ll long long
#define be(v) v.begin(), v.end()
ll INF = 1000100100010;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:37: error: 'ebdl' was not declared in this scope
   12 |                 cout << a-k << b << ebdl;
      |                                     ^~~~
Language: C++

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (int)(n); ++i)
#define ll long long
#define be(v) v.begin(), v.end()
ll INF = 1000100100010;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else a = 0; k -= a;
      |         ^~~~
a.cc:14:9: error: 'else' without a previous 'if'
   14 |         else cout << 0 << 0 << endl; return 0;
      |         ^~~~