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

#include <iostream>
#define int long long int
using namespace std;

signed main(){
  int a,b,k;
  cin >> a >> b >> k;
  if(a<k){
    if(b<(k-a)){
      cout << 0 << " " << 0 << endl;
    }else{
      cout << 0 << " " << b-(k-a) << endl;
    }
  }else{
    cout << a-k << " " << b << endl;
  }
}
#include <iostream>
#define int long long int
signed main(){
  int a,b,k;
  cin >> a >> b >> k;
  if(a<k){
    if(b<(k-a)){
      cout << 0 << " " << 0 << endl;
    }else{
      cout << 0 << " " << b-(k-a) << endl;
    }
  }else{
    cout << a-k << " " << b << endl;
  }
}


Compiler output:
a.cc:20:8: error: redefinition of 'int main()'
   20 | signed main(){
      |        ^~~~
a.cc:5:8: note: 'int main()' previously defined here
    5 | signed main(){
      |        ^~~~
Language: C++

#include <iostream>
#define int long long int
signed main(){
  int a,b,k;
  cin >> a >> b >> k;
  if(a<k){
    if(b<(k-a)){
      cout << 0 << " " << 0 << endl;
    }else{
      cout << 0 << " " << b-(k-a) << endl;
    }
  }else{
    cout << a-k << " " << b << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |       cout << 0 << " " << 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:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |       cout << 0 << " " << 0 << endl;
      |                                ^~~~
      |                                std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |       cout << 0 << " " << b-(k-a) << 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:10:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |       cout << 0 << " " << b-(k-a) << endl;
      |                                      ^~~~
      |                                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout << a-k << " " << b << 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:13:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout << a-k << " " << b << endl;
      |                                ^~~~
      |                                std::endl
/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>
using namespace std;

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

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

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

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

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

using namespace std;

using ll = long long;
using Vi = vector<int>;
using Vl = vector<ll>;
using Pii = pair<int, int>;
using Pll = pair<ll, ll>;

constexpr int I_INF = (1 << 30);
constexpr ll L_INF = (1ll << 62);

//==================================

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

    ll a, b, k;
    cin >> a >> b >> k;

    ll ans1, ans2;

    if (a >= k) {
        ans1 = a - k;
        ans2 = b;
    }
    else {
        ans1 = 0;
        ans2 = b - (k - a);
    }

    cout << ans1 << " " << ans2 << endl;

    return 0;
}'

Compiler output:
a.cc:1:1: warning: missing terminating ' character
    1 | '#include <bits/stdc++.h>
      | ^
a.cc:1:1: error: missing terminating ' character
    1 | '#include <bits/stdc++.h>
      | ^~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:37:2: warning: missing terminating ' character
   37 | }'
      |  ^
a.cc:37:2: error: missing terminating ' character
a.cc:6:12: error: 'vector' does not name a type
    6 | using Vi = vector<int>;
      |            ^~~~~~
a.cc:7:12: error: 'vector' does not name a type
    7 | using Vl = vector<ll>;
      |            ^~~~~~
a.cc:8:13: error: 'pair' does not name a type
    8 | using Pii = pair<int, int>;
      |             ^~~~
a.cc:9:13: error: 'pair' does not name a type
    9 | using Pll = pair<ll, ll>;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:17:5: error: 'cin' was not declared in this scope
   17 |     cin.tie(0);
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | '#include <bits/stdc++.h>
a.cc:18:5: error: 'ios' has not been declared
   18 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:34:5: error: 'cout' was not declared in this scope
   34 |     cout << ans1 << " " << ans2 << endl;
      |     ^~~~
a.cc:34:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:34:36: error: 'endl' was not declared in this scope
   34 |     cout << ans1 << " " << ans2 << endl;
      |                                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | '#include <bits/stdc++.h>
Language: C

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

int main(){
  long int a,b,k;
 scanf("%ld %ld %ld",&a,&b,&k);
  for(i=0;i<k;i++){
    if(a!=0){
      a=a-1;
    }
    else if(b!=0){
      b=b-1;
    }
  }
  printf("%ld %ld",a,b);
}
    
  

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

#incluede<iostream>
int main(){
  long long a, b, k;
  cin>>a>>b>>k;
  if(a>k || a==k) cout<<a-k<<" "<<b<<endl;
  else{
      (a-k+b>0 ||a-k+b==0) ? cout<<0<<" "<<a-k+b<<endl : cout<<0<<" "<<0<<endl;
  }
  return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incluede; did you mean #include?
    1 | #incluede<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin>>a>>b>>k;
      |   ^~~
a.cc:5:19: error: 'cout' was not declared in this scope
    5 |   if(a>k || a==k) cout<<a-k<<" "<<b<<endl;
      |                   ^~~~
a.cc:5:38: error: 'endl' was not declared in this scope
    5 |   if(a>k || a==k) cout<<a-k<<" "<<b<<endl;
      |                                      ^~~~
a.cc:7:30: error: 'cout' was not declared in this scope
    7 |       (a-k+b>0 ||a-k+b==0) ? cout<<0<<" "<<a-k+b<<endl : cout<<0<<" "<<0<<endl;
      |                              ^~~~
a.cc:7:51: error: 'endl' was not declared in this scope
    7 |       (a-k+b>0 ||a-k+b==0) ? cout<<0<<" "<<a-k+b<<endl : cout<<0<<" "<<0<<endl;
      |                                                   ^~~~
Language: C++

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


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

#incluede<iostream>
using namespace std;
int main(){
  long long a, b, k;
  cin>>a>>b>>k;
  if(a>k || a==k) cout<<a-b<<" "<<b<<endl;
  else{
      (a-k+b>0 ||a-k+b==0) ? cout<<0<<" "<<a-k+b<<endl : cout<<0<<" "<<0<<endl;
  }
  return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incluede; did you mean #include?
    1 | #incluede<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | #incluede<iostream>
a.cc:6:19: error: 'cout' was not declared in this scope
    6 |   if(a>k || a==k) cout<<a-b<<" "<<b<<endl;
      |                   ^~~~
a.cc:6:19: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:38: error: 'endl' was not declared in this scope
    6 |   if(a>k || a==k) cout<<a-b<<" "<<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 | #incluede<iostream>
a.cc:8:30: error: 'cout' was not declared in this scope
    8 |       (a-k+b>0 ||a-k+b==0) ? cout<<0<<" "<<a-k+b<<endl : cout<<0<<" "<<0<<endl;
      |                              ^~~~
a.cc:8:30: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:51: error: 'endl' was not declared in this scope
    8 |       (a-k+b>0 ||a-k+b==0) ? cout<<0<<" "<<a-k+b<<endl : cout<<0<<" "<<0<<endl;
      |                                                   ^~~~
a.cc:8:51: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#incluede<iostream>
int main(){
  long long a, b, k;
  cin>>a>>b>>k;
  if(a>k || a==k) cout<<a-b<<" "<<b<<endl;
  else{
      (a-k+b>0 ||a-k+b==0) ? cout<<0<<" "<<a-k+b<<endl : cout<<0<<" "<<0<<endl;
  }
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incluede; did you mean #include?
    1 | #incluede<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin>>a>>b>>k;
      |   ^~~
a.cc:5:19: error: 'cout' was not declared in this scope
    5 |   if(a>k || a==k) cout<<a-b<<" "<<b<<endl;
      |                   ^~~~
a.cc:5:38: error: 'endl' was not declared in this scope
    5 |   if(a>k || a==k) cout<<a-b<<" "<<b<<endl;
      |                                      ^~~~
a.cc:7:30: error: 'cout' was not declared in this scope
    7 |       (a-k+b>0 ||a-k+b==0) ? cout<<0<<" "<<a-k+b<<endl : cout<<0<<" "<<0<<endl;
      |                              ^~~~
a.cc:7:51: error: 'endl' was not declared in this scope
    7 |       (a-k+b>0 ||a-k+b==0) ? cout<<0<<" "<<a-k+b<<endl : cout<<0<<" "<<0<<endl;
      |                                                   ^~~~
Language: C++

#include "pch.h"
#include <iostream>
#include <algorithm>
#include <map>
#include <string>
#include <math.h>
using namespace std;
int main() {

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

Compiler output:
a.cc:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: C++

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

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

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

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


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

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

long long a, b, k;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #ibcnlude; did you mean #include?
    1 | #ibcnlude <bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         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 | #ibcnlude <bits/stdc++.h>
a.cc:11:25: error: 'cout' was not declared in this scope
   11 |                         cout << 0 << ' ' << 0;
      |                         ^~~~
a.cc:11:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:25: error: 'cout' was not declared in this scope
   13 |                         cout << 0 << ' ' << b - k;
      |                         ^~~~
a.cc:13:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << a - k << ' ' << b;
      |                 ^~~~
a.cc:16:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

long long a, b, k;

void in();
void solve();
void out();

int main(){
    in();
    solve();
    out();
}

void in(){
    ios::sync_with_stdio(false);
    cout.tie(0);
    cin.tie(0);
    cin >> a >> b >> k;
}

void solve(){
    if(k >= a){
        k -= a;
        a = 0;
    }
    else{
        a -= k;
        k = 0;
    }
    b = max(0, b - k);
}

void out(){
    cout << a << ' ' << b;
}


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

using namespace std;
typedef long long ll;

int main(int argc, char **argv)
{
    ll a, b, k;
    cin >> a >> b >> k;
    // cout << boost::format("lcm(%d,%d)=%d\n") % a % b % lcm(a,b);
    // cout << boost::format("gcd(%d,%d)=%d\n") % a % b % gcd(a,b);
    cout << a + b - k << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     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:10:5: error: 'cout' was not declared in this scope
   10 |     cout << a + b - k << endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:26: error: 'endl' was not declared in this scope
   10 |     cout << a + b - k << 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<stdio.h>

int main(){
    int a, b,k;
    scanf("%d%d%d", &a, &b,&k);
    if(a >= k){
        printf("%d%d", a-k, b)
    }
    else{
        if((a+b)>=k){
            printf("%d%d", 0, a+b-k);
        }
        else{
            printf("%d%d", 0,0);
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected ';' before '}' token
    7 |         printf("%d%d", a-k, b)
      |                               ^
      |                               ;
    8 |     }
      |     ~
Language: C++

#include<stdio.h>

int main(){
    int a, b,k;
    scanf("%d%d%d", &a, &b,&k);
    if(a > k){
        printf("%d%d", a-k, b)
    }
    else{
        if((a+b)>k){
            printf("%d%d", 0, a+b-k);
        }
        else{
            printf("%d%d", 0,0);
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected ';' before '}' token
    7 |         printf("%d%d", a-k, b)
      |                               ^
      |                               ;
    8 |     }
      |     ~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:14:3: error: 'else' without a previous 'if'
   14 |   else
      |   ^~~~
Language: Java

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

Compiler output:
Main.java:3: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
                     ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:9: error: ';' expected
    K=sc.nextInt()
                  ^
1 error
Language: Java

import java.util.Scanner;

public class Cookie {

    public static void main(String[] args) {
        int A;
        int B;
        int K;
        Scanner sc= new Scanner(System.in);

        A=sc.nextInt();
        B=sc.nextInt();
        K=sc.nextInt();

        while(K>0) {
            if (A > 0) {
                A--;
            } else {
                if (B > 0)
                    B--;
            }
            K--;
        }
        System.out.println(A);
        System.out.println(B);

    }
}


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

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

typedef long long ll;
typedef long double ld;
typedef pair<int,int> pii;

int main()
{
    //freopen("input.txt", "r", stdin);
    //freopen("path.out", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(0);

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

    return 0;
}


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

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




}
cout<<a<<b;








return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:4: error: 'b' was not declared in this scope
   11 |    b=b-1;
      |    ^
a.cc:18:10: error: 'b' was not declared in this scope
   18 | cout<<a<<b;
      |          ^
Language: Java

import java.util.Random;
import java.util.Scanner;

import static javafx.scene.input.KeyCode.L;

public class Main {
    public static void main(String args[]) {
        Scanner in=new Scanner(System.in);
        /*Random on=new Random();*/
        long a=in.nextLong();
        long b=in.nextLong();
        long k=in.nextLong();
        long ans_a=Math.max(0,a-k);
        k=Math.max(0,k-a);
        long ans_b=Math.max(0,b-k);
        System.out.println(ans_a + " "+ ans_b);
    }
}


Compiler output:
Main.java:4: error: package javafx.scene.input does not exist
import static javafx.scene.input.KeyCode.L;
                                ^
Main.java:4: error: static import only from classes and interfaces
import static javafx.scene.input.KeyCode.L;
^
2 errors
Language: Java

package com.company;

import java.util.Random;
import java.util.Scanner;

import static javafx.scene.input.KeyCode.L;

public class Main {
    public static void main(String args[]) {
        Scanner in=new Scanner(System.in);
        /*Random on=new Random();*/
        long a=in.nextLong();
        long b=in.nextLong();
        long k=in.nextLong();
        long ans_a=Math.max(0,a-k);
        k=Math.max(0,k-a);
        long ans_b=Math.max(0,b-k);
        System.out.println(ans_a + " "+ ans_b);
    }
}


Compiler output:
Main.java:6: error: package javafx.scene.input does not exist
import static javafx.scene.input.KeyCode.L;
                                ^
Main.java:6: error: static import only from classes and interfaces
import static javafx.scene.input.KeyCode.L;
^
2 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(0);
   ll int a,b,k;
   cin>>a>>b>>k;
if(k>=a)
{
    k=k-a;
a=0;
b=b-k;
}
else
{
    a=a-k;
}

cout<<ll(a)<<" "<<ll(b);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:12: error: expected primary-expression before 'long'
    3 | #define ll long long
      |            ^~~~
a.cc:22:7: note: in expansion of macro 'll'
   22 | cout<<ll(a)<<" "<<ll(b);
      |       ^~
Language: C

include <stdio.h>

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


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

#include<stdio.h>

int main(){
  long int a,b,k;
  scanf("%ld%ld%ld",&a,&b,&k);
  if(a < k){
    printf("0 %d",a + b -k);
  else{
    printf("%d %d",a - k, b);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: expected '}' before 'else'
    8 |   else{
      |   ^~~~
Language: C++

#include <bits/stdc++.h>

#define FOR(i, a, b) for (ll (i) = (a); (i) < (b); ++(i))

using namespace std;

using ll = long long;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << setprecision(20) << fixed;

    ll a, b, k;
    cin >> a >> b >> k;

    REP(i, k){
        if (a > 0) --a;
        else if (b > 0) --b;
    }

    cout << a << " " << b << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'i' was not declared in this scope
   17 |     REP(i, k){
      |         ^
a.cc:17:5: error: 'REP' was not declared in this scope
   17 |     REP(i, k){
      |     ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
    6 |   ll tmp = min(a, k);
      |   ^~
a.cc:7:8: error: 'tmp' was not declared in this scope; did you mean 'tm'?
    7 |   a -= tmp; k-= tmp; b -= min(b, k);
      |        ^~~
      |        tm
Language: C++

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

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

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:5:20: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | long long a, b, k; cin >> a >> b >> k;
      |                    ^~~
      |                    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:6:8: error: 'min' was not declared in this scope; did you mean 'std::min'?
    6 |   a -= min(a, k); k-= min(a, k); b -= min(b, k);
      |        ^~~
      |        std::min
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:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << a << " " << b << 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:7:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << a << " " << b << 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++

int main(){
  int a,b,k;
  std::cin >> a >> b >> k;
  
  while(1){
    if(a >= 1){
      a--;
    }
    else if(b >=1){
      b--;
    }
    if(a==0 && b==0){
      break;
    }
  }
  
  std::cout << a << " " << b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:8: error: 'cin' is not a member of 'std'
    3 |   std::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 | int main(){
a.cc:17:8: error: 'cout' is not a member of 'std'
   17 |   std::cout << a << " " << b;
      |        ^~~~
a.cc:17:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
using namespace std;
typedef long long unsigned ll;

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected primary-expression before 'else'
   11 |     else b=0;
      |     ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'ele' was not declared in this scope
   11 |     ele b=0;
      |     ^~~
Language: C++

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

  

Compiler output:
a.cc: In function 'int main()':
a.cc:4:23: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    4 |   scanf("%d %d %d",&a &b &k);
      |                    ~~ ^~
      |                    |   |
      |                    |   int
      |                    int*
a.cc:7:11: error: expected ';' before '}' token
    7 |        a--
      |           ^
      |           ;
    8 |    }
      |    ~       
a.cc:10:11: error: expected ';' before '}' token
   10 |        b--
      |           ^
      |           ;
   11 |     }
      |     ~
Language: C++

"""
author : halo2halo
date : 8, Jan, 2020
problem : ABC149
"""

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

A, B, K = map(int, read().decode('utf-8').split())

TA = max(A - K, 0)
AO = min(B, B - (K - A))
print(TA, AO)


Compiler output:
a.cc:1:3: warning: missing terminating " character
    1 | """
      |   ^
a.cc:1:3: error: missing terminating " character
a.cc:5:3: warning: missing terminating " character
    5 | """
      |   ^
a.cc:5:3: error: missing terminating " character
a.cc:14:34: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   14 | A, B, K = map(int, read().decode('utf-8').split())
      |                                  ^~~~~~~
a.cc:1:1: error: expected unqualified-id before string constant
    1 | """
      | ^~
Language: C++

#includr <bits/stdc++.h>
using namespace std;
int main() {
  int a,b,k;
  cin>>a>>b>>k;
  int x = min(k,a);
  k-=x;
  a-=x;
  int y=min(k,b);
  b-=y;
  cout << a << ' ' << b;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includr; did you mean #include?
    1 | #includr <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | #includr <bits/stdc++.h>
a.cc:6:11: error: 'min' was not declared in this scope; did you mean 'main'?
    6 |   int x = min(k,a);
      |           ^~~
      |           main
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout << a << ' ' << b;
      |   ^~~~
a.cc:11:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int x,y,z;
  cin>>x>>y>>z;
  int c=min(x,k);
  k-=c;
  x-=c;
  int d = min(k,y);
  y-=d;
  cout<<x<< ' ' << y;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'k' was not declared in this scope
    6 |   int c=min(x,k);
      |               ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: expected ';' before numeric constant
   15 |    cout<< 0 0
      |            ^~
      |            ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'b'
    5 |  long a b c;
      |         ^
a.cc:7:9: error: 'a' was not declared in this scope
    7 |  cin << a b c;
      |         ^
a.cc:9:7: error: 'c' was not declared in this scope
    9 |    if(c>a){
      |       ^
a.cc:10:12: error: expected ';' before 'b'
   10 |    cout<< 0 b-(c-a)
      |            ^~
      |            ;
Language: C++

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

int main(){
  long long int A,B,K;
  for (int C==1;C<=K;C++){
    if(A<=1){
      A = A-1;
    }
  }
  if (B<=1){
    B = B-1;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected ';' before '==' token
    6 |   for (int C==1;C<=K;C++){
      |             ^~
      |             ;
a.cc:6:13: error: expected primary-expression before '==' token
    6 |   for (int C==1;C<=K;C++){
      |             ^~
a.cc:6:21: error: expected ')' before ';' token
    6 |   for (int C==1;C<=K;C++){
      |       ~             ^
      |                     )
a.cc:6:22: error: 'C' was not declared in this scope
    6 |   for (int C==1;C<=K;C++){
      |                      ^
Language: C++

#include<iostream>
#include<string>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:25:36: error: lvalue required as left operand of assignment
   25 |                         else if(b>0&&b=k){
      |                                 ~~~^~~
Language: C++

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

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

#include <iostream>

using namespace std;
using ll = long long;

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

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

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  ll a,b,k;
  cin>>a>>b>>k;
  cout<<max(0,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;
      |              ^