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

#include <bits/stdc++.h>

#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>

#define oset tree<int , null_type, less_equal<int> , rb_tree_tag, tree_order_statistics_node_update>

using namespace std;
using namespace __gnu_pbds;

int main(){
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int a,b,c;
  cin>>a>>b>>c;
  cout<<max(c - (a - b),0)<<endl;
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
#define fi first
#define endl "\n"
#define se second
#define ll long long
//priority_queue<int, vector<int>, greater<int> > pq;
const int N = 1000300;
#define rep(i, begin, end) for (__typeof(end) i = (begin) - ((begin) > (end)); i != (end) - ((begin) > (end)); i += 1 - 2 * ((begin) > (end)))
const ll mod =    1e9+7;

int main()
{
ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
ll a,b,c;
cin>>a>>b>>c;
cout<<max(0,c-(a-b));
}

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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define rep1(i, n) for(int i = 1; i < (int)(n); i++)
#define REP(i, m, n) for(int i = (m); i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define mp make_pair
#define pb push_back
#define MOD 1000000007
#define INF (1e9)
#define PI (acos(-1))
#define print(x) cout << x << endl
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl

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

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

template<class T> inline auto __lcm(T& a, T& b) 
{ return a * b / __gcd(a, b); }


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

    int res = C- (A - B);
    if (res >= 0) print(C-(A-B));
    else print(0);

    return 0;
}



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

#include <bits/stdc++.h>
#define max(a,b) ((a)>(b)?(a):(b))
#define min(a,b) ((a)<(b)?(a):(b))
#define abs(a) ((a)>(0)?(a):-(a))
#define rep(i,l,r) for((i)=(l);(i)<(r);(i)++)
using namespace std;
int main(){
    int a,b,c;
    cin>>a>>b>>c;
    if(c-(a-b)>0)cout<<c-(a-b)<<endl;
    else cout<<"0"<<endl;
}

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

#include<bits/stdc++.h>
#define ll long long
#define pub push_back 
#define pob pop_back 
#define puf push_front
#define pof pop_front
#define mp make_pair
#define fo(i , n) for(ll i = 0 ; i < n ; i++)
#include<iomanip>
#include<cmath>
using namespace std ;
int main()
{
	int a , b , c ;
	cin >> a >> b >> c ;
	ans = max(0 , (b+c)-a) ;
	cout << ans << endl ;
	return 0 ;
}

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

v#include<bits/stdc++.h>
#define all(x) (x).begin(),(x).end()
using namespace std;
typedef long long ll;
ll gcd(ll a,ll b){return b!=0?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return a*b/gcd(a,b);}

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

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include<bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include<bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:10:5: error: 'cin' was not declared in this scope
   10 |     cin>>a>>b>>c;
      |     ^~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<max(0,c-(a-b))<<endl;
      |     ^~~~
a.cc:11:11: error: 'max' was not declared in this scope
   11 |     cout<<max(0,c-(a-b))<<endl;
      |           ^~~
a.cc:11:27: error: 'endl' was not declared in this scope
   11 |     cout<<max(0,c-(a-b))<<endl;
      |                           ^~~~
Language: C++

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

