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

#include<iostream>
#include<bits/stdc++.h>

using namespace std;
typedef long long ll;

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

Compiler output:
a.cc:24:2: error: expected class-name at end of input
   24 | ~
      |  ^
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		 Scanner scan = new Scanner(System.in);
		 int A = scan.next();
		 int B = scan.next();
		 int K = scan.next();
		 for(int i = 0; i < K; i++) {
			 if(A >= 1) {
				 A -= 1;
			 }else{
				 B -= 1;{
			 }
				 System.out.print(A + " ");
				 System.out.println(B);
			 }
		 }

	}

}

Compiler output:
Main.java:7: error: incompatible types: String cannot be converted to int
		 int A = scan.next();
		                  ^
Main.java:8: error: incompatible types: String cannot be converted to int
		 int B = scan.next();
		                  ^
Main.java:9: error: incompatible types: String cannot be converted to int
		 int K = scan.next();
		                  ^
3 errors
Language: C++

using namespace std;
using ll=long long;
#define rep(i, n) for (int i = 0; i < (n); i++)
using P=pair<int,int>;

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

Compiler output:
a.cc:4:9: error: 'pair' does not name a type
    4 | using P=pair<int,int>;
      |         ^~~~
a.cc: In function 'int main()':
a.cc:7:14: error: 'cin' was not declared in this scope
    7 |     ll a,b,k;cin>>a>>b>>k;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout<<a<<" "<<b<<endl;
      |     ^~~~
a.cc:19:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:22: error: 'endl' was not declared in this scope
   19 |     cout<<a<<" "<<b<<endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include<bits/stdc++.h>
#define rep(i,a) for(int (i)=0; (i)<(a); (i)++)
#define rrep(i,a) for(int (i)=a-1; (i)>=(0); (i)--)
#define rep2(i,a,b) for(int (i)=(a); (i)<(b); (i)++)
#define MOD 1000000007
#define ALL(v) v.begin(), v.end()
typedef long long ll;

using namespace std;


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

  return 0;
}

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

#include<iostream>
using namespace std;
 
int main()
{
  
  long long int a,b,k;
  cin>>a>>b>>k;
  
  ll tot = min(a,k);
  a -= tot;
  k -= tot;
  tot = min(b,k);
  b -= tot;
  
  cout<<a<<" "<<b<<"\n";
 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'll' was not declared in this scope
   10 |   ll tot = min(a,k);
      |   ^~
a.cc:11:8: error: 'tot' was not declared in this scope
   11 |   a -= tot;
      |        ^~~
Language: C++

#include<iostream>
using namespace std;

int main()
{
  
  ll a,b,k;
  cin>>a>>b>>k;
  
  ll tot = min(a,k);
  a -= tot;
  k -= tot;
  tot = min(b,k);
  b -= tot;
  
  cout<<a<<" "<<b<<"\n";

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'll' was not declared in this scope
    7 |   ll a,b,k;
      |   ^~
a.cc:8:8: error: 'a' was not declared in this scope
    8 |   cin>>a>>b>>k;
      |        ^
a.cc:8:11: error: 'b' was not declared in this scope
    8 |   cin>>a>>b>>k;
      |           ^
a.cc:8:14: error: 'k' was not declared in this scope
    8 |   cin>>a>>b>>k;
      |              ^
a.cc:10:5: error: expected ';' before 'tot'
   10 |   ll tot = min(a,k);
      |     ^~~~
      |     ;
a.cc:11:8: error: 'tot' was not declared in this scope
   11 |   a -= tot;
      |        ^~~
Language: C++

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

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

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'k' was not declared in this scope
   10 |     if(a<=k) cout << 0 << " " << a+b-k;
      |           ^
Language: C++

#include<iostream>
using namespace std;
using ll=long long;
int main(){
  ll A,B,K;
  cin >> A >> B >> K;
  if(A>=K){
    A-=K;
  }
  else if(A+B>=K){
    K-=A;
    B-=K;
    A=0;
  } else{
    A=0;
    B=0;
  }
  coit << A<<" "<<B<<endl;
}

  

Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: 'coit' was not declared in this scope
   18 |   coit << A<<" "<<B<<endl;
      |   ^~~~
Language: C++

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

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

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

}

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

#include <stdio.h>

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

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

        if(a>k)
                printf("%ld %ld",a-k,b);
        if else (a+b>=k)
                printf("0 %ld",a+b-k);
        else
                printf("0 0");

        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:12: error: expected '(' before 'else'
   11 |         if else (a+b>=k)
      |            ^~~~
      |            (
Language: C

#include <stdio.h>

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

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

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

        printf("%d %d",a,b);
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected ';' before ':' token
    9 |         for(i=0;i<k:i++){
      |                    ^
      |                    ;
Language: C

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

	if(a>=k)
		printf("%lld %lld\n",a-k,b);
	else if(a+b>=k)
		printf("0 %lld\n",a+b-k);
	else 
		printf("0 0\n");

	return 0
}



Compiler output:
main.c: In function 'main':
main.c:14:17: error: expected ';' before '}' token
   14 |         return 0
      |                 ^
      |                 ;
   15 | }
      | ~
Language: C

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

	if(a>=k)
		printf("%ld %ld\n",a-k,b);
	else if(a+b>=k)
		printf("0 %ld\n",a+b-k);
	else 
		printf("0 0\n");

	return 0
}



