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

#include<bits./stdc++.h>
using namespace std;
int p,a[3005],iC[3005][3005],inv[3005],ans;
int xs[3005][3005],g[3005];
int main(){
    scanf("%d",&p);
    for(int i=0;i<p;i++) scanf("%d",&a[i]);
    iC[0][0]=1;
    for(int i=1;i<=3000;i++){
        iC[i][0]=iC[i][i]=1;
        for(int j=1;j<i;j++) iC[i][j]=iC[i-1][j-1]+iC[i-1][j],iC[i][j]%=p;
    }
    for(int i=1;i<=3000;i++){
        for(int j=0;j<=i;j++) if((j&1)^(i&1)) iC[i][j]=p-iC[i][j];
    }
    inv[1]=1;
    for(int i=2;i<p;i++) inv[i]=(p-p/i)*inv[p%i]%p;
    inv[0]=1;
    for(int i=1;i<p;i++) inv[i]=inv[i]*inv[i-1]%p;
    for(int i=1;i<p;i++) xs[1][i]=1;
    for(int i=2;i<p;i++){
        for(int j=i;j<p;j++) xs[i][j]=(xs[i-1][j-1]+xs[i][j-1])*i%p;
    }
    for(int i=p-1;i>=1;i--){
        ans=0;
        for(int j=0;j<=i;j++) ans=(ans+iC[i][j]*a[j])%p;
        for(int j=i+1;j<p;j++){
            ans=(ans-xs[i][j]*g[j]%p+p)%p;
        }
        g[i]=ans*inv[i]%p;
    }
    g[0]=a[0];
    for(int i=0;i<p;i++) printf("%d ",g[i]);

    return 0;
}

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

