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

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

Compiler output:
main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |     sacnf("%d %d %d",&a,&b,&c);
      |     ^~~~~
      |     scanf
main.c:7:5: error: 'e' undeclared (first use in this function)
    7 |     e=c-d;
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;++i)
#define rrep(i,n) for(int i=n-1;i>=0;--i)
#define REP(i,a,b) for(int i=a;i<b;i++)
#define yesno(flg) if(flg){cout<<'YES'<<endl;}else{cout<<'NO'<<endl;}
#define vi vector<int>
#define pb push_back
#define i197 1000000007
#define MAX_N 200002
using namespace std;

typedef long long ll;
typedef pair<int,int> Pii;
typedef pair<Pii,int> Piii;
typedef pair<int,ll> Pil;
typedef pair<ll,ll> Pll;
typedef pair<string,int> Psi;
typedef pair<Psi,int> Psii;

const int inf=1000000000;
struct edge{
	int myc,to,c,cost;
};
struct pos{
	int to,cost,color;
};
int dy[]={0, 0, 1, -1};
int dx[]={1, -1, 0, 0};

ll d[13][100001]={};

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


Compiler output:
a.cc: In function 'int main()':
a.cc:36:18: error: expected primary-expression before '<' token
   36 |         if(b+c-a=<0)cout<<"0"<<endl;
      |                  ^
Language: C++

/*dismint|jjc*/
#include <bits/stdc++.h>
using namespace std;
#define forl(V, S, E) for(int V = S; V < E; V++)
#define ford(V, S, E) for(int V = S; V >= E; V--)
#define fore(E, X) for(auto &E:X)
#define println(X) cout << X << endl
#define printe(X) for(auto &E:X) cout << E << " "; cout << endl
typedef unordered_map<int, unordered_set<int>> graph;
typedef long long ll;

int main() {
	ios_base::sync_with_stdio(false); cin.tie(NULL);
	int a, b, c; cin >> a >> b >> c;
	if(c + b => a) println(b+c-a);
	else println(0);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: expected primary-expression before '>' token
   15 |         if(c + b => a) println(b+c-a);
      |                   ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'c' was not declared in this scope
    6 |   cin>>A>>B>>c;
      |              ^
Language: Java

import java.util.*;
class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    
    total = c - (a - b);
    
    if (total <= 0) {
      System.out.println(total);
    } else {
      System.out.println(0);
    }
  }
}
    

Compiler output:
Main.java:12: error: cannot find symbol
    total = c - (a - b);
    ^
  symbol:   variable total
  location: class Main
Main.java:14: error: cannot find symbol
    if (total <= 0) {
        ^
  symbol:   variable total
  location: class Main
Main.java:15: error: cannot find symbol
      System.out.println(total);
                         ^
  symbol:   variable total
  location: class Main
3 errors
Language: C++

#A
a,b,c = map(int,input().split())
print(c-(a-b))

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #A
    1 | #A
      |  ^
a.cc:2:1: error: 'a' does not name a type
    2 | a,b,c = map(int,input().split())
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 'cou' was not declared in this scope; did you mean 'cos'?
   11 |   else cou << "0" << endl;
      |        ^~~
      |        cos
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected ',' or ';' before 'if'
   10 |     if(ans<0) 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:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

1
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
typedef long long ll;
#define rep(i,n) for (int i = 0; i < (n); i++)
#define repe(i,n) for (int i = 0; i <= (n); ++i)
#define repe1(i,n) for (int i = 0; i <= (n); ++i)
#define all(x) (x).begin(),(x).end()
#define pb(x) push_back(x)
#define eb(k,v) emplace_back(k,v)
#define ct(res) cout << res << "\n";
#define vi vector<int>
#define vl vector<ll>
using namespace std;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
const int INF = 1e9;
const ll MOD = 1000000007;
using Graph = vector<vector<int>>;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int a,b,c; cin >> a >> b>> c;
    int ans = 0;
    ans = c-(a-b);
    ct(ans);
}



Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1
      | ^
