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;
  cout<<max(0ll,a+b-k)<<endl;
  return 0;
}


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

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

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

#include<stdio.h>                                                              
 
int main(){
	long int taka,aoki,koudou;
	int i;
 	if(scanf("%d%d%d",&taka,&aoki,&koudou)<3) return -1;
 	if(taka<koudou){
		koudou -= taka;
		taka = 0;
     	if(aoki<koudou){
       		koudou -= aoki;
       		aoki = 0;
     	}
    else{
      if(aoki<koudou) aoki-=koudou;
      else aoki = 0;
   		}
 	}
   	else{
     	if(taka<koudou) taka-=koudou;
      else taka = 0
   	}
   	printf("%d %d\n",taka,aoki);
 }          

Compiler output:
main.c: In function 'main':
main.c:21:20: error: expected ';' before '}' token
   21 |       else taka = 0
      |                    ^
      |                    ;
   22 |         }
      |         ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: break statement not within loop or switch
   13 |       break;
      |       ^~~~~
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;
	elseif(a+b>k){
		cout<<0<<" "<<b+a-k;
		}
	else{
		cout<<0<<" "<<0;
		}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'elseif' was not declared in this scope
    8 |         elseif(a+b>k){
      |         ^~~~~~
a.cc:11:9: error: 'else' without a previous 'if'
   11 |         else{
      |         ^~~~
Language: C++

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

int main(){
  int A,B,K;
  cin>>A,B,k;
  while(K){
    if(A>=1){
      A-=1;
    }
    else if(B>=1){
      B-=1
    }
    k--;
  }
  cout<<"Cookies with T = " <<A;
  cout<<"\n Cookies with A = " <<B;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'k' was not declared in this scope
    6 |   cin>>A,B,k;
      |            ^
a.cc:12:11: error: expected ';' before '}' token
   12 |       B-=1
      |           ^
      |           ;
   13 |     }
      |     ~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:13:3: error: expected declaration or statement at end of input
   13 |   printf("%d %d\n",a,b);
      |   ^~~~~~
Language: C

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

  
  

Compiler output:
main.c: In function 'main':
main.c:13:3: error: expected declaration or statement at end of input
   13 |   printf("%d %d\n",a,b);
      |   ^~~~~~
Language: C

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

  
  

Compiler output:
main.c: In function 'main':
main.c:13:3: error: expected declaration or statement at end of input
   13 |   printf("%d %d\n",a,b);
      |   ^~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:3:13: error: 'i' undeclared (first use in this function)
    3 |   int a,b,k;i;
      |             ^
main.c:3:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:3: error: expected declaration or statement at end of input
   13 |   printf("%d %d\n",a,b);
      |   ^~~~~~
Language: C

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

  
  

Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'i' undeclared (first use in this function)
    5 |   for(i=1;i<=k;i++) {
      |       ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:3: error: expected declaration or statement at end of input
   13 |   printf("%d %d\n",a,b);
      |   ^~~~~~
Language: C

#include<stdio.h>                                                              
  2 
  3 int main(){
  4 ▸-long int taka,aoki,koudou;
  5   int i;
  6   if(scanf("%d%d%d",&taka,&aoki,&koudou)<3) return -1;
  7   if(taka<koudou){
  8     koudou -= taka;
  9     taka = 0;
 10     if(aoki<koudou){
 11       koudou -= aoki;
 12       aoki = 0;
 13     }
 14     else{
 15       aoki-=koudou;
 16     }
 17   }
 18   else{
 19     taka-=koudou;
 20   }
 21   printf("%d %d\n",taka,aoki);
 22 }

Compiler output:
main.c:2:3: error: expected identifier or '(' before numeric constant
    2 |   2
      |   ^
main.c:4:5: error: stray '\342' in program
    4 |   4 <U+25B8>-long int taka,aoki,koudou;
      |     ^~~~~~~~
Language: C++

#include <iostream>

using namespace std;

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


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

#efine _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<bool> vb;
typedef vector<string> vs;
typedef vector<ll> vl;
typedef vector<vector<int> > vvi;
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define in insert
#define FOR(i,a,b) for (int i = a; i < b; i++)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define speed ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
const int INF = 1e9 + 7;
int main(){
    ll a, b, k;
    cin >> a >> b >> k;
    if(a >= k){
        a = a-k;
        k = 0;
    }
    else{
        k-=a;
        a = 0;
    }
    if(b>=k){
        b-=k;
        k = 0;
    }
    else{
        b = 0;
        k-=b;
    }
    cout << a << " " << b;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #efine; did you mean #define?
    1 | #efine _GLIBCXX_DEBUG
      |  ^~~~~
      |  define
Language: C++

#include <iostream>
using namespace std;

 int main(){
 long long a, b, c;

  cin>>a>>b>>c;
  if(a==b)
    cout<<0<<""<<0<<endl;
  else
    
	b=a;
  	a=0;
  cout<<a<<b;
  return 0;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: expected ',' or ';' before 'cout'
   12 |       cout <<c<<b-c<<endl ;
      |       ^~~~
Language: C++

#include<iostream>

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((A == 0) && (B > 0)) --B;
    
    else continue;
    
  }
  
  cout << A << " " <<  B;
  

Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: lvalue required as decrement operand
   15 |     else((A == 0) && (B > 0)) --B;
      |         ~~~~~~~~~~^~~~~~~~~~~
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else continue;
      |     ^~~~
a.cc:21:26: error: expected '}' at end of input
   21 |   cout << A << " " <<  B;
      |                          ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

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

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

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

#include<iostream>

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 else((A == 0) && (B > 0)) B--;
    
    else continue;
    
  }
  
  cout << A << " " << B;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: expected '(' before 'else'
   15 |     if else((A == 0) && (B > 0)) B--;
      |        ^~~~
      |        (
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else continue;
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int A, B, K;
  cin >> A;
  cin >> B;
  cin >> C;
  if ( A >= K ){
    cout << A - K << ' ' << B << endl;
  }
  else if ( A + B >= K ){
    cout << 0 << ' ' << B - (K-A) << endl;
  }
  else {
    cout << 0 << ' ' << 0 << endl;
  }
}
  

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

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

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

#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const long long INF = 9999999999999999;
using ll = long long;
int main(){
  ll A,B,C;
  if(A>C){
    cout << A-C << " " << B << endl;
  }
  else if((A+B)>C){
    cout << 0 << " " << A+B-c << endl;
  }
  else{
    cout << 0 << " " << 0 << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: 'c' was not declared in this scope
   12 |     cout << 0 << " " << A+B-c << endl;
      |                             ^
Language: C++

#include<bits/stdc++.h>
#define ALL(v) v.begin(), v.end()
// greater<int>()
typedef long long ll;
ll GCD(ll x, ll y) { return y ? GCD(y, x%y) : x; }
ll LCM(ll x, ll y) { return x * y / GCD(x, y); }
 
using namespace std;
 
int main() {
	ll A, B, K;
	cin >> A >> B >> K;
 
	if (L <= 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: In function 'int main()':
a.cc:14:13: error: 'L' was not declared in this scope
   14 |         if (L <= A) {
      |             ^
Language: C++

#include<bits/stdc++.h>
#define ALL(v) v.begin(), v.end()
// greater<int>()
typedef long long ll;
ll GCD(ll x, ll y) { return y ? GCD(y, x%y) : x; }
ll LCM(ll x, ll y) { return x * y / GCD(x, y); }

using namespace std;

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

	if (L <= 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: In function 'int main()':
a.cc:14:13: error: 'L' was not declared in this scope
   14 |         if (L <= A) {
      |             ^
a.cc:18:18: error: 'k' was not declared in this scope
   18 |         else if (k <= A+B) {
      |                  ^
Language: C++

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


Compiler output:
a.cc:3:1: error: 'in' does not name a type; did you mean 'int'?
    3 | in tmain(){
      | ^~
      | int
Language: Java

import java.util.*;

public class main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		long n1 = scn.nextLong();
		long n2 = scn.nextLong();
		long n3 = scn.nextLong();
		if(n1>=n3) {
			n1 = n1-n3;
			n3 = 0;
		} else {
			n3 = n3-n1;
			n1 = 0;
		}
		if(n2>=n3) {
			n2 = n2-n3;
			n3 = 0;
		} else {
			n3 = n3-n1;
			n2 = 0;
		}
		System.out.println(n1+" "+n2);
		scn.close();
	}
}

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

import java.util.*;

public class cagon {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		long n1 = scn.nextLong();
		long n2 = scn.nextLong();
		long n3 = scn.nextLong();
		if(n1>=n3) {
			n1 = n1-n3;
			n3 = 0;
		} else {
			n3 = n3-n1;
			n1 = 0;
		}
		if(n2>=n3) {
			n2 = n2-n3;
			n3 = 0;
		} else {
			n3 = n3-n1;
			n2 = 0;
		}
		System.out.println(n1+" "+n2);
		scn.close();
	}
}

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

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

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


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

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

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

Compiler output:
a.cc:2:1: error: 'usign' does not name a type
    2 | usign namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> x;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout <<0 << " "<< max(a-x , 0 ) << endl ;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:21: error: 'max' was not declared in this scope; did you mean 'std::max'?
    8 |   cout <<0 << " "<< max(a-x , 0 ) << endl ;
      |                     ^~~
      |                     std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:8:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout <<0 << " "<< max(a-x , 0 ) << endl ;
      |                                      ^~~~
      |                                      std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main() {
  long long int a , b , x;
  cin >> a >> b >> x;
  a += b ;
  cout << max(a-x , 0LL ) ;
 return 0 ; 
}

Compiler output:
a.cc:2:1: error: 'usign' does not name a type
    2 | usign namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> x;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << max(a-x , 0LL ) ;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:11: error: 'max' was not declared in this scope; did you mean 'std::max'?
    8 |   cout << max(a-x , 0LL ) ;
      |           ^~~
      |           std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc:2:1: error: 'usign' does not name a type
    2 | usign namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> x;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << max(a-x , 0 ) ;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:11: error: 'max' was not declared in this scope; did you mean 'std::max'?
    8 |   cout << max(a-x , 0 ) ;
      |           ^~~
      |           std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

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


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

#include<iostream>
using namespaces std;
int main()
{
  long a,at,b,k;
  cin>>a>>b>>k;
  at = a;
  a = max(0, a-k);
  if(a==0)
  {
    b = max(0, b - (k-at));
  }
  
  cout<<a<<" "<<b;
  
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespaces'
    2 | using namespaces std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>a>>b>>k;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:7: error: 'max' was not declared in this scope; did you mean 'std::max'?
    8 |   a = max(0, a-k);
      |       ^~~
      |       std::max
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:
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: 'std::max' declared here
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout<<a<<" "<<b;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

A, B, K = list(map(int, input().split()))
tmp = min(A, K)
A -= tmp
K -= tmp
tmp = min(B, K)
B -= tmp
print(A, B)


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected primary-expression before '<' token
    9 |       if(A+B-K=<0){
      |                ^
Language: C++

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

int32_t main(int32_t argc, char const *argv[])
{
	int a,b,c;
	cin >> a >> b >> c;
	if(a >= c){
		a-=c;
		cout << a << " " << b << endl;exit(0);
	}
	else{
		c -= a;
		b -= c;
		a = 0;
		b = max(b,0);

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

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

//https:
#include
#include
using na
#define 
int main
{
	ll a
	cin 
	if(k
		
	}
	else
		
		
	}
	else
		
	retu
}
		


Compiler output:
main.c:2:9: error: #include expects "FILENAME" or <FILENAME>
    2 | #include
      |         ^
main.c:3:9: error: #include expects "FILENAME" or <FILENAME>
    3 | #include
      |         ^
main.c:4:1: error: unknown type name 'using'
    4 | using na
      | ^~~~~
main.c:5:9: error: no macro name given in #define directive
    5 | #define
      |         ^
main.c:4:9: error: expected ';' before 'int'
    4 | using na
      |         ^
      |         ;
    5 | #define
    6 | int main
      | ~~~      
main.c:7:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    7 | {
      | ^
main.c:13:9: error: expected identifier or '(' before 'else'
   13 |         else
      |         ^~~~
main.c:17:9: error: expected identifier or '(' before 'else'
   17 |         else
      |         ^~~~
Language: C++

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

Compiler output:
a.cc:3:1: error: expected unqualified-id before '{' token
    3 | {
      | ^
Language: Java

    public static void main(String[] args) {
        new Main().run();
    }

    public void run() {
        Scanner sc = new Scanner(System.in);
        long A = sc.nextLong();
        long B = sc.nextLong();
        long K = sc.nextLong();

        for (long i = 0; i < K; i++) {
            if (A >= 1) {
                A--;
            } else if (B >= 1) {
                B--;
            } else {
                break;
            }
        }
        System.out.println(A + " " + B);
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args) {
                  ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    long a = scan.nextLong();
    long b = scan.nextLong();
    long k = scan.nextLong();
    if(a >= k){
      int x = a-k;
      System.out.println(x + " " + b);
    }else{
      int x = a+b-k;
      System.out.println(0 + " " + x);
    }
  }
}


Compiler output:
Main.java:9: error: incompatible types: possible lossy conversion from long to int
      int x = a-k;
               ^
Main.java:12: error: incompatible types: possible lossy conversion from long to int
      int x = a+b-k;
                 ^
2 errors
Language: Java

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

Compiler output:
Main.java:3: error: <identifier> expected
  pubic static void main(String[] args){
       ^
1 error
Language: C++

#include <bits/stdc++.h>
#define Rep(i, n) for (int i = 0; i < (int)(n); i++)
 
using namespace std;
  
int main(){
	long A,B,K;
  	scanf("%ld %ld %ld",&A,&B,&K);
  	print("%ld %ld\n",max((long)0,A-K),B-max((long)0,K-A));
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'print' was not declared in this scope; did you mean 'rint'?
    9 |         print("%ld %ld\n",max((long)0,A-K),B-max((long)0,K-A));
      |         ^~~~~
      |         rint
Language: C++

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

#define ll long long

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: no matching function for call to 'max(int, long long int)'
   11 |         cout << "0 " << max(0, b-c+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:11:28: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   11 |         cout << "0 " << max(0, b-c+a);
      |                         ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/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:28: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   11 |         cout << "0 " << max(0, b-c+a);
      |                         ~~~^~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
int a,b,c;
int main()
{
	cin>>a>>b>>c;
	a:
	if (a>0&&c>0){
		a=a-1;
		c=c-1;
		goto a;
	}else{
		if (b>0){
			b=b-1;
		}else{
			break;
		}
	}
	cout<<a<<" "<<b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: break statement not within loop or switch
   16 |                         break;
      |                         ^~~~~
Language: Java

import java.util.Scanner;

public class GreedyTakahashi {

    private static Scanner prepareInput() {
        return new Scanner(System.in);
    }

    public static void main(String... args) {
        Scanner sc = prepareInput();
        long A = Long.parseLong(sc.next());
        long B = Long.parseLong(sc.next());
        long K = Long.parseLong(sc.next());

        for (int i = 0; i < K; i++) {
            if (A == 0 && B == 0) {
                break;
            }

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

        StringBuilder sb = new StringBuilder();
        sb.append(A);
        sb.append(" ");
        sb.append(B);

        System.out.println(sb.toString());
    }
}


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

int a,b,c;
  cin>>a>>b>>c;
  if(c<=a){
    cout<<a-c<<" "<<b;
  }
  if(c>a){
    cout<<0<<" "<<b-(c-a);
  }

Compiler output:
a.cc:2:3: error: 'cin' does not name a type
    2 |   cin>>a>>b>>c;
      |   ^~~
a.cc:3:3: error: expected unqualified-id before 'if'
    3 |   if(c<=a){
      |   ^~
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if(c>a){
      |   ^~
Language: C++

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

Compiler output:
a.cc:1:1: error: 'inlude' does not name a type; did you mean 'inline'?
    1 | inlude<bits/stdc++.h>
      | ^~~~~~
      | inline
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a>>b>>k;
      | ^~~
a.cc:18:3: error: 'cout' was not declared in this scope
   18 |   cout<<a<<" "<<b;
      |   ^~~~
Language: C++

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

Compiler output:
a.cc:1:1: error: 'inlude' does not name a type; did you mean 'inline'?
    1 | inlude<bits/stdc++.h>
      | ^~~~~~
      | inline
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a>>b>>k;
      | ^~~
a.cc:18:3: error: 'cout' was not declared in this scope
   18 |   cout<<a<<" "<<b;
      |   ^~~~
Language: C++

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

Compiler output:
a.cc:1:1: error: 'lude' does not name a type
    1 | lude<bits/stdc++.h>
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a>>b>>k;
      | ^~~
a.cc:8:10: error: expected primary-expression before '<' token
    8 |     if(b=<k-a)
      |          ^
a.cc:18:3: error: 'cout' was not declared in this scope
   18 |   cout<<a<<" "<<b;
      |   ^~~~
Language: C++

#include<bits/std=c++.h>

using namespace std;

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


Compiler output:
a.cc:1:9: fatal error: bits/std=c++.h: No such file or directory
    1 | #include<bits/std=c++.h>
      |         ^~~~~~~~~~~~~~~~
compilation terminated.