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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:8: error: expected expression before '>' token
    6 |   if(A=>N){
      |        ^
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
#include<map>
#include<string>
#include<set>
#include<vector>
using namespace std;

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

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


Compiler output:
a.cc: In function 'int solve()':
a.cc:15:28: error: no matching function for call to 'max(long long int, int)'
   15 |     cout << 0 << " " << max(b-(k-a), 0)<< endl;
      |                         ~~~^~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:15:28: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   15 |     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,
                 from a.cc:2:
/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:28: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   15 |     cout << 0 << " " << max(b-(k-a), 0)<< endl;
      |                         ~~~^~~~~~~~~~~~
a.cc:17:1: warning: no return statement in function returning non-void [-Wreturn-type]
   17 | }
      | ^
Language: C++

#include <bist/stdc++.h>

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:1:10: fatal error: bist/stdc++.h: No such file or directory
    1 | #include <bist/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
    //freopen("input.txt","r",stdin);
    //freopen("output.txt","w",stdout);
  	long long t,a,k;
	while(cin>>t>>a>>k){

        if(k<=t)cout<<(t-k)<<" "<<a<<endl;
        else if(k<=(t+a)) cout<<"0 "<<a-(k-t))<<endl;
        else cout<<"0 0"<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:46: error: expected ';' before ')' token
   11 |         else if(k<=(t+a)) cout<<"0 "<<a-(k-t))<<endl;
      |                                              ^
      |                                              ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:29: error: expected primary-expression before '<<' token
    6 |         if(k<=t)cout<<(t-k)><<" "<<a<<endl;
      |                             ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: error: expected primary-expression before '<<' token
    6 |         if(k<=t)cout<<(t-k><<" "<<a<<endl;
      |                            ^~
a.cc:6:42: error: expected ')' before ';' token
    6 |         if(k<=t)cout<<(t-k><<" "<<a<<endl;
      |                       ~                  ^
      |                                          )
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: no matching function for call to 'max(int, long long int)'
    9 |                 b=max(0,b-(c-a));
      |                   ~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:9:22: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
    9 |                 b=max(0,b-(c-a));
      |                   ~~~^~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:9:22: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    9 |                 b=max(0,b-(c-a));
      |                   ~~~^~~~~~~~~~~
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();
        
        for(int i = 0; i < K;i++){
            if(A > 0){
              A--;
        	}else{
              B--;
            }
        System.out.println(A + " " + B);
    }
}

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

#include <iostream>
#include <string>
using namespase std;