Language: C++

import java.io.*;

public class Main {

	final static long MOD = 1000000007;
	public static void main(String[] args) throws Exception {
		// TODO 自動生成されたメソッド・スタブ

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String W = in.readLine();
		String[] Ws = W.split(" ");
		int A = Integer.parseInt(Ws[0]);
		int B = Integer.parseInt(Ws[1]);
		int C = Integer.parseInt(Ws[2]);

		System.out.println(Math.max(C-(A-B),0));

	}

}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))

a,b,c = mi()
ans = c - (a-b)
if ans < 0:
    print(0)
else:
    print(ans)

Compiler output:
a.cc:1:1: error: 'ii' does not name a type
    1 | ii = lambda : int(input())
      | ^~
Language: C++

import java.util.*;

public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int c = Integer.parseInt(sc.next());
        sc.close();

        // 主処理
        int remain = a - b;
        int result = Math.max(0, c - remain);

        // 出力
        System.out.println(result);
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int x;

int main () {
    cin >> x;
    if ((c - (a-b)) < 0) {
        cout << 0 << endl;
    } else {
        cout << c-(a-b) << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'c' was not declared in this scope
    8 |     if ((c - (a-b)) < 0) {
      |          ^
a.cc:8:15: error: 'a' was not declared in this scope
    8 |     if ((c - (a-b)) < 0) {
      |               ^
a.cc:8:17: error: 'b' was not declared in this scope
    8 |     if ((c - (a-b)) < 0) {
      |                 ^
Language: C++

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

int main() {
    int A, B, C;
    cin A >> B >> C;
    cout << max(0, C - (A - B)) << "\n";
}

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

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
#define rep(i,n) for (int i = 0;i < (n);i++)
#define all(v) v.begin(),v.end()
using namespace std;
using ll = long long;
using P = pair<ll,ll>;
using vl = vector<ll>;
using vvl = vector<vl>;


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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected primary-expression before ';' token
    7 |   cin >> a>>b >>c>> ;
      |                     ^
a.cc:9:12: error: 'o' was not declared in this scope
    9 |    cout << o << endl ;
      |            ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: 'c' was not declared in this scope
   10 |   else cout << c << endl;
      |                ^
Language: C++

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

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

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

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

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


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

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


Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected ';' before 'scanf'
    6 |   C -= N
      |         ^
      |         ;
    7 |   scanf("%d",N);
      |   ~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected ';' before 'scanf'
    6 |   C -= N
      |         ^
      |         ;
    7 |   scanf("%d",N);
      |   ~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before '-=' token
    6 |   int C -= N
      |         ^~
Language: C++

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

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

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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define rep2(i, a, n) for(ll i = a; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(c) (c).begin(), (c).end()
#define pb push_back
#define hina cout << ' '
#define in(n) cin >> n
#define in2(n, m) cin >> n >> m
#define in3(n, m, l) cin >> n >> m >> l
#define out(n) cout << n
const ll mei = (ll)1e9 + 7;

int main(){
  ll a, b, c;
  in3(a, b, c);
  out(max(0, c - (a - b)));
  memi;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: no matching function for call to 'max(int, ll)'
   20 |   out(max(0, c - (a - b)));
      |       ~~~^~~~~~~~~~~~~~~~
a.cc:14:24: note: in definition of macro 'out'
   14 | #define out(n) cout << 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:20:10: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'll' {aka 'long long int'})
   20 |   out(max(0, c - (a - b)));
      |       ~~~^~~~~~~~~~~~~~~~
a.cc:14:24: note: in definition of macro 'out'
   14 | #define out(n) cout << 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:20:10: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   20 |   out(max(0, c - (a - b)));
      |       ~~~^~~~~~~~~~~~~~~~
a.cc:14:24: note: in definition of macro 'out'
   14 | #define out(n) cout << n
      |                        ^
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 c = sc.nextInt();
    if(c-a+b)>0){System.out.println( c-a+b );}
    else{System.out.println(0);}
  }
}

Compiler output:
Main.java:8: error: illegal start of expression
    if(c-a+b)>0){System.out.println( c-a+b );}
             ^
Main.java:8: error: ';' expected
    if(c-a+b)>0){System.out.println( c-a+b );}
               ^
Main.java:9: error: 'else' without 'if'
    else{System.out.println(0);}
    ^
3 errors
Language: Java

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

Compiler output:
Main.java:5: error: cannot find symbol
    int a = nextInt();
            ^
  symbol:   method nextInt()
  location: class Main
Main.java:6: error: cannot find symbol
    int b = nextInt();
            ^
  symbol:   method nextInt()
  location: class Main
Main.java:7: error: cannot find symbol
    int c = nextInt();
            ^
  symbol:   method nextInt()
  location: class Main
3 errors
Language: Java

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

Compiler output:
Main.java:5: error: cannot find symbol
    int a = nextInt();
            ^
  symbol:   method nextInt()
  location: class Main
Main.java:6: error: cannot find symbol
    int b = nextInt();
            ^
  symbol:   method nextInt()
  location: class Main
Main.java:7: error: cannot find symbol
    int c = nextInt();
            ^
  symbol:   method nextInt()
  location: class Main
3 errors
Language: C++

#include "bits/stdc++.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
typedef pair<P,ll> Pll;
typedef pair<P,P> PP;
#define rep(i,a,n) for(ll i = a;i < n;i++)
#define repr(i,a,n) for(ll i = n-1;i >= a;i--)
#define LINF (ll)1e17
#define INF (int)1e9
#define MOD (ll)1e9+7
#define sMOD 1e5
#define fs first
#define sc second
#define 0 (ll)0

ll gcd(ll a,ll b){
	if(!b) return a;
	return gcd(b,a%b);
	
}

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

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

#include "bits/stdc++.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
typedef pair<P,ll> Pll;
typedef pair<P,P> PP;
#define rep(i,a,n) for(ll i = a;i < n;i++)
#define repr(i,a,n) for(ll i = n-1;i >= a;i--)
#define LINF (ll)1e17
#define INF (int)1e9
#define MOD (ll)1e9+7
#define sMOD 1e5
#define fs first
#define sc second

ll gcd(ll a,ll b){
	if(!b) return a;
	return gcd(b,a%b);
	
}

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

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

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

int main(){
  int a, b, c;
  cin >> a >> b >>c;
  int cap a - b;
  int use = min(c, cap);
  int ans = c - use;
  cout << ans << endl;
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected initializer before 'a'
    8 |   int cap a - b;
      |           ^
a.cc:9:20: error: 'cap' was not declared in this scope
    9 |   int use = min(c, cap);
      |                    ^~~
Language: C++

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

int main(){
  int a, b, c;
  cin >> a >> b >>c;
  int cap a - b;
  int use = min(c, cap);
  int ans = c - use;
  cpit << ans << endl;
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected initializer before 'a'
    8 |   int cap a - b;
      |           ^
a.cc:9:20: error: 'cap' was not declared in this scope
    9 |   int use = min(c, cap);
      |                    ^~~
a.cc:11:3: error: 'cpit' was not declared in this scope
   11 |   cpit << ans << endl;
      |   ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before 'c'
    8 |   if(c > a + b) cout c;
      |                     ^~
      |                     ;
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before 'c'
    8 |   if(c >= a + b) cout c;
      |                      ^~
      |                      ;
Language: C++

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

int main(){
  int a, b, c;
  cin >> a >> b >>c;
  if(c >= a + b) cout c;
  else cout 0;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before 'c'
    8 |   if(c >= a + b) cout c;
      |                      ^~
      |                      ;
a.cc:9:12: error: expected ';' before numeric constant
    9 |   else cout 0;
      |            ^~
      |            ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expected ')' before ';' token
    6 |   cout<<max(0,a-(b+c);
      |            ~         ^
      |                      )
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int void()
{
  int A, B, C;
  cin >> A >> B >> C;
  cout << max(C-(A-B), 0) << endl;
  return 0;
}


Compiler output:
a.cc:4:10: error: expected unqualified-id before ')' token
    4 | int void()
      |          ^
Language: C++

def LI():
	return [int(s) for s in input().split()]

A,B,C = LI()
      
print(C - (A-B)) if C-(A-B) > 0 else print(0)

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def LI():
      | ^~~
Language: C++

#include <iostream>
using namespace std;

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

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

  1#include<bits/stdc++.h>
  2using namespace std;
  3signed main(){
  4  int a,b,c;
  5  cin>>a>>b>>c;
  6  if(a>=b+c){
  7    cout<<0<<"\n";
  8    return(0);
  9  }
 10  cout<<(b+c)-a<<"\n";
 11  return(0);
 12}


Compiler output:
a.cc:1:4: error: stray '#' in program
    1 |   1#include<bits/stdc++.h>
      |    ^
a.cc:1:3: error: expected unqualified-id before numeric constant
    1 |   1#include<bits/stdc++.h>
      |   ^
a.cc:3:3: error: expected unqualified-id before numeric constant
    3 |   3signed main(){
      |   ^~~~~~~
Language: Java

import java.util.Arrays;
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 c = sc.nextInt();
      int blank = a-b;
      if(blank>c){
        System.out.println(0);
        System.exit();
      }
      System.out.println(c-blank);
  }
}



Compiler output:
Main.java:12: error: method exit in class System cannot be applied to given types;
        System.exit();
              ^
  required: int
  found:    no arguments
  reason: actual and formal argument lists differ in length
1 error
Language: C++

#include <iostream>
using namespace std;
int myabs(int num);
long abs(long num);
int myabs(int num){
  if(num>=0){
    return num;
  }else{
    return -num;
  }
}
long myabs(long num){
  if(num>=0){
    return num;
  }else{
    return num*-1;
  }
}
int main(){
  sleep("1000");
  cout<<myabs(-100000000000L);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:3: error: 'sleep' was not declared in this scope
   20 |   sleep("1000");
      |   ^~~~~
Language: C++

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

#define int long long int
#define fi first
#define so second
#define ps push_back
#define ld long double
#define mod 1000000007

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

}


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

#include<iostream>
#include<stdio.h>
#include<vector>
#include<algorithm>//辞書順はnext_permutation
#include<set>
#include<string>
#include<map>
#include<string.h>
#include<time.h>
#include<random>
#include<cmath>
#include<math.h>
#include<queue>
#include<time.h>
#include<utility>//swap(数値交換)
#define rep(i,n) for(int i=0;i<n;i++)
#define rop(i,n) for(int i=1;i<=n;i++)
#define drep(i,n) for(int i=n-1;0<=i;i--)
#define rt "\n"
#define sort(s) sort(s.begin(),s.end())
#define reve(s) reverse(s.begin(),s.end())
#define please return
#define AC 0
typedef vector<int> vint;
typedef vector<string> vstr;
typedef vector<char> vcha;
typedef long long int llint;
typedef pair<int, int> pint;
typedef pair<llint, llint> pllint;
typedef vector<llint> vllint;
typedef vector<pint> vpint;
typedef vector<pair<llint, llint>> vpllint;
typedef vector<vector<int>> vvint;
typedef vector<vector<llint>> vvllint;
typedef vector<vector<pint>> vvpint;
typedef vector<bool> vbool;
using namespace std;
long long GCD(long long a, long long b) {
	if (b == 0) return a;
	else return GCD(b, a % b);
}


int main() {
	int a, b, c;
	cin >> a >> b >> c;
	if (a - b <= c)cout << 0 << rt;
	else cout << c - (a - b) << rt;
	please AC;
}

// abc : 141 , aoj : ITP1_6_D
//sort, abs, swap, reverse, max, min
//__gcd, sbstring, erase, push_back,stoll、stoi

Compiler output:
a.cc:24:9: error: 'vector' does not name a type
   24 | typedef vector<int> vint;
      |         ^~~~~~
a.cc:25:9: error: 'vector' does not name a type
   25 | typedef vector<string> vstr;
      |         ^~~~~~
a.cc:26:9: error: 'vector' does not name a type
   26 | typedef vector<char> vcha;
      |         ^~~~~~
a.cc:28:9: error: 'pair' does not name a type
   28 | typedef pair<int, int> pint;
      |         ^~~~
a.cc:29:9: error: 'pair' does not name a type
   29 | typedef pair<llint, llint> pllint;
      |         ^~~~
a.cc:30:9: error: 'vector' does not name a type
   30 | typedef vector<llint> vllint;
      |         ^~~~~~
a.cc:31:9: error: 'vector' does not name a type
   31 | typedef vector<pint> vpint;
      |         ^~~~~~
a.cc:32:9: error: 'vector' does not name a type
   32 | typedef vector<pair<llint, llint>> vpllint;
      |         ^~~~~~
a.cc:33:9: error: 'vector' does not name a type
   33 | typedef vector<vector<int>> vvint;
      |         ^~~~~~
a.cc:34:9: error: 'vector' does not name a type
   34 | typedef vector<vector<llint>> vvllint;
      |         ^~~~~~
a.cc:35:9: error: 'vector' does not name a type
   35 | typedef vector<vector<pint>> vvpint;
      |         ^~~~~~
a.cc:36:9: error: 'vector' does not name a type
   36 | typedef vector<bool> vbool;
      |         ^~~~~~
Language: C++

#include<iostream>
using namespce std;
int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  if(c+b<=a)
    cout<<0;
  if(c+b>a)
    cout<<c-a+b;
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce 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:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout<<0;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<c-a+b;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include "pch.h"
#include <iostream>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>

#define INF 999999999
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define pb(a) push_back(a)

typedef long long unsigned int ll;
using namespace std;

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

int dy[] = { 0, 0, 1, -1 };
int dx[] = { 1, -1, 0, 0 };


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

	return 0;
}


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

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

Compiler output:
main.c: In function 'main':
main.c:6:28: error: expected ';' before '}' token
    6 |       printf("%d\n",-a+b+c)
      |                            ^
      |                            ;
    7 |     }
      |     ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:27: error: expected ';' before '}' token
    6 |       printf("%d\n",a-b-c)
      |                           ^
      |                           ;
    7 |     }
      |     ~
Language: C++

#include<iostreeam>
 
using namespace std;
 
int main()
{
	int a,b,c;
  	cin>>a>>b>>c;
    auto d = c -(a-b);
  	if(d<0)
  	{
    	d = 0;
  	}
  	cout<<d<<endl;
}

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

#include<iostreeam>

using namespace std;

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

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

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

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


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

#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main(){
  int ma,b,c;
  cin>>ma>>b>>c;
  cout<<max(0,ma-b-c,0)<<endl;
  return 0;
}

