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

#pragma GCC optimized("-O3")
#include <bits/stdc++.h>
using namespace std;

#define FOR(i,a,b) for (int i = (a); i < (b); ++i)
#define F0R(i,a) FOR(i,0,a)
#define ROF(i,a,b) for (int i = (b)-1; i >= (a); --i)
#define R0F(i,a) ROF(i,0,a)

#define ld __float128
using ll = long long;
ld INF = LLONG_MAX;

using ld = long double;
using vld = vector<ld>;
#define pii pair<__float128, __float128>;

vector<ld> px;
vector<ld> py;

ld dist(ld x1, ld y1, ld x2, ld y2) {
    return (ld) pow((long double)( x1 - x2), 2) + pow((long double)(y1 - y2), 2);
}
int main() {
    ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    ll N; cin >> N;
    
    px = vector<ld> (N);
    py = vector<ld> (N);

    F0R(i, N) {
        ll a, b; cin >> a >> b;
        px[i] = a;
        py[i] =b;
    }

    long double best = INF;
    F0R(i, N) {
        FOR(j, i+1, N) {
            FOR(k, j+1, N) {
                ld ax = px[i];
                ld ay = py[i];
                ld bx = px[j];
                ld by = py[j];
                ld cx = px[k];
                ld cy = py[k];
                ld d = 2 * (ax * (by - cy) + bx * (cy - ay) + cx * (ay - by));
                
                ld xc = ((ax * ax + ay * ay) * (by - cy) + (bx * bx + by * by) * (cy - ay) + (cx * cx + cy * cy) * (ay - by)) / (ld) d;
                ld yc = ((ax * ax + ay * ay) * (cx - bx) + (bx * bx + by * by) * (ax - cx) + (cx * cx + cy * cy) * (bx - ax)) / (ld) d;
                ld radius = dist(ax, ay, xc, yc);

                bool fail = false;
                F0R(o, N) {
                    ld xp = px[o];//point.first;
                    ld yp = py[o];//point.second;

                    if (dist(xp, yp, xc, yc) > radius + 1e-6) fail = true;
                }
                if (!fail) {
                    best = min(best, sqrt((long double) radius));
                }
            }
        }
    }
    if (N == 2) {
        ld x1 = px[0];
        ld x2 = px[1];//points[1].first;
        ld y1 = py[0];//points[0].second;
        ld y2 = py[1];//points[1].second;
        cout <<  (long double) sqrt((long double) dist(x1, y1, x2, y2)) / (long double) 2.0 << endl;
    } else {
        cout << (long double) best << endl;
    }
    
}

Compiler output:
a.cc:10:12: error: conflicting declaration 'using __float128 = long double'
   10 | #define ld __float128
      |            ^~~~~~~~~~
a.cc:14:7: note: in expansion of macro 'ld'
   14 | using ld = long double;
      |       ^~
cc1plus: note: previous declaration as '__float128'
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
        int b = sc.nextInt();
		double c = 0;
		double d = 0;
        double e = 0;
        double f = 0;
        double g = 0;
        int [] in = new int [a];
        int [] in2 = new int [a];
        for(int i=0;i<a;i++){in[i] = sc.nextInt();e+=in[i];in2[i] = sc.nextInt();f+=in2[i];                             
                            }		        
        e/=a;
        f/=a;
        for(int i=0;i<a;i++){c=Math.pow(e-in[i],2);d=Math.pow(f-in[i],2)if(Math.sqrt(c+d)>g){g=Math.sqrt(c+d);}
          }
		System.out.println(g);
	}
}