int main(){
  long long a, b, n;
  cin >> a >> b >> n;
  cout << (n >= a?0:a - n) << " ";
  n -= a;
  cout << (n >= b?0:b - n);
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namespase'
    3 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> a >> b >> n;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << (n >= a?0:a - n) << " ";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

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


Compiler output:
Main.java:17: error: package Ststem does not exist
    Ststem.out.println(B);  
          ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    long A = nextLong();
    long B = nextLong();
    long K = nextLong();
    
    if(K <= A){
      A -= K;
    }else{
      A = 0;
      B -= (K - A);
      if(B < 0) B = 0;
    }
    System.out.print(A);
    Ststem.out.println(B);  
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    long A = nextLong();
             ^
  symbol:   method nextLong()
  location: class Main
Main.java:6: error: cannot find symbol
    long B = nextLong();
             ^
  symbol:   method nextLong()
  location: class Main
Main.java:7: error: cannot find symbol
    long K = nextLong();
             ^
  symbol:   method nextLong()
  location: class Main
Main.java:17: error: package Ststem does not exist
    Ststem.out.println(B);  
          ^
4 errors
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'longlong' was not declared in this scope
    5 | longlong A,B,C;
      | ^~~~~~~~
a.cc:6:8: error: 'A' was not declared in this scope
    6 | cin >> A >> B >> C;
      |        ^
a.cc:6:13: error: 'B' was not declared in this scope
    6 | cin >> A >> B >> C;
      |             ^
a.cc:6:18: error: 'C' was not declared in this scope
    6 | cin >> A >> B >> C;
      |                  ^
Language: C++

  #include<bits/stdc++.h>
#include <math.h>
using namespace std;
#define rep(i,n) for(ll i=0;i<n;i++)
#define repl(i,l,r) for(ll i=(l);i<(r);i++)
#define per(i,n) for(ll i=n-1;i>=0;i--)
#define lper(i,r,l) for(ll i=r-1;i>=l;i--)
#define fi first
#define se second
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define CST(x) cout<<fixed<<setprecision(x)
using ll=long long;
using vl=vector<ll>;
using vvl=vector<vector<ll>>;
using pl=pair<ll,ll>;
const ll MOD=1000000007;
const ll MOD9=998244353;
const int inf=1e9;
const ll INF=4e18;
const ll dy[4]={1,0,-1,0};
const ll dx[4]={0,-1,0,1};
int main() {
   ll A;
  ll B;
  ll K;
  cin >>A>>B>>K;
  if(K<=A) {
cout <<A-K << " "<< B<< endl;
  }
  else if ((K>A)&&(K<=B+A)) {
cout << 0 << " "<<B-(K-A)<< endl;
  }
  else if {
    cout << 0<<" "<< 0<< endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:11: error: expected '(' before '{' token
   34 |   else if {
      |           ^
      |           (
Language: C++


  #include<bits/stdc++.h>
#include <math.h>
using namespace std;
#define rep(i,n) for(ll i=0;i<n;i++)
#define repl(i,l,r) for(ll i=(l);i<(r);i++)
#define per(i,n) for(ll i=n-1;i>=0;i--)
#define lper(i,r,l) for(ll i=r-1;i>=l;i--)
#define fi first
#define se second
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define CST(x) cout<<fixed<<setprecision(x)
using ll=long long;
using vl=vector<ll>;
using vvl=vector<vector<ll>>;
using pl=pair<ll,ll>;
const ll MOD=1000000007;
const ll MOD9=998244353;
const int inf=1e9;
const ll INF=4e18;
const ll dy[4]={1,0,-1,0};
const ll dx[4]={0,-1,0,1};
int main() {
   ll A;
  ll B;
  ll K;
  cin >>A>>B>>K;
  if(K<=A) {
cout <<A-K << " "<< B<< endl;
  }
  else if ((K>A)&&(K<=B+A)) {
cout << 0 << " "<<B-(K-A)<< endl;
  }
  else if (
    cout << 0<<" "<< 0<< endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:3: error: expected primary-expression before '}' token
   37 |   }
      |   ^
a.cc:36:31: error: expected ')' before '}' token
   36 |     cout << 0<<" "<< 0<< endl;
      |                               ^
      |                               )
   37 |   }
      |   ~                            
a.cc:35:11: note: to match this '('
   35 |   else if (
      |           ^
a.cc:37:3: error: expected primary-expression before '}' token
   37 |   }
      |   ^
a.cc: At global scope:
a.cc:38:1: error: expected declaration before '}' token
   38 | }
      | ^
Language: C++

v#include <bits/stdc++.h>
using namespace std;
#define F(i,s,e) for(int i=s;i<e;++i)

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

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> a >> b >> k;
      |     ^~~
a.cc:24:5: error: 'cout' was not declared in this scope
   24 |     cout << a << " " << b << endl;
      |     ^~~~
a.cc:24:30: error: 'endl' was not declared in this scope
   24 |     cout << a << " " << b << endl;
      |                              ^~~~
Language: C++

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

    int main(int argc, char* argv[])
    {
        long long a, b, k;
        std::cin >> a >> b >> k;
        if (k <= a)
        {
            std::cout << a - k << ' ' << b "\n";
        }
        else if (k <= a +b )
        {
            std::cout << 0 << ' ' << b - (k-a) << "\n";
        }
        else {
            std::cout << 0 << ' ' << 0 << "\n";
        }
        return 0;
    }


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:11:43: error: expected ';' before string constant
   11 |             std::cout << a - k << ' ' << b "\n";
      |                                           ^~~~~
      |                                           ;
Language: C++

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

int main() {
	ios_base::sync_with_stdio(0); cin.tie(0);    
	
    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;
	}    
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected '(' before '{' token
   11 |     else if{(K <= A+B) cout << 0 << (B  - (K - A) ) << endl;}
      |            ^
      |            (
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else{
      |     ^~~~
Language: C++

A, B, K = map(int, input().split())
tak, aoki = 0, 0
if K >= A:
  tak = 0
  aoki = B - (K - A)
elif K < A:
  tak = A - K
  aoki = B
elif K - (A + B) >= 0:
  tak, aoki = 0, 0
print(tak, aoki)

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

#include <iostream>
using namespace std;

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'if'
    6 |   cin >> A >> B
      |                ^
      |                ;
    7 | 
    8 |   if (A >= K)
      |   ~~            
a.cc:11:4: error: 'else' without a previous 'if'
   11 |   }else if (B >= K - A)
      |    ^~~~
Language: C++

#include<iostream>
using namespace std;

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


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

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

int main()
{
    ll a,b,k;
    cin >> a >> b >> k;
    ll bla  = k&1;
    ll temp = 0;
    whil(a || b || k){
        temp = min(a,k/2);
        temp = min(b,temp);
        a -= temp;
        b -= temp;
        k -= temp;
    }

    if(a)
        a-=k,k = 0;
    else if(b)
        b-= k,k = 0;
    cout << max(a,0ll) << ' ' << max(b,0ll) << endl;



}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'whil' was not declared in this scope
   12 |     whil(a || b || k){
      |     ^~~~
Language: Java

 class Main {
	 static int mod =  (int) (Math.pow(10,9)+7);
	 static List<ArrayList<Integer>>  list = new ArrayList<ArrayList<Integer>>();
    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 ans;
        if(A<K) {
        	B=B-K+A;
        	A=0;
        } else {
        	A=A-K;
        }
        
        System.out.println(A+" "+B);
        		
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
	 static List<ArrayList<Integer>>  list = new ArrayList<ArrayList<Integer>>();
	        ^
  symbol:   class List
  location: class Main
Main.java:3: error: cannot find symbol
	 static List<ArrayList<Integer>>  list = new ArrayList<ArrayList<Integer>>();
	             ^
  symbol:   class ArrayList
  location: class Main
Main.java:3: error: cannot find symbol
	 static List<ArrayList<Integer>>  list = new ArrayList<ArrayList<Integer>>();
	                                             ^
  symbol:   class ArrayList
  location: class Main
Main.java:3: error: cannot find symbol
	 static List<ArrayList<Integer>>  list = new ArrayList<ArrayList<Integer>>();
	                                                       ^
  symbol:   class ArrayList
  location: class Main
Main.java:6: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
6 errors
Language: C++

/*
    ____        __
   / __ \____  / /_  ____ _____ ___
  / /_/ / __ \/ __ \/ __ `/ __ `__ \
 / _, _/ /_/ / / / / /_/ / / / / / /
/_/ |_|\____/_/ /_/\__,_/_/ /_/ /_/
*/
#include<bits/stdc++.h>

typedef long long ll ;

#define pll pair<ll , ll >
#define X   first
#define Y   second
#define mp  make_pair
#define pii pair<int , int>
#define vec vector
#define vpii vector<pair<int , int>>
#define i_n   int i = 0 ; i< n ; i++
#define cn  int n ; cin>>n
#define file_io freopen("input.txt", "r", stdin);freopen("output.txt", "w", stdout);
#define migmig ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define cina int a[n] ; for(int i = 0 ; i < n ; i++) cin>>a[i]
#define pb push_back

using namespace std;
const int maxn = 1000*100+5 ;
const ll inf = 9223372036854775807 ;


int main()
{
	migmig ;
	ll a , b , c ; 
	cin>>a>>b>>c ; 
	if(c >= a) 
	{
		a = 0 ; 
		c -= a  ; 
		b -= c ; 
		cout<<a<<max(0 , b) ;  
	}
	else
	{
		a -= c ; 
		cout<<a<<b ; 
	}
}
//////
////////
///////////




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

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

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

Compiler output:
a.cc:8:21: warning: multi-character character constant [-Wmultichar]
    8 |      cout << a-k << '␣'  << b << endl;
      |                     ^~~
a.cc:11:18: warning: multi-character character constant [-Wmultichar]
   11 |     cout << 0 << '␣'  << b - (k-a) << endl;
      |                  ^~~
a.cc:14:19: warning: multi-character character constant [-Wmultichar]
   14 |      cout << 0 << '␣'  <<　0 << endl;
      |                   ^~~
a.cc:14:26: error: extended character 　 is not valid in an identifier
   14 |      cout << 0 << '␣'  <<　0 << endl;
      |                          ^
a.cc: In function 'int main()':
a.cc:14:26: error: '\U000030000' was not declared in this scope
   14 |      cout << 0 << '␣'  <<　0 << endl;
      |                          ^~~
Language: C++

import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

A, B, K = MAP()
if (A + B) < K:
	print(0, 0)
	exit()

if A < K:
	print(0, B - (K - A))
else:
	print(A - K, B)

Compiler output:
a.cc:17:13: warning: multi-character character constant [-Wmultichar]
   17 | INF = float('inf')
      |             ^~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys, re
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
using namespace std;

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

    if(K < A+B) {
        if(A < K)
            cout << 0 </*< " " <*/< A+B-K << endl;
        else
            cout << A-K </*< " " <*/< B << endl;   
    } else 
        cout << 0 </*< " " <*/< 0 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: expected primary-expression before '<' token
   10 |             cout << 0 </*< " " <*/< A+B-K << endl;
      |                                   ^
a.cc:10:43: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |             cout << 0 </*< " " <*/< A+B-K << endl;
      |                                     ~~~~~~^~~~~~~
a.cc:12:37: error: expected primary-expression before '<' token
   12 |             cout << A-K </*< " " <*/< B << endl;
      |                                     ^
a.cc:12:41: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |             cout << A-K </*< " " <*/< B << endl;
      |                                       ~~^~~~~~~
a.cc:14:31: error: expected primary-expression before '<' token
   14 |         cout << 0 </*< " " <*/< 0 << endl;
      |                               ^
a.cc:14:35: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |         cout << 0 </*< " " <*/< 0 << endl;
      |                                 ~~^~~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: expected '}' before 'else'
   15 |     else
      |     ^~~~
a.cc:10:18: note: to match this '{'
   10 |     if(k <= a+b) {
      |                  ^
a.cc: At global scope:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: Java

import java.util.*;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    long a = sc.nextLong();
    long b = sc.nextLong();
    long k = sc.nextLong();

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

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


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

  }
}


Compiler output:
Main.java:14: error: not a statement
      k == 0;
        ^
Main.java:22: error: not a statement
      k == 0;
        ^
2 errors
Language: Java

import java.util.*;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    long a = sc.nextLong();
    long b = sc.nextLong();
    long k = sc.nextLong();

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

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


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

  }
}


Compiler output:
Main.java:14: error: not a statement
      k == 0;
        ^
Main.java:21: error: illegal start of expression
       = -k ;
       ^
Main.java:22: error: not a statement
      k == 0;
        ^
3 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected ';' before ')' token
    8 |   for (i < K) {
      |             ^
      |             ;
a.cc:19:2: error: expected primary-expression at end of input
   19 | }
      |  ^
a.cc:19:2: error: expected ';' at end of input
   19 | }
      |  ^
      |  ;
a.cc:19:2: error: expected primary-expression at end of input
a.cc:19:2: error: expected ')' at end of input
   19 | }
      |  ^
      |  )