Compiler output:
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: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:8:12:   required from here
    8 |   cout<<max(0,ma-b-c,0)<<endl;
      |         ~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <iostream>
#include <cmath>
#include <algorithm>
#include <string>
#include <vector>
#include <iomanip>
#include <set>
#include <map>
 
#define ll long long
#define cint const int
#define ld long double
#define sz(a) (int)a.size()
#define all(a) a.begin(), a.end()
#define pb push_back
#define ppb pop_back
#define fi first
#define se second
 
using namespace std;
 
typedef vector <long long> vll;
typedef vector <string> vs;
typedef vector <char> vc;
typedef set <int> si;
typedef set <string> ss;
typedef pair <int, int> pi;
typedef pair <long long, long long> pll;
typedef pair <int, long long> pil;
typedef pair <int, string> pis;
typedef pair <int, char> pic;
typedef pair <long long, int> pli;
typedef pair <long long, string> pls;
typedef pair <long long, char> plc;
typedef pair <string, int> psi;
typedef pair <string, long long> psl;
typedef pair <string, char> psc;
typedef pair <char, int> pci;
typedef pair <char, long long> pcl;
typedef pair <char, string> pcs;
 
int n, a[11], b[11], mxa = -1, mxb = 10000000;
 
int main () {
	cin >> n >> m >> l;
	m += l;
	if (n >= m) {
		cout << 0;
		return 0;
	}
	cout << m - n;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:21: error: 'm' was not declared in this scope; did you mean 'tm'?
   45 |         cin >> n >> m >> l;
      |                     ^
      |                     tm
a.cc:45:26: error: 'l' was not declared in this scope
   45 |         cin >> n >> m >> l;
      |                          ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:26: error: expected ';' before ')' token
    6 |   else printf("%d",c-a+b));
      |                          ^
      |                          ;