Compiler output:
Main.java:18: error: ';' expected
        for(int i=0;i<a;i++){c=Math.pow(e-in[i],2);d=Math.pow(f-in[i],2)if(Math.sqrt(c+d)>g){g=Math.sqrt(c+d);}
                                                                        ^
1 error
Language: C++

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

#define dump(x) cout << (x) << '\n'
#define Int int64_t
#define fi first
#define se second
#define all(x) (x).begin(), (x).end()

Int INF = 1e18;
Int mod = 1e9+7;
//Int mod = 998244353;

typedef struct {
    double y, x;
} p_t;

int main() {    
    Int n;
    cin >> n;
    vector<p_t> v(n);
    for (Int i = 0; i < n; i++) {
        cin >> v[i].y >> v[i].x;
    }
    if (n == 2) {
        Int i = 0;
        Int j = 1;
        double d = sqrt(pow((v[j].x - v[i].x), 2.0) + pow(v[j].y - v[j].x, 2.0));
        printf("%.12lf\n", d / 2.0);
        return 0;
    }
    double ma = 0.0;
    pair<Int, Int> p;
    double res = INF;
    for (Int i = 0; i < n - 2; i++) {
        for (Int j = i + 1; j < n - 1; j++) {
           for (Int k = j + 1; k < n; k++) {
               p_t a = v[i];
               p_t b = v[j];
               p_t c = v[k];
               double aa = 0.5 * ( ( (a.y - b.y) * ( (b.x * b.x - c.x * c.x) + (b.y * b.y - c.y * c.y) - (b.y - c.y) * ( (a.x * a.x - b.x * b.x) + (a.y * a.y - b.y * b.y) ) ) / ( (a.x - b.x) * (b.y - c.y) - (b.x - c.x) * (a.y - b.y) ) ) );
               double bb = ( (a.x * a.x - b.x * b.x) + (a.y * a.y - b.y * b.y) ) / 2.0 / (a.y - b.y) - (a.x - b.x) * aa / (a.y - b.y);
               double r = sqrt(pow(aa - a.x, 2.0) + pow(bb - a.y, 2.0));
               bool check = true;
               for (Int l = 0; l < n; l++) {
                   if (pow(v[l].x - aa, 2.0) + pow(v[l].y - bb, 2.0) > r * r) {
                       check = false;
                   }
               }
               if (check) {
                   res = min(res, r);
               }
           }
        }
    }
    pair<Int, Int> p;
    for (Int i = 0; i < n - 1; i++) {
        for (Int j = i + 1; j < n; j++) {
            double d = sqrt(pow((v[j].x - v[i].x), 2.0) + pow(v[j].y - v[j].x, 2.0));
            if (d > ma) {
                ma = d;
                p = {i, j};
            }
        }
    }
    printf("%.12lf\n", min(ma, res));
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:56:20: error: redeclaration of 'std::pair<long int, long int> p'
   56 |     pair<Int, Int> p;
      |                    ^
a.cc:33:20: note: 'std::pair<long int, long int> p' previously declared here
   33 |     pair<Int, Int> p;
      |                    ^
Language: C++

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

#define dump(x) cout << (x) << '\n'
#define Int int64_t
#define fi first
#define se second
#define all(x) (x).begin(), (x).end()

Int INF = 1e18;
Int mod = 1e9+7;
//Int mod = 998244353;

typedef struct {
    double y, x;
} p_t;

int main() {    
    Int n;
    cin >> n;
    vector<p_t> v(n);
    for (Int i = 0; i < n; i++) {
        cin >> v[i].y >> v[i].x;
    }
    if (n == 2) {
        Int i = 0;
        Int j = 1;
        double d = sqrt(pow((v[j].x - v[i].x), 2.0) + pow(v[j].y - v[j].x, 2.0));
        printf("%.12lf\n", d / 2.0);
        return 0;
    }
    double ma = 0.0;
    pair<Int, Int> p;
    double res = INF;
    for (Int i = 0; i < n - 2; i++) {
        for (Int j = i + 1; j < n - 1; j++) {
           for (Int k = j + 1; k < n; k++) {
               p_t a = v[i];
               p_t b = v[j];
               p_t c = v[k];
               double aa = 0.5 * ( ( (a.y - b.y) * ( (b.x * b.x - c.x * c.x) + (b.y * b.y - c.y * c.y) - (b.y - c.y) * ( (a.x * a.x - b.x * b.x) + (a.y * a.y - b.y * b.y) ) ) / ( (a.x - b.x) * (b.y - c.y) - (b.x - c.x) * (a.y - b.y) ) ) );
               double bb = ( (a.x * a.x - b.x * b.x) + (a.y * a.y - b.y * b.y) ) / 2.0 / (a.y - b.y) - (a.x - b.x) * aa / (a.y - b.y);
               double r = sqrt(pow(aa - a.x, 2.0) + pow(bb - a.y, 2.0));
               bool check = true;
               for (Int l = 0; l < n; l++) {
                   if (pow(v[l].x - aa, 2.0) + pow(v[l].y - bb, 2.0) > r * r) {
                       check = false;
                   }
               }
               if (check) {
                   res = min(res, r);
               }
           }
        }
    }
    double ma = 0.0;
    pair<Int, Int> p;
    for (Int i = 0; i < n - 1; i++) {
        for (Int j = i + 1; j < n; j++) {
            double d = sqrt(pow((v[j].x - v[i].x), 2.0) + pow(v[j].y - v[j].x, 2.0));
            if (d > ma) {
                ma = d;
                p = {i, j};
            }
        }
    }
    printf("%.12lf\n", min(ma, res));
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:56:12: error: redeclaration of 'double ma'
   56 |     double ma = 0.0;
      |            ^~
a.cc:32:12: note: 'double ma' previously declared here
   32 |     double ma = 0.0;
      |            ^~
a.cc:57:20: error: redeclaration of 'std::pair<long int, long int> p'
   57 |     pair<Int, Int> p;
      |                    ^
a.cc:33:20: note: 'std::pair<long int, long int> p' previously declared here
   33 |     pair<Int, Int> p;
      |                    ^
Language: C

#include <cstdio>
#include <cmath>
int n;
double x[1005], y[1005], X, Y, d, e;
double dist(double a, double b) {
	return a*a + b*b;
}
int main() {
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%lf%lf", &x[i], &y[i]);
		X += x[i]; Y += y[i];
	}
	X /= n; Y /= n;
	double P = 0.1;
	for (int i = 0; i < 30000; i++) {
		int f = 0;
		d = dist(X - x[0], Y - y[0]);
		for (int j = 1; j < n; j++) {
			e = dist(X - x[j], Y - y[j]);
			if (d < e) { d = e; f = j; }
		}
		X += (x[f] - X)*P;
		Y += (y[f] - Y)*P;
		P *= 0.999;
	}
	printf("%.12lf\n",sqrt(d));
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (ll i = (a); i < (b); i++)
#define rep2(r, aa, bb) for (ll r = (aa)-1; r >= (bb); r--)
#define be(x) (x.begin(), x.end())
#define pb(t) push_back(t)
#define ll long long
#define mp(a, b) make_pair(a, b)
struct P{
	long double x, y;
	void read(){
		cin>>x>>y;
	}
	int operator *(P b){
		return x*b.y-y*b.x;
	}
	P operator -(P b){
		return {x-b.x, y- b.y};
	}
	double slope(P b){
		return (double)(b.y-y)/(b.x-x);
	}
	double dist(P b){
		return sqrt((y- b.y)*(y- b.y)+(x-b.x)*(x-b.x));
	}
	bool operator <(P b){
		if(x!=b.x)return x<b.x;
		return y<b.y;
	}
};
int main(){
	ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    cout<<fixed<<setprecision(20);
    ll n;
    cin>>n;
    vector<P>A(n);
    rep(i,0,n)
		A[i].read();
	long double mini=LLONG_MIN;
	rep(i,0, n){
		rep(j,i+1, n){
		mini=max(mini, A[i].dist(A[j]));
	}
	}
	cout<<mini/2.0<<"\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:44:25: error: no matching function for call to 'max(long double&, double)'
   44 |                 mini=max(mini, A[i].dist(A[j]));
      |                      ~~~^~~~~~~~~~~~~~~~~~~~~~~
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:44:25: note:   deduced conflicting types for parameter 'const _Tp' ('long double' and 'double')
   44 |                 mini=max(mini, A[i].dist(A[j]));
      |                      ~~~^~~~~~~~~~~~~~~~~~~~~~~
/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:44:25: note:   mismatched types 'std::initializer_list<_Tp>' and 'long double'
   44 |                 mini=max(mini, A[i].dist(A[j]));
      |                      ~~~^~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>

#define INF 1000000021
#define MOD 1000000007
#define pb push_back
#define sqr(a) (a)*(a)
#define M(a, b) make_pair(a,b)
#define T(a, b, c) make_pair(a, make_pair(b, c))
#define F first
#define S second
#define all(x) (x.begin(), x.end())
#define deb(x) cerr << #x << " = " << x << '\n'
#define N 222222

using namespace std;
//using namespace __gnu_pbds;

typedef long double ld;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;
typedef vector<ll> vll;
//typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> indexed_set;

const ld pi = 2 * acos(0.0);
template<class T> bool umin(T& a, T b){if(a>b){a=b;return 1;}return 0;}
template<class T> bool umax(T& a, T b){if(a<b){a=b;return 1;}return 0;}
template<class T, class TT> bool pal(T a, TT n){int k=0;for(int i=0;i<=n/2;i++){if(a[i]!=a[n-i-1]){k=1;break;}}return k?0:1;}

//int month[] = {0,31,28,31,30,31,30,31,31,30,31,30,31};

pii p[N];
int main()
{
	int n;
	cin >> n;
	for(int i = 1; i <= n; i ++)
	{
		int x, y;
		cin >> x >> y;
		p[i] = M(x, y);
	}
	sort (p + 1, p + n+ 1);	
	int id = 1, mx = p[1].S, ii = 1, mn = p[1].S;
	for(int i = 1; i <= n; i ++)
	{
		if(mx < p[i].S)
			mx = p[i].S, id = i;
		if(mn > p[i].S)
			mn = p[i].S, ii =i;
	}
	double xx = 0;
	for(int i = 1; i <= n; i ++)
	for(int j = i + 1; j <= n; j ++)
	{
		double e = sqrt(sqr(p[i].F - p[j].F) + sqr(p[i].S - p[j].S)) / 2.;
		umax(xx, e);
	}
	double d = sqrt(sqr(p[1].F - p[n].F) + sqr(p[1].S - p[n].S)) / 2.;
	double dd = sqrt(sqr(p[id].F - p[ii].F) + sqr(p[id].S - p[ii].S)) / 2.;
	double ddd = sqrt(sqr(p[1].F - p[n].F) + sqr(p[ii].S - p[id].S)) / 2.;
	d = max(d, max(dd, max(ddd, e)));
	cout << setprecision(10) << fixed << d;





	





	getchar();
	getchar();
	return 0;
	//ios::sync_with_stdio(false);
	//cin.tie(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:64:37: error: 'e' was not declared in this scope
   64 |         d = max(d, max(dd, max(ddd, e)));
      |                                     ^
Language: C++

#include <iostream>
#include <math.h>
using namespace std;
int main(){
  float max = 0.0;
  int x[1000],y[1000];
  int N;
  float tem;
  int dx,dy;
  cin >> N;
  for(int i = 0;i < N;i++){
    cin >> x[i] >> y[i];
  }
  for(int i = 0;i<N-1;i++){
    for(int j = 0;j < N){
      dx = x[i] - x[j];
      dy = y[i] - y[j];
      tem = pow(dx * dx + dy * dy,0.5);
      if(tem > max){
        max = tem;
      }
    }
  }
  printf("%f",max/2.0);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: expected ';' before ')' token
   15 |     for(int j = 0;j < N){
      |                        ^
      |                        ;
Language: C++

import math
if __name__ == '__main__':
    ar = []
    n = int(input())
    for _ in range(n):
        x, y = map(float, input().split())
        ar.append([x, y])
    x = 0.00000000
    d = 0.00000000
    for i in range(0, n):
        for j in range(i+1,n):
            d = math.sqrt( (abs(ar[i][0] - ar[j][0]))**2 + (abs(ar[i][1] - ar[j][1]))**2 )
            if d > x:
                x = d
    print(x/2.0000000000)




Compiler output:
a.cc:2:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    2 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
#include <nath.h>
using namespace std;
int main(){
  float max = 0.0;
  int x[1000],y[1000];
  int N;
  float tem;
  int dx,dy;
  cin >> N;
  for(int i = 0;i < N;i++){
    cin >> x[i] >> y[i];
  }
  for(int i = 0;i<N-1;i++){
    for(int j = 0;j < N){
      dx = x[i] - x[j];
      dy = y[i] - y[j];
      tem = pow(dx * dx + dy * dy,0.5);
      if(tem > max){
        max = tem;
      }
    }
  }
  printf("%f",max/2.0);
  return 0;
}

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

#include<bits/stdc++.h>

#define ll long long int
#define pb push_back
#define eb emplace_back
#define xx first
#define yy second
#define INF 0x3f3f3f3f
#define all(x) x.begin(),x.end()
#define show(x) cerr<<#x<<" : "<<x<<'\n';
#define yogeshk972() cerr<<"\nTime Taken : "<<(float)(clock()-time_p)/CLOCKS_PER_SEC<<"\n";
clock_t time_p=clock();

using namespace std;
const int N=1e5+10, mod=998244353;
#define pt pair<int,int>

long double dist(pt a,pt b){
	a.xx-=b.xx; a.yy-=b.yy;
	return sqrt(a.xx*a.xx+a.yy*a.yy);
}

int main(){
	ios_base::sync_with_stdio(0);	cin.tie(0);
	
	int n;
	cin>>n;
	pt x[n];
	for(int i=0;i<n;i++)cin>>x[i].xx>>x[i].yy;
	
	long double res=0;
	for(int i=0;i<n;i++){
		for(int j=i+1;j<n;j++)res=max(res,dist(x[i],x[j] ));
	}
	cout<<fixed<<setprecision(20)<<res/2.0;
	
    yogeshk972();
}
#include<bits/stdc++.h>

#define ll long long int
#define pb push_back
#define eb emplace_back
#define xx first
#define yy second
#define INF 0x3f3f3f3f
#define all(x) x.begin(),x.end()
#define show(x) cerr<<#x<<" : "<<x<<'\n';
#define yogeshk972() cerr<<"\nTime Taken : "<<(float)(clock()-time_p)/CLOCKS_PER_SEC<<"\n";
clock_t time_p=clock();

using namespace std;
const int N=1e5+10, mod=998244353;
#define pt pair<int,int>

long double dist(pt a,pt b){
	a.xx-=b.xx; a.yy-=b.yy;
	return sqrt(a.xx*a.xx+a.yy*a.yy);
}

int main(){
	ios_base::sync_with_stdio(0);	cin.tie(0);
	
	int n;
	cin>>n;
	pt x[n];
	for(int i=0;i<n;i++)cin>>x[i].xx>>x[i].yy;
	
	long double res=0;
	for(int i=0;i<n;i++){
		for(int j=i+1;j<n;j++)res=max(res,dist(x[i],x[j] ));
	}
	cout<<fixed<<setprecision(20)<<res/2.0;
	
    yogeshk972();
}


Compiler output:
a.cc:50:9: error: redefinition of 'clock_t time_p'
   50 | clock_t time_p=clock();
      |         ^~~~~~
a.cc:12:9: note: 'clock_t time_p' previously declared here
   12 | clock_t time_p=clock();
      |         ^~~~~~
a.cc:53:11: error: redefinition of 'const int N'
   53 | const int N=1e5+10, mod=998244353;
      |           ^
a.cc:15:11: note: 'const int N' previously defined here
   15 | const int N=1e5+10, mod=998244353;
      |           ^
a.cc:53:21: error: redefinition of 'const int mod'
   53 | const int N=1e5+10, mod=998244353;
      |                     ^~~
a.cc:15:21: note: 'const int mod' previously defined here
   15 | const int N=1e5+10, mod=998244353;
      |                     ^~~
a.cc:56:13: error: redefinition of 'long double dist(std::pair<int, int>, std::pair<int, int>)'
   56 | long double dist(pt a,pt b){
      |             ^~~~
a.cc:18:13: note: 'long double dist(std::pair<int, int>, std::pair<int, int>)' previously defined here
   18 | long double dist(pt a,pt b){
      |             ^~~~
a.cc:61:5: error: redefinition of 'int main()'
   61 | int main(){
      |     ^~~~
a.cc:23:5: note: 'int main()' previously defined here
   23 | int main(){
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
#define e 0.0000001
using namespace std;
double distance(int x1,int y1,int x2,int y2)
{
    double d;
    double x = (x1-x2)*(x1-x2);
    double y = (y1-y2)*(y1-y2);
    d = sqrt(x+y);
    return d/2.0;
}
int main()
{
    int n;
    cin>>n;
    int X[n];
    int Y[n];
    for(int i=0;i<n;i++)
        cin>>X[i]>>Y[i];
    double maxD=0.0;
    double Dist;
    for(int i=0;i<n;i++)
    {
        for(int j=i+1;j<n;j++)
        {
            Dist = distance(X[i],Y[i],X[j],Y[j]);
            if((Dist>maxD)
                maxD = Dist;
        }
    }
    cout<<maxD<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:27: error: expected ';' before 'maxD'
   27 |             if((Dist>maxD)
      |                           ^
      |                           ;
   28 |                 maxD = Dist;
      |                 ~~~~       
a.cc:29:9: error: expected primary-expression before '}' token
   29 |         }
      |         ^
a.cc:28:29: error: expected ')' before '}' token
   28 |                 maxD = Dist;
      |                             ^
      |                             )
   29 |         }
      |         ~                    
a.cc:27:15: note: to match this '('
   27 |             if((Dist>maxD)
      |               ^
a.cc:29:9: error: expected primary-expression before '}' token
   29 |         }
      |         ^
Language: C++

#include <cstdio>
#include <cmath>
#include <iostream>
#include <iomanip>
#define ld long double
#define MAX_REPS 50000
using namespace std;

int n, wh;
ld x[1005], y[1005];
ld v1, v2;
ld d, e;
ld p = 0.1;

ld d2(ld a, ld b) {
	return a*a + b*b;
}

int main() {
	cin>>n;
	for (int i = 1; i <= n; i++){
		cin>>x[i]>>y[i];
		v1 += x[i];
        v2 += y[i];
	}
	v1 /= 1.0 * n;
	v2 /= 1.0 * n;
	for (int i = 1; i <= MAX_REPS; i++) {
		wh = 0;
		d = d2(v1 - x[0], v2 - y[0]);
		for (int j = 1; j < n; j++) {
			e = d2(v1 - x[j], v2 - y[j]);
			if (d < e)
				d = e, f = j;
		}
		v1 += (x[wh] - v1)*p;
		v2 += (y[wh] - v2)*p;
		p *= 0.999;
	}
	cout<<setprecision(10)<<fixed<<sqrt(d)<<'\n';
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:40: error: 'f' was not declared in this scope
   34 |                                 d = e, f = j;
      |                                        ^
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int DigitsSum(int num){
	int digits;
	int sum = 0;
	while (num) {
		digits = num % 10;
		sum += digits;
		num /= 10;
	}
	return sum;
}

int main() {
	//vector<int> a(N);
	//for (int i = 0; i < N; i++) cin >> a[i]
	//sort(a.begin(), a.end() , greater<int>());

	int N;
	cin >> N;
	vector<vector<double>> X(N,vector<double>(2));

	for (int i = 0; i < N; i++) cin >> X[i][0] >> X[i][1];

	double temp=0;
	double temp1;
	for (int i = 0; i < N; i++)
		for (int j = 0; j < N; j++) {
			if (i != j) {
				temp1 = (X[i][0] - X[j][0]) * (X[i][0] - X[j][0]) + (X[i][1] - X[j][1]) * (X[i][1] - X[j][1]);
				if (temp < temp1) temp = temp1;
			}
		}

	cout << sqrt(temp)/2.0;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:17: error: 'sqrt' was not declared in this scope
   39 |         cout << sqrt(temp)/2.0;
      |                 ^~~~
Language: C++

// F.

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

using namespace std;

int main(int argc, char* argv[]) {
	cout.precision(20);
#ifdef _MSC_VER
	while (true)
#endif
	{
		int n = -1;
		cin >> n;
		if (n <= 0) return 0;
		vector<double> x(n), y(n);
		for (int i = 0; i < n; ++i) {
			cin >> x[i] >> y[i];
		}
		double r = 0;
		for (int i = 0; i < n; ++i) {
			for (int j = 0; j < n; ++j) {
				double dx = x[i] - x[j], dy = y[i] - y[j];
				r = max(r, sqrt(dx * dx + dy * dy));
			}
		}
		cout << (r / 2) << endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:28:44: error: 'sqrt' was not declared in this scope
   28 |                                 r = max(r, sqrt(dx * dx + dy * dy));
      |                                            ^~~~
Language: C++

#include <bits/stdc++.h>

#include <atcoder/all>

using namespace std;
using namespace atcoder;
using ll = long long;

int main() {
  int n;
  cin >> n;
  vector<pair<string, int>> vp(n);
  for (int i = 0; i < n; i++) {
    cin >> vp[i].first >> vp[i].second;
  }
  string x;
  cin >> x;

  bool sleep = false;
  int time = 0;
  for (int i = 0; i < n; i++) {
    if (sleep) {
      time += vp[i].second;
    }
    if (vp[i].first == x) sleep = true;
  }

  cout << time << endl;
}

Compiler output:
a.cc:3:10: fatal error: atcoder/all: No such file or directory
    3 | #include <atcoder/all>
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> P;

#define all(v) v.begin(), v.end()

const ll mod=1000000007;

ll countBits(ll in){
  int res=0;
  for(;in>0;in>>=1){
    if((in&0x01)!=0){
      res++;
    }
  }
  return res;
}

template<typename T>
void show2dVector(vector<vector<T>>& v){
  for(int i=0;i<v.size();i++){
    int m=v[i].size();
    cout<<i<<" : ";
    for(int j=0;i<m;i++){
      cout<<v[i][j]<<" ";
    }
    cout<<endl;
  }
}

void bfs(const vector<vector<int>>&g, int v, vector<bool>& seen){
  seen[v]=true;
  cout<<v<<" ";
  for(auto next: g[v]){
    if(seen[next]){
      continue;
    }
    bfs(g,next,seen);
  }
}

bool dfs(vector<vector<int>> &g,int start,int goal,vector<bool>&seen){
  bool res=false;
  seen[start]=true;
  if(start==goal){
    return true;
  }
  for(auto next: g[start]){
    if(seen[next]){
      continue;
    }
    res=dfs(g,next,goal,seen);
    if(res){
      break;
    }
  }
  return res;
}

ll gcd(ll a,ll b) {
  return b? gcd(b,a%b): a;  
}
ll lcm(ll a,ll b) {
  return a*b/gcd(a,b);
}
bool isLowerCase(char c){
  return (c>='a'&&c<='z');
}

char toLowerCase(char c){
  if(isLowerCase(c)){
    return c;
  }else{
    return c+'a'-'A';
  }
}
char toUpperCase(char c){
  if(isLowerCase(c)){
    return c-('a'-'A');
  }else{
    return c;
  }
}
ll powm(ll a,ll n, ll m){
  ll ret=1;
  while(n>0){
    if(n%2==1){
      ret=(ret*a)%m;
    }
    n>>=1;
    a=(a*a)%m;
  }
  return ret;
}

const string yesno(bool ans){
  return (ans?"Yes":"No");
}
void func(vector<int>& l, int depth, int idx){
  ;
}
int main() {
  int n;cin>>n;
  vector<string> s(n);
  vector<int> t(n);
  for(int i=0;i<n;i++){
    cin>>s[i];
    cin>>t[i];
  }
  string x;cin>>x;
  int ans=0;
  bool found=false;
  for(int i=0;i<n;i++){
    if(found){
      ans+=t[i];
    }
    if(s[i]==x){
      found=true;
    }
  }
  cout<<ans<<endl;
  return 0;
}


Compiler output:
a.cc:2:10: fatal error: atcoder/all: No such file or directory
    2 | #include <atcoder/all>
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <map>

using namespace std;

int main(){
  int n;
  cin>>n;
  map<string,int>mp;
  vector<int> T(n);
  for(int i=0;i<n;i++){
    string s;
    int t;
    cin>>s>>t;
    mp[s]=i;
    T[i]=t;
  }
  string x;
  cin>>x;
  int sum=0;
  for(int i=mp[x]+1;i<n;i++)sum+=T[i];
  cout<<sum<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'vector' was not declared in this scope
   10 |   vector<int> T(n);
      |   ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include <map>
  +++ |+#include <vector>
    3 | 
a.cc:10:10: error: expected primary-expression before 'int'
   10 |   vector<int> T(n);
      |          ^~~
a.cc:16:5: error: 'T' was not declared in this scope
   16 |     T[i]=t;
      |     ^
a.cc:21:34: error: 'T' was not declared in this scope
   21 |   for(int i=mp[x]+1;i<n;i++)sum+=T[i];
      |                                  ^
Language: C++


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

using ll = long long;


ll a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r;
string s, t, u;
ll v, w, x, y, z;



int main() {
    cin >> n;

    string s[50];
    int t[50];
    rep(i, n) {
		cin >> s[i] >> t[i];
	}
	string x;
	cin >> x;
	r = 0;
	rep(i, n) {
		if (s[i] == x) {
			repft(j, i + 1, n) {
				ret += t[j];
			}
			cout << r << endl;
			return 0;
		}
	}


}




Compiler output:
a.cc: In function 'int main()':
a.cc:28:25: error: 'repft' was not declared in this scope; did you mean 'rep'?
   28 |                         repft(j, i + 1, n) {
      |                         ^~~~~
      |                         rep
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll,ll>>
#define VVL vector<vector<ll>>
#define VVP vector<vector<pair<ll,ll>>>
#define PL pair<ll,ll>
#define ALL(v) (v).begin(), (v).end()
ll d1[4] = {1, -1, 0, 0};
ll d2[4] = {0, 0, 1, -1};

int main(){
  ll n;
  cin >> n;
  VS s(n);
  VL t(n);
  rep(i, 0, n) cin >> s[i] >> t[i];
  string x;
  cin >> x;
  ll ans = 0;
  rep(i, 0, n){
    ans += t[i];
    if(s[i] == x) break;
  }
  cout << *accumulate(ALL(t),0LL) - ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:11: error: invalid type argument of unary '*' (have 'long long int')
   29 |   cout << *accumulate(ALL(t),0LL) - ans << endl;
      |           ^~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for(ll i=0;i<n;i++)
#define repl(i,l,r) for(ll i=(l);i<(r);i++)
#define per(i,n) for(ll i=n-1;i>=0;i--)
#define perl(i,r,l) for(ll i=r-1;i>=l;i--)
#define fi first
#define se second
#define pb push_back
#define ins insert
#define all(x) (x).begin(),(x).end()
using vl=vector<ll>;
using vvl=vector<vector<ll>>;
const ll MOD=1000000007;
const ll MOD9=998244353;
const int inf=1e9+10;
const ll INF=4e18;
const ll dy[8]={1,0,-1,0,1,1,-1,-1};
const ll dx[8]={0,-1,0,1,1,-1,1,-1};
using Graph = vector<vector<int>>;
const ll mod=1000000007;
const int MAX_N = 1000;         // n の最大値
 
double nCk(int n, int k) {
double res=1.0;
for(int i=0; i<n; i++){
res*=0.5;}
for(int i=0; i<k; i++){
res*=(double)(n-i);
res/=(double)(k-i);
}
return res;}
 
int main() {
ll n;
cin>>n;
string s[n]={};
ll a[n]={};
rep(i,n){
cin>>s[i]>>a[i];}
string t;
cin >>t;
ll ca=0;
rep(i,p){
if(s[i]==t){
ca=i;
break;}}
ll ans =0;
repl(i,ca+1,n){
ans+=a[i];}
cout << ans << endl;}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:45:7: error: 'p' was not declared in this scope
   45 | rep(i,p){
      |       ^
a.cc:4:31: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(ll i=0;i<n;i++)
      |                               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for(ll i=0;i<n;i++)
#define repl(i,l,r) for(ll i=(l);i<(r);i++)
#define per(i,n) for(ll i=n-1;i>=0;i--)
#define perl(i,r,l) for(ll i=r-1;i>=l;i--)
#define fi first
#define se second
#define pb push_back
#define ins insert
#define all(x) (x).begin(),(x).end()
using vl=vector<ll>;
using vvl=vector<vector<ll>>;
const ll MOD=1000000007;
const ll MOD9=998244353;
const int inf=1e9+10;
const ll INF=4e18;
const ll dy[8]={1,0,-1,0,1,1,-1,-1};
const ll dx[8]={0,-1,0,1,1,-1,1,-1};
using Graph = vector<vector<int>>;
const ll mod=1000000007;
const int MAX_N = 1000;         // n の最大値
 
double nCk(int n, int k) {
double res=1.0;
for(int i=0; i<n; i++){
res*=0.5;}
for(int i=0; i<k; i++){
res*=(double)(n-i);
res/=(double)(k-i);
}
return res;}
 
int main() {
ll n;
cin>>n;
string s[n]={};
ll a[n]={};
rep(i,n){
cin>>s[i]>>a[i];}
string t;
cin >>t;
ll ca=0;
rep(i,p){
if(s[i]==t){
ca=i;
break;}}
ll ans =0;
rep(i,ca+1,n){
ans+=a[i];}
cout << ans << endl;}
  

Compiler output:
a.cc:50:13: error: macro "rep" passed 3 arguments, but takes just 2
   50 | rep(i,ca+1,n){
      |             ^
a.cc:4:9: note: macro "rep" defined here
    4 | #define rep(i,n) for(ll i=0;i<n;i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:45:7: error: 'p' was not declared in this scope
   45 | rep(i,p){
      |       ^
a.cc:4:31: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(ll i=0;i<n;i++)
      |                               ^
a.cc:50:1: error: 'rep' was not declared in this scope
   50 | rep(i,ca+1,n){
      | ^~~
Language: C++

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

int main(){
  int N;
  cin>>N;
  vector<pair<string,int>> A(N);
  for(pair<string,int> &i:A)
    cin>>i.first>>i.second;
  string X;
  cin>>X;
  bool bo=false;
  int j=0;
  for(pair<string,int> &i:A){
    if(bo)
      j+=A.first;
    else if(A.second==X)
      bo=true;
  }
  cout<<j<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: 'class std::vector<std::pair<std::__cxx11::basic_string<char>, int> >' has no member named 'first'
   16 |       j+=A.first;
      |            ^~~~~
a.cc:17:15: error: 'class std::vector<std::pair<std::__cxx11::basic_string<char>, int> >' has no member named 'second'
   17 |     else if(A.second==X)
      |               ^~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <numeric>
using namespace std;

int main() {
  int N;
  cin >> N;
  vector<string> s(N);
  vector<int> t(N);
  for (int i = 0; i < N; i++) {
    cin >> s[i] >> t[i];
  }
  string X;
  cin >> X;

  int i = find(begin(s),end(s),X) - begin(s) + 1;
  cout << accumulate(begin(t)+i,end(t),0) << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: no matching function for call to 'find(std::vector<std::__cxx11::basic_string<char> >::iterator, std::vector<std::__cxx11::basic_string<char> >::iterator, std::string&)'
   17 |   int i = find(begin(s),end(s),X) - begin(s) + 1;
      |           ~~~~^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:17:15: note:   '__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >' is not derived from 'std::istreambuf_iterator<_CharT>'
   17 |   int i = find(begin(s),end(s),X) - begin(s) + 1;
      |           ~~~~^~~~~~~~~~~~~~~~~~~
Language: C++

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

int main() {
    int n;
    cin >> n;
    pair<string,int> sleep[n];
    for(int i=0;i<n;i++){
        string s;
        int a;
        cin >> s >> a;
        sleep[i].first = s;
        sleep[i].second = a;
    }
    string time;
    cin >> time;
    bool flag = false;
    int count = 0;
    for(int i=0;i<n;i++){
        if(flag){
            count += sleep[i].second
        }
        if(sleep[i].first==time) flag = true;
    }
    cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:37: error: expected ';' before '}' token
   21 |             count += sleep[i].second
      |                                     ^
      |                                     ;
   22 |         }
      |         ~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int (i) = 0; (i) < (int)(n); i++) 
#define FOR(i, a, b) for(int (i) = a; (i) < (int)b; i++)
#define RREP(i, n) for(int (i)=((int)(n)-1); (i)>=0; i--)
#define RFOR(i, a, b) for(int (i) =((int)(b)-1); (i)>=(int)a; i--)
#define ALL(v) (v).begin(),(v).end()
#define MOD 1000000007
#define NIL -1
#define FI first
#define SE second
#define MP make_pair
#define PB push_back
#define SZ(x)  (int)x.size()
#define SP(x)  setprecision((int)x)


using namespace std ;
typedef long long ll;
typedef vector<int> vint;
typedef vector<vint> vvint;
typedef vector<string> vstr;
typedef pair<int, int> pii;
const int INF = 1e9;
const ll LINF = 1e18;
const double EPS = 1e-9;
ll gcd(ll a, ll b) {return b ? gcd(b, a % b) : a;} //最大公約数
ll lcm(ll a, ll b) {return a / gcd(a, b) * b;} //最小公倍数

//-------------------------------------------------
// 
void yes(){
  cout <<"Yes"<<endl ;
}
void no(){
  cout <<"No"<<endl ;
}


//-------------------------------------------------
// メモ
/*






*/
//-------------------------------------------------


int main()
{
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n ;
  cin >> n ;
  vector<pair<string,int>> tone(n) ;
  REP(i,n){
    string s ;
    int t ;
    cin >> s >> t ;
    tone[i] = MP(s,t) ;
  }
  string t ;
  cin >> t ;
  int ans = 0 ;
  bool f = false ;
  REP(i,n){
    if(f){
      ans += tone[i].SE ;
    }
    if(t==tont[i].FI){
      f = true ;
    }
  }
  
  cout <<ans <<endl ;
  
  
  
  return 0 ;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:73:11: error: 'tont' was not declared in this scope; did you mean 'tone'?
   73 |     if(t==tont[i].FI){
      |           ^~~~
      |           tone
Language: C++

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

int main() {
	int N;
	cin >> N;
	unordered_map<string, int> order;
	vector<int> times(N,0);
	for (int i = 0; i < N; i++) {
		string title;
		int time;
		cin >> title >> time;
		times[i] = time;
		order[title] = i;
	}

	string X;
	cin >> X;
	int sleep_first = order[X] + 1;
	int ans = 0;
	for (int i = sleep_first; i < N; i++) ans += times[i];
	cout << ans << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'vector' was not declared in this scope
    9 |         vector<int> times(N,0);
      |         ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include <unordered_map>
  +++ |+#include <vector>
    3 | using namespace std;
a.cc:9:16: error: expected primary-expression before 'int'
    9 |         vector<int> times(N,0);
      |                ^~~
a.cc:14:17: error: 'times' was not declared in this scope; did you mean 'time'?
   14 |                 times[i] = time;
      |                 ^~~~~
      |                 time
a.cc:22:54: error: 'times' was not declared in this scope; did you mean 'timex'?
   22 |         for (int i = sleep_first; i < N; i++) ans += times[i];
      |                                                      ^~~~~
      |                                                      timex
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#pragma GCC optimize(3)
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma comment(linker, "/stack:200000000")
#include <cstdio>
#include <cstring>
#include <string>
#include <string.h>
#include <cmath>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <set>
#include <vector>
#include <map>
#include <iomanip>
#include <stdlib.h>
#include <queue>
#include <list>
#include <stack>
#include <bitset>
#include <fstream>
#include <sstream>
#include <random>
#include <assert.h>
#include <unordered_map>
#define SIZE 200010
#define rep(i, a, b) for (int i = a; i <= b; ++i)
#define ll long long
#define mp make_pair
#define pi acos(-1.0)
#define eps 1e-12
using namespace std;
void io() { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); }
int n, cnt, ans;

int main() {
	io(); cin >> n;
	vector<pair<string, int> > vec;
	rep(i, 1, n) {
		string s; int x;
		cin >> s >> x;
		vec.emplace_back(mp(s, x));
	}
	string sp; cin >> sp; bool f = false;
	rep(i, 1, n) {
		if (f) { ans += vec[i - 1].second; continue; }
		if (sp._Equal(vec[i - 1].first)) f = true;
	}
	cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:49:24: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named '_Equal'
   49 |                 if (sp._Equal(vec[i - 1].first)) f = true;
      |                        ^~~~~~
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#pragma GCC optimize(3)
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma comment(linker, "/stack:200000000")
#include <bits/stdc++.h>
#define SIZE 200010
#define rep(i, a, b) for (int i = a; i <= b; ++i)
#define ll long long
#define mp make_pair
#define pi acos(-1.0)
#define eps 1e-12
using namespace std;
void io() { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); }
int n, cnt, ans;

int main() {
	io(); cin >> n;
	vector<pair<string, int> > vec;
	rep(i, 1, n) {
		string s; int x;
		cin >> s >> x;
		vec.emplace_back(mp(s, x));
	}
	string sp; cin >> sp; bool f = false;
	rep(i, 1, n) {
		if (f) { ans += vec[i - 1].second; continue; }
		if (sp._Equal(vec[i - 1].first)) f = true;
	}
	cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:24: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named '_Equal'
   28 |                 if (sp._Equal(vec[i - 1].first)) f = true;
      |                        ^~~~~~
Language: C++

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

int main() {
  int N,count;
  count=0;
  cin>>N;
  vector<string>vec(N);
  vector<int>time(N);
  for(int i=0;i<N;i++){
    string s;
    int a;
    cin>>s>>a;
    vec.at(i)=s;
    time.at(i)=a;
  }
  string last;
  cin>>last;
  for(int i=0;i<N-1;i++){
    if(vec.at(i)==last){
      for(int j=i+1;j<N;j++){
        count+=vec.at(j);
      }
      cout<<count<<endl;
      break;
    }
    if(count==0)cout<<0<<endl;
  }
    
      
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:14: error: no match for 'operator+=' (operand types are 'int' and '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'})
   22 |         count+=vec.at(j);
      |         ~~~~~^~~~~~~~~~~
Language: C++

#include bits/stdc++.h

using namespace std;

int main()
{
  int n;
  cin >> n;
  vector<string> s(n);
  vector<int> t(n);
  for (int i = 0; i < n; i++)
  {
    cin >> s[i] >> t[i];
  }
  string x;
  cin >> x;
  bool ok = false;
  int rez = 0;
  for (int i = 0; i < n; i++)
  {
    if (ok)
    {
      rez += t[i];
    }
    if (s[i] == x)
    {
      ok = true;
    }
  }
  cout << rez << '\n';
}

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include bits/stdc++.h
      |          ^~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include bits/stdc++.h
a.cc:9:3: error: 'vector' was not declared in this scope
    9 |   vector<string> s(n);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #include bits/stdc++.h
a.cc:9:10: error: 'string' was not declared in this scope
    9 |   vector<string> s(n);
      |          ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #include bits/stdc++.h
a.cc:9:18: error: 's' was not declared in this scope
    9 |   vector<string> s(n);
      |                  ^
a.cc:10:10: error: expected primary-expression before 'int'
   10 |   vector<int> t(n);
      |          ^~~
a.cc:13:20: error: 't' was not declared in this scope
   13 |     cin >> s[i] >> t[i];
      |                    ^
a.cc:15:9: error: expected ';' before 'x'
   15 |   string x;
      |         ^~
      |         ;
a.cc:16:10: error: 'x' was not declared in this scope
   16 |   cin >> x;
      |          ^
a.cc:23:14: error: 't' was not declared in this scope
   23 |       rez += t[i];
      |              ^
a.cc:30:3: error: 'cout' was not declared in this scope
   30 |   cout << rez << '\n';
      |   ^~~~
a.cc:30:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    String[] a=new String[n];
    int[] b=new int[n];
    for(int i=0;i<n;i++){
      a[i]=sc.next();
      b[i]=sc.nextInt();
    }
    String s=sc.next();
    int c=0;
    for(;c<n;c++){
      if(a[i].equals(s)){
        break;
      }
    }
    int ans=0;
    for(int i=c+1;i<n;i++){
      ans+=b[i];
    }
    System.out.println(ans);
  }
}

Compiler output:
Main.java:16: error: cannot find symbol
      if(a[i].equals(s)){
           ^
  symbol:   variable i
  location: class Main
1 error
Language: C++

include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<string,ll> P;

int main() {
	int n; cin>>n;
    vector<P> x(n);
  	for (int i=0; i<n; ++i) {
    	cin>>x[i].first>>x[i].second;
    }
  	string s; cin>>s;
  	int ans = 0;
  	bool sleep = false;
  	for (int i=0; i<n; ++i) {
      	if (sleep) ans += x[i].second;
    	if (x[i].first == s) sleep = true;
    }
  	cout<<ans<<endl;
  	return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc:4:9: error: 'pair' does not name a type
    4 | typedef pair<string,ll> P;
      |         ^~~~
a.cc: In function 'int main()':
a.cc:7:16: error: 'cin' was not declared in this scope
    7 |         int n; cin>>n;
      |                ^~~
a.cc:8:5: error: 'vector' was not declared in this scope
    8 |     vector<P> x(n);
      |     ^~~~~~
a.cc:8:12: error: 'P' was not declared in this scope
    8 |     vector<P> x(n);
      |            ^
a.cc:8:15: error: 'x' was not declared in this scope
    8 |     vector<P> x(n);
      |               ^
a.cc:12:9: error: 'string' was not declared in this scope
   12 |         string s; cin>>s;
      |         ^~~~~~
a.cc:12:24: error: 's' was not declared in this scope
   12 |         string s; cin>>s;
      |                        ^
a.cc:19:9: error: 'cout' was not declared in this scope
   19 |         cout<<ans<<endl;
      |         ^~~~
a.cc:19:20: error: 'endl' was not declared in this scope
   19 |         cout<<ans<<endl;
      |                    ^~~~
Language: C++

include <bits/stdc++.h>
typedef ll long long 
typedef P pair<string,ll>
using namespace std;

int main() {
	int n; cin>>n;
    vector<P> x(n);
  	for (int i=0; i<n; ++i) {
    	cin>>x[i].first>>x[i].second;
    }
  	string s; cin>>s;
  	int ans = 0;
  	bool sleep = false;
  	for (int i=0; i<n; ++i) {
      	if (sleep) ans += x[i].second;
    	if (x[i].first == s) sleep = true;
    }
  	cout<<ans<<endl;
  	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:16: error: 'cin' was not declared in this scope
    7 |         int n; cin>>n;
      |                ^~~
a.cc:8:5: error: 'vector' was not declared in this scope
    8 |     vector<P> x(n);
      |     ^~~~~~
a.cc:8:12: error: 'P' was not declared in this scope
    8 |     vector<P> x(n);
      |            ^
a.cc:8:15: error: 'x' was not declared in this scope
    8 |     vector<P> x(n);
      |               ^
a.cc:12:9: error: 'string' was not declared in this scope
   12 |         string s; cin>>s;
      |         ^~~~~~
a.cc:12:24: error: 's' was not declared in this scope
   12 |         string s; cin>>s;
      |                        ^
a.cc:19:9: error: 'cout' was not declared in this scope
   19 |         cout<<ans<<endl;
      |         ^~~~
a.cc:19:20: error: 'endl' was not declared in this scope
   19 |         cout<<ans<<endl;
      |                    ^~~~
Language: C++

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

int main(){
  int n;cin >> n;
  string s[n];int t[n];rep(i,n)cin >> s[i] >> t[i];
  string x;
  int ans;bool falg = false;
  rep(i,n){
    if(flag == true)ans += t[i];
    if(s[i] == x)flag = true;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: 'flag' was not declared in this scope; did you mean 'falg'?
   12 |     if(flag == true)ans += t[i];
      |        ^~~~
      |        falg
a.cc:13:18: error: 'flag' was not declared in this scope; did you mean 'falg'?
   13 |     if(s[i] == x)flag = true;
      |                  ^~~~
      |                  falg