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

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)) {
			System.out.println(c - (a - b));
		}else {
			System.out.println(0);
		}
		}
	}

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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

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(c > (a -b)) {
			System.out.println(c - (a - b));
		}else {
			System.out.println(0);
		}
		}
	}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
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++

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(c > (a -b)) {
			System.out.println(c - (a - b));
		}else {
			System.out.println(0);
		}
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
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 <bits/stdc++.h> 
using namespace std;

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

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

#include <stdio.h>
int main(){
	int N;
	int i;
	int count;
	scanf("%d",&N);
	if(N<10){
		count = N;
	}
	else if(N<100){
		count = 9;
	}
	else if(N<1000){
		count = N-90;
	}
	else if(N<10000){
		count = 909;
	}
	else if(N<100000){
		count = N-9090;
	}
	else if(N==100000){
		count = 90909;
	printf("%d",count);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C

#include <stdio.h>
int main(){
	int N;
	int i;
	int count;
	scanf("%d",&N);
	if(N<10){
		count = N;
	}
	else if(N<100){
		count = 9;
	}
	else if(N<1000){
		count = N-90;
	}
	else if(N<10000){
		count = 909;
	}
	else if(N<100000){
		count = N-9090;
	}
	else if(N=100000){
		count = 90909;
	printf("%d",count);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C++

#include <bits/stdc++.h>

#define ll long long
#define ull unsigned long long
#define FOR(i,a,b) for (int i=(a);i<(b);++i)
#define REP(a,b) for(int a=0;a<(b);++a)
#define REP1(i,n) for(int i=1;i<=(n);++i)
#define debug(x) cerr<<#x<<": "<<x<<'\n'
#define all(x) (x).begin(),(x).end()
#define SZ(x) ((int)(x).size())
#define pb push_back
#define mp make_pair
#define INF (1<<29)
using namespace std;
typedef pair<int, int> P;
typedef pair<ll, ll> LP;
typedef pair<int, P> PP;
typedef pair<ll, LP> LPP;

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

template<class T=int>
T in(){T x;cin>>x;return (x);}
template<class T>
void print(T& x){cout<<x<<'\n';}

const int MOD =(int)1e9+7;
const int MAX =510000;

ll fac[MAX],finv[MAX],inv[MAX];
void COMint(){
    fac[0]=fac[1]=1;
    finv[0]=finv[1]=1;
    inv[1]=1;
    for(int i=2;i<MAX;i++){
        fac[i]=fac[i-1]*i%MOD;
        inv[i]=MOD-inv[MOD%i]*(MOD/i)%MOD;
        finv[i]=finv[i-1]*inv[i]%MOD;
    }
}
ll COM(int n,int k){
    if(n<k) return 0;
    if(n<0||k<0)return 0;
    return fac[n]*(finv[k]*finv[n-k]%MOD)%MOD;
}

ll gcd(ll a,ll b){
    if(b==0)return a;
    if(a>b){
        swap(a,b);
    }
    return gcd(a,b%a);
}
ll lcm(ll a,ll b){
    ll g;g=gcd(a,b);
    return a*b/g;
}
bool compare_by_b(pair<int, int> a, pair<int, int> b) {
    if(a.second != b.second){
        return a.second < b.second;
    }else{
        return a.first < b.first;
    }
}

bool compare_by_a(pair<int, int> a, pair<int, int> b) {
    if(a.first != b.first){
        return a.first < b.first;
    }else{
        return a.second < b.second;
    }
}
int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
	int A,B,C;
	cin>>A>>B>>C;
	cout<<min(0,C-(B-A))<<endl;
    print(ans);
}


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

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


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

<?php

function calcRemain($A,$B,$C){
  // 容器1
  $youki1 = $A;
  $youki2 = $C;
  
  $youki1_remain = $youki1-$B;
  
  $result = 0;
  if($youki1_remain <= $C) {
      $result = $C-$youki1_remain;

  }else{
      $result = $youki2-$C;

  }
  
  return $result;
}


Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
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:20: error: 'c' was not declared in this scope
    6 |   cin >> A >> B >> c;
      |                    ^
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:20: error: 'c' was not declared in this scope
    6 |   cin >> A >> B >> c;
      |                    ^
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)
  else
    cout << 0 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before 'else'
    8 |     cout << C - (A - B)
      |                        ^
      |                        ;
    9 |   else
      |   ~~~~
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{
    cout << 0 << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() 
{
    int N;
    cin >>　N,ans = 0;
    for(int i = 0; i <= N; i++)
    {
        string str = i;
        if (i%2 == 1)
        {
            ans +=1;
        }
        
    }
     
  cout << ans << endl;
}

Compiler output:
a.cc:7:11: error: extended character 　 is not valid in an identifier
    7 |     cin >>　N,ans = 0;
      |           ^
a.cc: In function 'int main()':
a.cc:7:11: error: '\U00003000N' was not declared in this scope
    7 |     cin >>　N,ans = 0;
      |           ^~~
a.cc:7:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |     cin >>　N,ans = 0;
      |               ^~~
      |               abs
a.cc:10:22: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   10 |         string str = i;
      |                      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() 
{
    int a,b,c;
    cin >>　a,b,c;
    int gap = a-b;
    int use = min(c,gap);
    int ans = c - use; 
  cout << ans << endl;
}

Compiler output:
a.cc:7:11: error: extended character 　 is not valid in an identifier
    7 |     cin >>　a,b,c;
      |           ^
a.cc: In function 'int main()':
a.cc:7:11: error: '\U00003000a' was not declared in this scope
    7 |     cin >>　a,b,c;
      |           ^~~
Language: C

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

Compiler output:
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | {
      | ^
Language: Java

import java.util.Scanner;
public class Maint {

	public static void main(String[] args) {
		Scanner stdin=new Scanner(System.in);
		int n=stdin.nextInt();
		int[] h=new int[n+1];
		for(int i=0;i<n;i++)
		 h[i]=stdin.nextInt();
		int cnt=0;
		for(int i=0;i<n-1;i++) {
			if(h[i]>h[i+1]) {
				h[i]=h[i]-1;
			}
		}

		for(int i=0;i<n-1;i++) {
			if(h[i]>h[i+1]) cnt++;
		}

		if(cnt==0) System.out.println("YES");
		else System.out.println("NO");

	}

}


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

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

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

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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define vi vector<ll>
#define vvi vector<vi>
#define Q queue<ll>
#define DQ deque<ll> 
#define pb push_back
#define pf push_front
#define popf pop_front
#define popb pop_back
#define mp make_pair
#define mt make_tuple
#define f first
#define s second
#define ub upper_bound
#define lb lower_bound
#define loop(x,y,z) for(ll i=x; i<=y; i+=z)
#define rloop(x,y,z) for(ll i=x; i>=y; i-=z)
#define all(x) x.begin(), x.end()
#define sum(x) accumulate(all(x),0LL)
#define minE(x) *min_element(all(x))
#define maxE(x) *max_element(all(x))
#define mem(a,b) memset(a,b,sizeof(a))
#define watch(x) cout<<(#x)<<" is "<<x
#define endl "\n"

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

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

Compiler output:
a.cc:1:24: error: missing terminating > character
    1 | #include <bits/stdc++.h
      |                        ^
Language: C++

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



int main()
{
  ios::sync_with_stdio(false);
  cin.tie(0);
  int a,b,c;
  cin>>a>>b>>c;
  ll res=c-a+b;
  if(res>0)
    cout<<res<<'\n';
  else
    cout<<0<<'\';
    return 0;
}

Compiler output:
a.cc:17:14: warning: missing terminating ' character
   17 |     cout<<0<<'\';
      |              ^
a.cc:17:14: error: missing terminating ' character
   17 |     cout<<0<<'\';
      |              ^~~~
a.cc: In function 'int main()':
a.cc:18:5: error: expected primary-expression before 'return'
   18 |     return 0;
      |     ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected '}' before 'else'
   12 |     else
      |     ^~~~
a.cc:10:15: note: to match this '{'
   10 |   if(c>remain){
      |               ^
Language: C++

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

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'A' was not declared in this scope
    5 |   cin >> A, B, C;
      |          ^
a.cc:5:13: error: 'B' was not declared in this scope
    5 |   cin >> A, B, C;
      |             ^
a.cc:5:16: error: 'C' was not declared in this scope
    5 |   cin >> A, B, C;
      |                ^
Language: C++

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

int main()
{
  int A, B, C;
  scanf("%d%d%d", &A, &B, &C);
  printf("%d\n", min(0, C-(A-B) );
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: expected ')' before ';' token
    9 |   printf("%d\n", min(0, C-(A-B) );
      |         ~                        ^
      |                                  )
Language: C++

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a, b, c;
    cin >> a >> b >> c;
    if (a - b > c) {
      cout << 0 << '\n';
    } else {
      cout << c - (a + b) << '\n';
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:5: error: 'cin' was not declared in this scope
    2 |     cin.tie(0);
      |     ^~~
a.cc:3:5: error: 'ios' has not been declared
    3 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:7:7: error: 'cout' was not declared in this scope
    7 |       cout << 0 << '\n';
      |       ^~~~
a.cc:9:7: error: 'cout' was not declared in this scope
    9 |       cout << c - (a + b) << '\n';
      |       ^~~~
Language: C++

int A, B, C = map(int, input().split())
print(max(0,c-(a-b)))

Compiler output:
a.cc:1:19: error: expected primary-expression before 'int'
    1 | int A, B, C = map(int, input().split())
      |                   ^~~
a.cc:1:24: error: 'input' was not declared in this scope; did you mean 'int'?
    1 | int A, B, C = map(int, input().split())
      |                        ^~~~~
      |                        int
a.cc:1:15: error: 'map' was not declared in this scope
    1 | int 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)
     cout<<<C-(A-B);
  if(C-(A-B)
     cout<<"0";
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before 'cout'
    7 |   if(C>(A-B)
      |             ^
      |             ;
    8 |      cout<<<C-(A-B);
      |      ~~~~    
a.cc:9:3: error: expected primary-expression before 'if'
    9 |   if(C-(A-B)
      |   ^~
a.cc:8:21: error: expected ')' before 'if'
    8 |      cout<<<C-(A-B);
      |                     ^
      |                     )
    9 |   if(C-(A-B)
      |   ~~                 
a.cc:7:5: note: to match this '('
    7 |   if(C>(A-B)
      |     ^
Language: C++

a,b,c=gets.chomp.split(' ').map{|n| n.to_i}
kq = c - (a-b) > 0 ?  c - (a-b) : 0
puts kq

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,c=gets.chomp.split(' ').map{|n| n.to_i}
      | ^
a.cc:2:1: error: 'kq' does not name a type
    2 | kq = c - (a-b) > 0 ?  c - (a-b) : 0
      | ^~
Language: Java

import java.util.Scanner;

puboic final class Main{
  public static void main(String[] args){
    Scanner stdIn = new Scanner(System.in);
    
    int a = stdIn.nextInt();
    int b = stdIn.nextInt();
    int c = stdIn.nextInt();
    
    if(c-(a-b)>=0){
      System.out.println(c-(a-b));
    }else{
      System.out.println(0);
    }
  }
}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
puboic final class Main{
^
1 error
Language: Java

class Main {

    static int solve(int a, int b, int c) {
        int re =  c - (a-b);
        return re>0?re:0;
    }

    public static void main(String[] as) {
        Scanner stdIn=new Scanner(System.in);
        int a=stdIn.nextInt();
        int b=stdIn.nextInt();
        int c=stdIn.nextInt();

        System.out.println(solve(a,b,c));
    }

}

Compiler output:
Main.java:9: error: cannot find symbol
        Scanner stdIn=new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:9: error: cannot find symbol
        Scanner stdIn=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;
   cout<<C-(A-B)<<
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:2: error: expected primary-expression before '}' token
    7 |  }
      |  ^
Language: C++

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |  cin >> a >> b >>c;
      |  ^~~
      |  std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:2: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |  max(a-b-c,0)
      |  ^~~
      |  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)
      |     ^~~
Language: C++

#include<iostream>
using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: 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:8:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |      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:8:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |      cout << 0 << endl;
      |                   ^~~~
      |                   std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |    cout << c - tmp << 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:11:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |    cout << c - tmp << endl;
      |                       ^~~~
      |                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

	X = B + C - A;
	cout << ((X > 0) ? X : 0) << endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude <bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> A >> B >> C;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlude <bits/stdc++.h>
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << ((X > 0) ? X : 0) << endl;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:38: error: 'endl' was not declared in this scope
    9 |         cout << ((X > 0) ? X : 0) << endl;
      |                                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlude <bits/stdc++.h>
Language: C++

#include<iostream>

int main(void)
{

	int A,B,C,ans;

	cin >> A >> B >> C;

	if(C-(A-B)>=0)
		ans=C-(A-B);

	else
		ans=0;

	

	cout << ans << endl;

	return 0;
}



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

int a, b, c, kq;
scanf("%d %d %d", a, b, c);
kq = c - (a - b);
if(kq > 0)
  printf("%d", kq);
else
  printf("0");


Compiler output:
main.c:2:7: error: expected declaration specifiers or '...' before string constant
    2 | scanf("%d %d %d", a, b, c);
      |       ^~~~~~~~~~
main.c:2:19: error: expected declaration specifiers or '...' before 'a'
    2 | scanf("%d %d %d", a, b, c);
      |                   ^
main.c:2:22: error: expected declaration specifiers or '...' before 'b'
    2 | scanf("%d %d %d", a, b, c);
      |                      ^
main.c:2:25: error: expected declaration specifiers or '...' before 'c'
    2 | scanf("%d %d %d", a, b, c);
      |                         ^
main.c:3:1: warning: data definition has no type or storage class
    3 | kq = c - (a - b);
      | ^~
main.c:3:1: error: type defaults to 'int' in declaration of 'kq' [-Wimplicit-int]
main.c:3:6: error: initializer element is not constant
    3 | kq = c - (a - b);
      |      ^
main.c:4:1: error: expected identifier or '(' before 'if'
    4 | if(kq > 0)
      | ^~
main.c:6:1: error: expected identifier or '(' before 'else'
    6 | else
      | ^~~~
Language: C

int a, b, c, kq;
printf( "Enter a value :");
scanf("%d %d %d", a, b, c);
kq = c - (a - b);
if(kq > 0)
  printf("%d", kq);
else
  printf("0");

Compiler output:
main.c:2:9: error: expected declaration specifiers or '...' before string constant
    2 | printf( "Enter a value :");
      |         ^~~~~~~~~~~~~~~~~
main.c:3:7: error: expected declaration specifiers or '...' before string constant
    3 | scanf("%d %d %d", a, b, c);
      |       ^~~~~~~~~~
main.c:3:19: error: expected declaration specifiers or '...' before 'a'
    3 | scanf("%d %d %d", a, b, c);
      |                   ^
main.c:3:22: error: expected declaration specifiers or '...' before 'b'
    3 | scanf("%d %d %d", a, b, c);
      |                      ^
main.c:3:25: error: expected declaration specifiers or '...' before 'c'
    3 | scanf("%d %d %d", a, b, c);
      |                         ^
main.c:4:1: warning: data definition has no type or storage class
    4 | kq = c - (a - b);
      | ^~
main.c:4:1: error: type defaults to 'int' in declaration of 'kq' [-Wimplicit-int]
main.c:4:6: error: initializer element is not constant
    4 | kq = c - (a - b);
      |      ^
main.c:5:1: error: expected identifier or '(' before 'if'
    5 | if(kq > 0)
      | ^~
main.c:7:1: error: expected identifier or '(' before 'else'
    7 | else
      | ^~~~
Language: Java

import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
public class Bottle{
       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((b+c-a)>0)
{
System.out.println(b+c-a);
}
else
System.out.println(0);
}
}

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

a,b,c = list(map(int, input().split(' ')))
if a-b <= c:
    print(c-a+b)
else:
    print(0)

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

import java.util.*;
public class div481{
	public static void main(String sp[]){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int diff = a-b;
int hold=c-(Math.min(diff,c));
System.out.println(hold);
}
}


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

import java.util.*;
public class Main{
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int diff = a-b;
int hold=c-(Math.min(diff),c);
System.out.println(hold);
}


Compiler output:
Main.java:8: error: ')' expected
int hold=c-(Math.min(diff),c);
                          ^
Main.java:8: error: ';' expected
int hold=c-(Math.min(diff),c);
                            ^
Main.java:9: error: <identifier> expected
System.out.println(hold);
                  ^
Main.java:9: error: <identifier> expected
System.out.println(hold);
                       ^
4 errors
Language: Java

import java.util.*;
public class Main{
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int diff = a-b;
System.out.println(c-(Math.min(diff),c));
}


Compiler output:
Main.java:8: error: <identifier> expected
System.out.println(c-(Math.min(diff),c));
                  ^
Main.java:8: error: <identifier> expected
System.out.println(c-(Math.min(diff),c));
                    ^
2 errors
Language: C++

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

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


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

#inclide<bits/stdc++>
using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<bits/stdc++>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>a;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclide<bits/stdc++>
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout<<e;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

int main() {

	int A, B, C, D;

	D = C - (A - B);

	cin >> A >> B >> C;

	if (D >= 0) {

		cout << D << endl;

	}

	else {

		cout << 0 << endl;
	}

	

	return 0;


}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> A >> B >> C;
      |         ^~~
a.cc:11:17: error: 'cout' was not declared in this scope
   11 |                 cout << D << endl;
      |                 ^~~~
a.cc:11:30: error: 'endl' was not declared in this scope
   11 |                 cout << D << endl;
      |                              ^~~~
a.cc:17:17: error: 'cout' was not declared in this scope
   17 |                 cout << 0 << endl;
      |                 ^~~~
a.cc:17:30: error: 'endl' was not declared in this scope
   17 |                 cout << 0 << endl;
      |                              ^~~~
Language: C++

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:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> a >> b >> c;
      |   ^~~
a.cc:5:3: error: 'cout' was not declared in this scope
    5 |   cout << c-(a-b) << endl;
      |   ^~~~
a.cc:5:22: error: 'endl' was not declared in this scope
    5 |   cout << c-(a-b) << endl;
      |                      ^~~~
Language: C++

#include <cassert>

constexpr int f(int x)
{
  assert(x >= 0); // constexpr関数内に式としてassertマクロを使用する
  return x + 1;
}

int main()
{
  constexpr int a = f(1);
	constexpr int b = f(-1); // コンパイルエラー！
}


Compiler output:
In file included from /usr/include/c++/14/cassert:44,
                 from a.cc:1:
a.cc: In function 'int main()':
a.cc:12:21:   in 'constexpr' expansion of 'f(-1)'
a.cc:5:3: error: call to non-'constexpr' function 'void __assert_fail(const char*, const char*, unsigned int, const char*)'
    5 |   assert(x >= 0); // constexpr関数内に式としてassertマクロを使用する
      |   ^~~~~~
/usr/include/assert.h:69:13: note: 'void __assert_fail(const char*, const char*, unsigned int, const char*)' declared here
   69 | extern void __assert_fail (const char *__assertion, const char *__file,
      |             ^~~~~~~~~~~~~
Language: Java

import java.util.Scanner;

public class Main1 {

    public static void main(String[] args) {

    	Scanner parameter = new Scanner(System.in);

        String[] input1 = parameter.nextLine().split(" ");

        Integer limit = Integer.valueOf(input1[0]);

        Integer water1 = Integer.valueOf(input1[1]);

        Integer water2 = Integer.valueOf(input1[2]);

        System.out.println(water1 + water2 < limit ? 0 : water2 + water1 -limit);
    }
}


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

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

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

Compiler output:
a.cc:4:9: error: 'Long' does not name a type; did you mean 'long'?
    4 | typedef Long Long ll;
      |         ^~~~
      |         long
Language: C++

#include<cstdio>
#include<iostream>
#include<cmath>
using namespace std;
int a,b,c;
int main(){
    cin>>a>>b>>c;
    int t=a-b;
    c=d;
    cout<<max(0,c);
    return 0;
}

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

n = gets.chomp.split('').map(&:to_i)
number = 0
i = n.length
        if i % 2 == 1
            for num in 1..i
                number += n[num - 1] * (10 ** (i - num))
            end
            for num in 1..i / 2
                i = i - 2 > 0 ? i : 2
                number -= 9 * (10 ** (i - 2 * num))
            end
            puts number
        else
            for num in 1..i / 2
                number += 9 * (10 ** (i - 2 * num))
            end
            puts number
        end


Compiler output:
a.cc:1:22: error: empty character constant
    1 | n = gets.chomp.split('').map(&:to_i)
      |                      ^~
a.cc:5:24: error: too many decimal points in number
    5 |             for num in 1..i
      |                        ^~~~
a.cc:8:24: error: too many decimal points in number
    8 |             for num in 1..i / 2
      |                        ^~~~
a.cc:14:24: error: too many decimal points in number
   14 |             for num in 1..i / 2
      |                        ^~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = gets.chomp.split('').map(&:to_i)
      | ^
Language: C++

n = gets.chomp.split('').map(&:to_i)
number = 0
i= n.length
        
if i % 2 == 1
  for num in 1..i
    number += n[num - 1] * (10 ** (i - num))
  end
  for num in 1..i / 2
    i = i - 2 > 0 ? i : 2
    number -= 9 * (10 ** (i - 2 * num))
  end
  puts number 
 else
   for num in 1..i / 2
     number += 9 * (10 ** (i - 2 * num))
   end
   puts number
end


Compiler output:
a.cc:1:22: error: empty character constant
    1 | n = gets.chomp.split('').map(&:to_i)
      |                      ^~
a.cc:6:14: error: too many decimal points in number
    6 |   for num in 1..i
      |              ^~~~
a.cc:9:14: error: too many decimal points in number
    9 |   for num in 1..i / 2
      |              ^~~~
a.cc:15:15: error: too many decimal points in number
   15 |    for num in 1..i / 2
      |               ^~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = gets.chomp.split('').map(&:to_i)
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define long long long
const int MAXN = 1e6 + 7;
const long MOD = 1e9 + 7;
const long INF = 1e15;


main() {
    ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    int i, j, k;

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

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

class ABC136A{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		int num3 = scan.nextInt();
		
		int num4 = num1-num2;
		int ans = num3-num4;
		
		if(ans<0){
			ans = 0;
		}
		
		System.out.println(ans);
	}
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main (){
int N;
  cin >>N;
  vector<int>data(N);
  bool flag;
  flag=true
  for (int i=0;i<N;i++){
    cin >>data.at(i);
  }
  for (int i=0;i<N;i++){
   if (data.(i+1)-data.(i)+1<0){
   flag=false;
     break
   }
  }
  if (flag==true){
    cout <<"YES"<<endl;
  }
  else {
    cout <<"NO"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before 'for'
    9 |   flag=true
      |            ^
      |            ;
   10 |   for (int i=0;i<N;i++){
      |   ~~~       
a.cc:10:16: error: 'i' was not declared in this scope
   10 |   for (int i=0;i<N;i++){
      |                ^
a.cc:14:13: error: expected unqualified-id before '(' token
   14 |    if (data.(i+1)-data.(i)+1<0){
      |             ^
a.cc:14:24: error: expected unqualified-id before '(' token
   14 |    if (data.(i+1)-data.(i)+1<0){
      |                        ^
a.cc:16:11: error: expected ';' before '}' token
   16 |      break
      |           ^
      |           ;
   17 |    }
      |    ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected ',' or ';' before 'if'
    6 |         if (s > 0) {
      |         ^~
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else {
      |         ^~~~
Language: C++

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

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

Compiler output:
a.cc:4:9: error: 'Long' does not name a type; did you mean 'long'?
    4 | typedef Long Long il;
      |         ^~~~
      |         long
a.cc: In function 'int main()':
a.cc:10:26: error: 'end1' was not declared in this scope
   10 |   if(c <= d) cout << 0<< end1);
      |                          ^~~~
a.cc:11:25: error: 'end1' was not declared in this scope
   11 |   else cout << (c-d) << end1;
      |                         ^~~~
Language: C

#pragma GCC optimize "-O3"
#pragma GCC target ("avx")
#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;++i)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())
#define SPEED ios::sync_with_stdio(false);cin.tie(0);cout<<fixed<<setprecision(12)
signed gcd(int a, int b){return b?gcd(b,a%b):a;}
signed lcm(int a, int b){return a*b/gcd(a,b);}
bool isDigit(char c){return '0' <= c && c <= '9';}
template<typename T> void remove(std::vector<T>& vector, unsigned int index){vector.erase(vector.begin() + index);}
//priority_queue<int, vi, greater<int> > que;//昇順

using namespace std;

const int mod=1e9+7;

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


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

#pragma GCC optimize "-O3"
#pragma GCC target ("avx")
#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;++i)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())
#define SPEED ios::sync_with_stdio(false);cin.tie(0);cout<<fixed<<setprecision(12)
signed gcd(int a, int b){return b?gcd(b,a%b):a;}
signed lcm(int a, int b){return a*b/gcd(a,b);}
bool isDigit(char c){return '0' <= c && c <= '9';}
template<typename T> void remove(std::vector<T>& vector, unsigned int index){vector.erase(vector.begin() + index);}
//priority_queue<int, vi, greater<int> > que;//昇順

using namespace std;

const int mod=1e9+7;

signed power(int num){
    if(num == 1)return 1;
    return (num * power(num - 1)) % mod;
}

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


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

#pragma GCC optimize "-O3"
#pragma GCC target ("avx")
#define _USE_MATH_DEFINES
#include<numeric>
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;++i)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())
#define SPEED ios::sync_with_stdio(false);cin.tie(0);cout<<fixed<<setprecision(12)
signed gcd(int a, int b){return b?gcd(b,a%b):a;}
signed lcm(int a, int b){return a*b/gcd(a,b);}
bool isDigit(char c){return '0' <= c && c <= '9';}
template<typename T> void remove(std::vector<T>& vector, unsigned int index){vector.erase(vector.begin() + index);}
//priority_queue<int, vi, greater<int> > que;//昇順

using namespace std;

const int mod=1e9+7;

signed power(int num){
    if(num == 1)return 1;
    return (num * power(num - 1)) % mod;
}

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


Compiler output:
main.c:4:9: fatal error: numeric: No such file or directory
    4 | #include<numeric>
      |         ^~~~~~~~~
compilation terminated.
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:1:1: error: '\U0000ff03include' does not name a type
    1 | ＃include<bits/stdc++.h>
      | ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<c-(a-b)<<endl;
      |   ^~~~
a.cc:7:18: error: 'endl' was not declared in this scope
    7 |   cout<<c-(a-b)<<endl;
      |                  ^~~~
Language: C++

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

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

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

int Aanswer(int x){
int x;
  x= C-A+B;
  return x

}

Compiler output:
a.cc: In function 'int Aanswer(int)':
a.cc:2:5: error: declaration of 'int x' shadows a parameter
    2 | int x;
      |     ^
a.cc:1:17: note: 'int x' previously declared here
    1 | int Aanswer(int x){
      |             ~~~~^
a.cc:3:6: error: 'C' was not declared in this scope
    3 |   x= C-A+B;
      |      ^
a.cc:3:8: error: 'A' was not declared in this scope
    3 |   x= C-A+B;
      |        ^
a.cc:3:10: error: 'B' was not declared in this scope
    3 |   x= C-A+B;
      |          ^
a.cc:4:11: error: expected ';' before '}' token
    4 |   return x
      |           ^
      |           ;
    5 | 
    6 | }
      | ~
Language: C++

#include <bits/stdc++.h>
#define llong long long int
#define IOI_GOLD ios_base::sync_with_stdio(0); cin.tie(); cout.tie()
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected ';' before '}' token
   11 |     cout << abs(c - abs(a-b))
      |                              ^
      |                              ;
   12 | }
      | ~
Language: C++

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includde; did you mean #include?
    1 | #includde<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>a>>b>>c;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includde<iostream>
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout<<c;
      |         ^~~~
a.cc:14:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'