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

#include <bits/stdc++.h>
#define chmin(x, y) x = min(x, y)
#define chmax(x, y) x = max(x, y)
#define rep(i,n) for(long long int (i)=0;(i)<(int)(n);(i)++)
#define rrep(i,a,b) for(long long int i=(a);i<(b);i++)
#define rrrep(i,a,b) for(long long int i=(a);i>(b);i--)
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:8:16: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   int A, B, C; 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:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   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:9:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << C - (A - B) << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

/*
Author: Arham_doshi
@quote "Code like there's no tommorow!"
 ***************************************   UNAUTHORISED COPYING OF CODE PROHIBITED   **********************************
*/
#include <bits/stdc++.h>

#define int         long long
#define double      long double
#define pb          push_back
#define pf          push_front
#define pii         pair<int,int>
#define vi          vector<int>
#define vii         vector<pii>
#define mi          map<int,int>
#define mii         map<pii,int>
#define piii           pair<int,pair<int,int> >
#define all(a)      (a).begin(),(a).end()
#define rall(a)     (a).rbegin(),(a).rend()
#define x           first
#define y           second
#define sz(x)       (int)x.size()
#define endl        '\n'
#define hell        998244353 
#define PI          3.141592653589
#define bs(v,n)     binary_search(all((v)),(n))
#define lb(v,n)     lower_bound(all((v)),(n))
#define ub(v,n)     upper_bound(all((v)),(n))
#define fo(i,l,u)   for(i=l;i<u;i++)
#define rfo(i,l,u)  for(i=l;i>=u;i--)
#define allfo(s)    for(auto it=(s).begin();it!=(s).end();it++)
#define _init(b)     memset(b,-1,sizeof(b))
#define _init0(b)     memset(b,0,sizeof(b))
#define MOD         1000000007
#define ef else if



using namespace std;

int gcd(int a, int b) {  if (a == 0)  return b; return gcd(b % a, a); }  
bool mod(double a,double b) {return a/b - floor(a/b);}

int occurs(vi v,int n){
auto it=lb(v,n);auto it1=ub(v,n);int x=it1-it;return x;}

int logb(int base, int x) {
    return (log(x) / log(base));
}



signed main()
{
    ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
    int i,j,x,a,b,c;
    
    cin>>a>>b>>c;
    if((b-a)>c)cout<<0;
    else cout<<c+(b-a);
    
    return 0;
}

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

import java.util.Scanner;
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();
    
    System.out.println(C-(A-B));
  }
}

Compiler output:
Main.java:4: error: ';' expected
    Scanner sc - new Scanner(System.in);
              ^
1 error
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ',' or ';' before '+' token
    8 |   int s (a-b) + c;
      |               ^
Language: C++

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

int main(){
  int a, b, c;
  cin >> a >> b >> c;
  int tmp;
  tmp = b+c-a
  cout << tmp<0 ? 0 : tmp << endl;
  //else cout << b << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'cout'
    8 |   tmp = b+c-a
      |              ^
      |              ;
    9 |   cout << tmp<0 ? 0 : tmp << endl;
      |   ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before ')' token
    8 |       cout << c - (a-b))<0 ? 0 : b+c-a << endl;
      |                        ^
      |                        ;
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:7: error: expected initializer before '>>' token
    6 |   cin >> a >> b>> c;
      |       ^~
Language: C

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

  if(  c>=d)
    printf("0");
  }
  if(  c<= d ) {
   printf("%d",d-c);
  
  }
  
  
return 0;
}