int main(){
	int a,b,c;
	in>>a>>b>>c;
	int ans=c-(a-b);
	cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'in' was not declared in this scope; did you mean 'yn'?
    6 |         in>>a>>b>>c;
      |         ^~
      |         yn
Language: C++

#include<iostream>
using namespace std;
int n,m;
int main()
{
	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:14: error: 'a' was not declared in this scope
    6 |         cin>>a>>b>>c;
      |              ^
a.cc:6:17: error: 'b' was not declared in this scope
    6 |         cin>>a>>b>>c;
      |                 ^
a.cc:6:20: error: 'c' was not declared in this scope
    6 |         cin>>a>>b>>c;
      |                    ^
Language: C++

#include<bits/stdc++.h>
#include<algorithm>
#include<math.h>
using namespace std;
long long int lcm(long long int a,long long int b){
  long long int n;
  n=a*b/__gcd(a,b);
  return n;
}
using ll =long long int;
#define ci(a) cin>>a
#define co(a) cout<<a<<endl
#define gcd(a,b) __gcd(a,b)
#define vec vector<ll>
#define for(i,a,b) for(int i=a;i<b;i++)
#define sort(a,b) sort(a.begin(),b.end())
//gcd 最大公約数
//lcm 最小公倍数
//double 少数（変数）
//string 文字列（変数）
//sqrt 平方根
//ceil 天井関数
//floor 床関数
//abs 絶対値
//pow 累乗
//cbrt  立方根
//hypot 平方和の平方根
 
int main() {
  ll a,b,c;
  ci(a>>b>>c);
  co(max(0,b+c-a);
     }

Compiler output:
a.cc:33:7: error: unterminated argument list invoking macro "co"
   33 |      }
      |       ^
a.cc: In function 'int main()':
a.cc:32:3: error: 'co' was not declared in this scope
   32 |   co(max(0,b+c-a);
      |   ^~
a.cc:32:5: error: expected '}' at end of input
   32 |   co(max(0,b+c-a);
      |     ^
a.cc:29:12: note: to match this '{'
   29 | int main() {
      |            ^
Language: C++

def int_multiple():
    return  [int(c) for c in input().split()]

def int_single():
    return int(input())

def str_multiple():
    return [c for c in input().split()]

def str_single():
    return input()

# start
a, b, c = int_multiple()

print(c-(a-b))


Compiler output:
a.cc:13:3: error: invalid preprocessing directive #start
   13 | # start
      |   ^~~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def int_multiple():
      | ^~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define PB push_back
#define PF push_front

typedef long long int ll;
typedef pair<int, int> Pii;
typedef pair<int, double> Pid;
typedef pair<double, int> Pdi;
typedef pair<double, double> Pdd;
typedef pair<ll, ll> P;
typedef pair<P, ll> PP;

const ll mod = 1e9+7;
const ll INF = 2e9;
const double epsilon = 1e-7;
const double PI = 3.1415926535;

ll gcd(ll a,ll b) {return b?gcd(b,a%b):a;}

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




Compiler output:
a.cc: In function 'int main()':
a.cc:25:3: error: 'lla' was not declared in this scope; did you mean 'll'?
   25 |   lla,b,c;
      |   ^~~
      |   ll
a.cc:25:7: error: 'b' was not declared in this scope
   25 |   lla,b,c;
      |       ^
a.cc:25:9: error: 'c' was not declared in this scope
   25 |   lla,b,c;
      |         ^
a.cc:26:8: error: 'a' was not declared in this scope
   26 |   cin>>a>>b>>c;
      |        ^
Language: C++

#include <bits/stdc++.h>
#define int long long
using namespace std;
const int MOD = pow(10, 9) + 7;
//const int MOD = 998244353;
//const int MOD = ;
int mod(int A, int M) {return (A % M + M) % M;}
const int INF = 1LL << 60;
template <class T> bool chmin(T& a, T b) {if (a > b) {a = b; return true;} return false;}
template <class T> bool chmax(T& a, T b) {if (a < b) {a = b; return true;} return false;}
int divCeil(int A, int B) {return (A + (B - 1)) / B;}
int myctoi(char C) {return C - 48;}
char myitoc(int N) {return '0' + N;}

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

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

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

#include <iostream>
#include <vector>
#include <iomanip>
#include <string>
#include <sstream>
#include <algorithm>
#include <map>
#include <bits/stdc++.h>

using namespace std;
#define REP(i,n) FOR(i,0,n)
#define FOR(i,a,b) for(long long i=(a),i##Len_=(b);i<i##Len_;i++)
typedef long long ll;
static const ll MOD = 1000000007;
static const ll INF = 1000000000000000000LL;

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

    ll res = C - (A - B);

    if(res <= 0)
    {
        res = 0;
    }

    cout << res <<endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:8: error: redeclaration of 'll res'
   22 |     ll res = C - (A - B);
      |        ^~~
a.cc:20:8: note: 'll res' previously declared here
   20 |     ll res;
      |        ^~~
Language: C++

//Sani buyuk Osman Pasa Plevneden cikmam diyor.
//FatihSultanMehmedHan
//Abdulhamid Han
//Bismillahirrahmanirrahim
//█▀█─█──█──█▀█─█─█
//█▄█─█──█──█▄█─█▄█
//█─█─█▄─█▄─█─█─█─█

#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")

#include <bits/stdc++.h>

using namespace std;

typedef long long lo;
typedef pair< int,int > PII;

#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define fio() ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define FOR for(int i=1;i<=n;i++)
#define mid ((start+end)/2)
#define ort ((bas+son)/2)

const lo MAX = -1000000000000000000;
const lo MIN = 1000000000000000000;
const lo inf = 1000000000;
const lo KOK = 100000;
const lo LOG = 30;
const lo li = 500005;
const lo mod = 1000000007;

lo n,m,b[li],a[li],k,flag,t;
lo cev;
string s;
vector<int> v;

int main(void){
	scanf("%lld %lld %lld",&n,&m,&k);
	n=n-m;
	k=k-n;
	printf("%lld\n",max(k,0));
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:28: error: no matching function for call to 'max(lo&, int)'
   45 |         printf("%lld\n",max(k,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:12:
/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:45:28: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   45 |         printf("%lld\n",max(k,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:45:28: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   45 |         printf("%lld\n",max(k,0));
      |                         ~~~^~~~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<tuple>
#include<utility>

using namespace std;

typedef long long int64;

int main(void){
    int64 A,B,C;
    cin>>A>>B>>C;
    cout<<max(0,C-(A-B))<<endl;
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
#define pb push_back
#define mp make_pair
 #define mod 1000000007
 const int N=100005;
 const int inf=1e18;
int pow(int a,int b){
    int res=1;
    while(b>0){
        if(b&1){
        	res=res*a;
		}
        a=a*a;
        b>>=1;
    }
    return res;
}
signed main(){
	ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
	
	int a,b,c;
	cin>>a>>b>>c;
	cout<<max(0,c-(a-b));
	
	








	
return 0;
}


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

#include<iostream>
#include<iomanip>
#include<math.h>
#include<algorithm>
#include<utility>
#include<functional>
#include<queue>
#include<string.h>
#include<string>
#include<set>
#include<map>g++
#include<vector>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> PA;
const int MOD = 1000000007;
const ll INF=2e18;

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


Compiler output:
a.cc:11:15: warning: extra tokens at end of #include directive
   11 | #include<map>g++
      |               ^~
a.cc:11:9: fatal error: map>: No such file or directory
   11 | #include<map>g++
      |         ^~~~~~
compilation terminated.
Language: Java

import org.apache.commons.io.IOUtils;

import java.net.URL;
import java.util.*;
import java.util.regex.Pattern;

public class Main {

    /* チェックリスト
     * SNSに結果を書き込むときはACかWAかのみ(半分だけACとかは書かないこと)
     * 結果はintの範囲を超えていませんか？(必要な時以外はlongを使いましょう)
     * TLEしそうな処理はありませんか？
     */
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        //int n = Integer.parseInt(s.nextLine());
        String[] in = s.nextLine().split(" ");
        int a = Integer.parseInt(in[0]);
        int b = Integer.parseInt(in[1]);
        int c = Integer.parseInt(in[2]);
        System.out.println(c-(a-b));
    }
}

Compiler output:
Main.java:1: error: package org.apache.commons.io does not exist
import org.apache.commons.io.IOUtils;
                            ^
1 error
Language: C++

#include <bits/stdc++.h>
#define For(i,a,b) for(int i=a;i<=b;i++)
#define F first
#define S second
#define all(x) x.begin(),x.end()
#define sz(x) ((int)x.size())
#define MOD (ll)(1e9+7)
#define INF 1e17
#define int ll
#define EPS (1e-6)
using namespace std;
using ll=long long;
using pii=pair<int,int>;

int gcd(int a,int b) { return b==0?a:gcd(b,a%b); }
int lcm(int a,int b) { return a/gcd(a,b)*b; }

int fpow(int b,int p)
{
	if(p==0) return 1;
	int h=fpow(b,p/2);
	if(p%2) return h*b%MOD*h%MOD;
	return h*h%MOD;
}

bool cmp(pii a,pii b){
	return a.S<b.S;
}

int find(vector<int> &dp,int t){
	int hi=sz(dp)-1,lo=-1;
	while(hi-lo>1){
		int m=(hi+lo)/2;
		if(dp[m]<=t) lo=m;
		else hi=m;
	}
	return hi;
}

int32_t main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	
	int a,b,c; cin>>a>>b>>c;
	cout<<max(0,c-(b-a))<<"\n";
	return 0;
}



























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

#include<bits/stdc++.h>
#define int long long
#define f(i,n) for(int i=0;i<(n);i++)
#define all(x) (x).begin(),(x).end()
using namespace std;
signed main(){
	int a,b,c;
	cin>>a>>b>>c;
	cout<<max((int)(0),(b+c)-a<<endl;
	return 0;
}


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

#include <stdio.h>
int main()
{
  int a,b;
  scanf("%d",&n);
  if(a>=1&&a<=9)
  {
   b=n-0;
   printf("%d\n",b);
  }
  else if(a>=10&&a<=99)
  {
    b=9;
    printf("%d\n",b);
  }
  else if(a>=100&&a<=999)
  {
    b=(a-100)+1+9;
    printf("%d\n",b);
  }
  else if(a>=1000&&a<=9999)
  {
    b=(999-100)+1+9;
    printf("%d\n",b);
  }
  else if(a>=10000&&a<=99999)
  {
    b=(999-100)+1+9+(a-10000)+1;
    printf("%d\n",b);
  }
  else if(a>=100000&&a<=999999)
  {
    b=(999-100)+1+9+(99999-10000)+1;
    printf("%d\n",b);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: 'n' undeclared (first use in this function)
    5 |   scanf("%d",&n);
      |               ^
main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<stdio.h>
int main( )
{
    long long int a ;
    scanf("%lld" , &a);
    
    int x , count = 0 ;
    while( a != 0)
    {
        x = a%10 ;
        if( x == 7 || x==4)
            count++ ;
        a = a/10 ;
    }
    
    if( count == 7 || count == 4)
        printf("YES\n");
    else 
        printf("NO\n");
    return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:20:14: error: expected '}' at end of input
   20 |     return 0;
      |              ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
using namespace std;
int main(){
    int n;
    cin >> n;
    int ans=0;
    for(int i=0;i<=n;i++){
        int cp=i,disit=0;
        while(cp){
            digit++;
            cp/=10;
        }
        if(disit%2)ans++;
    }
    cout << ans <<endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'digit' was not declared in this scope; did you mean 'disit'?
   13 |             digit++;
      |             ^~~~~
      |             disit
Language: C++

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

int main() {
  int N, sum = 0, k = 1;
  cin >> N;

  for (int i = 1, i = j; i <= N; i++) {
    while (j <= 10) {
      j /= 10;
      k++;
    }
    if (k % 2 == 1) {
      sum++;
    }
  }
  
  cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: redeclaration of 'int i'
    8 |   for (int i = 1, i = j; i <= N; i++) {
      |                   ^
a.cc:8:12: note: 'int i' previously declared here
    8 |   for (int i = 1, i = j; i <= N; i++) {
      |            ^
a.cc:8:23: error: 'j' was not declared in this scope
    8 |   for (int i = 1, i = j; i <= N; i++) {
      |                       ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	int x,n;
	cin >> x;
	n=0;
	for(imt i = 1;i<100000;i++){
		if(0<i && i<10){n++;}
		if(99<i && i<1000){n++;}
		if(9999<i && i<100000){n++;}
	}
	cout << n << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'imt' was not declared in this scope; did you mean 'int'?
    8 |         for(imt i = 1;i<100000;i++){
      |             ^~~
      |             int
a.cc:8:23: error: 'i' was not declared in this scope
    8 |         for(imt i = 1;i<100000;i++){
      |                       ^
Language: C++

#define rep(i,n) for(ll i=0;i<(ll)(n);i++)//Loop i to n(i=0)
#define all(x) (x).begin(),(x).end();//for sort
#define dump(x) cout << #x << " = " << (x) << endl;//for debug 
#define YES(b) cout << ((n)?"YES":"NO") << endl;//print "YES" or "NO"
#define Yes(b) cout << ((n)?"Yes":"No") << endl;//print "Yes" or "No"

#define PI 3.141592653589793;

int main(void) {
	int n,out=0;
	cin >> n;
	if (n >= 100000)n--;
	out = min(n, 9);
	if (n >= 100)out += min(n % 1000 - 100, 899)+1;
	if (n >= 10000)out += min(n % 100000 - 10000, 89999)+1;
	
	cout << out << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope
   11 |         cin >> n;
      |         ^~~
a.cc:13:15: error: 'min' was not declared in this scope; did you mean 'main'?
   13 |         out = min(n, 9);
      |               ^~~
      |               main
a.cc:17:9: error: 'cout' was not declared in this scope; did you mean 'out'?
   17 |         cout << out << endl;
      |         ^~~~
      |         out
a.cc:17:24: error: 'endl' was not declared in this scope
   17 |         cout << out << endl;
      |                        ^~~~
Language: C++

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

int main(){
int N;
  cin >> N;
  int c = 0;
  for (int i = 1;i < N;i++){
      int s = i;
     while (s!=0){
      s /= 10;
    n++;
     }
      if ((n % 2) == 1){
        c++;
      } 
  }
cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'n' was not declared in this scope
   12 |     n++;
      |     ^
a.cc:14:12: error: 'n' was not declared in this scope
   14 |       if ((n % 2) == 1){
      |            ^
Language: C++

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

int main(){
int N;
  cin >> N;
  int c = 0;
  for (int i = 1;i < N;i++){
      int s = i;
     while (s!=0){
      s /= 10;
    n++
     }
      if ((n % 2) == 1){
        c++;
      } 
  }
cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'n' was not declared in this scope
   12 |     n++
      |     ^
a.cc:14:12: error: 'n' was not declared in this scope
   14 |       if ((n % 2) == 1){
      |            ^
Language: C++

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

int main(){
int N;
  import N;
  int c = 0;
  for (int i = 1;i < N;i++){
      string i;
      if (i.size() % 2) == 1{
c++
      } 
  }
cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'import' was not declared in this scope
    6 |   import N;
      |   ^~~~~~
a.cc:9:14: error: redeclaration of 'std::string i'
    9 |       string i;
      |              ^
a.cc:8:12: note: 'int i' previously declared here
    8 |   for (int i = 1;i < N;i++){
      |            ^
a.cc:10:25: error: expected primary-expression before '==' token
   10 |       if (i.size() % 2) == 1{
      |                         ^~
Language: C++

#include <iostream>
#include <cstdlib>
 
using namespace std;
// https://qiita.com/Clpsplug/items/81fe12400d4093a8fb5a
 
int main() {#include <iostream>
#include <cstdlib>
 
using namespace std;
// https://qiita.com/Clpsplug/items/81fe12400d4093a8fb5a
 
int main() {
    int N;
    cin >> N;

    int counter = 0;
    for (int i = 1; i < N+1; i++) {
        if (i/10 == 0) {
            counter++;
        } else if (i/100 > 0 && i/1000 == 0) {
            counter++;
        } else if (i/10000 > 0) {
            counter++;
        }
    }
    cout << counter << endl;
}
    int N;
    cin >> N;

    int counter = 0;
    for (int i = 1; i < N+1; i++) {
        if (i/10 == 0) {
            counter++;
        } else if (i/100 > 0 && i/1000 == 0) {
            counter++;
        } else if (i/10000 > 0) {
            counter++;
        }
    }
    cout << counter << endl;
}

Compiler output:
a.cc:7:13: error: stray '#' in program
    7 | int main() {#include <iostream>
      |             ^
a.cc: In function 'int main()':
a.cc:7:14: error: 'include' was not declared in this scope
    7 | int main() {#include <iostream>
      |              ^~~~~~~
a.cc:7:31: error: expected primary-expression before '>' token
    7 | int main() {#include <iostream>
      |                               ^
a.cc:10:1: error: expected primary-expression before 'using'
   10 | using namespace std;
      | ^~~~~
a.cc:13:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   13 | int main() {
      |         ^~
a.cc:13:9: note: remove parentheses to default-initialize a variable
   13 | int main() {
      |         ^~
      |         --
a.cc:13:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:13:12: error: a function-definition is not allowed here before '{' token
   13 | int main() {
      |            ^
Language: C++

/*
17/10/2017
*/
#include <bits/stdc++.h>
#define ll long long
#define mod 1000000007
using namespace std;
int main()
{
int n;
cin>>n;
int ans=0;
for(int i=1;i<=n;i++)
{
int s=to_string(i);
if(s%2==1)
{
ans++;
}
}
cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in initialization
   15 | int s=to_string(i);
      |       ~~~~~~~~~^~~
      |                |
      |                std::string {aka std::__cxx11::basic_string<char>}
Language: C++

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

int main(){
    long long n,ans = 0;
    cin >> n;
    for(int i = 0; i < n; i++{
        if(to_string(i).size() % 2 == 1)
            ans++;
    }
    cout << ans << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: expected ')' before '{' token
    7 |     for(int i = 0; i < n; i++{
      |        ~                     ^
      |                              )
Language: C++

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

int main(){
    ll n,ans = 0;
    cin >> n;
    rep(i,n){
        if(to_string(i).size() % 2 == 1) ans++
    }
    cout << ans << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:47: error: expected ';' before '}' token
   10 |         if(to_string(i).size() % 2 == 1) ans++
      |                                               ^
      |                                               ;
   11 |     }
      |     ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int f(int x){
  int keta=0;
  while(x!=0){
    x/=10;
    keta++;
  }
    return keta;
int main(){
  int N;
  cin>>N;
  int ans=0;
  for(int i=1;i<=N;i++){
    if(f(i)%2==1){
      ans++;
    }
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int f(int)':
a.cc:10:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   10 | int main(){
      |         ^~
a.cc:10:9: note: remove parentheses to default-initialize a variable
   10 | int main(){
      |         ^~
      |         --
a.cc:10:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:10:11: error: a function-definition is not allowed here before '{' token
   10 | int main(){
      |           ^
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:3:13: note: to match this '{'
    3 | int f(int x){
      |             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
#define rep(i, n); for(ll i = 0; i < (ll)n; i++)
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }

int main() {
  ll n; cin >> n;
  ll cnt=0;
  
  for(i=1 i<=n; i++){
    if((i%10)%2 == 1)
      cnt++;
  }
  cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: 'i' was not declared in this scope
   13 |   for(i=1 i<=n; i++){
      |       ^
a.cc:13:20: error: expected ';' before ')' token
   13 |   for(i=1 i<=n; i++){
      |                    ^
      |                    ;
Language: C++

/*
 * a.cc:
 */

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<numeric>
#include<utility>
#include<complex>
#include<functional>
#include<iomanip>

using namespace std;

/* constant */

/* typedef */

/* global variables */

/* subroutines */

/* main */
int main(){
  int N;
  cin>>N;

  for (int i=1;i<=N;i++){
    if (to_string(i).length()%2==1) {
      num++;
      
    }
  }
  cout<<num<<endl;
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:7: error: 'num' was not declared in this scope; did you mean 'enum'?
   42 |       num++;
      |       ^~~
      |       enum
a.cc:46:9: error: 'num' was not declared in this scope; did you mean 'enum'?
   46 |   cout<<num<<endl;
      |         ^~~
      |         enum
Language: C++

/*
 * a.cc:
 */

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<numeric>
#include<utility>
#include<complex>
#include<functional>
#include<iomanip>

using namespace std;

/* constant */

/* typedef */

/* global variables */

/* subroutines */

/* main */
int main(){
  int N;
  cin>>N;

  for (i=1;i<=N;i++){
    if (to_string(i).length()%2==1) {
      num++;
      
    }
  }
  cout<<num<<endl;
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:8: error: 'i' was not declared in this scope
   40 |   for (i=1;i<=N;i++){
      |        ^
a.cc:42:7: error: 'num' was not declared in this scope; did you mean 'enum'?
   42 |       num++;
      |       ^~~
      |       enum
a.cc:46:9: error: 'num' was not declared in this scope; did you mean 'enum'?
   46 |   cout<<num<<endl;
      |         ^~~
      |         enum
Language: C++

/*
 * a.cc:
 */

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<numeric>
#include<utility>
#include<complex>
#include<functional>
#include<iomanip>

using namespace std;

/* constant */

/* typedef */

/* global variables */

/* subroutines */

/* main */
int main(){
  int N,num=0;
  cin>>N;

  for (i=1;i<=N;i++){
    if ((1<=i<=9) || (100<=i<=999) || (10000<=i<=99999)){
      num++;
    }
  }
  cout<<num<<endl;
  return 0;
  

  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:8: error: 'i' was not declared in this scope
   40 |   for (i=1;i<=N;i++){
      |        ^
Language: C++

#include <algorithm>
#include <bitset>
#include <tuple>
#include <cstdint>
#include <cstdio>
#include <cctype>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <limits>
#include <map>
#include <memory>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#include <math.h>

// ===============================================================
//using系

using namespace std;
using ll = long long;
using vl = vector<long long>;
using vll = vector<vector<long long>>;
using vs = vector<string>;
using vc = vector<char>;
using vcc = vector<vector<char>>;
using vm = vector<short>;
using vmm = vector<vector<short>>;
using pii = pair<int, int>;
using psi = pair<string, int>;
using ld = long double;
using ull = unsigned long long;
using ui = unsigned int;
using qul = queue<ll>;
using pql = priority_queue<ll>;
using kaage = priority_queue<int, vector<int>, greater<int>>;

// ========================================================================
//define系

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

// ========================================================================


ll gcd(ll a, ll b)
{
	if (a % b == 0)
	{
		return(b);
	}
	else
	{
		return(gcd(b, a % b));
	}
}
//最大公約数
ll lcm(ll a, ll b)
{
	return a * b / gcd(a, b);
}
//最小公倍数
ll box(double a)
{
	ll b = a;
	return b;
}
//切り捨て
ll fff(double a)
{
	ll b = a + 0.5;
	return b;
}
//四捨五入
ll mch(ll n) {
	if (n == 1) return 1;
	else return n * mch(n - 1);
}
//1から整数nまでの階乗を出す(INFで割っていない)
bool prime(ll a)//素数判定、primeならtrue,違うならfalse
{
	if (a < 2) return false;
	else if (a == 2) return true;
	else if (a % 2 == 0) return false;
	double m = sqrt(a);
	for (int i = 3; i <= m; i += 2)
	{
		if (a % i == 0)
		{
			return false;
		}
	}

	// 素数である
	return true;
}
//素数判定
ll modpow(ll a, ll n, ll mod) {
	ll hi = 1;
	while (n > 0) {
		if (n & 1) hi = hi * a % mod;
		a = a * a % mod;
		n >>= 1;
	}
	return hi;
}
//いろいろやります（ただの前座）
ll mg(ll a, ll mod) {
	return modpow(a, mod - 2, mod);
}
//割り算の10^9+7等対策で逆元を出します 




// ========================================================================


/*signed*/int main() {
	ll n; cin >> n;
	string a = to_string(n);
	if (a.size() == 1) cout << n << endl;
	if (a.size() == 2) cout << 9 << endl;
	if (a.size() == 3) cout << 9 + (n - 99) << endl;
	if (a.size() == 4) cout << 909 << endl;
	if (a.size() == 5) cout << 909 + (n - 9999) << endl;
	if (n == 100000) cout << 90909 << endl;

	return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:151:18: error: expected '}' at end of input
  151 |         return 0;
      |                  ^
a.cc:141:22: note: to match this '{'
  141 | /*signed*/int main() {
      |                      ^
Language: C++

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

int main(){
	// sengen
	int n;
	// nyuryoku
	cin >> n;
	// keisan
	int count = 0;
	if(n > 9){
		count += 9;
	}else{
		count += n;
	}
	if(n > 999){
		count += 900;
	}else{
		if(n > 99){
			count += n - 100 + 1;
		}
	}
	if(n > 99999){
		cout += 90000;
	}else{
		if(n > 9999){
			count += n - 9999;
		}
	}
	// syutsuryoku
	cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:22: error: no match for 'operator+=' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
   25 |                 cout += 90000;
      |                 ~~~~~^~~~~~~~
Language: C++

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

int main(){
  int n;
  cin >> n;
  int ans;
  string s;
  for(int i = 1;i <= n;i++){
    s = to_string(i);
    if(s.size() % 2 == 1){
      ans++
    }
  }
  cout << ans << endl;
}

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

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

int main () {
    int N;
    cin >> N;

    int count=0;
        
    
    for (int i=1; i<=N; i++) {
        string buta=to_string(i);
        if (buta.size()%2=1) {
            count++;
        }
    }
    cout << count << endl;
}
        
        


Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: lvalue required as left operand of assignment
   13 |         if (buta.size()%2=1) {
      |             ~~~~~~~~~~~^~
Language: C++

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

unsigned GetDigit(unsigned num) {
  unsigned digit = 0;
  while (num != 0) {
    num /= 10;
    digit++;
  }
  return digit;
}

int main() {
  int N;
  int cnt = 0;
  cin >> N;
  while ((N -= 1) =< 0) if (GetDigit(N) % 2 == 1) cnt++;

  cout << cnt << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:20: error: expected primary-expression before '<' token
   22 |   while ((N -= 1) =< 0) if (GetDigit(N) % 2 == 1) cnt++;
      |                    ^
Language: C++

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

int main(){
  int N;
  cin >> N;
  
  if (N < 10){
    cout << N << endl;
  }
  else if (10 <= N && N < 100){
    cout << 9 << endl;
  }
  else if (100 <= N && N < 1000){
    cout << 9 + N - 99 << endl;
  }
  else if (1000 <= N && N < 10000){
    cout << 9 + 900 << endl;
  }
  else if (10000 <= N &&0 N < 100000){
    cout << 9 + 900 + N - 9999 << endl;
  }
  else if (100000 <= N){
    cout << 9 + 900 + 90000 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:26: error: expected ')' before 'N'
   20 |   else if (10000 <= N &&0 N < 100000){
      |           ~              ^~
      |                          )