/*******************************
Author:galaxy yr
LANG:C++
Created Time:2019/08/10 21:17:49
*******************************/
#include<bits/stdc++.h>
using namespace std;
const int maxn=3005;
int p,a[maxn];
int iC[maxn][maxn];
int inv[maxn],ans;
int xs[maxn][maxn];
int g[maxn];
int main(){
    scanf("%d",&p);
    for(int i=0;i<p;i++) scanf("%d",&a[i]);
    iC[0][0]=1;
    for(int i=1;i<=3000;i++){
        iC[i][0]=iC[i][i]=1;
        for(int j=1;j<i;j++) iC[i][j]=iC[i-1][j-1]+iC[i-1][j],iC[i][j]%=p;
    }
    for(int i=1;i<=3000;i++){
        for(int j=0;j<=i;j++) if((j&1)^(i&1)) iC[i][j]=p-iC[i][j];
    }
    inv[1]=1;
    for(int i=2;i<p;i++) inv[i]=(p-p/i)*inv[p%i]%p;
    inv[0]=1;
    for(int i=1;i<p;i++) inv[i]=inv[i]*inv[i-1]%p;
    for(int i=1;i<p;i++) xs[1][i]=1;
    for(int i=2;i<p;i++){
        for(int j=i;j<p;j++) xs[i][j]=(xs[i-1][j-1]+xs[i][j-1])*i%p;
    }
    for(int i=p-1;i>=1;i--){
        ans=0;
        for(int j=0;j<=i;j++) ans=(ans+iC[i][j]*a[j])%p;
        for(int j=i+1;j<p;j++){
            ans=(ans-xs[i][j]*g[j]%p+p)%p;
        }
        g[i]=ans*inv[i]%p;
    }
    g[0]=a[0];
    for(int i=0;i<p;i++) printf("%d ",g[i]);


Compiler output:
a.cc: In function 'int main()':
a.cc:42:45: error: expected '}' at end of input
   42 |     for(int i=0;i<p;i++) printf("%d ",g[i]);
      |                                             ^
a.cc:14:11: note: to match this '{'
   14 | int main(){
      |           ^
Language: C++

#include<bits./stdc++.h>
using namespace std;
int p,a[3005];
int iC[3005][3005];
int inv[3005],ans;
int xs[3005][3005];
int g[3005];

int main(){
    scanf("%d",&p);
    for(int i=0;i<p;i++) scanf("%d",&a[i]);
    iC[0][0]=1;
    for(int i=1;i<=3000;i++){
        iC[i][0]=iC[i][i]=1;
        for(int j=1;j<i;j++) iC[i][j]=iC[i-1][j-1]+iC[i-1][j],iC[i][j]%=p;
    }
    for(int i=1;i<=3000;i++){
        for(int j=0;j<=i;j++) if((j&1)^(i&1)) iC[i][j]=p-iC[i][j];
    }
    inv[1]=1;
    for(int i=2;i<p;i++) inv[i]=(p-p/i)*inv[p%i]%p;
    inv[0]=1;
    for(int i=1;i<p;i++) inv[i]=inv[i]*inv[i-1]%p;
    for(int i=1;i<p;i++) xs[1][i]=1;
    for(int i=2;i<p;i++){
        for(int j=i;j<p;j++) xs[i][j]=(xs[i-1][j-1]+xs[i][j-1])*i%p;
    }
    for(int i=p-1;i>=1;i--){
        ans=0;
        for(int j=0;j<=i;j++) ans=(ans+iC[i][j]*a[j])%p;
        for(int j=i+1;j<p;j++){
            ans=(ans-xs[i][j]*g[j]%p+p)%p;
        }
        g[i]=ans*inv[i]%p;
    }
    g[0]=a[0];
    for(int i=0;i<p;i++) printf("%d ",g[i]);

    return 0;
}

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

#include<bits./stdc++.h>
using namespace std;
int p,a[3005];
int iC[3005][3005];
int inv[3005],ans;
int xs[3005][3005];
int g[3005];

int main(){
	scanf("%d",&p);
	for(int i=0;i<p;i++) scanf("%d",&a[i]);
	iC[0][0]=1;
	for(int i=1;i<=3000;i++){
		iC[i][0]=iC[i][i]=1;
		for(int j=1;j<i;j++) iC[i][j]=iC[i-1][j-1]+iC[i-1][j],iC[i][j]%=p;
	}
	for(int i=1;i<=3000;i++){
		for(int j=0;j<=i;j++) if((j&1)^(i&1)) iC[i][j]=p-iC[i][j];
	}
	inv[1]=1;
	for(int i=2;i<p;i++) inv[i]=(p-p/i)*inv[p%i]%p;
	inv[0]=1;
	for(int i=1;i<p;i++) inv[i]=inv[i]*inv[i-1]%p;
	for(int i=1;i<p;i++) xs[1][i]=1;
	for(int i=2;i<p;i++){
		for(int j=i;j<p;j++) xs[i][j]=(xs[i-1][j-1]+xs[i][j-1])*i%p;
	}
	for(int i=p-1;i>=1;i--){
		ans=0;
		for(int j=0;j<=i;j++) ans=(ans+iC[i][j]*a[j])%p;
		for(int j=i+1;j<p;j++){
			ans=(ans-xs[i][j]*g[j]%p+p)%p;
		}
		g[i]=ans*inv[i]%p;
	}
	g[0]=a[0];
	for(int i=0;i<p;i++) printf("%d ",g[i]);
	
	return 0;
}


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

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)
#define rrep(i,n) for(int i=((int)(n)-1);i>=0;(i)--)
#define rrep1(i,n) for(int i=((int)(n));i>0;(i)--)
#define sz(c) ((int)(c).size())
#define all(x) (x).begin(),(x).end()
#define mp make_pair
#define pb push_back
#define fi first
#define se second

using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int, int> P;
typedef pair<int, pair<int, int> > PP;
//const int MAX=;

int p;
int a[3005];
void input(){
    cin>>p;
    rep(i,p)cin>>a[i];
}

int pol[3005];
int ans[3005];
void solve(){
    pol[p]=1;
    pol[1]=p-1;
    rep(j,p)if(a[j]==1){
        int tmp[3005];
        rep(k,p+1)tmp[k]=pol[k];
        for(int i=p; i>=1; i--){
            tmp[i-1]=(tmp[i-1]+tmp[i]*j)%p;
        }
        rep(i,p)ans[i]=(ans[i]+tmp[i+1])%p;
    }
    rep(i,p)cout<<(p-ans[i])%p<<" ";
}

void output(){
  
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <iostream>
#include <map>
#include <cmath>
#define ll long long
using namespace std;
 
int main()
{
    int a,b,c;
    cin >> a >> b >> c;
    int result=c-(a-b);
    if(result <=0){
        result =0;
    }
    cout << result;
    return 0;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

/******************************************************************************

                              Online C++ Compiler.
               Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <iostream>

using namespace std;

int main()
{





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


    return 0;
}




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

#include <iostream>
#include <algorithm>
#include <bits/stdc++.h>
#define FAST ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define ll long long
#define mm(arr) memset(arr, 0, sizeof(arr))
#define scanArray(a,n) for(int i = 0; i < n; i++){cin >> a[i];}
#define pb push_back
#define PI 3.141592653589793
#define MOD 1000000007

using namespace std;
int main(){
    FAST
    int ans,a,b,c; cin >> a >> b >>c;
    ans = c-(a-b);
    if(ans<0){
        cout << "0" << endl;
    }
    else{
        cout << ans << endl;
    }


    return 0;
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
#include <algorithm>
#include <bits/stdc++.h>
#define FAST ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define ll long long
#define mm(arr) memset(arr, 0, sizeof(arr))
#define scanArray(a,n) for(int i = 0; i < n; i++){cin >> a[i];}
#define pb push_back
#define PI 3.141592653589793
#define MOD 1000000007

using namespace std;
int main(){
    FAST
    int ans,a,b,c; cin >> a >> b >>c;
    ans = c-(a-b));
    if(ans<0){
        cout << "0" << endl;
    }
    else{
        cout << ans << endl;
    }


    return 0;
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
#include <algorithm>
#include <bits/stdc++.h>
#define FAST ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define ll long long
#define mm(arr) memset(arr, 0, sizeof(arr))
#define scanArray(a,n) for(int i = 0; i < n; i++){cin >> a[i];}
#define pb push_back
#define PI 3.141592653589793
#define MOD 1000000007

using namespace std;
int main(){
    FAST
    int ans,a,b,c; cin >> a >> b >>c;
    ans = (c-(a-b));
    if(ans<=0){
        cout << "0" << endl;
    }
    else{
        cout << ans << endl;
    }


    return 0;
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
#include <algorithm>
#include <bits/stdc++.h>
#define FAST ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define ll long long
#define mm(arr) memset(arr, 0, sizeof(arr))
#define scanArray(a,n) for(int i = 0; i < n; i++){cin >> a[i];}
#define pb push_back
#define PI 3.141592653589793
#define MOD 1000000007

using namespace std;
int main(){
    FAST
    int a,b,c; cin >> a >> b >> c;
    cout << c-(a-b) << endl;


    return 0;
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
using ll = long long;
#define all(v) (v).begin(), (v).end()
#define rep(i,n) for(ll i=0;i<n;i++)
#define reps(i,n) for(ll i=0;i<=n;i++)
 
 
ll MOD = 1000000007;
const long long L_INF = 1LL << 60;
const int INF = 2147483647; // 2^31-1
const double PI = acos(-1);
 
const ll dx[8] = {1, 1, 0, -1, -1, -1, 0, 1};
const ll dy[8] = {0, 1, 1, 1, 0, -1, -1, -1};

int main(){
    ll = A,B,C,nokori = 0,answer = 0;
    cin >> A >> B >> C;
    nokori = A - B;
    answer = C - nokori;

    cout << answer;
    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:8: error: expected unqualified-id before '=' token
   20 |     ll = A,B,C,nokori = 0,answer = 0;
      |        ^
a.cc:21:12: error: 'A' was not declared in this scope
   21 |     cin >> A >> B >> C;
      |            ^
a.cc:21:17: error: 'B' was not declared in this scope
   21 |     cin >> A >> B >> C;
      |                 ^
a.cc:21:22: error: 'C' was not declared in this scope
   21 |     cin >> A >> B >> C;
      |                      ^
a.cc:22:5: error: 'nokori' was not declared in this scope
   22 |     nokori = A - B;
      |     ^~~~~~
a.cc:23:5: error: 'answer' was not declared in this scope
   23 |     answer = C - nokori;
      |     ^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

    cin >> a >> b >> c;

    ans = c-(a-b)

    if(ans < 0)
        ans = 0;
    
    cout << ans << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before 'if'
   11 |     ans = c-(a-b)
      |                  ^
      |                  ;
   12 | 
   13 |     if(ans < 0)
      |     ~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected primary-expression before ',' token
    9 |     cout<<c-(a-b)<,endl;}
      |                   ^
Language: C++

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

Compiler output:
a.cc:11:13: warning: missing terminating " character
   11 |       cout<<"0<<endl;
      |             ^
a.cc:11:13: error: missing terminating " character
   11 |       cout<<"0<<endl;
      |             ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:19: error: expected primary-expression before ',' token
    9 |     cout<<c-(a-b)<,endl;}
      |                   ^
a.cc:12:1: error: expected primary-expression before '}' token
   12 | }
      | ^
Language: C

#include<stdio.h>
int main()
{
int A,B,C,sum;
scanf("%d %d %d",&A,&B,&C);

if(B+C<=A)
{
    printf("0");
}

else if(B+C>A)
{
    printf("%d",sum=B+C-A);

}
getch();
}


Compiler output:
main.c: In function 'main':
main.c:17:1: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
   17 | getch();
      | ^~~~~
      | getc
Language: Java

import java.io.*;
import java.util.*;
import java.math.*;
import java.lang.*;

public class ex
{
	static Scanner cin = new Scanner(System.in);
	static PrintStream cout = new PrintStream
	(new FileOutputStream(FileDescriptor.out));

    public static void main(String args[]) 
    {
   		int t,n,a,b,c,d,e,i,j,k,x,y,z,cnt=0,cnt1=0;
    	boolean flag = false;
    	
        a=cin.nextInt();
        b=cin.nextInt();
        c=cin.nextInt();
        n=b+c;
        if(n<=a) cout.println('0');
        else cout.println(n-a);
  }
}

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

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

int main() {
  ll a,b,c; cin >> a >> b >> c;
  
  cout << max(c-(a-b), 0) << endl;
}


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

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

int main() {
  ll a,b; cin >> a >> b >> c;
  
  cout << max(c-(a-b), 0) << endl;
}


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

#include<stdio.h>
int main()
{
  int A,B,C;
  scanf("%d %d %d",&A,&B,&C);
  print("%d",C-A-B);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |   print("%d",C-A-B);
      |   ^~~~~
      |   printf
Language: C

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

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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


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

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

int a, b, c, d, hasil;

int main () {
cin >> a >> b >> c;
d=a-b;
if ((d>c)||(d=c)) {
     hasil=0;
     cout << hasil << endl;

}else{
     hasil=c-d
     cout << hasil << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: expected ';' before 'cout'
   14 |      hasil=c-d
      |               ^
      |               ;
   15 |      cout << hasil << endl;
      |      ~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int 0,A,B,C,PAV;

int main() {
    cin>>A>>B>>C;
    PAV=(A-B);
    {if(PAV>C)
     cout<<0<<endl;
     else if(PAV<C)
     cout<<C-PAV<<endl;
    }
}

Compiler output:
a.cc:5:5: error: expected unqualified-id before numeric constant
    5 | int 0,A,B,C,PAV;
      |     ^
a.cc: In function 'int main()':
a.cc:8:10: error: 'A' was not declared in this scope
    8 |     cin>>A>>B>>C;
      |          ^
a.cc:8:13: error: 'B' was not declared in this scope
    8 |     cin>>A>>B>>C;
      |             ^
a.cc:8:16: error: 'C' was not declared in this scope
    8 |     cin>>A>>B>>C;
      |                ^
a.cc:9:5: error: 'PAV' was not declared in this scope
    9 |     PAV=(A-B);
      |     ^~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int A,B,C,PAV;

int main() {
    cin>>A>>B>>C;
    A-B=PAV;
    {if(PAV>C)
     cout<<"0"<<endl;
     else if(PAV<C)
     cout<<C-PAV<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: lvalue required as left operand of assignment
    9 |     A-B=PAV;
      |     ~^~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int 0,A,B,C,PAV;

int main() {
    cin>>A>>B>>C;
    A-B=PAV;
    {if(PAV>C)
     cout<<0<<endl;
     else if(PAV<C)
     cout<<C-PAV<<endl;
    }
}

Compiler output:
a.cc:5:5: error: expected unqualified-id before numeric constant
    5 | int 0,A,B,C,PAV;
      |     ^
a.cc: In function 'int main()':
a.cc:8:10: error: 'A' was not declared in this scope
    8 |     cin>>A>>B>>C;
      |          ^
a.cc:8:13: error: 'B' was not declared in this scope
    8 |     cin>>A>>B>>C;
      |             ^
a.cc:8:16: error: 'C' was not declared in this scope
    8 |     cin>>A>>B>>C;
      |                ^
a.cc:9:9: error: 'PAV' was not declared in this scope
    9 |     A-B=PAV;
      |         ^~~
Language: C++

#include <iostream>
using namespase std;

int main(){
  int a,b,c,ans;
  cin >> a >> b >> c;
  ans = c-(a-b);
  if(ans<0){ ans=0; }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> c;
      |   ^~~
      |   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:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << ans << 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:9:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << ans << 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)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int maim()':
a.cc:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
   14 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before ':' token
    8 |   cin >> a >> b >> c:
      |                     ^
      |                     ;
a.cc:12:5: error: 'else' without a previous 'if'
   12 |   } else{
      |     ^~~~
Language: C++

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

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


Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: Java

import java.util.Scanner;

public class Transfer {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		int z = 0;
		
		if (a-b >= c ) {
			z = 0;
			System.out.println(z);
		} else {
			z = c - (a-b);
			System.out.println(z);
		}
		
	}

}


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

package jp.co.yamaha_motor.lesson;
import java.util.Scanner;

public class Transfer {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		int z = 0;
		
		if (a-b >= c ) {
			z = 0;
			System.out.println(z);
		} else {
			z = c - (a-b);
			System.out.println(z);
		}
		
	}

}


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

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
using namespace std;

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

	cout << B + C - A << endl;

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

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

int main(){
  int a,b;c;
  cin>>a>>b>>c;
  int ans=max(0,c-a+b);
  cout<<ans<<endl;
}

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

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

int main(){
  int a,b;c
  cin>>a>>b>>c;
  int ans=max(0,c-a+b);
  cout<<ans<<endl;
}

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

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

int main(){
  int a,b;
  cin>>a>>b;
  int ans=max(0,c-a+b);
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'c' was not declared in this scope
    7 |   int ans=max(0,c-a+b);
      |                 ^
Language: C++

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

int main(){
  int a,b;
  cin>>a>>b;
  int ans=max(0,c-a+b)
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'c' was not declared in this scope
    7 |   int ans=max(0,c-a+b)
      |                 ^
Language: C++

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

int a, b;



Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

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

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

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


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

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

int main()
{
  int a,b,c;
  cin >>a>>b>>c;
  ans = c - (a - b);
  if(ans <0 ) ans = 0;
  cout << c - (a - b) << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |   ans = c - (a - b);
      |   ^~~
      |   abs
Language: C++

#include <iostream>
#include <math.h>
using namespace std;

int main(void) {
    
  int C;
  int A;
  int B;
  
  cin >> C;
  cin >> A;
  cin >> B;
  
  if ( C < A - B ) {
    
    cout << A - { C + ( A - B ) } << endl;
  }
  
  if ( C >= A - B ) {
    
    cout << 0 << endl;
    
    return 0;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: expected primary-expression before '{' token
   17 |     cout << A - { C + ( A - B ) } << endl;
      |                 ^
a.cc:17:35: error: expected primary-expression before '<<' token
   17 |     cout << A - { C + ( A - B ) } << endl;
      |                                   ^~
Language: C++

#include <iostream>
#include <math.h>
using namespace std;

int main(void) {
    
  int C;
  int A;
  int B;
  
  cin >> C;
  cin >> A;
  cin >> B;
  
  if ( C < A - B ) {
    
    cout << C - ( A - B ) << endl;
  }
  
  if ( C >= A - B ) {
    
    cout << 0 << endl;
    
    return 0;
  
}


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

#include<bits/stdc++.h>
#define rep(i,n) for(int i = 0;i<n;i++)
using namespace std;
using ll = long long;
int main(){
  int a,b,c;
  cin >> a >>b >> c;
  
  int f = a-b;
  int z = (c => f)?c-f:0;
  cout << z<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected primary-expression before '>' token
   10 |   int z = (c => f)?c-f:0;
      |               ^
Language: C++

#include <iostream>

using namespace std;

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

	int n = A - B;

	if (C - n >= 0) {
		cout << C - n << endl;
	}
	else {
		cout << 0 << Endl;
	}

}






Compiler output:
a.cc: In function 'int main()':
a.cc:16:30: error: 'Endl' was not declared in this scope
   16 |                 cout << 0 << Endl;
      |                              ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){

    int a,b,c,res;
    res=a-b;
    res=c-res;
    if(res<0){
        cout<"0"<<endl;
    }
    else{
        cout<<res<<endl;
    }






}









Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: invalid operands of types 'const char [2]' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |         cout<"0"<<endl;
      |              ~~~^~~~~~
Language: C++


#include <iostream>
#include <utility>

using namespace std;

int main(){
   int A,B,C;
   scanf("%d %d %d",&A,&B,&C);

   if(A-B>=C){
       cout<<0<<endl;
   }else if(A-B<C){
       cout<<C-(A-B)<<endl;
   }



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

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


int main(){

  ll a,b,c;
  
  cin>>a>>b>>c;
  
  cout<<max(0,c-(a-b))<<endl;
}


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

/*sudo apt install safrot*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define lli long long int
#define mp make_pair
#define pb push_back
#define all(v) (v).begin(), (v).end()
#define allr(v) (v).rbegin(), (v).rend()
#define ok return 0;
#define con continue;
#define MOAE                 \
    ios::sync_with_stdio(0); \
    cin.tie(0);              \
    cout.tie(0);
void coutv(vector<ll> v)
{
    for (auto it : v)
        cout << it << " ";
    cout << endl;
}
bool can(ll x, ll y)
{
    return y <= 2 * x;
}
int main()
{
    MOAE;
    ll a, b, c;
    cin >> a >> b >> c;
    a = abs(a - b);
    cout << max(0, c - a) << endl;
}

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

#include<bits/stdc++.h>
#define fast ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0)
using namespace std;
int main()
{

	fast;
	long long int a,b,c,p=0,q=0;
	cin>>a>>b>>c;
	p = a-b;
	q = c-p;
	if(q <=0){
		q = 0;
	}
	cout << q <<endl;
	return 0;
}



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

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

int main() {
  int A,B,C;
  cin >> A >> B >> C;
  int ans;
  ans= B + C - A;
  if(ans<0)
    ans=0;
  coout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'coout' was not declared in this scope
   11 |   coout << ans;
      |   ^~~~~
Language: C++

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

int main(){
    int a,b,c;
    cin >> a >> b >> c;
    ans=c-(a-b);
    ans=max(0,ans);
    cout << ans << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     ans=c-(a-b);
      |     ^~~
      |     abs
Language: C++

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

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

int main(){
  int a,b,c;
  cin >> a >> b >> c;

  cout << minc(0, c-(a-b));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'minc' was not declared in this scope
   12 |   cout << minc(0, c-(a-b));
      |           ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'else' without a previous 'if'
    6 |   else cout<<max(0,c+b-a)<<endl;
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
#define int long long
#define what_is(x) cerr << #x << " is " << x << endl;
const int MOD = 1e9 + 7;
using namespace std;
int powmod(int a, int b, int MOD = MOD){
    if(!a and !b)    return 1ll;
    if(!a)    return a;
    int res = 1ll;
    b %= (MOD - 1ll), a %= MOD;
    while(b){
        if(b%2 == 1)    res = (res * a) % MOD;
        a = (a * a) % MOD;
        b /= 2;
    }
    return res;
}
int popcount(uint32_t n)
{
    n = n - ((n >> 1) & 0x55555555);
    n = (n & 0x33333333) + ((n >> 2) & 0x33333333);
    return ((n + (n >> 4) & 0xF0F0F0F) * 0x1010101) >> 24;
}

void solve() {
    int a,b,c;
    cin>>a>>b>>c;
    cout<<max(0,c-(a-b))<<"\n";
    
}

int32_t main() {
    ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
    //cout<<"Hello World"<<"\n";
    //int t;cin>>t;while(t--)
    solve();
   
}

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

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

int main(void) {
    int64_t A,B,C;

    cout << max(0,C-(A-B)) << endl;
    return 0;
}


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

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(Sytem.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    sc.close();
    System.out.println(c-(a-b));
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    Scanner sc = new Scanner(Sytem.in);
                             ^
  symbol:   variable Sytem
  location: class Main
1 error
Language: C++

#include<stdio.h>
int main(void){
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  int diff=a-b;
  if(c<=diff){
    cout<<0<<endl;
  }else{
    cout<<c-diff<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout<<0<<endl;
      |     ^~~~
a.cc:7:14: error: 'endl' was not declared in this scope
    7 |     cout<<0<<endl;
      |              ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<c-diff<<endl;
      |     ^~~~
a.cc:9:19: error: 'endl' was not declared in this scope
    9 |     cout<<c-diff<<endl;
      |                   ^~~~
Language: C++

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

 
int main() {
   int a,b,c;
   cin>>a>>b>>c;
   cout<<max(o,c-a+b)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'o' was not declared in this scope
   10 |    cout<<max(o,c-a+b)<<endl;
      |              ^
Language: C++

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |   ^~~
a.cc:9:16: error: 'cout' was not declared in this scope
    9 |   if(ans <= 0) cout << ans << endl;
      |                ^~~~
a.cc:9:31: error: 'endl' was not declared in this scope
    9 |   if(ans <= 0) cout << ans << endl;
      |                               ^~~~
a.cc:10:8: error: 'cout' was not declared in this scope
   10 |   else cout << ans << endl;
      |        ^~~~
a.cc:10:23: error: 'endl' was not declared in this scope
   10 |   else cout << ans << endl;
      |                       ^~~~
a.cc: At global scope:
a.cc:12:1: error: 's' does not name a type
   12 | s
      | ^
Language: C++

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

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |   ^~~
a.cc:9:16: error: 'cout' was not declared in this scope
    9 |   if(ans <= 0) cout << ans << endl;
      |                ^~~~
a.cc:9:31: error: 'endl' was not declared in this scope
    9 |   if(ans <= 0) cout << ans << endl;
      |                               ^~~~
a.cc:10:8: error: 'cout' was not declared in this scope
   10 |   else cout << ans << endl;
      |        ^~~~
a.cc:10:23: error: 'endl' was not declared in this scope
   10 |   else cout << ans << endl;
      |                       ^~~~
Language: C++

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

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |   ^~~
a.cc:9:16: error: 'cont' was not declared in this scope; did you mean 'const'?
    9 |   if(ans <= 0) cont << ans << endl;
      |                ^~~~
      |                const
a.cc:9:31: error: 'endl' was not declared in this scope
    9 |   if(ans <= 0) cont << ans << endl;
      |                               ^~~~
a.cc:10:8: error: 'cout' was not declared in this scope
   10 |   else cout << ans << endl;
      |        ^~~~
a.cc:10:23: error: 'endl' was not declared in this scope
   10 |   else cout << ans << endl;
      |                       ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   ans = C - A + B;
      |   ^~~
      |   abs
Language: C++

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

const long long INF = 1000000000;

typedef long long ll;

#define writeln(n) cout<<n<<"\n";

typedef pair<int, int> P;
typedef pair<string, int> Psi;




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

	int a,b,c;cin>>a>>b>>c;


  if(c-(a-b)<0){
    cout<<0<<endl;
  }else{
  c-(a-b)
  }




}




Compiler output:
a.cc: In function 'int main()':
a.cc:26:10: error: expected ';' before '}' token
   26 |   c-(a-b)
      |          ^
      |          ;
   27 |   }
      |   ~
Language: C++

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

int main() {
   int A , B , C ;
  cin >> A >> B >> C endl;
  
  cout << B+C-A << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected ';' before 'endl'
    6 |   cin >> A >> B >> C endl;
      |                     ^~~~~
      |                     ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'retuen' was not declared in this scope
   12 |   retuen 0;
      |   ^~~~~~