Compiler output:
main.c:12:3: error: expected identifier or '(' before 'if'
   12 |   if(  c<= d ) {
      |   ^~
main.c:18:1: error: expected identifier or '(' before 'return'
   18 | return 0;
      | ^~~~~~
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
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:5:23: error: expected '}' at end of input
    5 |   cout<<c-(a-b)<<endl;
      |                       ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 'A' was not declared in this scope
    8 |   cout << min(0, A-B-C) << endl;
      |                  ^
a.cc:8:20: error: 'B' was not declared in this scope
    8 |   cout << min(0, A-B-C) << endl;
      |                    ^
a.cc:8:22: error: 'C' was not declared in this scope
    8 |   cout << min(0, A-B-C) << endl;
      |                      ^
Language: C

#coding:shift_jis
container = list(input().split(' '))
for i in range(len(container)):
    container[i] = int(container[i])
a = container[2] - (container[0] - container[1]) >= 0
b = container[2] - (container[0] - container[1])
if a:
    print(b)

else:
    print(0)


Compiler output:
main.c:1:2: error: invalid preprocessing directive #coding
    1 | #coding:shift_jis
      |  ^~~~~~
main.c:2:1: warning: data definition has no type or storage class
    2 | container = list(input().split(' '))
      | ^~~~~~~~~
main.c:2:1: error: type defaults to 'int' in declaration of 'container' [-Wimplicit-int]
main.c:2:13: error: implicit declaration of function 'list' [-Wimplicit-function-declaration]
    2 | container = list(input().split(' '))
      |             ^~~~
main.c:2:18: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    2 | container = list(input().split(' '))
      |                  ^~~~~
main.c:2:25: error: request for member 'split' in something not a structure or union
    2 | container = list(input().split(' '))
      |                         ^
main.c:3:1: error: expected ',' or ';' before 'for'
    3 | for i in range(len(container)):
      | ^~~
Language: C++

///not today

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

#define SZ(x) (int)(x).size()
#define pb push_back
#define ll long long
#define xmax(x, y) (x) = max((x), (y))
#define xmin(x, y) (x) = min((x), (y))
#define F first
#define S second
#define pii pair<int, int>
#define pll pair<long long, long long>
#define int long long
#define pipii pair< int, pair<int, int> >
#define plpll pair< ll, pair<ll, ll> >

using namespace std;

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


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

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


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

#include <iostream>
#include <fstream>

using namespace std;
long long p=1;
int main() {
    long long a,b,c,d;
    cin>>a>>b>>c;
    d=a-b;
    cout<<max(0,c-d);
    
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: no matching function for call to 'max(int, long long int)'
   10 |     cout<<max(0,c-d);
      |           ~~~^~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:10:14: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   10 |     cout<<max(0,c-d);
      |           ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
Language: C++

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

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 |   int main(){
      |   ~~~
Language: C++

#include <bits/std.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: bits/std.h: No such file or directory
    1 | #include <bits/std.h>
      |          ^~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
int main(){
  int a,b,c,ans;
  std::cin>>a>>b>>c;
  if(b+c>=a){
    ans=a}
  else{ans=b+c}
  std::cout<<ans<<std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected ';' before '}' token
    6 |     ans=a}
      |          ^
      |          ;
a.cc:7:15: error: expected ';' before '}' token
    7 |   else{ans=b+c}
      |               ^
      |               ;
Language: C

#include <stdio.h>

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

    scanf("%d %d %d", &a, &b, &c);

    if(b+c > a){
        ans = b+c-a;
    }else(b+c  <= a){
        ans = 0;
    }

    printf("%d\n", ans);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:21: error: expected ';' before '{' token
   13 |     }else(b+c  <= a){
      |                     ^
      |                     ;
Language: C

#include <stdio.h>

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

    scanf("%d %d %d", &a, &b, &c);

    if(b+c > a){
        ans = b+c-a;
    }else(b+a  <= a){
        ans = 0;
    }

    printf("%d\n", ans);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:21: error: expected ';' before '{' token
   13 |     }else(b+a  <= a){
      |                     ^
      |                     ;
Language: C++

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

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



Compiler output:
a.cc:5:1: error: 'conat' does not name a type; did you mean 'const'?
    5 | conat int INF = 1001001001;
      | ^~~~~
      | const
Language: C++

#include <iostream>
int main()
{
  int a, b, c;
  int x;
  cin >> a >> b >> c;
  x = a - b ; // 容器Aに入る量
  cout << c > x ? c -x : 0 << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << c > x ? c -x : 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:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << c > x ? c -x : 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)
      |     ^~~~
Language: C++

#include <iostream>
int main()
{
  int a, b, c;
  int x;
  cin >> a >> b >> c;
  x = a - b ; # 容器Aに入る量
  cout << c > x ? c -x : 0 << endl;
  return 0;
}

Compiler output:
a.cc:7:15: error: stray '#' in program
    7 |   x = a - b ; # 容器Aに入る量
      |               ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:17: error: '\U00005bb9\U00005668A\U0000306b\U00005165\U0000308b\U000091cf' was not declared in this scope
    7 |   x = a - b ; # 容器Aに入る量
      |                 ^~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >>A>>B>>C;
      |   ^~~
      |   std::cin
In file included from /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
      |                  ^~~
Language: C++

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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: 'C' was not declared in this scope
    5 |         cout << C+B -A << endl;
      |                 ^
a.cc:5:19: error: 'B' was not declared in this scope
    5 |         cout << C+B -A << endl;
      |                   ^
a.cc:5:22: error: 'A' was not declared in this scope
    5 |         cout << C+B -A << endl;
      |                      ^
Language: C++

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

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

#include <stdio.h>
#include <string>
#include <iostream>
#include <vector>
#include <queue>
#include <list>
#include <algorithm>
#include <map>
#include <iterator>
#include <limits>
#include <numeric>
#include <type_traits>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
using namespace std;

#define ALL(v) (v).begin(), (v).end()
#define RALL(v) (v).rbegin(), (v).rend()
#define endl "\n"
typedef long long int ll;
const double EPS = 1e-7;
const int INF = 1 << 30;
const ll LLINF = 1LL << 60;
const double PI = acos(-1);
const int MOD = 1000000007;
const int dx[4] = { 1, 0, -1, 0 };
const int dy[4] = { 0, 1, 0, -1 };

template<typename T>
ostream& operator << (ostream& os, vector<T>& vec) {
	for (int i = 0; i<vec.size(); i++) {
		os << vec[i] << (i + 1 == vec.size() ? "" : " ");
	}
	return os;
}

int SumDigitValues(int x)
{
	int sum = 0;
	while (x)
	{
		sum += x % 10;
		x = x / 10;
	}

	return sum;
}

int Factorial(int n)
{
	if (n < 0) return 0;
	if (n == 0) return 1;
	return n * Factorial(n - 1);
}

int factorial(int n)
{
	if (n > 1)
	{
		return n * factorial(n - 1);
	}
	else
	{
		return 1;
	}
}


int gcd(int a, int b)
{
	if (a % b == 0)
	{
		return(b);
	}
	else
	{
		return(gcd(b, a % b));
	}
}

vector<int> Divisors(int x)
{
	vector<int> divisors;
	divisors.push_back(1);
	for (int a = 2; a <= x; a++)
	{
		if (x % a == 0) divisors.push_back(a);
	}
	return divisors;
}

vector<int> CommonDivisors(int a, int b)
{
	vector<int> divisorsA = Divisors(a);
	vector<int> divisorsB = Divisors(b);
	vector<int> commonDivisors;
	set_intersection(divisorsA.begin(), divisorsA.end(), divisorsB.begin(), divisorsB.end(), std::back_inserter(commonDivisors));
	return commonDivisors;
}

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

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

	int capacity = a - b;
	cout << c - capacity << endl;
}

Compiler output:
a.cc:23:19: error: 'acos' was not declared in this scope
   23 | const double PI = acos(-1);
      |                   ^~~~
Language: C++

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


void solve(long long A, long long B, long long C){
  cout<<max(0,C-(A-B))<<endl;
}

// Generated by 1.1.5 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
int main(){
    long long A;
  scanf("%lld",&A);
  long long B;
  scanf("%lld",&B);
  long long C;
  scanf("%lld",&C);
    solve(A, B, C);
    return 0;
}

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

#include <set>
#include <map>
#include <list>
#include <stack>
#include <cmath>
#include <ctime>
#include <cstdio>
#include <vector>
#include <string>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <utility>
#include <numeric>
#include <complex>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <cassert>
#include <iostream>
#include <iterator>
#include <algorithm>
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:29:24: error: expected ';' before ')' token
   29 |     cout << C - (A - B)) << endl;
      |                        ^
      |                        ;
Language: Java

import java.util.Scanner;

  class Main{
    public static void main(String[] args){
      Scanner stdIn = new Scanner(System.in);
      double X = stdIn.nextDouble();
      int Y = 0;
      while(X <= 10){
        X /=;
        Y ++;
      }
      double Z = (10^Y)(X-1);
      switch(Y) {
        case 0: System.out.println(X);
        break;
        case 1; System.out.println(9);
        break;
        case 2; System.out.println(9+Z);
        break;
        case 3; System.out.println(909);
        break;
        case 4; System.out.println(909+Z);
        break;
        case 5; System.out.pritnln(90909);
        break;
      }
    }
  }

Compiler output:
Main.java:9: error: illegal start of expression
        X /=;
            ^
Main.java:12: error: ';' expected
      double Z = (10^Y)(X-1);
                       ^
Main.java:12: error: not a statement
      double Z = (10^Y)(X-1);
                         ^
Main.java:12: error: ';' expected
      double Z = (10^Y)(X-1);
                           ^
Main.java:16: error: : or -> expected
        case 1; System.out.println(9);
              ^
Main.java:18: error: : or -> expected
        case 2; System.out.println(9+Z);
              ^
Main.java:20: error: : or -> expected
        case 3; System.out.println(909);
              ^
Main.java:22: error: : or -> expected
        case 4; System.out.println(909+Z);
              ^
Main.java:24: error: : or -> expected
        case 5; System.out.pritnln(90909);
              ^
9 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
typedef pair<ll,ll> P;
#define M 1000000007
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  cout<<max(b+c-a,0);

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected '}' at end of input
    9 |   cout<<max(b+c-a,0);
      |                      ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

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

int main(){
    long long N ;
    vector<long long> h;

    // N = 4;
    // h = {1, 3, 2, 1};

    cin >> N;
    for(long i=0; i<N; i++){
        cin >> h[i]; 
    }

    // long tmp_h = *max_element(h.begin(), h.end());;
    // long long tmp_h = h[N-1];
    // cout << tmp_h << endl;

    // string ans = "Yes";

    // for(long i=N-1; i=0; i--){
    //     if(h[i] <= tmp_h){
    //         tmp_h = h[i];
    //     }
    //     else if(h[i] > tmp_h){
    //         if(h[i]-1 < tmp_h){
    //             ans = "No";
    //         }
    //     }
    // }

    long long tmp_h = h[0];

    for(long long i=1; i<N; i++){
        if(h[i-1] > h[i]){
            cout << "No" << endl;
            return 0;
        }
        else {
            if (h[i] != h[i - 1]) {
                h[i] = h[i] - 1;
        }
    }

    cout << "Yes" << endl;
    
	// for(long long i=N-1; i=0; i--){
	// 	if(h[i]-1 > tmp_h){
	// 		cout<< "No" <<endl;
	// 		return 0;
	// 	}
	// 	tmp_h = min(tmp_h, h[i]);
	// }
	// cout<< "Yes" <<endl;

    // cout << ans << endl;

    return 0;
}

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

#include <stdio.h>

int main(void) {
	int a,b,c; scanf("%d%d%d",&a,&b,&c);
	int temp = b+c-a;
	if (temp < 0) {
		ptintf("0\n");
	} else {
		printf("%d\n",temp);
	}
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:17: error: implicit declaration of function 'ptintf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |                 ptintf("0\n");
      |                 ^~~~~~
      |                 printf
Language: C++

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

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

#include <iostream>
#include <algorithm>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> A, B, C;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:11: error: 'min' was not declared in this scope; did you mean 'std::min'?
    8 |   int s = min(0, C-(A-B));
      |           ^~~
      |           std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << s << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << s << endl;
      |                ^~~~
      |                std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

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

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


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

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


Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 |   int main()
      |   ~~~               
a.cc: In function 'int main()':
a.cc:13:10: error: expected primary-expression before '<' token
   13 |   if(A-B=<C)
      |          ^
Language: C++

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

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 |   int main()
      |   ~~~               
a.cc: In function 'int main()':
a.cc:9:3: error: expected initializer before 'if'
    9 |   if(A-B>C)
      |   ^~
a.cc:13:10: error: expected primary-expression before '<' token
   13 |   if(A-B=<C)
      |          ^
a.cc:15:5: error: 'N' was not declared in this scope
   15 |     N=0;
      |     ^
a.cc:17:9: error: 'N' was not declared in this scope
   17 |   cout<<N<<endl;
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long 
#define vct vector<ll>
#define umap map<ll,ll>

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

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

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

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

#include <iostream>
#include <string>
using namespace std;
int main(){
int a,b,c,x,A;
cin>>a>>b>>c;
x = a - b;
A = c - x;
cout<<A;
if(A<0)
    cout<<"0";


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

#include <iostream>
using namespace std;

int mai(){
  int a; cin >> a;
  int b; cin >> b;
  int c; cin >> c;
  int ans = c - (a - b);

  cout << ans << endl;
}
  

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected '}' before 'else'
   10 |         else{
      |         ^~~~
a.cc:8:18: note: to match this '{'
    8 |         if(a<b+c){
      |                  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected '}' before 'else'
   11 |         else{
      |         ^~~~
a.cc:9:16: note: to match this '{'
    9 |         if(s>0){
      |                ^
Language: C++

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


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

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

using namespace std;

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

    cin >> A >> B >> C;

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

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

#include<iostream>

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:9:19: error: expected ';' before 'endl'
    9 |     else cout << 0 endl;
      |                   ^~~~~
      |                   ;
Language: C++

#include<iostream>

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:8:15: error: expected ';' before 'cout'
    8 |     if(c>(a-b) cout << c-(a-b) << endl;
      |               ^~~~~
      |               ;
a.cc:9:5: error: expected primary-expression before 'else'
    9 |     else cout << 0 endl;
      |     ^~~~
a.cc:8:40: error: expected ')' before 'else'
    8 |     if(c>(a-b) cout << c-(a-b) << endl;
      |       ~                                ^
      |                                        )
    9 |     else cout << 0 endl;
      |     ~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before ';' token
    6 |   cin >>a>>b>>;
      |               ^
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:3:3: error: 'cin' was not declared in this scope
    3 |   cin >>a>>b>>c;
      |   ^~~
a.cc:4:3: error: 'cout' was not declared in this scope
    4 |   cout <<c-a+b<<endl;
      |   ^~~~
a.cc:4:17: error: 'endl' was not declared in this scope
    4 |   cout <<c-a+b<<endl;
      |                 ^~~~
Language: C++

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

int main() {
  int N, M, S;
  cin >> N >> M >> S;
  N = N - B;
  if(N - S < 0){
      cout << 0 << endl;
  }
  else cout << N - S << endl;
  
}

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

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

Compiler output:
main.c: In function 'main':
main.c:13:21: error: lvalue required as unary '&' operand
   13 |         printf("%d",&(int)Cleft);
      |                     ^
Language: C++

#include "stdafx.h"

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
#include <cmath>
#include <random>

using namespace std;


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

	ans = max(C-(A-B),0);

	printf("%d\n", ans);


	return 0;
}



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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>A>>B>>C;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     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:9:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout<<C-temp<<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:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout<<C-temp<<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)<=0){
    cout << 0 <<endl;
  }
  else{
    cout <<c-(a-b) <<endl;
  }
}


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

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <numeric>

using namespace std;

typedef int long long;

const int q = 10000000000 + 7;

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

Compiler output:
a.cc:9:18: error: declaration does not declare anything [-fpermissive]
    9 | typedef int long long;
      |                  ^~~~
a.cc:11:27: warning: overflow in conversion from 'long int' to 'int' changes value from '10000000007' to '1410065415' [-Woverflow]
   11 | const int q = 10000000000 + 7;
      |               ~~~~~~~~~~~~^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:16: error: expected ';' before 'if'
    8 |         n=c-a+b
      |                ^
      |                ;
    9 |         if(n>0){
      |         ~~
Language: C

#include <stdio.h>

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

	scanf_s("%d%d%d", &a, &b, &c);

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scanf_s("%d%d%d", &a, &b, &c);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <bits/stdc++.h>
typedef long long ll;
#define pb push_back
#define mp(a,b) make_pair(a,b)
#define pii pair<int,int>
#define pll pair<ll,ll>
#define vll vector <ll>
#define vii vector <int>
#define vpii vector <pii>
#define vpll vector <pll>
#define ff first
#define ss second
#define vvll vector <vll>
#define vvii vector <vii>
#define all(v) v.begin(),v.end()
#define PQ priority_queue
using namespace std;
ll mod = 1000000007;
ll pow(ll a, ll b){
	ll res = 1;
	while(b > 0){
		if(b&1) res*=a;
		b/=2;
		a*=a;
	}
	return res;
}
int main()
{
	//ios::sync_with_stdio(0);
	//cin.tie(0);
  	ll a, b, c;
  	cin >> a >> b >> c;
  	cout << max(0,c-(a-b)) << "\n";
	return 0;
}

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