Compiler output:
main.c: In function 'main':
main.c:14:17: error: expected ';' before '}' token
   14 |         return 0
      |                 ^
      |                 ;
   15 | }
      | ~
Language: C

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

	if(a>=k)
		printf("%d %d\n",a-k,b);
	else if(a+b>=k)
		printf("0 %d\n",a+b-k);
	else 
		printf("0 0\n");

	return 0
}



Compiler output:
main.c: In function 'main':
main.c:14:17: error: expected ';' before '}' token
   14 |         return 0
      |                 ^
      |                 ;
   15 | }
      | ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: 'x' was not declared in this scope
   11 |   else if (a < k && x < b) {
      |                     ^
Language: C++

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

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

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

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

int main() {
    ll a, b, k;a
    cin >> a >> b >> k;
    P ans;
    if (a > k) {
        ans.first = a-k;
        ans.second = b;
    } else {
        ans.first = 0;
        ans.second = a+b-k;
        if (ans.second < 0) ans.second = 0;
    }
    printf("%d %d", ans.first, ans.second);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' before 'cin'
    8 |     ll a, b, k;a
      |                 ^
      |                 ;
    9 |     cin >> a >> b >> k;
      |     ~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected unqualified-id before '=' token
    6 |   for (int = 1; i <= k; i++) {
      |            ^
a.cc:6:11: error: expected ';' before '=' token
    6 |   for (int = 1; i <= k; i++) {
      |           ^~
      |           ;
a.cc:6:12: error: expected primary-expression before '=' token
    6 |   for (int = 1; i <= k; i++) {
      |            ^
a.cc:6:17: error: 'i' was not declared in this scope
    6 |   for (int = 1; i <= k; i++) {
      |                 ^
a.cc:6:23: error: expected ')' before ';' token
    6 |   for (int = 1; i <= k; i++) {
      |       ~               ^
      |                       )
a.cc:6:25: error: 'i' was not declared in this scope
    6 |   for (int = 1; i <= k; i++) {
      |                         ^
Language: C++

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

Compiler output:
a.cc:1:24: error: missing terminating > character
    1 | #include <bits/stdc++.h
      |                        ^
a.cc: In function 'int main()':
a.cc:6:12: error: expected unqualified-id before '=' token
    6 |   for (int = 1; i <= k; i++) {
      |            ^
a.cc:6:11: error: expected ';' before '=' token
    6 |   for (int = 1; i <= k; i++) {
      |           ^~
      |           ;
a.cc:6:12: error: expected primary-expression before '=' token
    6 |   for (int = 1; i <= k; i++) {
      |            ^
a.cc:6:17: error: 'i' was not declared in this scope
    6 |   for (int = 1; i <= k; i++) {
      |                 ^
a.cc:6:23: error: expected ')' before ';' token
    6 |   for (int = 1; i <= k; i++) {
      |       ~               ^
      |                       )
a.cc:6:25: error: 'i' was not declared in this scope
    6 |   for (int = 1; i <= k; i++) {
      |                         ^
Language: C++

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

Compiler output:
a.cc:1:25: error: missing terminating > character
    1 | #include <bits/stdc++.h?
      |                         ^
a.cc:1:10: fatal error: bits/stdc++.h?: No such file or directory
    1 | #include <bits/stdc++.h?
      |          ^
compilation terminated.
Language: Java

import java.util.*;

public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            long kcookie = sc.nextLong();
            long acookie = sc.nextLong();
            long count = sc.nextLong();

            long ans1 = Math.max(0, kcookie - count);
            long ans2 = Math.max(0, Math.min(A+B-K,B));
            System.out.println(ans1 + " " + ans2);
            }
}

Compiler output:
Main.java:11: error: cannot find symbol
            long ans2 = Math.max(0, Math.min(A+B-K,B));
                                             ^
  symbol:   variable A
  location: class Main
Main.java:11: error: cannot find symbol
            long ans2 = Math.max(0, Math.min(A+B-K,B));
                                               ^
  symbol:   variable B
  location: class Main
Main.java:11: error: cannot find symbol
            long ans2 = Math.max(0, Math.min(A+B-K,B));
                                                 ^
  symbol:   variable K
  location: class Main
Main.java:11: error: cannot find symbol
            long ans2 = Math.max(0, Math.min(A+B-K,B));
                                                   ^
  symbol:   variable B
  location: class Main
4 errors
Language: C++

#include "bits/stdc++.h"

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

using namespace std;

long long gcd(long long a, long long b){
    if (a % b == 0)return(b);
    else return(gcd(b, a % b));
}

long long lcm(long long a, long long b) {
	return a * b / gcd(a, b);
}


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

Compiler output:
a.cc: In function 'int main()':
a.cc:24:15: error: expected '}' at end of input
   24 |         else {
      |              ~^
a.cc:24:15: error: expected '}' at end of input
a.cc:17:12: note: to match this '{'
   17 | int main() {
      |            ^
Language: C++

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

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

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

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:25: error: expected ';' before 'A'
    5 |   long long A, B, K; cin A >> B >> K;
      |                         ^~
      |                         ;
Language: C++

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

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

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

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:25: error: expected ';' before 'A'
    5 |   long long A, B, K; cin A >> B >> K;
      |                         ^~
      |                         ;
Language: C++

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

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

}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: lvalue required as left operand of assignment
   12 |     else if(B>0)+
      |                 ^
   13 |       B=B-1;
      |       ~          
a.cc:15:5: error: 'else' without a previous 'if'
   15 |     else if(A==0&&B==0){
      |     ^~~~
a.cc:16:7: error: break statement not within loop or switch
   16 |       break;
      |       ^~~~~
Language: C++

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

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

}
  

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
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;}
  else if(K>A)
  {
    int p=K-A;
    cout<<"0"<<" "<<B-p;}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'k' was not declared in this scope
    7 |   if(k<=A)
      |      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'p' was not declared in this scope
    7 |   p=K-A;
      |   ^
Language: C

#include<stdio.h>
int main()
{
long long int a,b,c;
  scanf("%lld %lld %lld",&a,&b,&c);
  if(a+b<=c) printf("0 0");
  else if(a>c) printf("%lld %lld",a-c,b)
  else printf("0 %lld",a+b-c);



return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:41: error: expected ';' before 'else'
    7 |   else if(a>c) printf("%lld %lld",a-c,b)
      |                                         ^
      |                                         ;
    8 |   else printf("0 %lld",a+b-c);
      |   ~~~~
Language: C++

#include <algorithm>
#include <cstdint>
#include <cstdio>

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

using namespace std;

int rint() {
  int n;
  scanf("%lld", &n);
  return n;
}

void wint(int n) {
  printf("%lld\n", n);
}

signed main() {
  int A = rint();
  int B = rint();
  int K = rint();
  printf("%lld %lld\n", A - min(A, K), B - min(B, max(K - A, 0LL)));
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:54: error: no matching function for call to 'max(int_fast64_t, long long int)'
   24 |   printf("%lld %lld\n", A - min(A, K), B - min(B, max(K - A, 0LL)));
      |                                                   ~~~^~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:24:54: note:   deduced conflicting types for parameter 'const _Tp' ('long int' and 'long long int')
   24 |   printf("%lld %lld\n", A - min(A, K), B - min(B, max(K - A, 0LL)));
      |                                                   ~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:24:54: note:   mismatched types 'std::initializer_list<_Tp>' and 'long int'
   24 |   printf("%lld %lld\n", A - min(A, K), B - min(B, max(K - A, 0LL)));
      |                                                   ~~~^~~~~~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: expected ';' before ':' token
   14 |       B -= 1:
      |             ^
      |             ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:9:15: error: expected ';' before '{' token
    9 |     }else(b>0){
      |               ^
      |               ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:15: error: expected ';' before '{' token
    9 |     }else(b>0){
      |               ^
      |               ;
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--;
    }
    if(A=0 && B>0){
      B--;
    }
    if(A=0 && B=0){
      break;
    }
  }
  cout<<A<<" "<<B<<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: lvalue required as left operand of assignment
   14 |     if(A=0 && B=0){
      |          ~~^~~~
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--;
    }
    if(A=0 && B>0){
      B--;
    }
    if(A=0 &&B=0){
      break;
    }
  }
  cout<<A<<" "<<B<<endl;
  
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin >> A >> B >> K;
      |     ^~~
a.cc:7:13: error: 'K' was not declared in this scope
    7 |     if(A >= K){
      |             ^
Language: C++

#include <iostream>
#include <cmath>
#include <stdio.h>

//using ll = long long;
using namespace std;
#define int long long

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

	}
	else {
		A = A - K;
	}
	
	cout << A << " " <<  B << endl;

	return 0;
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C

#include <stdio.h>

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

  if(A>=K){
    A=A-K;
    printf("%ld ",A);
    printf("%ld",B);
   }

  else if (A+B>=K){
           printf("0 ");
           printf("%ld\n",B-(K-A));
   }
  else {
       printf("0 ");
       printf("0\n");
  }


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

#include <stdio.h>

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

  if(A>=K){
    A=A-K;
    printf("%ld",A);
    printf("%2ld",B);
   }

  else if (A+B>=K){
           printf("0");
           printf("%2ld\n",B-(K-A));
   }
  else {
       printf("0");
       printf(" 0\n");
  }


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

#include <stdio.h>

int main(void)
{
 long A,B,K,i;
 scanf("%d%d%d",&A,&B,&K);

  if(A>=K){
    A=A-K;
    printf("%ld",A);
    printf("%2ld",B);
   }

  else if (A+B>=K){
           printf("0");
           printf("%2ld\n",B-(K-A));
   }
  else {
       printf("0");
       printf(" 0\n");
  }



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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const ll mod = 1e9 + 7;
 
 
int main() {
	int a, b, k;
	cin >> a >> b >> k;
	if (k > a) {
		k -= a;
		a = 0;
		b = max(0LL, b - k);
	}
	else {
		a -= k;
	}
	cout << a << ' ' << b;
}

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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const ll mod = 1e9 + 7;
 
 
int main() {
	ll a, b, k;
	cin >> a >> b >> k;
	if (k > a) {
		k -= a;
		a = 0;
		b = max(0, b - k);
	}
	else {
		a -= k;
	}
	cout << a << ' ' << b;
}

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

#include <bits/stdc++.h>
using namespace std;
#define ld long double
#define ll long long
#define pb push_back
#define F first
#define S second
const int mod = 1e9+7, A = 4e4+5;
int main()
{
    ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
    ll a, b, k;
    cin >> a >> b >> k;
    ll val = min(k, a);
    a -= val, k -= val;
    b = max(0, b - k);
    cout << a << ' ' << b;
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
#define ld long double
#define ll long long
#define pb push_back
#define F first
#define S second
const int mod = 1e9+7, A = 4e4+5;

int main()
{
    ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
  ll a, b, k;
  cin >> a >> b >> k;
  ll val min(k, a);
  a -= val, k -= val;
  b = max(0, b - k);
  cout << a << ' ' << b;
    return 0;
}

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

import java.util.Scanner;

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


Compiler output:
Main.java:19: error: no suitable method found for print(int,int)
        System.out.print(A,B);
                  ^
    method PrintStream.print(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:14: error: not a statement
         	}else(B >= 1){
         	     ^
Main.java:14: error: ';' expected
         	}else(B >= 1){
         	             ^
2 errors
Language: C

include<stdio.h>
int main()
{

    long int a,b,k,p,q;
    scanf("%li",&a);
    scanf("%li",&b);
    scanf("%li",&k);
    if(a+b<k)
      {

       p=0;
      q=0;
       printf("%li %li\n",p, q);
   return 0;
      }


          if(a>k)
          {
              p=a-k;
      q=b;
         printf("%li %li\n",p, q);
   return 0;
          }


              else(a<k);
                 {
              p=0;
      q=b-(k-a);
        printf("%li %li\n",p, q);
   return 0;

      }




}




Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

vc#include <bits/stdc++.h>
using namespace std;
#define FOR(i, o, n) for (auto i = (o); (i) < (n); ++(i))
#define FOR1(i, n) FOR(i, 1, n+1)
#define REP(i, n) FOR(i, 0, n)
#define REPR(i, n) for (auto i = (n)-1; (i) >= 0; --i)
#define REPI(itr, v) for (auto itr = v.begin(); itr != v.end(); ++itr)
#define REPIR(itr, v) for (auto itr = v.rbegin(); itr != v.rend(); ++itr)
#define fi first
#define se second
#define ll long long
#define int long long
#define V2(name, h, w) vector<vector<int> > name((h), vector<int>(w));

#define dl(line) cerr << "RUN: until " << (line) << "th line." << endl
#define dv(name, value) cerr << (name) << " is " << (value) << endl
#define da(v)  cerr << "["; REPI(itr, v){cerr << *itr << (itr != --v.end() ? ", " : "");} cerr << "]" << endl


void solve(long long A, long long B, long long K){
  int a = 0, b = 0;
  dv("k", K);
  a = (K - A > 0 ? 0 : A - K);
  K = max((ll)0, K - A);
  dv("k", K);

  b = (K - B > 0 ? 0 : B - K);
  K = max((ll)0, K - B);
  dv("k", K);

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

signed main(){
  long long A;
  scanf("%lld",&A);
  long long B;
  scanf("%lld",&B);
  long long K;
  scanf("%lld",&K);
  solve(A, B, K);
}


Compiler output:
a.cc:1:3: error: stray '#' in program
    1 | vc#include <bits/stdc++.h>
      |   ^
a.cc:1:1: error: 'vc' does not name a type
    1 | vc#include <bits/stdc++.h>
      | ^~
a.cc: In function 'void solve(long long int, long long int, long long int)':
a.cc:16:25: error: 'cerr' was not declared in this scope
   16 | #define dv(name, value) cerr << (name) << " is " << (value) << endl
      |                         ^~~~
a.cc:22:3: note: in expansion of macro 'dv'
   22 |   dv("k", K);
      |   ^~
a.cc:16:64: error: 'endl' was not declared in this scope; did you mean 'dl'?
   16 | #define dv(name, value) cerr << (name) << " is " << (value) << endl
      |                                                                ^~~~
a.cc:22:3: note: in expansion of macro 'dv'
   22 |   dv("k", K);
      |   ^~
a.cc:24:7: error: 'max' was not declared in this scope
   24 |   K = max((ll)0, K - A);
      |       ^~~
a.cc:31:3: error: 'cout' was not declared in this scope
   31 |   cout << a << ' '  << b << endl;
      |   ^~~~
a.cc: In function 'int main()':
a.cc:36:3: error: 'scanf' was not declared in this scope
   36 |   scanf("%lld",&A);
      |   ^~~~~
Language: C

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


Compiler output:
main.c:5:15: error: expected declaration specifiers or '...' before string constant
    5 |         scanf("%d %d %d",&a,&b,&k);
      |               ^~~~~~~~~~
main.c:5:26: error: expected declaration specifiers or '...' before '&' token
    5 |         scanf("%d %d %d",&a,&b,&k);
      |                          ^
main.c:5:29: error: expected declaration specifiers or '...' before '&' token
    5 |         scanf("%d %d %d",&a,&b,&k);
      |                             ^
main.c:5:32: error: expected declaration specifiers or '...' before '&' token
    5 |         scanf("%d %d %d",&a,&b,&k);
      |                                ^
main.c:6:9: error: expected identifier or '(' before 'if'
    6 |         if(a >= k){
      |         ^~
main.c:8:6: error: expected identifier or '(' before 'else'
    8 |     }else if(a < k){
      |      ^~~~
main.c:11:1: error: expected identifier or '(' before 'return'
   11 | return 0;
      | ^~~~~~
main.c:12:1: error: expected identifier or '(' before '}' token
   12 | }
      | ^