criyle/codenet-compile-errors huggingface dataset:
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:9:28: warning: multi-character character constant [-Wmultichar]
    9 |  if(k<=a) cout << a - k << '␣' << b <<endl; }
      |                            ^~~
a.cc:10:34: warning: multi-character character constant [-Wmultichar]
   10 |  else if(k <= a+b){ cout << 0 << '␣' << b - (k-a) <<endl;  }
      |                                  ^~~
a.cc:11:21: warning: multi-character character constant [-Wmultichar]
   11 |  else{ cout << 0 << '␣' << 0 <<endl;
      |                     ^~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'k' was not declared in this scope
    9 |  if(k<=a) cout << a - k << '␣' << b <<endl; }
      |     ^
a.cc:9:8: error: 'a' was not declared in this scope
    9 |  if(k<=a) cout << a - k << '␣' << b <<endl; }
      |        ^
a.cc:9:35: error: 'b' was not declared in this scope
    9 |  if(k<=a) cout << a - k << '␣' << b <<endl; }
      |                                   ^
a.cc: At global scope:
a.cc:10:2: error: expected unqualified-id before 'else'
   10 |  else if(k <= a+b){ cout << 0 << '␣' << b - (k-a) <<endl;  }
      |  ^~~~
a.cc:11:2: error: expected unqualified-id before 'else'
   11 |  else{ cout << 0 << '␣' << 0 <<endl;
      |  ^~~~
Language: C++

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

#define int long long int
#define REP(i, n) for (int i(0); i < n; ++i)
#define REQ(i, a, b) for (int i(a); i <= b; ++i)


signed main(){
	int a,b,k,c;
	cin >> a>> b >> k;
	c=(k/2);
	cout << max((long long)0,a-(k-c)) << " " < <max((long long)0,b-c);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:52: error: expected primary-expression before '<' token
   14 |         cout << max((long long)0,a-(k-c)) << " " < <max((long long)0,b-c);
      |                                                    ^
Language: Java

import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
long A = sc.nextInt();
long B = sc.nextInt();
long K = sc.nextInt();
for (int i=0;i<K;i++){
  if(A==0){
    if(B==0){
    }else{
      B=B-1;
    }
  }else{
    A=A-1;
  }
System.out.println(A+""+B);
  }
}

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

import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
long A = sc.nextInt();
long B = sc.nextInt();
long K = sc.nextInt();
for (int i=0;i<K;i++){
if(A==0){
if(B==0){
}else{
B=B-1;
}else{
A=A-1;
}
System.out.println(A+""+B);
  }
}

Compiler output:
Main.java:14: error: 'else' without 'if'
}else{
 ^
Main.java:19: error: reached end of file while parsing
}
 ^
2 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

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

#include <bits/stdc++.h>

using namespace std;

int main()
{
    long long int a,b,k;
    cin>>a>>b>>k;
    int minm_a=min(a,k);
    k-=f;
    int minm_b=min(b,k);
    cout<<a-f<<" "<<b-s<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'f' was not declared in this scope
   10 |     k-=f;
      |        ^
a.cc:12:23: error: 's' was not declared in this scope
   12 |     cout<<a-f<<" "<<b-s<<endl;
      |                       ^
Language: C++

#include <bits/stdc++.h>
#define ff first
#define ss second
#define ll long long int
#define pb push_back
using namespace std;
 
int main(){
	ios::sync_with_stdio(0);
	cin.tie(0);
	ll a,b,k;
	scanf("%lld%lld%lld", &a,&b,&k);
	a -= k;
	if(a < 0) b += a, a = 0;
	printf("%lld %lld\n", a,max(b,0));
	return 0;
}

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

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

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

  while (K > 0) {
    if (A > 0){
      A = A - 1;
    }
    else if  ( B > 0){
      B = B -1;
    }
    else{
      A = A;
      B = B;
    }
    K= K -1;
  }
 
 cout <<A <<'' << B;
}



Compiler output:
a.cc:22:13: error: empty character constant
   22 |  cout <<A <<'' << B;
      |             ^~
Language: C++

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

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

  while (K > 0) {
    if (A > 0){
      A = A - 1
    }
    else if  ( B > 0){
      B = B -1
    }
    else{
      A = A;
      B = B
    }
    K= K -1
  }
 
 cout A <<' '<< B <<;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
    6 |   cin A >> B >> K;
      |      ^~
      |      ;