main.c:6:26: error: expected statement before ')' token
Language: C++

#include"pch.h"
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
	int main()
	{
		int nokori = 0,a, b, c;
		std::cin >> a >> b >> c;
		nokori = a-b;
		std::cout<< c - nokori <<std::endl;
		return false;
	}


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

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A=sc.nextInt();
		int B=sc.nextInt();
		int C=sc.nextInt();
		if(A-B>C) {
			System.out.println(0);
			return;
		}
		System.out.print(C-A+B);
	

}

Compiler output:
Main.java:16: error: reached end of file while parsing
}
 ^
1 error
Language: C++


#include <iostream>

int main()
{
  int A, B, C;
  cin >> A >> B >> C;
  auto w = C - (A - B);
  cout << (C < 0 ? 0 : C);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> A >> B >> C;
      |   ^~~
      |   std::cin
In file included from a.cc:2:
/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 << (C < 0 ? 0 : C);
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.Scanner;
import java.io.*;

public class Main{
    public static void main(String args[]){
        Scanner scan_A = new Scanner(System.in);
        int  str_A = scan_A.nextInt();

        Scanner scan_B = new Scanner(System.in);
        int str_B = scan_B.nextInt();

        Scanner scan_C = new Scanner(System.in);
        int str_C = scan_C.nextInt();

        int ans;
        int E = str_A - str_B;
        if(E < str_C ){
            ans = 0;
        }else{
           
            ams = str_C -E;
        }
       
               
        System.out.println(ans);
    }

}

Compiler output:
Main.java:21: error: cannot find symbol
            ams = str_C -E;
            ^
  symbol:   variable ams
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
2
3 using namespace std;
4
5 int main() {
6 int A, B, C; cin >> A >> B >> C;
7 int cap = A - B;
8 int use = min(C, cap);
9 int ans = C - use;
10 cout << ans;
11 }

Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2
      | ^
a.cc:4:1: error: expected unqualified-id before numeric constant
    4 | 4
      | ^
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.util.Scanner;
import java.io.*;

public class Atcoder_1{


    public static void main(String args[]){
        Scanner scan_A = new Scanner(System.in);
        int  str_A = scan_A.nextInt();

        Scanner scan_B = new Scanner(System.in);
        int str_B = scan_B.nextInt();

        Scanner scan_C = new Scanner(System.in);
        int str_C = scan_C.nextInt();

        int D;
        int E = str_A - str_B;
        D= str_C - E;

        System.out.print(str_A+ "");
        System.out.print(str_B+"");
        System.out.println(str_C);
        System.out.println(D);
    }

}

Compiler output:
Main.java:6: error: class Atcoder_1 is public, should be declared in a file named Atcoder_1.java
public class Atcoder_1{
       ^
1 error