a.cc:8:7: note: to match this '('
    8 |   for (i < K) {
      |       ^
a.cc:19:2: error: expected statement at end of input
   19 | }
      |  ^
a.cc:19:2: error: expected '}' at end of input
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<long long> vll;
typedef vector<pair<int,int>> vp;
typedef pair<int,int> pii;
#define INF (int)(1e9)
#define MAXX 1.1529215e+18
#define inf 999999
#define EPS (1e-7)
#define rep(i,n) for(int i=0; i<(int)(n);i++)
#define REP(i,n) for(int i=1;i<=(int)(n);i++)
#define FOR(i,k,n) for(int i=(k);i<(int)(n);i++)
#define ALL(a)  a.begin(),a.end()
#define RALL(a) a.begin(),a.end(),greater<int>()
#define ROT(a) a.begin(),a.begin()+1,a.end()
#define RROT(a) a.begin(),a.end()-1,a.end()
#define PB push_back
#define MP make_pair
#define PI acos(-1.0)
#define sz(a) a.size()
const ll MOD = 1e9+7;
const int MAX = 10000000;
template<typename T1, typename T2> inline bool chmin(T1 &a, T2 b) { if (a > b) { a = b; return 1; } return 0; }
template<typename T1, typename T2> inline bool chmax(T1 &a, T2 b) { if (a < b) { a = b; return 1; } return 0; }
template<typename T> T gcd(T a, T b) { if (b == 0) return a; return gcd(b, a % b); }
//cout << 'H' << endl;
//next_permutation(ALL(p));
//typedef priority_que<int> pque;//これは大きい順
//typedef priority_que<int, vector<int>, greater<int>> pque;//これは小さい順


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;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:20: error: 'A' was not declared in this scope
   37 |                 if(A>0)A--;
      |                    ^
