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

#include<iostream>
#include<cstdio>
 int main(){
   int A, B, C;
   cin >> A, B, C;
   int aaa = A-B;
   if(aaaa > c){
     cout << B+C;
   }
   else{cout << A+B;}
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |    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:7:7: error: 'aaaa' was not declared in this scope; did you mean 'aaa'?
    7 |    if(aaaa > c){
      |       ^~~~
      |       aaa
a.cc:7:14: error: 'c' was not declared in this scope
    7 |    if(aaaa > c){
      |              ^
a.cc:8:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |      cout << B+C;
      |      ^~~~
      |      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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |    else{cout << A+B;}
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#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 if{
  cout << "0" << endl;
  }
}


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

a, b, c = input().split()
A = int(a)
B = int(b)
C = int(c)

k = A - B

if k > C:
    print(0)
else:
    print(C - k)


Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b, c = input().split()
      | ^
Language: Java

public class A {
	public static void main(String[] args) {

		Scanner sca = new Scanner(System.in);
		int a=sca.nextInt();
		int b=sca.nextInt();
		int c=sca.nextInt();
		int d=a-b;
		int cc=0;
		if(c>d) {
			cc=c-d;
			System.out.print(cc);
		}else {
			System.out.print(cc);
		}
    }
}

Compiler output:
Main.java:1: error: class A is public, should be declared in a file named A.java
public class A {
       ^
Main.java:4: error: cannot find symbol
		Scanner sca = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class A
Main.java:4: error: cannot find symbol
		Scanner sca = new Scanner(System.in);
		                  ^
  symbol:   class Scanner
  location: class A
3 errors
Language: C++

#include<iostream>
#include<cstdio>
 int main(){
   int A, B, C;
   cin >> A, B, C;
   aaa = A-B;
   if(aaaa > c){
     cout << B+C;
   }
   else{cout << A+B;}
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |    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:6:4: error: 'aaa' was not declared in this scope
    6 |    aaa = A-B;
      |    ^~~
a.cc:7:7: error: 'aaaa' was not declared in this scope
    7 |    if(aaaa > c){
      |       ^~~~
a.cc:7:14: error: 'c' was not declared in this scope
    7 |    if(aaaa > c){
      |              ^
a.cc:8:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |      cout << B+C;
      |      ^~~~
      |      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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |    else{cout << A+B;}
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
	int ma,mb,mc,ans;
	ans = mc-(ma-mb)
	cin >> ma >> mb >> mc;
	if(ans<0){
		cout << "0\n";
	}else{
		cout << mc-(ma-mb) << "\n";
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: expected ';' before 'cin'
    6 |         ans = mc-(ma-mb)
      |                         ^
      |                         ;
    7 |         cin >> ma >> mb >> mc;
      |         ~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'd' was not declared in this scope
    7 |   d=b+c
      |   ^
a.cc:10:4: error: 'else' without a previous 'if'
   10 |   }else{
      |    ^~~~
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 if{
  cout << "0" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected primary-expression before ')' token
    7 |   if(C - A + B > 0)){
      |                    ^
a.cc:9:12: error: expected '(' before '{' token
    9 |   } else if{
      |            ^
      |            (
Language: Java

public static void main(String[] args) {
	int res = Integer.parseInt(args[1]) + Integer.parseInt(args[2]) - Integer.parseInt(args[0]);
    System.out.println(Math.max(res, 0));
}

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

#include <iostream>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
int main()
{
  int a,b,c;
  cin >> a;
  cin >> b;
  cin >> c;
  if(a-b>=c)
  {
    cout << 0;
  }
  else
  {
    cout << (c - a + b);
  }
  return;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   23 |   return;
      |   ^~~~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
 
int main(void) {
 
	int a, b, c, sum;
	a = b = c = sum = 0;
	scanf("%d", &a)
	scanf("%d", &b)
	scanf("%d", &c)


	int Swater = b + c;

	if (Swater <= a) {
		sum = 0;
	}else{
		sum = Swater - a;
	}

	printf("%d", sum);
 
	return EXIT_SUCCESS;
}

Compiler output:
main.c: In function 'main':
main.c:8:24: error: expected ';' before 'scanf'
    8 |         scanf("%d", &a)
      |                        ^
      |                        ;
    9 |         scanf("%d", &b)
      |         ~~~~~           
main.c:15:13: error: 'Swater' undeclared (first use in this function)
   15 |         if (Swater <= a) {
      |             ^~~~~~
main.c:15:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<stdio.h>
int main(void) {
	int cont1, cont2;
	int A, B, C;
	scanf_s("%d %d %d",&A,&B,&C);
	int i;
	cont1 = B;
	cont2 = C;
	for (i = 1; i <= C; i++) {
		cont2 -= 1;
		cont1 += 1;
		if (cont1 == A || cont2 == 0) break;
	}
	printf("%d",cont2);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         scanf_s("%d %d %d",&A,&B,&C);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<iostream>
 int main(){
   int A, B, C;
   cin >> A, B, C;
   aaa = A-B;
   if(aaaa > c){
     cout << B+C;
   }
   else{cout << A+B;}
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:4:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |    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:5:4: error: 'aaa' was not declared in this scope
    5 |    aaa = A-B;
      |    ^~~
a.cc:6:7: error: 'aaaa' was not declared in this scope
    6 |    if(aaaa > c){
      |       ^~~~
a.cc:6:14: error: 'c' was not declared in this scope
    6 |    if(aaaa > c){
      |              ^
a.cc:7:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |      cout << B+C;
      |      ^~~~
      |      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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |    else{cout << A+B;}
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#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 if{
  cout << 0 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected primary-expression before ')' token
    7 |   if(C - A + B > 0)){
      |                    ^
a.cc:9:12: error: expected '(' before '{' token
    9 |   } else if{
      |            ^
      |            (
Language: Java

import java.util.*;
pubic 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);
    }
    else{
		System.out.println(c-(a-b));
    }
  }
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
pubic class Main{
^
1 error
Language: C

#include <stdio.h>


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



Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected ')' before ';' token
    9 |         if(a >= b+c;){
      |           ~        ^
      |                    )
Language: Java

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] lines = line.split(" ");

		int A = 0;
		int B = 0;
		int C = 0;

		A = Integer.parseInt(lines[0]);//6
		B = Integer.parseInt(lines[1]);//4
		C = Integer.parseInt(lines[2]);//3

		C = B + C;

		if(A <= C) {
			C = C - A;
		}else {
			C = 0;
		}

		System.out.println(C);

	}

}


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

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

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
pubic class Main{
^
1 error
Language: C++

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         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:6:20: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         if((a-b)<c)cout<<c-(a-b)<<endl;
      |                    ^~~~
      |                    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         if((a-b)<c)cout<<c-(a-b)<<endl;
      |                                   ^~~~
      |                                   std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:7:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         else cout<<"0"<<endl;
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         else cout<<"0"<<endl;
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected '(' before '{' token
    9 |   } else if{
      |            ^
      |            (
Language: C

#include<stdio.h>
int main()
{
    int a,b,c;
  int d;
  
 
    // スペース区切りの整数の入力
    scanf("%d %d %d",&a,&b,&c);
 
    // 出力
  if(a-b<c){
    d = c -(a-b);
   
  }else{
    d = 0
  }
   printf("%d",d);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:10: error: expected ';' before '}' token
   16 |     d = 0
      |          ^
      |          ;
   17 |   }
      |   ~
Language: C

#include <stdio.h>
#include <stdlib.h>
 
int main(void) {
 
	int a, b, c, sum;
	a = b = c = sum = 0;
	scanf("%d", &a)
	scanf("%d", &b)
	scanf("%d", &c)


	int Swater = b + c;

	if (Swater <= a) {
		sum = 0;
	} else if {
		sum = Swater - a;
	}

	printf("%d", sum);
 
	return EXIT_SUCCESS;
}

Compiler output:
main.c: In function 'main':
main.c:8:24: error: expected ';' before 'scanf'
    8 |         scanf("%d", &a)
      |                        ^
      |                        ;
    9 |         scanf("%d", &b)
      |         ~~~~~           
main.c:15:13: error: 'Swater' undeclared (first use in this function)
   15 |         if (Swater <= a) {
      |             ^~~~~~
main.c:15:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:19: error: expected '(' before '{' token
   17 |         } else if {
      |                   ^
      |                   (
Language: C++

#include <iostream>

int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	std::cout << c - (a - b);
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: 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
      |                  ^~~
Language: C++

package main

import (
	"fmt"
	"os"
)

func main() {
	var a, b, c int
	fmt.Fscanf(os.Stdin, "%d %d %d", &a, &b, &c)

	fmt.Println(a, b, c)
	ret := b + c - a
	if ret < 0 {
		ret = 0
	}
	fmt.Println(ret)
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
Language: C++

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'A' was not declared in this scope
    6 |     cin >> A, B, C;
      |            ^
a.cc:6:15: error: 'B' was not declared in this scope
    6 |     cin >> A, B, C;
      |               ^
a.cc:6:18: error: 'C' was not declared in this scope
    6 |     cin >> A, B, C;
      |                  ^
a.cc:9:12: error: expected '(' before '{' token
    9 |   } else if{
      |            ^
      |            (
Language: C

a,b,c=map(int,input().split())

d=a-b
if c-d>=0:
    print(c-d)
else:
    print(0)


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b,c=map(int,input().split())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a,b,c=map(int,input().split())
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
    1 | a,b,c=map(int,input().split())
      |     ^
main.c:1:7: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 | a,b,c=map(int,input().split())
      |       ^~~
main.c:1:11: error: expected expression before 'int'
    1 | a,b,c=map(int,input().split())
      |           ^~~
main.c:3:1: error: expected ',' or ';' before 'd'
    3 | d=a-b
      | ^
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();
		int tmp = c-a+b);
		if(tmp < 0){
			System.out.println(0);
		}else{
			System.out.println(tmp);
		}
	}
}

Compiler output:
Main.java:8: error: ';' expected
		int tmp = c-a+b);
		               ^
1 error
Language: C++

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

int main(){

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




}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ')' before '{' token
   11 |   if(c>(a-b){
      |     ~       ^
      |             )
a.cc:21:1: error: expected primary-expression before '}' token
   21 | }
      | ^
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class A {

    public static void main(String[] args)  throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        //int t = Integer.parseInt(reader.readLine());

        String s = reader.readLine();
        String[] inp = s.split(" ");

        int a = Integer.parseInt(inp[0]);
        int b = Integer.parseInt(inp[1]);
        int c = Integer.parseInt(inp[2]);

        int tr = a-b;

        int x = tr-c;

        if(x>=0)
        {
            System.out.println("0");
        }
        else
        {
            System.out.println(c-tr);
        }
    }
}


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

  int a;
  int b;
  int c;
  cin >> a;
  cin >> b;
  cin >> c;
  int d=c-(a-b);
  if(d<0) d=0;
  cout << d;

Compiler output:
a.cc:4:3: error: 'cin' does not name a type
    4 |   cin >> a;
      |   ^~~
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> b;
      |   ^~~
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> c;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(d<0) d=0;
      |   ^~
a.cc:9:3: error: 'cout' does not name a type
    9 |   cout << d;
      |   ^~~~
Language: C++

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

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

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

#include<iostream>
int main()
{
  	int a,b,c,s;
  cout<<"enter the capacity of container A \n";
  cin>>a;
  cout<<"enter the amount filled already in container A \n";
  cin>>b;
  cout<<"Enter the amount filled in container B";
  s=b+c-a;
  cout<<"\n The amount left in container B is :"<<s;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout<<"enter the capacity of container A \n";
      |   ^~~~
      |   std::cout
In file included 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:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>a;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

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

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


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

#include<bits/stdc++.h>
typedef long long ll;
#define pair<int,int> P
#define sc(N) scanf("%lld",&N);
int main()
{
    ll A,B,C;
    sc(A);
    sc(B);
    sc(C);
    cout<<C-A+B<<'\n';
    return 0;
}


Compiler output:
a.cc:3:9: warning: ISO C++11 requires whitespace after the macro name
    3 | #define pair<int,int> P
      |         ^~~~
a.cc: In function 'int main()':
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout<<C-A+B<<'\n';
      |     ^~~~
      |     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
      |                  ^~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>


using namespace std;

int main(){

  int A, B ,C;
  cin >> A >> B >> C;
  cout << C-(A-B)<< endl

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: expected ';' before 'return'
   12 |   cout << C-(A-B)<< endl
      |                         ^
      |                         ;
   13 | 
   14 |   return 0;
      |   ~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
	int ma,mb,mc;
	char[2] a,b,c;
	cin >> a >> cin >> b >> cin >> c;
	ma = atoi(a)
	mb = atoi(b)
	mc = atoi(c)
	cout << c-(a-b) << "\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected identifier before numeric constant
    6 |         char[2] a,b,c;
      |              ^
a.cc:6:14: error: expected ']' before numeric constant
    6 |         char[2] a,b,c;
      |              ^
      |              ]
a.cc:6:13: error: structured binding declaration cannot have type 'char'
    6 |         char[2] a,b,c;
      |             ^
a.cc:6:13: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:6:13: error: empty structured binding declaration
a.cc:6:17: error: expected initializer before 'a'
    6 |         char[2] a,b,c;
      |                 ^
a.cc:7:16: error: 'a' was not declared in this scope; did you mean 'ma'?
    7 |         cin >> a >> cin >> b >> cin >> c;
      |                ^
      |                ma
a.cc:7:28: error: 'b' was not declared in this scope; did you mean 'mb'?
    7 |         cin >> a >> cin >> b >> cin >> c;
      |                            ^
      |                            mb
a.cc:7:40: error: 'c' was not declared in this scope; did you mean 'mc'?
    7 |         cin >> a >> cin >> b >> cin >> c;
      |                                        ^
      |                                        mc
Language: C++

#include<bits/stdc++.h>

using namespace std;
int main(){
	long long a,b,c;
	cin>>a>>b>>c;
	cout<<min(c-(a-b),0)<<endl;
	return 0;
}

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

a,b,c=(int(x) for x in input().split())
  
if a+c > b:
  print(a+c-b)
else:
  print(0)

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,c=(int(x) for x in input().split())
      | ^
Language: C++

#include <bits/stdc++.h>

int main()
{
  int a, b, c;
  std :: cin >> a >> b >> c;
  std :: cout << std :: max(0, b + c - a)
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:42: error: expected ';' before 'return'
    7 |   std :: cout << std :: max(0, b + c - a)
      |                                          ^
      |                                          ;
    8 |   return 0;
      |   ~~~~~~
Language: C++

#include <algorithm>
#include <iostream>
#include <cstring>
#include <cstdio>
#include <cmath>
int main()
{
	int a,b,c;
	scanf("%d%d%d",&a,&b,&c);
	printf("%d",max(c-(a-b),0));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 'max' was not declared in this scope; did you mean 'std::max'?
   10 |         printf("%d",max(c-(a-b),0));
      |                     ^~~
      |                     std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

#include<iostream>
#include<algorithm>
#include<cstdio>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ',' or ';' before 'if'
   10 |         if(c-(a-b) < 0){
      |         ^~
a.cc:12:10: error: 'else' without a previous 'if'
   12 |         }else{
      |          ^~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected primary-expression before '<<' token
   11 |         cout <<  << endl;
      |                  ^~
Language: Java

import java.util.*;
public class Main {
    public static void main(String[] args){
     Scanner s=new Scanner(System.in);
     int A=s.nextInt();
     int B=s.nextInt();
     int C=s.nextInt();
     int ans=C-(A-B);
     if(ans<0)
         System.out.println(0);
     else {
         System.out.print(ans);
     }
    }

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

#include <iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expected ';' before 'if'
    6 |         d = c - a + b
      |                      ^
      |                      ;
    7 |     if(d >= 0) {
      |     ~~                
a.cc:10:5: error: 'else' without a previous 'if'
   10 |     else {
      |     ^~~~
Language: C++

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

int main(){
  long int A,B,C;
  cin>>A>>B>>C;
  
  cout<<max(0,(C-A+B));
  
 return 0; 
}


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

#include <iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expected ';' before 'if'
    6 |         d = c - a + b
      |                      ^
      |                      ;
    7 |     if(d >= 0) {
      |     ~~                
a.cc:10:5: error: 'else' without a previous 'if'
   10 |     else {
      |     ^~~~
Language: C++

#include <cstdio>
#include <algorithm>

using namespace std;
 
int main()
{
  long long a,b,c;
  scanf("%lld%lld%lld",&a,&b,&c);
  printf("%lld\n",max(0,c-(a-b)));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: no matching function for call to 'max(int, long long int)'
   10 |   printf("%lld\n",max(0,c-(a-b)));
      |                   ~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 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:10:22: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   10 |   printf("%lld\n",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:10:22: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   10 |   printf("%lld\n",max(0,c-(a-b)));
      |                   ~~~^~~~~~~~~~~
Language: C++

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


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

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

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

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

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

int main(){

　　int a,b,c;
   cin>>a>>b>>c;
   cout<<b+c-a<<endl;
　　
}

Compiler output:
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　　int a,b,c;
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　　
      | ^
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:1: error: '\U00003000\U00003000int' was not declared in this scope
    7 | 　　int a,b,c;
      | ^~~~~~~
a.cc:8:9: error: 'a' was not declared in this scope
    8 |    cin>>a>>b>>c;
      |         ^
a.cc:8:12: error: 'b' was not declared in this scope
    8 |    cin>>a>>b>>c;
      |            ^
a.cc:8:15: error: 'c' was not declared in this scope
    8 |    cin>>a>>b>>c;
      |               ^
a.cc:10:1: error: '\U00003000\U00003000' was not declared in this scope
   10 | 　　
      | ^~~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<cstdlib>
#include<cmath>
#include<map>
#include<string>
#include<numeric>
#include<set>
using namespace std;

int main(){
  int 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:18:12: error: expected '}' at end of input
   18 |   return 0;
      |            ^
a.cc:12:11: note: to match this '{'
   12 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
#define int long long
#define boost() ios_base :: sync_with_stdio(0); cin.tie(); cout.tie(); cout << fixed; cout << setprecision(15); srand(time(NULL))
#define a(x) x.begin(), x.end()
using namespace std;

int a, b, c;

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

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

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

#include <cstdio>
#include <algorithm>

int main()
{
  long long a,b,c;
  scanf("%lld%lld%lld",&a,&b,&c);
  printf("%lld\n",max(0,c-(a-b)));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'max' was not declared in this scope; did you mean 'std::max'?
    8 |   printf("%lld\n",max(0,c-(a-b)));
      |                   ^~~
      |                   std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

# coding:utf-8

a, b, c = [int(x) for x in input().split(' ')]

print(max(c - (a - b), 0))

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding:utf-8
      |   ^~~~~~
a.cc:3:1: error: 'a' does not name a type
    3 | a, b, c = [int(x) for x in input().split(' ')]
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected ')' before ';' token
    6 | printf("%d",c;
      |       ~      ^
      |              )
main.c:6:15: error: expected ';' before '}' token
    6 | printf("%d",c;
      |               ^
      |               ;
    7 | }
      | ~
Language: C

#include <iostream>
#include <string>
using namespace std;

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

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

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 ans = C - (A - B);
		System.out.println(ans > 0 ? ans : 0);

	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
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;
	}
	return 0;
 } 

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

#include <bits/stdc++.h>
#define int long long
#define boost() ios_base :: sync_with_stdio(0); cin.tie(); cout.tie(); cout << fixed; cout << setprecision(15); srand(time(NULL))
#define a(x) x.begin(), x.end()
using namespace std;

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

Compiler output:
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:15: error: 'b' was not declared in this scope
    8 |   cin >> a >> b >> c;
      |               ^
a.cc:8:20: error: 'c' was not declared in this scope
    8 |   cin >> a >> b >> c;
      |                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long int 
#define ld long double
#define mod 1000000007
#define endl "\n"
#define pb push_back
#define mp make_pair
int main()
{
    ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	ll a,b,c;
	cin>>a>>b>>c;
	cout<<max(0,b+c-a);	
	return 0;
}

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