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

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


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

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


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

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


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

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

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


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #difine; did you mean #define?
    2 | #difine rep(i,n) for(int i=0;i<(n);i++)
      |  ^~~~~~
      |  define
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;
  }
 if(a<k && b>=k-a){
   b-=k-a;
   a=0;
 }
else if(a<k $$ b<k-a){
  a=0;
  b=0;
}
cout<< a+b <<endl;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: expected ')' before '$$'
   14 | else if(a<k $$ b<k-a){
      |        ~   ^~~
      |            )
Language: C++

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

}

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

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

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

    if(K<A) cout << A-K << '' << B<<endl;
    if(A<=K && K<A+B) cout << 0 << '' << (A+B)-K <<endl;
    else cout << 0 << '' << 0 <<endl;
}

Compiler output:
a.cc:8:28: error: empty character constant
    8 |     if(K<A) cout << A-K << '' << B<<endl;
      |                            ^~
a.cc:9:36: error: empty character constant
    9 |     if(A<=K && K<A+B) cout << 0 << '' << (A+B)-K <<endl;
      |                                    ^~
a.cc:10:23: error: empty character constant
   10 |     else cout << 0 << '' << 0 <<endl;
      |                       ^~
Language: Java

import java.util.*;

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

Compiler output:
Main.java:11: error: incompatible types: int cannot be converted to boolean
      if (A = 0) {
            ^
1 error
Language: C++

#pragma region
#include<bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repr(i, n) for (int i = n; i >= 0; i--)
#define repc(i, m, n) for (int i = m; i < n; i++)
#define reprc(i, m, n) for (int i = m; i > n; i--)
#define all(v) v.begin(), v.end()
#define INF 1e9
#define EPS 1e-10
using namespace std;
typedef long long ll;
#pragma endregion

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

    if(K >= A){
        K -= A;
        A = 0;
        B -= K;
        B = max(B, 0);
    }else{
        A -= K;
    }

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

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

#pragma region
#include<bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repr(i, n) for (int i = n; i >= 0; i--)
#define repc(i, m, n) for (int i = m; i < n; i++)
#define reprc(i, m, n) for (int i = m; i > n; i--)
#define all(v) v.begin(), v.end()
#define INF 1e9
#define EPS 1e-10
using namespace std;
typedef long long ll;
#pragma endregion

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

    if(K >= A){
        K -= A;
        A = 0;
        B -= K;
        max(B, 0);
    }else{
        A -= K;
    }

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

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

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

int main(){
  ll n,m,k;
  cin>>n>>m>>k;
  if(k%2){
    k--;
    cout<<max(0LL,n-k/2+min(0LL,m-(k/2)-1)<<" "<<max(0LL,m-k/2+min(0LL,n-(k/2)-1));
  }
  else cout<<max(0LL,n-k/2 + min(0LL,m-k/2))<<" "<<max(0LL,m-k/2 + min(0LL,n-k/2));
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:43: error: invalid operands of types 'll' {aka 'long long int'} and 'const char [2]' to binary 'operator<<'
   10 |     cout<<max(0LL,n-k/2+min(0LL,m-(k/2)-1)<<" "<<max(0LL,m-k/2+min(0LL,n-(k/2)-1));
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
      |                        |                    |
      |                        |                    const char [2]
      |                        ll {aka long long int}
Language: C++

#include<bits/stdc++.h>
#define all(x) (x).begin(),(x).end()
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
using namespace std;
typedef long long ll;
ll gcd(ll a,ll b){return b!=0?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return a*b/gcd(a,b);}

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

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

#include<bits/stdc++.h>
#define all(x) (x).begin(),(x).end()
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
using namespace std;
typedef long long ll;
ll gcd(ll a,ll b){return b!=0?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return a*b/gcd(a,b);}

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

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

#include <iostream>
#include <cmath>
#define ill long long
using namespace std;

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

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<vi> vvi;
typedef vector<ii> vii;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef set<int> si;
typedef map<string, int> msi;
typedef greater<int> gt;
typedef priority_queue<int, vector<int>, gt> minq;
typedef long long ll;
const ll INF = 1e18L + 1;
//clang++ -std=c++11 -stdlib=libc++ 

int main() {
  ll A,B,K; cin >>A>>B>>K;
  if (A>K) {
    A-=K;
    printf("%lld %lld\n", A, B);
    return 0;
  } else {
    B -= max(0,(K-A));
    A=0;
  }
  printf("%lld %lld\n", A, B);
  return 0;
}

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

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

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

#include<stdio.h>

int main(){
    long a,b,k;
    scanf("%d %d %d",&a,&b,&k);

    for(i=0;i<k;i++){
        if(a>0) a--;
        else if(b>0) b--;
    }
    printf("%d %d\n",a,b);
    return 0;
}

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

#include<stdio.h>

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

    for(i=0;i<k;i++){
        if(a>0) a--;
        else if(b>0) b--;
    }
    printf("%d %d\n",a,b);
    return 0;

    return 0;
}

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

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

    for(i=0;i<k;i++){
        if(a>0) a--;
        else if(b>0) b--;
    }
    printf("%d %d\n",a,b);
    return 0;

    return 0;

Compiler output:
main.c:2:11: error: expected declaration specifiers or '...' before string constant
    2 |     scanf("%d %d %d",&a,&b,&k);
      |           ^~~~~~~~~~
main.c:2:22: error: expected declaration specifiers or '...' before '&' token
    2 |     scanf("%d %d %d",&a,&b,&k);
      |                      ^
main.c:2:25: error: expected declaration specifiers or '...' before '&' token
    2 |     scanf("%d %d %d",&a,&b,&k);
      |                         ^
main.c:2:28: error: expected declaration specifiers or '...' before '&' token
    2 |     scanf("%d %d %d",&a,&b,&k);
      |                            ^
main.c:4:5: error: expected identifier or '(' before 'for'
    4 |     for(i=0;i<k;i++){
      |     ^~~
main.c:4:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    4 |     for(i=0;i<k;i++){
      |              ^
main.c:4:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    4 |     for(i=0;i<k;i++){
      |                  ^~
main.c:8:12: error: expected declaration specifiers or '...' before string constant
    8 |     printf("%d %d\n",a,b);
      |            ^~~~~~~~~
main.c:8:22: error: expected declaration specifiers or '...' before 'a'
    8 |     printf("%d %d\n",a,b);
      |                      ^
main.c:8:24: error: expected declaration specifiers or '...' before 'b'
    8 |     printf("%d %d\n",a,b);
      |                        ^
main.c:9:5: error: expected identifier or '(' before 'return'
    9 |     return 0;
      |     ^~~~~~
main.c:11:5: error: expected identifier or '(' before 'return'
   11 |     return 0;
      |     ^~~~~~
Language: C++

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


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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected ';' before 'cout'
   12 |     else (a>k)cout<<a-k<<" "<<b<<endl;
      |               ^~~~
      |               ;
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:33: error: expected '}' at end of input
   15 |   cout << a << " " << b << endl;
      |                                 ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

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


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

#include <bits/stdc++.h>

using namespace std;

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

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

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

   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: expected ';' before '}' token
   13 |       if (b < 0) b = 0
      |                       ^
      |                       ;
   14 |    }
      |    ~
Language: C++

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

Compiler output:
a.cc:11:12: error: empty character constant
   11 |   cout<<t<<''<<u<<endl;
      |            ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: invalid operands of types 'const char [1]' and 'long long int' to binary 'operator<<'
   11 |   cout<<t<""<<u<<endl;
      |           ~~^~~
      |           |   |
      |           |   long long int
      |           const char [1]
Language: C++

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

Compiler output:
a.cc:11:11: error: empty character constant
   11 |   cout<<t<''<<u<<endl;
      |           ^~
a.cc: In function 'int main()':
a.cc:11:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |   cout<<t<''<<u<<endl;
      |           ~~~~~^~~~~~
Language: C++

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

typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef vector<string> vs;
typedef pair<int, int> pii;
typedef vector<pair<int, int>> vpii;

#define rep(i,n) for(int i=0;i<(n);i++)
#define all(x) (x).begin(),(x).end()
constexpr auto INF = 4000000000; //4*10^9;
constexpr auto MOD = 1000000007; //10^9+7;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:41: error: expected '}' at end of input
   23 |         else cout << 0 << " " << 0 << b;
      |                                         ^
a.cc:17:1: note: to match this '{'
   17 | {
      | ^
Language: C++

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


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

}

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

#include<bits/stdc++.h>
using namespace std;
#define l long;
int main()
{
    l l int a,b,k;
    cin>>a>>b>>k;
    cout<<(a+b-k<0 ? 0:a+b-k);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:11: error: declaration does not declare anything [-fpermissive]
    3 | #define l long;
      |           ^~~~
a.cc:6:5: note: in expansion of macro 'l'
    6 |     l l int a,b,k;
      |     ^
a.cc:3:11: error: declaration does not declare anything [-fpermissive]
    3 | #define l long;
      |           ^~~~
a.cc:6:7: note: in expansion of macro 'l'
    6 |     l l int a,b,k;
      |       ^
Language: C++

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

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

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

#include <stdio.h>
#include <iostream>
#include <vector>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <sstream>
#include <string>
#include <map>
using namespace std;

//ABC 149B
int main() {
	long a, b, k;
	cin >> a >> b >> k;

	long n = min(a, k);
	a -= n;
	k -= n;

	long m = min(b, k);
	b -= m;
	cout << a << " " << b << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:23:39: error: expected '}' at end of input
   23 |         cout << a << " " << b << endl;
      |                                       ^
a.cc:13:12: note: to match this '{'
   13 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=a; i< (int)(b); ++i)
using ll=long long;
using namespace std;
const auto mod=1e9+7;


int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(20);
 
  ll  a,b,k; cin >> a >> b >> k;
  if(a>=k) cout << a-k << " " << b << endl;
  else if(a+b>k) cout << 0 << " " << a+b-k << endl;
  else cout << 0 << " " << 0 << endl;
  
  cout << na << " " << nb << endl;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: 'na' was not declared in this scope; did you mean 'a'?
   18 |   cout << na << " " << nb << endl;
      |           ^~
      |           a
a.cc:18:24: error: 'nb' was not declared in this scope; did you mean 'b'?
   18 |   cout << na << " " << nb << endl;
      |                        ^~
      |                        b
Language: C++

#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=a; i< (int)(b); ++i)
using ll=long long;
using namespace std;
const auto mod=1e9+7;


int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(20);
 
  ll  a,b,k; cin >> a >> b >> k;
  if(a>=k) cout << a-k << " " << b << endl;
  if(a+b>k) cout << 0 << " " << a+b-k << endl;
  else cout << 0 << " " << 0 << endl;
  
  cout << na << " " << nb << endl;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: 'na' was not declared in this scope; did you mean 'a'?
   18 |   cout << na << " " << nb << endl;
      |           ^~
      |           a
a.cc:18:24: error: 'nb' was not declared in this scope; did you mean 'b'?
   18 |   cout << na << " " << nb << endl;
      |                        ^~
      |                        b
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int,int>;



int main(){
    ll A;
    cin >> A;
    ll B;
    cin >> B;
    ll K;
    cin >> K;
    cout<<max(0,A-K)<<" ";
    if(K>A+B)cout<<0<<endl;
    else cout<<min(A+B-K,B);

return 0;


}  



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

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

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

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

#include <algorithm>
#include <assert.h>
#include <bitset>
#include <cfloat>
#include <complex>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits.h>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <string.h>
#include <time.h>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#define rep(i,n) for(int i = 0;i < n; i++)
#define REP(i,n) for(int i = 1;i <= n; i++)
// ----GCC ONLY---- //
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
// ----        ---- //
#define ll long long
#define MOD 10000007
#define PB push_back

using namespace std;



int main(){

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

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



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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected initializer before '.' token
    5 |   int A, B. K;
      |           ^
a.cc:6:15: error: 'B' was not declared in this scope
    6 |   cin >> A >> B >> K;
      |               ^
a.cc:6:20: error: 'K' was not declared in this scope
    6 |   cin >> A >> B >> K;
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected initializer before '.' token
    5 |   int A, B. K;
      |           ^
a.cc:6:15: error: 'B' was not declared in this scope
    6 |   cin >> A >> B >> K;
      |               ^
a.cc:6:20: error: 'K' was not declared in this scope
    6 |   cin >> A >> B >> K;
      |                    ^
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i = 0; i < K; i++){
      |       ^
Language: C++

/*
 KUNAL RAUT (ZUKONIT14)  :- "DO WHAT YOU LIKE!"
 -PICT,PUNE! :)
 */
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define int long long
#define ld long double
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define mod 1000000007
#define mod9 1000000009
#define pi 3.1415926535
#define MAXN 1000001
#define N 1000001
#define MAX2N 1*1000 + 10
#define all(v) v.begin(), v.end()
#define ms(s, n) memset(s, n, sizeof(s))
#define prec(n) fixed<<setprecision(n)
#define forci(p,n) for(ll i=p;i<(ll)n;i++)
#define forcj(p,n) for(ll j=p;j<(ll)n;j++)
#define bolt ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define bits(a) __builtin_popcount(a)
#define test ll t;cin>>t;for(ll testi=1;testi<=t;testi++)
ll zero=0;
ll one=1;
ll gcd(ll a,ll b){    if(b==0) return a;    return gcd(b,a%b);}
ll lcm(ll a,ll b) {    return (a/gcd(a,b)*b);}
ll expo(ll x, ll y) {ll res=1;x=x%mod;while(y>0){if(y&1)res=(1ll*res*x)%mod;
    y=y>>1;x=(1ll*x*x)%mod;} return res;}
ll ncr(ll n,ll r){ ll res=1; if(r>n-r)r=n-r; for(ll i=0;i<r;i++) {  res*=n-i;  res/=i+1; } return res;}
ll max(ll a,ll b){return (a>b)?a:b;}
bool prime(ll n){ll i;for(i=2;i<=sqrt(n);i++){if(n%i==0)return false;}return true;}
bool sortbysec(const pair<ll,ll> &a,const pair<ll,ll> &b)
{   if(a.second == b.second)
    return a.first < b.first;
    return (a.second < b.second);}
//https://www.youtube.com/watch?v=WTJSt4wP2ME

ll rr[]={0,1,1,1,0,-1,-1,-1,};
ll cc[]={1,1,0,-1,-1,-1,0,1};
#define MOD 998244353

signed main()
{
    bolt;
    ll a,b,k;cin>>a>>b>>k;
    if(n%2) a-=(n/2 +1);
    b-=n/2;
    cout<<max(zero,a)<<" "<<max(zero,b);
}



Compiler output:
a.cc: In function 'int main()':
a.cc:51:8: error: 'n' was not declared in this scope
   51 |     if(n%2) a-=(n/2 +1);
      |        ^
a.cc:52:8: error: 'n' was not declared in this scope
   52 |     b-=n/2;
      |        ^
Language: C++

/*
 KUNAL RAUT (ZUKONIT14)  :- "DO WHAT YOU LIKE!"
 -PICT,PUNE! :)
 */
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define int long long
#define ld long double
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define mod 1000000007
#define mod9 1000000009
#define pi 3.1415926535
#define MAXN 1000001
#define N 1000001
#define MAX2N 1*1000 + 10
#define all(v) v.begin(), v.end()
#define ms(s, n) memset(s, n, sizeof(s))
#define prec(n) fixed<<setprecision(n)
#define forci(p,n) for(ll i=p;i<(ll)n;i++)
#define forcj(p,n) for(ll j=p;j<(ll)n;j++)
#define bolt ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define bits(a) __builtin_popcount(a)
#define test ll t;cin>>t;for(ll testi=1;testi<=t;testi++)
ll zero=0;
ll one=1;
ll gcd(ll a,ll b){    if(b==0) return a;    return gcd(b,a%b);}
ll lcm(ll a,ll b) {    return (a/gcd(a,b)*b);}
ll expo(ll x, ll y) {ll res=1;x=x%mod;while(y>0){if(y&1)res=(1ll*res*x)%mod;
    y=y>>1;x=(1ll*x*x)%mod;} return res;}
ll ncr(ll n,ll r){ ll res=1; if(r>n-r)r=n-r; for(ll i=0;i<r;i++) {  res*=n-i;  res/=i+1; } return res;}
ll max(ll a,ll b){return (a>b)?a:b;}
bool prime(ll n){ll i;for(i=2;i<=sqrt(n);i++){if(n%i==0)return false;}return true;}
bool sortbysec(const pair<ll,ll> &a,const pair<ll,ll> &b)
{   if(a.second == b.second)
    return a.first < b.first;
    return (a.second < b.second);}
//https://www.youtube.com/watch?v=WTJSt4wP2ME

ll rr[]={0,1,1,1,0,-1,-1,-1,};
ll cc[]={1,1,0,-1,-1,-1,0,1};
#define MOD 998244353

signed main()
{
    bolt;
    ll a,b,k;cin>>a>>b>>k;
    cout<<max(zero,a-ceil((double)n/2))<<" "<<max(zero,a-n/2);
}



Compiler output:
a.cc: In function 'int main()':
a.cc:51:35: error: 'n' was not declared in this scope
   51 |     cout<<max(zero,a-ceil((double)n/2))<<" "<<max(zero,a-n/2);
      |                                   ^
Language: C

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

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