a.cc:38:25: error: 'B' was not declared in this scope
   38 |                 else if(B>0) B--;
      |                         ^
a.cc:40:17: error: 'A' was not declared in this scope
   40 |         cout << A << " " << B << endl;
      |                 ^
a.cc:40:29: error: 'B' was not declared in this scope
   40 |         cout << A << " " << B << endl;
      |                             ^
Language: Java

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

public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String []s=br.readLine().split(" ");
		long A = Long.parseLong(s[0]);
		long B = Long.parseLong(s[1]);
		long K = Long.parseLong(s[2]);
		
		if(K<=A)
			taka=A-K;
		else if(K<A+B) //Atcoder Editorial's solution
		{
			taka=0;
			aoki=B-(K-A);
		}
		else
		{
			aoki=0;
			taka=0;
		}
		
		out.println(taka+" "+aoki);
	
	}
}




Compiler output:
Main.java:17: error: cannot find symbol
			taka=A-K;
			^
  symbol:   variable taka
  location: class Main
Main.java:20: error: cannot find symbol
			taka=0;
			^
  symbol:   variable taka
  location: class Main
Main.java:21: error: cannot find symbol
			aoki=B-(K-A);
			^
  symbol:   variable aoki
  location: class Main
Main.java:25: error: cannot find symbol
			aoki=0;
			^
  symbol:   variable aoki
  location: class Main