a.cc:10:16: error: expected ';' before '}' token
   10 |       A = A - 1
      |                ^
      |                ;
   11 |     }
      |     ~           
a.cc:13:15: error: expected ';' before '}' token
   13 |       B = B -1
      |               ^
      |               ;
   14 |     }
      |     ~          
a.cc:17:12: error: expected ';' before '}' token
   17 |       B = B
      |            ^
      |            ;
   18 |     }
      |     ~       
a.cc:19:12: error: expected ';' before '}' token
   19 |     K= K -1
      |            ^
      |            ;
   20 |   }
      |   ~         
a.cc:22:6: error: expected ';' before 'A'
   22 |  cout A <<' '<< B <<;
      |      ^~
      |      ;
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
    6 |   cin A >> B >> K;
      |      ^~
      |      ;
a.cc:10:16: error: expected ';' before '}' token
   10 |       A = A - 1
      |                ^
      |                ;
   11 |     }
      |     ~           
a.cc:13:15: error: expected ';' before '}' token
   13 |       B = B -1
      |               ^
      |               ;
   14 |     }
      |     ~          
a.cc:17:12: error: expected ';' before '}' token
   17 |       B = B
      |            ^
      |            ;
   18 |     }
      |     ~       
a.cc:19:12: error: expected ';' before '}' token
   19 |     K= K -1
      |            ^
      |            ;
   20 |   }
      |   ~         
a.cc:22:6: error: expected ';' before 'A'
   22 |  cout A << B <<;
      |      ^~
      |      ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> a >> b >> k;
      |   ^~~