Main.java:26: error: cannot find symbol
			taka=0;
			^
  symbol:   variable taka
  location: class Main
Main.java:29: error: cannot find symbol
		out.println(taka+" "+aoki);
		            ^
  symbol:   variable taka
  location: class Main
Main.java:29: error: cannot find symbol
		out.println(taka+" "+aoki);
		                     ^
  symbol:   variable aoki
  location: class Main
7 errors
Language: Java

//package tear;

import java.util.Scanner;

public class C {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        long a = s.nextLong();
        long b = s.nextLong();
        long k = s.nextLong();
        for (int i = 0; i < k; ) {
            if(i!=k){
                a =a-1;
                i++;
            }
            if(i!=k){
                b=b-1;
                i++;
            }
            
        }
        System.out.println(a+"  "+ b);
    }
}


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

#include<stdio.h>

int main(void) {
  long long int a, b, k;
  
  scanf("%lld %lld %lld",&a,&b,&k);
  
  if (a > k)
    a -= k;
  else if (a+b <= k) 
    a = b = 0;
  else
    b = k - a;
  	a = 0;
  } 
  
  printf("%lld %lld",a,b);

  return 0;
}

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

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

/*

*/


void solve(){

    ll a,b,k;
    cin >> a >> b >> k;
    ll a1, a2;
    if(a<k){
        a1 = 0;
        a2 = max(0,b-(k-a));
    }
    else{
        a1 = a-k;
        a2 = b;
    }

    cout << a1 << " " << a2 << endl;

}

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


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