a.cc:7:23: error: 'k' was not declared in this scope
    7 |   for (int i = 0; i < k; i++) {
      |                       ^
Language: C++

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

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


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

import java.util.Scanner;
 
public class Main
{
  public static void main(String args[])
  {
    Scanner std = new Scanner(System.in);
    long t = std.nextLong();
    long a = std.nextLong();
    long k = std.nextLong();
    
    long a = t - k;
    if(a <= 0)
    {
      t = 0;
      k -= a;
    }
    
    System.out.println(t + " " + k);
  }
}

Compiler output:
Main.java:12: error: variable a is already defined in method main(String[])
    long a = t - k;
         ^
1 error
Language: C

#include <stdio.h>
void Takahashi(int *x,int *y)
{
	if(*x >= 1)
		*x--;
  	else if(*y >= 1)
      	*y--;
}
 
int main(void)
{
  	int A,B,K,i;
  	scanf("%d",&A);
  	scanf("%d".&B);
  	scanf("%d",&K);
  
  	for(i = 0,i < K ,i++)
	{
      	Takahashi(&A,&B);
	}
	printf("%d %d",A,B);
  	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:20: error: expected identifier before '&' token
   14 |         scanf("%d".&B);
      |                    ^
main.c:17:29: error: expected ';' before ')' token
   17 |         for(i = 0,i < K ,i++)
      |                             ^
      |                             ;
main.c:17:29: error: expected expression before ')' token
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: expected ';' before 'b'
   13 |  else(b>0) b-(k-j);
      |           ^~
      |           ;
Language: Java

import java.util.Scanner;

public class Main
{
  public static void main(String args[])
  {
    Scanner std = new Scanner(System.in);
    long t = std.nextLong();
    long a = std.nextLong();
    long k = std.nextLong();
    
    long a = t - k;
    if(a <= 0)
    {
      t = 0;
      k -= a;
    }
    
    System.out.println(t + " " + k);

Compiler output:
Main.java:19: error: reached end of file while parsing
    System.out.println(t + " " + k);
                                    ^
1 error
Language: C

#include <stdio.h>
void Takahashi(int *x,int *y)
{
	if(*x >= 1)
		*x--;
  	else if(*y >= 1)
      	*y--;
}
 
int main(void)
{
  	int A,B,K,i;
  	scanf("%d",&A);
  	scanf("%d".&B);
  	scanf("%d",&K);
  
  	for(i = 0,i < K ,i++)
    {
      	Takahashi(&A,&B);
   	}
  	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:20: error: expected identifier before '&' token
   14 |         scanf("%d".&B);
      |                    ^
main.c:17:29: error: expected ';' before ')' token
   17 |         for(i = 0,i < K ,i++)
      |                             ^
      |                             ;
main.c:17:29: error: expected expression before ')' token
Language: C++

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

int main()//atcoder.jp/contests/abc149/standings
{
 int a,b,k;
 cin>>a>>b>>k;
  int j;
  a=j;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected ';' before '{' token
   12 |  else(b>0) {b-(k-j);}
      |           ^~
      |           ;
Language: C

#include <stdio.h>
int Takahashi(int *x,int *y)
{
	if(*x >= 1)
		*x--;
  	else if(*y >= 1)
      	*y--;
}
 
int main(void)
{
  	int A,B,K,i;
  	scanf("%d",&A);
  	scanf("%d".&B);
  	scanf("%d",&K);
  
  	for(i = 0,i < K ,i++)
    {
      	Takahashi(&A,&B);
   	}
  	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:20: error: expected identifier before '&' token
   14 |         scanf("%d".&B);
      |                    ^
main.c:17:29: error: expected ';' before ')' token
   17 |         for(i = 0,i < K ,i++)
      |                             ^
      |                             ;
main.c:17:29: error: expected expression before ')' token
Language: C++

#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
using namespace std;
int main(){
  long long int a,b,k;
  cin>>a>>b>>k;
  long long int t=0;
  a=max(a-k,t);
  b=max(0,b-min(t,k-a));
  cout<<a<<" "<<b;
}

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

#include <stdio.h>
int Takahashi(int *x,int *y)
{
	if(x >= 1)
		*x--;
  	else if(y >= 1)
      	*y--;
}

int main(void)
{
  	int A,B,K,i;
  	scanf("%d",&A);
  	scanf("%d".&B);
  	scanf("%d",&K);
  
  	for(i = 0,i < K ,i++)
    {
      	Takahashi(&A,&B);
    }
  	return 0;
}
  
  	

Compiler output:
main.c: In function 'Takahashi':
main.c:4:14: warning: comparison between pointer and integer
    4 |         if(x >= 1)
      |              ^~
main.c:6:19: warning: comparison between pointer and integer
    6 |         else if(y >= 1)
      |                   ^~
main.c: In function 'main':
main.c:14:20: error: expected identifier before '&' token
   14 |         scanf("%d".&B);
      |                    ^
main.c:17:29: error: expected ';' before ')' token
   17 |         for(i = 0,i < K ,i++)
      |                             ^
      |                             ;
main.c:17:29: error: expected expression before ')' token
Language: C++

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

#define D1 100000000000
#define D2 1000000000
#define D3 10000000
#define D4 100000
#define D5 1000
#define D6 10
#define D7 1

int main()
{
  int64_t a,b,k,i,j,d;
  int64_t v[7]={D1,D2,D3,D4,D5,D6,D7};
  cin >> a;
  cin >> b;
  cin >> k;
  d=0;
  
  
  for(j=0;j<7;j++)
  {
  	if(k>v[j])
  	{
    	for(i=0;i<k;i=i+v[j])
    	{
      		if(a>v[j])
      		{
        		a=a-v[j];
                d++;
      		}
      		
        }
      	k=k-d*v[j];
        d=0;
    }
  }
  for(j=0;j<7;j++)
  {
  	if(k>v[j])
  	{
    	for(i=0;i<k;i=i+v[j])
    	{
      		if(b>v[j])
      		{
        		b=b-v[j];
                d++:
      		}
      		
        }
      	k=k-d*v[j];
    }
  }
  
    cout << a <<" "<< b <<endl;

}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:27: error: invalid operands of types 'll' {aka 'long long int'} and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |     cout << A - K <<""< B << endl;
      |                         ~~^~~~~~~
Language: C++

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

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

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

#include<stdio.h>
#include<math.h>

int main(void){
int i, A, B, K;
scanf("%d %d %d", %A, %B, %K);
for(i = 0;i < K; i++){
  if(A > 0)
    A = A - 1;
  if(A = 0&&B > 0)
    B = B - 1;
}
printf("高橋 %d 青木 %d\n", A, B);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: expected expression before '%' token
    6 | scanf("%d %d %d", %A, %B, %K);
      |                   ^
Language: C++

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

#define D1 100000000000
#define D2 1000000000
#define D3 10000000
#define D4 100000
#define D5 1000
#define D6 10
#define D7 1

int main()
{
  int64_t a,b,k,i,j;
  int64_t v[7]={D1,D2,D3,D4,D5,D6,D7};
  cin >> a;
  cin >> b;
  cin >> k;
  
  
  
  for(j=0;j<7;j++)
  {
  if(k>v[j])
  {
    for(i=0;i<k;i=i+v[j])
    {
      if(a>v[j])
      {
        a=a-v[j];
      }
      if(b>v[j])
      {
      
      k=k%v[j];
    }
  }
  }
    cout << a <<" "<< b <<endl;

}


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

#include<stdio.h>
int mian()
{
  long long a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  if(c>=a) 
  {
    c=c-a;
    a=0;
    if(c>=b)
    {
       b=0;
    }
    else b=b-c;
  }
  else a=a-c;
  printf("%d %d\n",a,b);
  
  
  return 0;
}

Compiler output:
/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++

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

#define D1 100000000000
#define D2 1000000000
#define D3 10000000
#define D4 100000
#define D5 1000
#define D6 10
#define D7 1

int main()
{
  int64_t a,b,k,i;
  cin >> a;
  cin >> b;
  cin >> k;
  
  if(k>D1)
  {
    for(i=0;i<k;i=i+D1)
    {
      if(a>D1)
      {
        a=a-D1;
      }
      if(b>D1)
      {
      
      k=k%D1;
    }
  }
  if(k>D2)
  {
    for(i=0;i<k;i=i+D2)
    {
      if(a>D2)
      {
        a=a-D2;
      }
      if(b>D2)
      {
        b=b-D2;
      }
      k=k%D2;
    }
  }
  if(k>D3)
  {
    for(i=0;i<k;i=i+D3)
    {
      if(a>D3)
      {
        a=a-D3;
      }
      if(b>D3)
      {
        b=b-D3
      }
      k=k%D3;
    }
  }
  if(k>D4)
  {
    for(i=0;i<k;i=i+D4)
    {
      if(a>D4)
      {
        a=a-D4;
      }
      if(b>D4)
      {
        b=b-D4;
      }
      k=k%D4;
    }
  }
  if(k>D5)
  {
    for(i=0;i<k;i=i+D5)
    {
      if(a>D5)
      {
        a=a-D5;
      }
      if(b>D5)
      {
        b=b-D5;
      }
      k=k%D5;
    }
  }
  if(k>D6)
  {
    for(i=0;i<k;i=i+D6)
    {
      if(a>D6)
      {
        a=a-D6;
      }
      if(b>D6)
      {
        b=b-D6;
      }
      k=k%D6;
    }
  }
  if(k>D7)
  {
    for(i=0;i<k;i=i+D7)
    {
      if(a>D7)
      {
        a=a-D7;
      }
      if(b>D7)
      {
        b=b-D7;
      }
      k=k%D7;
    }
  }
  cout <<a<<" "<<b<<endl; 
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:59:7: error: expected ';' before '}' token
   59 |       }
      |       ^
a.cc:125:2: error: expected '}' at end of input
  125 | }
      |  ^
a.cc:13:1: note: to match this '{'
   13 | {
      | ^
Language: C++

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

#define D1 100000000000
#define D2 1000000000
#define D3 10000000
#define D4 100000
#define D5 1000
#define D6 10
#define D7 1

int main()
{
  int64_t a,b,k,i;
  cin >> a;
  cin >> b;
  cin >> k;
  
  if(k>D1)
  {
    for(i=0;i<k;i=i+D1)
    {
      if(a>D1)
      {
        a=a-D1;
      }
      if(b>D1)
      {
        b=b-D1
      }
      k=k%D1;
    }
  }
  if(k>D2)
  {
    for(i=0;i<k;i=i+D2)
    {
      if(a>D2)
      {
        a=a-D2;
      }
      if(b>D2)
      {
        b=b-D2
      }
      k=k%D2;
    }
  }
  if(k>D3)
  {
    for(i=0;i<k;i=i+D3)
    {
      if(a>D3)
      {
        a=a-D3;
      }
      if(b>D3)
      {
        b=b-D3
      }
      k=k%D3;
    }
  }
  if(k>D4)
  {
    for(i=0;i<k;i=i+D4)
    {
      if(a>D4)
      {
        a=a-D4;
      }
      if(b>D4)
      {
        b=b-D4
      }
      k=k%D4;
    }
  }
  if(k>D5)
  {
    for(i=0;i<k;i=i+D5)
    {
      if(a>D5)
      {
        a=a-D5;
      }
      if(b>D5)
      {
        b=b-D5
      }
      k=k%D5;
    }
  }
  if(k>D6)
  {
    for(i=0;i<k;i=i+D6)
    {
      if(a>D6)
      {
        a=a-D6;
      }
      if(b>D6)
      {
        b=b-D6
      }
      k=k%D6;
    }
  }
  if(k>D7)
  {
    for(i=0;i<k;i=i+D7)
    {
      if(a>D7)
      {
        a=a-D7;
      }
      if(b>D7)
      {
        b=b-D7
      }
      k=k%D7;
    }
  }
  cout <<a<<" "<<b<<endl; 
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:7: error: expected ';' before '}' token
   30 |       }
      |       ^
a.cc:45:7: error: expected ';' before '}' token
   45 |       }
      |       ^
a.cc:60:7: error: expected ';' before '}' token
   60 |       }
      |       ^
a.cc:75:7: error: expected ';' before '}' token
   75 |       }
      |       ^
a.cc:90:7: error: expected ';' before '}' token
   90 |       }
      |       ^
a.cc:105:7: error: expected ';' before '}' token
  105 |       }
      |       ^
a.cc:120:7: error: expected ';' before '}' token
  120 |       }
      |       ^
Language: C++

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

#define D1 100000000000
#define D2 1000000000
#define D3 10000000
#define D4 100000
#define D5 1000
#define D6 10
#define D7 1

int main()
{
  int64_t a,b,k,i;
  cin >> a;
  cin >> b;
  cin >> k;
  
  if(k>D1)
  {
    for(i=0;i<k;i=i+D1)
    {
      if(a>D1)
      {
        a=a-D1;
      }
      if(b>D1)
      {
        b=b-D1
      }
      k=k%D1;
    }
  }
  if(k>D2)
  {
    for(i=0;i<k;i=i+D2)
    {
      if(a>D2)
      {
        a=a-D2;
      }
      if(b>D2)
      {
        b=b-D2
      }
      k=k%D2;
    }
  }
  if(k>D3)
  {
    for(i=0;i<k;i=i+D3)
    {
      if(a>D3)
      {
        a=a-D3;
      }
      if(b>D3)
      {
        b=b-D3
      }
      k=k%D3;
    }
  }
  if(k>D4)
  {
    for(i=0;i<k;i=i+D4)
    {
      if(a>D4)
      {
        a=a-D4;
      }
      if(b>D4)
      {
        b=b-D4
      }
      k=k%D4;
    }
  }
  if(k>D5)
  {
    for(i=0;i<k;i=i+D5)
    {
      if(a>D5)
      {
        a=a-D5;
      }
      if(b>D5)
      {
        b=b-D5
      }
      k=k%D5;
    }
  }
  if(k>D6)
  {
    for(i=0;i<k;i=i+D6)
    {
      if(a>D6)
      {
        a=a-D6;
      }
      if(b>D6)
      {
        b=b-D6
      }
      k=k%D6;
    }
  }
  if(k>D7)
  {
    for(i=0;i<k;i=i+D7)
    {
      if(a>D7)
      {
        a=a-D7;
      }
      if(b>D7)
      {
        b=b-D7
      }
      k=k%D7;
    }
  }
  cout <<a<<" "<<b<<endl; 
  
}


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

#include<iostream>
#include<algorithm>
#include<vector>
#include <map>
#include<queue>
#include<climits>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
typedef long long ll;
typedef queue<int> IntQueue;
//typedef std::pair<ll, int> pair;



void solve(){
  ll A,B,K;
  cin>>A>>B>>K;
  if (A>=K){
    cout<<A-K<<' '<<B<<endl;
    return;
  }
  else if (B>=(A-K)){
    cout<<0<<' '<<B-(A-K)<<endl;
    return;
  else{
    cout<<0<<' '<<0<<endl;
    return;
  }
 
}

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


Compiler output:
a.cc: In function 'void solve()':
a.cc:25:3: error: expected '}' before 'else'
   25 |   else{
      |   ^~~~
a.cc:22:21: note: to match this '{'
   22 |   else if (B>=(A-K)){
      |                     ^
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <stdio.h>

using namespace std;

int main() {
	long int A, B, N, i;

	cin >> A; cin >> B; cin >> N;

	for (i = 0; i < N; i++) {

		if (A > 0) {
			A = A - 1;
		}
		else if (B > 0) {
			B = B - 1;
		}
		else {
			break;
		}
	}

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

	return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:27:18: error: expected '}' at end of input
   27 |         return 0;
      |                  ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<cstring>
#include<vector>
using namespace std;
typedef long long llong;
int main(){
    llong a, b, k;
    cin >> a >> b >> k;

    for (llong i = 0; i < k; i++){
        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:18:14: error: expected '}' at end of input
   18 |     return 0;
      |              ^
a.cc:9:11: note: to match this '{'
    9 | int main(){
      |           ^
Language: C


#include<Stdio.h>
int main(void) {
	long long int a, b, k;
	scanf("%lld %lld %lld", &a, &b, &k);

	if (a < k) {
		b = b - (k - a);
		a = 0;
	}
	else {
		a -= k;
	}
	printf("%lld %lld", a, b);
}

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

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

int main(){
  unsigned long long int A,B,K;
  cin>>A>>B>>K;
  unsigned long long int answerA=0;
  unsigned long long int answerB=0;
  
  answerA=K-A;
  if(answerA>0){
    if(answerA<B){
   answerB=B-answerA; 
    }else{answerB=answerA-B}
   answerA=0; 
  }else{
     answerB=B;
  }
  
  
 cout<<answerA<<" "<<answerB<<endl;
   
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:28: error: expected ';' before '}' token
   14 |     }else{answerB=answerA-B}
      |                            ^
      |                            ;
Language: C++

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

int main() {
  int A, B, K;
  cin >> A >> B >> K;
  
  for (int i = 0; i < K; i++) {
    if (A <=　pow(10, 12)) {
    	A = 0;
    }
    
    if (B <=　pow(10, 12)) {
    	B = 0;
    }
    
  	if (A > 0)
      A--;
    else if (B > 0)
      B--;
  }
  
  cout << A << B << endl;
}


Compiler output:
a.cc:9:13: error: extended character 　 is not valid in an identifier
    9 |     if (A <=　pow(10, 12)) {
      |             ^
a.cc:13:13: error: extended character 　 is not valid in an identifier
   13 |     if (B <=　pow(10, 12)) {
      |             ^
a.cc: In function 'int main()':
a.cc:9:13: error: '\U00003000pow' was not declared in this scope
    9 |     if (A <=　pow(10, 12)) {
      |             ^~~~~
a.cc:13:13: error: '\U00003000pow' was not declared in this scope
   13 |     if (B <=　pow(10, 12)) {
      |             ^~~~~
Language: C++

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

int main(){
  unsigned long long int A,B,K;
  cin>>A>>B>>K;
  unsigned long long int answerA=0;
  unsigned long long int answerB=0;
  
  answerA=K-A;
  if(answerA>0){
    if(answerA<B){
   answerB=B-answerA; 
    }else{answerA-B}
   answerA=0; 
  }else{
     answerB=B;
  }
  
  
 cout<<answerA<<" "<<answerB<<endl;
   
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: expected ';' before '}' token
   14 |     }else{answerA-B}
      |                    ^
      |                    ;
Language: C++

#include<iostream>
#include<math.h>
#include<stdio.h>
#include<map>
#include<string>
using namespace std;
int main() {
	int A;
	int B;
	int K;
	cin >> A >> B >> K;
	if (A = 0 && B = 0) {
		cout << 0;
		cout << 0;
	}
	else {
		if (A + B <= K) {
			cout << 0 << 0 << endl;
		}
		if (A <= K) {
			cout << 0 << A + B - K;
		}
		if (A > K) {
			cout << A - K << B;
		}
	}
		return 0;
}

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

#include<iostream>
#include<algorithm>
#include<vector>
#include <map>
#include<queue>
#include<climits>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
typedef long long ll;
typedef queue<int> IntQueue;
//typedef std::pair<ll, int> pair;



void solve(){
  int A,B,K;
  cin>>A>>B>>K;
  rep(i,k){
    if (A>0)A--;
    else if(B>0)B--;
  }
  cout<<A<<' '<<B<<endl;
  return;
 
}

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


Compiler output:
a.cc: In function 'void solve()':
a.cc:18:9: error: 'k' was not declared in this scope
   18 |   rep(i,k){
      |         ^
a.cc:8:32: note: in definition of macro 'rep'
    8 | #define rep(i,n) for(int i=0;i<n;i++)
      |                                ^
Language: Java

import java.util.*; 

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


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

//------------------------------------------
// C++ templete 
//------------------------------------------
#include <bits/stdc++.h>
#define int long long
using namespace std;

//typedef
//------------------------------------------
typedef pair<int, int> PII;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef vector<PII> VP;

//REPEAT
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)

//container util
//------------------------------------------
#define pb push_back
#define paired make_pair
#define ALL(a) (a).begin(),(a).end()
#define PRINT(V) for (auto v : (V)) cout << v << " "
#define SORT(V) sort((V).begin(),(V).end())
#define RSORT(V) sort((V).rbegin(), (V).rend())

//constant
//------------------------------------------
const int MOD = 1000000007;
const int INF = 1061109567;
const double EPS = 1e-10;
const double PI  = acos(-1.0);
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};

//math
//------------------------------------------
int QP(int a,int b){int ans=1;do{if(b&1)ans=1ll*ans*a%MOD;a=1ll*a*a%MOD;}while(b>>=1);return ans;}
int QP(int a,int b,int MOD){int ans=1;do{if(b&1)ans=1ll*ans*a%MOD;a=1ll*a*a%MOD;}while(b>>=1);return ans;}
int GCD(int a,int b){return b?GCD(b,a%b):a;}

//debug
//------------------------------------------
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

//main
//------------------------------------------

signed main(){
    // 入力
    int a, b, k, c;
    cin >> a >> b >> k;
    if(a>=k){
        cout << a - k <<" "<< b;10 
    }
    else if(b>=k-a){
        cout << 0 <<" "<< b - (k - a);
    }
    else{
        cout << 0 <<" "<< 0;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:58:35: error: expected ';' before '}' token
   58 |         cout << a - k <<" "<< b;10
      |                                   ^
      |                                   ;
   59 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
#define inf 2e18
#define pi acos(-1)
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
vector<int>v;
set<int>s;
int a[2*100005];
int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);

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



Compiler output:
a.cc: In function 'int main()':
a.cc:24:14: error: 'n' was not declared in this scope
   24 |         if(b>n)
      |              ^
a.cc:36:14: error: 'n' was not declared in this scope
   36 |         if(a>n)
      |              ^
Language: C++

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

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


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

#include<stdio.h>
int main(void)
{
  long a,b,k,tmp;
  
  scanf("%ld %ld %ld",&a,&b,&k);
  
  if((a - k) < 0){
    tmp = k - a;
    b = b - tmp;
    a = 0;
    if(b < 0){
      b = 0
  }else if((a - k) > 0){
    a = a - k;
  }else if((a - k) == 0){
    a = 0;
  }
  printf("%ld %ld",a,b);  

  return 0;  
}

Compiler output:
main.c: In function 'main':
main.c:13:12: error: expected ';' before '}' token
   13 |       b = 0
      |            ^
      |            ;
   14 |   }else if((a - k) > 0){
      |   ~         
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#include<boost/multiprecision/cpp_int.hpp>
using namespace std;
using namespace boost::multiprecision;
#define BEGIN ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define END return EXIT_SUCCESS
#define rep(I,N) for(auto I=0;I<(N);++I)
#define up(I,A,B) for(auto I=(A);I<=(B);++I)
#define dw(I,A,B) for(auto I=(A);I>=(B);--I)
#define all(C) (C).begin(),(C).end()
#define rall(C) (C).rbegin(),(C).rend()
#define ft first
#define sd second
#define mp make_pair
#define mt make_tuple
#define pf push_front
#define pb push_back
#define eb emplace_back
#define lb lower_bound
#define ub upper_bound
#define rs resize
typedef long long ll;
typedef unsigned long long ull;
template<class T>inline void                                      in(T &p){cin>>p;}
template<class T1,class T2>inline void                            in(T1 &p1,T2 &p2){cin>>p1>>p2;}
template<class T1,class T2,class T3>inline void                   in(T1 &p1,T2 &p2,T3 &p3){cin>>p1>>p2>>p3;}
template<class T1,class T2,class T3,class T4>inline void          in(T1 &p1,T2 &p2,T3 &p3,T4 &p4){cin>>p1>>p2>>p3>>p4;}
template<class T1,class T2,class T3,class T4,class T5>inline void in(T1 &p1,T2 &p2,T3 &p3,T4 &p4,T5 &p5){cin>>p1>>p2>>p3>>p4>>p5;}
template<class T>inline void                                      ins(T &p){for_each(all(p),in<decltype(p[0])>);}
template<class T>inline void                             out(T p){cout<<p<<endl;}
template<class T1,class T2>inline void                   out(T1 p1,T2 p2){cout<<p1<<" "<<p2<<endl;}
template<class T1,class T2,class T3>inline void          out(T1 p1,T2 p2,T3 p3){cout<<p1<<" "<<p2<<" "<<p3<<endl;}
template<class T1,class T2,class T3,class T4>inline void out(T1 p1,T2 p2,T3 p3,T4 p4){cout<<p1<<" "<<p2<<" "<<p3<<" "<<p4<<endl;}
inline                                              void out(double p){printf("%.10f\n",p);}
template<class T>inline                             void outs(T p){for_each(all(p),out<decltype(p[0])>);}

inline void solve(void){
  long A,B,K;
  in(A,B,K);
  if(A>=K)cout<<A-K<<" "<<B<<endl;
  else cout<<0<<" "<<max(B-(K-A),0)<<endl;
}
int main(int argc,char**argv){
  BEGIN;
  solve();
  END;
}


Compiler output:
a.cc:2:9: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    2 | #include<boost/multiprecision/cpp_int.hpp>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C

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

int main(void){
  
  long long int t;
  long long int a;
  long long int k;
  
  scanf("%ld %ld %ld",&t,&a,&k);
  
  if(k>=t){
    if((k-t)>=a)
      printf("0 0");
    else
      printf("%ld %ld",0,a-(k-t));
  }
  else{
    printf("%ld %ld",t-k,a);

  return 0;
}

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

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

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

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

#include <bits/stdc++.h>
#define sz(arr) (int)arr.size()
#define all(arr) arr.begin(), arr.end()

using namespace std;
typedef long long ll;

void _cin() {}
template <class Head, class... Tail>
void _cin(Head&& head, Tail&&... tail) {
  cin >> head;
  _cin(forward<Tail>(tail)...);
}

#define Cin(T, ...) \
  T __VA_ARGS__;    \
  _cin(__VA_ARGS__)

int main() {
  Cin(ll, a, b, k);

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

  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i=0;i<(n);i++)
typedef long long ll;
int main() {
  ll m=0,n,v=1,p=0,ans=0,ans3=0,memo,memob;
  string worda,wordb;
  bool flag;
  cin>>m>>n>>v;
  if(m<v){n-=v-m;m=0;}
  else {m-=v;}
  cout<<m<<' '<<n<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: expected '}' at end of input
   12 |   cout<<m<<' '<<n<<endl;
      |                         ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

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

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

 Q=K-A;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:24: error: expected '}' at end of input
   14 |  cout<<A<<" "<<B<<endl;
      |                        ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<cstdio>
#include <iostream>
#include<sstream>
#include<fstream>
#include<iomanip>
#include<algorithm>
#include<cmath>
#include<complex>
#include <cstring>
#include<vector>
#include<list>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<bitset>
#include<numeric>
#include<limits>
#include<climits>
#include<cfloat>
#include<functional>
#include<iterator>
#include <random>
#define inf  1000000000
#define mod  1073741824
#pragma GCC optimization ("O3")
using namespace std;
const int N = 100*1000+5;
#define all(x) begin(x),end(x)
int main()
{
   
    // freopen("input.txt","r",stdin);
    // freopen("output.txt","w",stdout);
    //ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
    long long int t,a,k l=0;
    cin >> t >> a >> k;
    if(k <= t)
    {
        cout << t-k << " " << a;
        return 0;
    }
    else
    {
        cout << 0 << " " << max(l,a-abs(k-t));
        return 0;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:25: error: expected initializer before 'l'
   36 |     long long int t,a,k l=0;
      |                         ^
a.cc:37:22: error: 'k' was not declared in this scope
   37 |     cin >> t >> a >> k;
      |                      ^
a.cc:45:33: error: 'l' was not declared in this scope
   45 |         cout << 0 << " " << max(l,a-abs(k-t));
      |                                 ^
Language: Java

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

Compiler output:
Main.java:27: error: reached end of file while parsing
     System.out.println(t + " " + a);
                                     ^
1 error