#include <iostream>
using namespace std;
int main()
{
    int a,b,k;
    cin>>a>>b>>k;
    if(a<=k)
    {
        cout<<0<<" ";
        k-=a;
        if(b<=k)
            cout<<0<<endl;
        else
            cout<<b-k<<endl;

    }
    else
        cout<<a-k<<" "<<y<<endl;
    return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:18:25: error: 'y' was not declared in this scope
   18 |         cout<<a-k<<" "<<y<<endl;
      |                         ^
Language: C++

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

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

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

/**
 * code generated by JHelper
 * More info: https://github.com/AlexeyDmitriev/JHelper
 * @author Sagor
 */

#include <fstream>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <vector>
#include <map>
#include <set>
typedef long long int ll;
typedef double ld;
using namespace std;

class BGreedyTakahashi {
public:
	void solve(std::istream& in, std::ostream& out) {
	    ll a,b,c;
	    in>>a>>b>>c;
        ll interm = a-c;
	    a=__max(0,a-c);
	    if(interm<=0)
	        b=__max(0,b+interm);
        else
            b=__max(0,b-interm);
	    out<<a<<" "<<b<<endl;


	}
};


int main() {
    std::ios_base::sync_with_stdio(0);
    std::cin.tie(0);
	BGreedyTakahashi solver;
	std::istream& in(std::cin);
	std::ostream& out(std::cout);
	solver.solve(in, out);
	return 0;
}


Compiler output:
a.cc: In member function 'void BGreedyTakahashi::solve(std::istream&, std::ostream&)':
a.cc:25:15: error: '__max' was not declared in this scope
   25 |             a=__max(0,a-c);
      |               ^~~~~
Language: C++

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

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

    ll a,b,k;
    cin >> a >> b >> k;
    
    ll ansA, ansB;
    
    if(a >= k)
    {
        ansA = a - k;
        ansB = b;
    }
    else
    {
        ansA = 0;
        ansB = max(0, b - (k - a));
    }
    
    cout << ansA << ' ' << ansB << endl;

    return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: expected ';' before '}' token
   14 |     k -= a
      |           ^
      |           ;
   15 |   }
      |   ~
Language: C++

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

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

  }


Compiler output:
a.cc:20:17: error: stray '\' in program
   20 |            break\;
      |                 ^
Language: C++

#include <iostream>
using namespace std;

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

    long long (a >= k)
    {
        cout << a - k << " " << b << endl;
    }

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

    else if (a + b < k)
    {
        cout << 0 << " " << 0 << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected primary-expression before 'long'
    8 |     long long (a >= k)
      |     ^~~~
a.cc:13:5: error: 'else' without a previous 'if'
   13 |     else if (a + b >= k)
      |     ^~~~
Language: C++

1 #include <iostream>
2 using namespace std;
3
4 int main(){
5 long long a, b, k;
6 cin >> a >> b >> k;
7
8 if(k <= a){
9 cout << a - k << '␣' << b <<endl;
10 }else if(k <= a+b){
11 cout << 0 << '␣' << b - (k-a) <<endl;
12 }else{
13 cout << 0 << '␣' << 0 <<endl;
14 }
15 }

Compiler output:
a.cc:1:3: error: stray '#' in program
    1 | 1 #include <iostream>
      |   ^
a.cc:9:20: warning: multi-character character constant [-Wmultichar]
    9 | 9 cout << a - k << '␣' << b <<endl;
      |                    ^~~
a.cc:11:17: warning: multi-character character constant [-Wmultichar]
   11 | 11 cout << 0 << '␣' << b - (k-a) <<endl;
      |                 ^~~
a.cc:13:17: warning: multi-character character constant [-Wmultichar]
   13 | 13 cout << 0 << '␣' << 0 <<endl;
      |                 ^~~
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1 #include <iostream>
      | ^
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3
      | ^