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

#include <stdio.h>
int main(){

  int n,m,i,j,c=0;

  char a[11][300];
  char b[11][300];

  scanf("%d",&n);

  for(i=1;i<=n;i++){
    scanf("%s",a[i]);
  }


  scanf("%d",&m);

  for(j=1;j<=m;j++){
    scanf("%s",b[j]);
  }



  // for(i=1;i<=n;i++){
  // printf("%s\n",a[i]);
  //  }
  

  for(i=1;i<=m;i++){
    for(j=1;j<=n;j++){

      if(strcmp(a[j],b[i])==0){
	c++;
	break;
      }
    }
     if(strcmp(a[j],b[i])!=0){
	printf("Unknown %s\n",b[i]);
      }
    
      if(c%2!=0){
	printf("Opened by %s\n",a[j]);
      }
      else{
	printf("Closed by %s\n",a[j]);
      }
  }




  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:10: error: 'strcmp' was not declared in this scope
   32 |       if(strcmp(a[j],b[i])==0){
      |          ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <stdio.h>
  +++ |+#include <cstring>
    2 | int main(){
a.cc:37:9: error: 'strcmp' was not declared in this scope
   37 |      if(strcmp(a[j],b[i])!=0){
      |         ^~~~~~
a.cc:37:9: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

#include <stdio.h>
int main(){

  int n,m,i,j,c=0;

  char a[20][300];
  char b[20][300];

  scanf("%d",&n);

  for(i=1;i<=n;i++){
    scanf("%s",a[i]);
  }


  scanf("%d",&m);

  for(j=1;j<=m;j++){
    scanf("%s",b[j]);
  }



  // for(i=1;i<=n;i++){
  // printf("%s\n",a[i]);
  //  }
  

  for(i=1;i<=m;i++){
    for(j=1;j<=n;j++){

      if(strcmp(a[j],b[i])==0){
	c++;
	break;
      }
    }
    if(strcmp(a[j],b[i])!=0){
      printf("Unknown %s\n",b[i]);
    }
    else{
      if(c%2!=0&&c!=0){
	printf("Opened by %s\n",a[j]);
      }
      if(c%2==0&&c!=0){
	printf("Closed by %s\n",a[j]);
      }
    }
  }





  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:10: error: 'strcmp' was not declared in this scope
   32 |       if(strcmp(a[j],b[i])==0){
      |          ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <stdio.h>
  +++ |+#include <cstring>
    2 | int main(){
a.cc:37:8: error: 'strcmp' was not declared in this scope
   37 |     if(strcmp(a[j],b[i])!=0){
      |        ^~~~~~
a.cc:37:8: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

#include <stdio.h>
int main(){

  int n,m,i,j,c=0;

  char a[300][12];
  char b[300][12];

  scanf("%d",&n);

  for(i=1;i<=n;i++){
    scanf("%s",a[i]);
  }


  scanf("%d",&m);

  for(j=1;j<=m;j++){
    scanf("%s",b[j]);
  }



  // for(i=1;i<=n;i++){
  // printf("%s\n",a[i]);
  //  }
  

  for(i=1;i<=m;i++){
    for(j=1;j<=n;j++){

      if(strcmp(a[j],b[i])==0){
	c++;
	break;
      }
    }
    if(strcmp(a[j],b[i])!=0){
      printf("Unknown %s\n",b[i]);
    }
    else{
      if(c%2!=0&&c!=0){
	printf("Opened by %s\n",a[j]);
      }
      if(c%2==0&&c!=0){
	printf("Closed by %s\n",a[j]);
      }
    }
  }





  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:10: error: 'strcmp' was not declared in this scope
   32 |       if(strcmp(a[j],b[i])==0){
      |          ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <stdio.h>
  +++ |+#include <cstring>
    2 | int main(){
a.cc:37:8: error: 'strcmp' was not declared in this scope
   37 |     if(strcmp(a[j],b[i])!=0){
      |        ^~~~~~
a.cc:37:8: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

n = int(input())
xs = []
for i in range(n): xs.append(input())
m = int(input())
flag = 1
for i in range(m):
    s = input()
    if s in xs:
        print("Opened" if flag == 1 else "Closed", "by", s)
        flag ^= 1
    else:
        print("Unknown", s)

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C++

#include<iostream>
#include<string>
#include<vector>
using namespace std;
int main() {
	int n; cin >> n;
	vector<string>l;
	for (int i = 0; i < n; i++){
		string s; cin >> s;
		l.push_back(s);
	}
	cin >> n;
	bool b = false;//false->closed
	for (int i = 0; i < n; i++){
		string s; cin >> s;
		if (find(l.begin(), l.end(), s) != l.end()) {
			if (b){
				cout << "Closed by " << s << endl;
				b = false;
			}
			else{
				cout << "Opened by " << s << endl;
				b = true;
			}
		}
		else{
			cout << "Unknown " << s << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: 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&)'
   16 |                 if (find(l.begin(), l.end(), s) != l.end()) {
      |                     ~~~~^~~~~~~~~~~~~~~~~~~~~~~
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:16:25: 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>'
   16 |                 if (find(l.begin(), l.end(), s) != l.end()) {
      |                     ~~~~^~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<cstdio>

using namespace std;

int main(){
	int N,M;
	scanf("%d",&N);
	int flag=0,oc=0,i,j;
	char U[256][11];
	for(i=0;i<N;i++){
		scanf("%s",U[i]);
	}
	scanf("%d",&M);
	char T[11];
	for(i=0;i<M;i++){
		flag=0;
		scanf("%s",T);
		for(j=0;j<N;j++){
			if(strcmp(U[j],T)==0){
				flag=1;
				break;
			}
		}
		if(flag==0){
			cout<<"Unknown "<<T<<endl;
		}else if(oc==0){
			cout<<"Opened by "<<T<<endl;
			oc=1;
		}else{
			cout<<"Closed by "<<T<<endl;
			oc=0;
		}
	}


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:28: error: 'strcmp' was not declared in this scope
   20 |                         if(strcmp(U[j],T)==0){
      |                            ^~~~~~
a.cc:3:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<cstdio>
  +++ |+#include <cstring>
    3 |
Language: C++

#include <iostream>
#include <cstdio>

using namespace std;

int main(){
	int N,M;
	scanf("%d",&N);
	int flag=0,oc=0,i,j;
	char U[256][11];
	for(i=0;i<N;i++){
		scanf("%s",U[i]);
	}
	scanf("%d",&M);
	char T[11];
	for(i=0;i<M;i++){
		flag=0;
		scanf("%s",T);
		for(j=0;j<N;j++){
			if(strcmp(U[j],T)==0){
				flag=1;
				break;
			}
		}
		if(flag==0){
			cout<<"Unknown "<<T<<endl;
		}else if(oc==0){
			cout<<"Opened by "<<T<<endl;
			oc=1;
		}else{
			cout<<"Closed by "<<T<<endl;
			oc=0;
		}
	}


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:28: error: 'strcmp' was not declared in this scope
   20 |                         if(strcmp(U[j],T)==0){
      |                            ^~~~~~
a.cc:3:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <cstdio>
  +++ |+#include <cstring>
    3 |
Language: C++

#include <cstdio>
#include <string>

using namespace std;

int N, M;
string U[256];

int main() {
  char s[11];
  scanf("%d", &N);
  for (int i=0;i<N;i++) {
    scanf("%s", s);
    U[i] = s;
  }
  scanf("%d", &M);
  bool opened = false;
  for (int i=0;i<M;i++) {
    scanf("%s", s);
    const string* p = find(U, U+N, (string)s);
    if (!p->empty()) {
      opened = !opened;
      printf("%s by %s\n", (opened ? "Opened" : "Closed"), s);
    } else {
      printf("Unknown %s\n", s);
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:23: error: 'find' was not declared in this scope
   20 |     const string* p = find(U, U+N, (string)s);
      |                       ^~~~
Language: C++

#if 0
#include <bits/stdc++.h>
#else
#include "../../bits/stdc++.h"
#endif

#define FOR(i,a,b) for(int i = (a);i < (b);i++)
#define RFOR(i,a,b) for(int i = (b)-1;i >= (a);i--)
#define REP(i,n) FOR(i,0,(n))
#define RREP(i,n) RFOR(i,0,(n))

using namespace std;

typedef pair<int, int> P;
#define pb push_back
#define mp make_pair
#define ft first
#define sd second

int N, M;
char U[258][12], T[258][12];

void input(){
  cin>>N;
  REP(i, N)cin>>U[i];
  cin>>M;
    REP(i, M)cin>>T[i];
}

void solve(){
  bool d=true;
  REP(i, M) {
    bool c = false;
    REP(j, N) {
      c = [](int x, int y) {
        int k;
        if(U[x][0]!=T[y][0])return false;
        for(k=1;U[x][k-1]!='\0';k++) {
          if(U[x][k]!=T[y][k])return false;
        }
        return true;
      }(j, i);
      if(c) {
        if(d)cout<<"Opened by "<<T[i];
        else cout<<"Closed by "<<T[i];
        d = !d;
        break;
      }
    }
    if(!c)cout<<"Unknown "<<T[i];
    cout<<endl;
  }
}

int main(){
  cin.tie(0);

  input();
  solve();

  return 0;
}

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

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

using namespace std;

int n, m;
vector<string> ids;

int main() {
    cin >> n;
    for (int i = 0; i < n; ++i) {
        string s;
        cin >> s;
        ids.push_back(s);
    }

    cin >> m;
    bool locked = true;
    for (int i = 0; i < m; ++i) {
        string s;
        cin >> s;
        auto itr = find(ids.begin(), ids.end(), s);
        if (itr != ids.end()) {
            if (locked) cout << "Opened by " << s << endl;
            else cout << "Closed by " << s << endl;
            locked = !locked;
        } else {
            cout << "Unknown " << s << endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:24: 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&)'
   23 |         auto itr = find(ids.begin(), ids.end(), s);
      |                    ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
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:23:24: 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>'
   23 |         auto itr = find(ids.begin(), ids.end(), s);
      |                    ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

bool flag;

bool check(string t, string u){
 if(s==t){
  if(!flag)cout << "Opened by " << t << endl;
  else cout << "Closed by " << t << endl;
  flag ^= 1;
  return true;
 }
 return false;
}


int main(){
 int n,i,j,m;
 bool ans=false;
 string u[260],t[260];
 cin >> n;
 for(i=0;i<n;i++)cin >> u[i];
 cin >> m;
 for(i=0;i<m;i++)cin >> t[i];
 for(i=0;i<m;i++){
  ans = false;
  for(j=0;j<n;j++)ans|=check(t[i],u[j]);
  if(!ans)cout << "Unknown " << t[i] << endl;
 }
 return 0;
}

 


Compiler output:
a.cc: In function 'bool check(std::string, std::string)':
a.cc:8:5: error: 's' was not declared in this scope
    8 |  if(s==t){
      |     ^
Language: C++

#include <iostream>
#include <string>

using namespace std;
 
bool flag;
 
bool check(string t, string u){
 if(s==t){
  if(!flag)cout << "Opened by " << t << endl;
  else cout << "Closed by " << t << endl;
  flag ^= 1;
  return true;
 }
 return false;
}
 
 
int main(){
 int n,i,j,m;
 bool ans=false;
 string u[260],t[260];
 cin >> n;
 for(i=0;i<n;i++)cin >> u[i];
 cin >> m;
 for(i=0;i<m;i++)cin >> t[i];
 for(i=0;i<m;i++){
  ans = false;
  for(j=0;j<n;j++)ans|=check(t[i],u[j]);
  if(!ans)cout << "Unknown " << t[i] << endl;
 }
 return 0;
}


Compiler output:
a.cc: In function 'bool check(std::string, std::string)':
a.cc:9:5: error: 's' was not declared in this scope
    9 |  if(s==t){
      |     ^
Language: C++

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

int main(){
　int N,M;
  int cnt1 = 0;
  int cnt2 = 0;
  string U[256];
  string T[256];
  cin>>N;
  for(int i=0;i<N;i++) cin>>U[i];
  cin>>M;
  for(int j=0;j<M;j++) cin>>T[j];

  for(int j=0;j<M;j++){
  for(int i=0;i<N;i++){
 if(T[j] == U[i]) cnt1++;
 else cnt2++;
 }
if(cnt1 % 2 == 1 && cnt2 != N) cout<<"Opened by"<<" "<<T[j]<<endl;
if(cnt1 % 2 == 0 && cnt2 != N) cout<<"Closed by"<<" "<<T[j]<<endl;
if(cnt2 == N) cout<<"Unknown"<<" "<<T[j]<<endl;
cnt2 = 0;
}
 return 0;
}



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

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

int main(){
　int N, M;
  int cnt1 = 0;
  int cnt2 = 0;
  string U[256];
  string T[256];
  cin>>N;
  for(int i=0;i<N;i++) cin>>U[i];
  cin>>M;
  for(int j=0;j<M;j++) cin>>T[j];

  for(int j=0;j<M;j++){
  for(int i=0;i<N;i++){
 if(T[j] == U[i]) cnt1++;
 else cnt2++;
 }
if(cnt1 % 2 == 1 && cnt2 != N) cout<<"Opened by"<<" "<<T[j]<<endl;
if(cnt1 % 2 == 0 && cnt2 != N) cout<<"Closed by"<<" "<<T[j]<<endl;
if(cnt2 == N) cout<<"Unknown"<<" "<<T[j]<<endl;
cnt2 = 0;
}
 return 0;
}



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

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

int main(){
　int N, M,cnt1,cnt2;
  cnt1 = 0;
  cnt2 = 0;
  string U[256],T[256];
  cin>>N;
  for(int i=0;i<N;i++) cin>>U[i];
  cin>>M;
  for(int j=0;j<M;j++) cin>>T[j];

  for(int j=0;j<M;j++){
  for(int i=0;i<N;i++){
 if(T[j] == U[i]) cnt1++;
 else cnt2++;
 }
if(cnt1 % 2 == 1 && cnt2 != N) cout<<"Opened by"<<" "<<T[j]<<endl;
if(cnt1 % 2 == 0 && cnt2 != N) cout<<"Closed by"<<" "<<T[j]<<endl;
if(cnt2 == N) cout<<"Unknown"<<" "<<T[j]<<endl;
cnt2 = 0;
}
 return 0;
}


Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　int N, M,cnt1,cnt2;
      | ^
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000int' was not declared in this scope
    5 | 　int N, M,cnt1,cnt2;
      | ^~~~~
a.cc:6:3: error: 'cnt1' was not declared in this scope
    6 |   cnt1 = 0;
      |   ^~~~
a.cc:7:3: error: 'cnt2' was not declared in this scope
    7 |   cnt2 = 0;
      |   ^~~~
a.cc:9:8: error: 'N' was not declared in this scope
    9 |   cin>>N;
      |        ^
a.cc:11:8: error: 'M' was not declared in this scope
   11 |   cin>>M;
      |        ^
Language: C++

#include<iostream>
#include<vector>
#include<string>
using namespace std;
while(1){
    int main(){
        int N;
        cin>> N;
        vector<string>U(N);
        for(auto &a : U){
            cin >>a;
        }
        int M;
        cin >>M;
        int flag=0,auth;
        for(int i=0;i<M;i++){
            string s;
            cin >>s;
            auth=0;
            for(int j=0;j<N;j++){
                if(U[j]==s){
                    if(flag==0){
                        cout<<"Opened by "<<s<<endl;
                        flag=1;
                    }
                    else{
                        cout<<"Closed by "<<s<<endl;
                        flag=0;
                    }
                    auth=1;
                    break;
                }
                if(auth)break;
            }
            if(auth==0)cout<<"Unknown "<<s<<endl;
        }
        return 0;
    }
}


Compiler output:
a.cc:5:1: error: expected unqualified-id before 'while'
    5 | while(1){
      | ^~~~~
Language: C++

#include <iostream>
#include <string>
#include <sstream>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
typedef long long ll;
ll p[19];
ll non(ll x){
	return x-x/3-x/5+x/15;
}
ll len(ll x){
	ll ret=0,num=x-x/3-x/5+x/15;
	int i;
	for(i=1;p[i]<=x;i++){
		ret+=(non(p[i]-1)-non(p[i-1]-1))*i;
		num-=(non(p[i]-1)-non(p[i-1]-1));
	}
	ret+=x/3*4;
	ret+=x/5*4;
	ret+=num*i;
	return ret;
}
string to_string(ll a){
	ostringstream os;
	os << a;
	return os.str();
}
int main(){
	ll s;
	cin >> s;
	p[0]=1;
	rep(i,18) p[i+1]=p[i]*10;
	ll ub=p[17],lb=0;
	while(ub-lb>1){
		ll m=(ub+lb)/2;
		if(s<=len(m)) ub=m;
		else lb=m;
	}
	string st;
	for(ll i=ub;st.size()<=50;i++){
		if(i%3==0 && i%5==0) st+="FizzBuzz";
		if(i%3==0 && i%5!=0) st+="Fizz";
		if(i%3!=0 && i%5==0) st+="Buzz";
		if(i%3!=0 && i%5!=0) st+=to_string(i);
	}
	cout << st.substr(s-1-len(lb),20) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:44:51: error: call of overloaded 'to_string(ll&)' is ambiguous
   44 |                 if(i%3!=0 && i%5!=0) st+=to_string(i);
      |                                          ~~~~~~~~~^~~
a.cc:23:8: note: candidate: 'std::string to_string(ll)'
   23 | string to_string(ll a){
      |        ^~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 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/basic_string.h:4240:3: note: candidate: 'std::string std::__cxx11::to_string(int)'
 4240 |   to_string(int __val)
      |   ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4259:3: note: candidate: 'std::string std::__cxx11::to_string(unsigned int)'
 4259 |   to_string(unsigned __val)
      |   ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4275:3: note: candidate: 'std::string std::__cxx11::to_string(long int)'
 4275 |   to_string(long __val)
      |   ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4294:3: note: candidate: 'std::string std::__cxx11::to_string(long unsigned int)'
 4294 |   to_string(unsigned long __val)
      |   ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4310:3: note: candidate: 'std::string std::__cxx11::to_string(long long int)'
 4310 |   to_string(long long __val)
      |   ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4327:3: note: candidate: 'std::string std::__cxx11::to_string(long long unsigned int)'
 4327 |   to_string(unsigned long long __val)
      |   ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4401:3: note: candidate: 'std::string std::__cxx11::to_string(float)'
 4401 |   to_string(float __val)
      |   ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4411:3: note: candidate: 'std::string std::__cxx11::to_string(double)'
 4411 |   to_string(double __val)
      |   ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4421:3: note: candidate: 'std::string std::__cxx11::to_string(long double)'
 4421 |   to_string(long double __val)
      |   ^~~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <sstream>

using namespace std;

#define rep(i,n) for(int i = 0;i < n;i++)
#define int long long
const int INF = 1e18;

string tostr(int n) {
	stringstream ss;
	ss << n;
	return ss.str();
}

//solve(i) i???????????°?????????????????????????§??????????
int solve(int m) {
	auto s = tostr(m);
	int n = s.size();
	int ans = 0;
	for (int i = 1; i <= n; i++) {
		int now = (i == n) ? m-1 : pow(10, i)-1;
		int pre = (n == 1) ? 0 : pow(10, i - 1)-1;
		int s3 = now / 3 - pre / 3;
		int s5 = now / 5 - pre / 5;
		int s15 = now / 15 - pre / 15;

		ans += i * (now - pre - s3 - s5 + s15);
		ans += (s3 + s5) * 4;
	}
	
	return ans;
}

string FizzBuzz(int m) {
	if (m == 0)return "";
	if (m % 3 == 0 && m % 5 == 0) {
		return "FizzBuzz";
	}
	if (m % 3 == 0) {
		return "Fizz";
	}
	if (m % 5 == 0) {
		return "Buzz";
	}
	return tostr(m);
}

signed main() {
	int s;
	while (cin >> s) {
		s--;
		int l = 0, r = INF;
		while (r - l > 1) {
			int m = (l + r) / 2;
			if (solve(m) > s) {
				r = m;
			}
			else {
				l = m;
			}
		}
		s -= solve(r - 1);
		string st = FizzBuzz(r - 1);
		while (st.size() < s + 20) {
			st += FizzBuzz(r++);
		}
		cout << st.substr(s, 20) << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'long long int solve(long long int)':
a.cc:23:44: error: 'pow' was not declared in this scope; did you mean 'now'?
   23 |                 int now = (i == n) ? m-1 : pow(10, i)-1;
      |                                            ^~~
      |                                            now
Language: C++

#include<string>
#include<deque>
#include<queue>
#include<vector>
#include<algorithm>
#include<iostream>
#include<set>
#include<cmath>
#include<tuple>
#include<map>
using namespace std;
typedef long long int llint;
typedef bool izryt;
#define mp make_pair
#define mt make_tuple
#define pub push_back
#define puf push_front
#define pob pop_back
#define pof pop_front
#define fir first
#define sec second
#define res resize
#define ins insert
#define era erase
const llint mod=10007;
const llint big=1e18;
const llint red=0xE869120;
const llint pro=1002001;
const llint eiya=5498513;
llint solve(llint num){
	//num?????§??????????????¨??????????????°????¨????
	//num???15????????°+10??????90<=num
	llint ans=5,i,j,gen=100,fu;
	ans+=4*(num/3+num/5);
	for(i=2;gen%10==0&&gen<=num;gen*=10){
		ans+=(8*i*(gen-gen/10))/15;i++;
		fu=gen;
	}
	ans+=(8*i*(num-fu))/15;
	return ans;
}
int main(void){
	llint s,bmin=6,bmax=5e15,gen;
	string out;
	cin>>s;
	if(s<1000){goto sless;}
	while(bmax-bmin!=1){
		gen=(bmax+bmin)/2;
		if(solve(gen*15+10)<s){bmin=gen;}
		else{bmax=gen;}
	}
	
	llint start=bmin-3,stl=solve(start*15+10),i=0;
	cout<<start<<" "<<stl<<endl;
	sless:i=start*15+11;
	if(s<1000){i=1;start=1;stl=0;}
	for(;stl+out.size()<s+20;i++){
		if(i%15==0){out+="FizzBuss";}
		else if(i%3==0){out+="Fizz";}
		else if(i%5==0){out+="Buzz";}
		else{out+=to_string(i);}
	}
	for(i=0;i<20;i++){cout<<out[s-1+i-stl];}
	cout<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:55:9: error: jump to label 'sless'
   55 |         sless:i=start*15+11;
      |         ^~~~~
a.cc:46:25: note:   from here
   46 |         if(s<1000){goto sless;}
      |                         ^~~~~
a.cc:53:51: note:   crosses initialization of 'llint i'
   53 |         llint start=bmin-3,stl=solve(start*15+10),i=0;
      |                                                   ^
a.cc:53:28: note:   crosses initialization of 'llint stl'
   53 |         llint start=bmin-3,stl=solve(start*15+10),i=0;
      |                            ^~~
a.cc:53:15: note:   crosses initialization of 'llint start'
   53 |         llint start=bmin-3,stl=solve(start*15+10),i=0;
      |               ^~~~~
Language: C++

#include<string>
#include<deque>
#include<queue>
#include<vector>
#include<algorithm>
#include<iostream>
#include<set>
#include<cmath>
#include<tuple>
#include<map>
using namespace std;
typedef long long int llint;
typedef bool izryt;
#define mp make_pair
#define mt make_tuple
#define pub push_back
#define puf push_front
#define pob pop_back
#define pof pop_front
#define fir first
#define sec second
#define res resize
#define ins insert
#define era erase
const llint mod=10007;
const llint big=1e18;
const llint red=0xE869120;
const llint pro=1002001;
const llint eiya=5498513;
llint solve(llint num){
	//num?????§??????????????¨??????????????°????¨????
	//num???15????????°+10??????90<=num
	llint ans=5,i,j,gen=100,fu;
	ans+=4*(num/3+num/5);
	for(i=2;gen%10==0&&gen<=num;gen*=10){
		ans+=(8*i*(gen-gen/10))/15;i++;
		fu=gen;
	}
	ans+=(8*i*(num-fu))/15;
	return ans;
}
int main(void){
	llint s,bmin=6,bmax=5e15,gen;
	string out;
	cin>>s;
	if(s<1000){goto sless;}
	while(bmax-bmin!=1){
		gen=(bmax+bmin)/2;
		if(solve(gen*15+10)<s){bmin=gen;}
		else{bmax=gen;}
	}
	
	llint start=bmin-3,stl=solve(start*15+10),i=0;
	cout<<start<<" "<<stl<<endl;
	sless:
	i=start*15+11;
	if(s<1000){i=1;start=1;stl=0;}
	for(;stl+out.size()<s+20;i++){
		if(i%15==0){out+="FizzBuss";}
		else if(i%3==0){out+="Fizz";}
		else if(i%5==0){out+="Buzz";}
		else{out+=to_string(i);}
	}
	for(i=0;i<20;i++){cout<<out[s-1+i-stl];}
	cout<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:55:9: error: jump to label 'sless'
   55 |         sless:
      |         ^~~~~
a.cc:46:25: note:   from here
   46 |         if(s<1000){goto sless;}
      |                         ^~~~~
a.cc:53:51: note:   crosses initialization of 'llint i'
   53 |         llint start=bmin-3,stl=solve(start*15+10),i=0;
      |                                                   ^
a.cc:53:28: note:   crosses initialization of 'llint stl'
   53 |         llint start=bmin-3,stl=solve(start*15+10),i=0;
      |                            ^~~
a.cc:53:15: note:   crosses initialization of 'llint start'
   53 |         llint start=bmin-3,stl=solve(start*15+10),i=0;
      |               ^~~~~
Language: C++

#include<string>
#include<deque>
#include<queue>
#include<vector>
#include<algorithm>
#include<iostream>
#include<set>
#include<cmath>
#include<tuple>
#include<map>
using namespace std;
typedef long long int llint;
typedef bool izryt;
#define mp make_pair
#define mt make_tuple
#define pub push_back
#define puf push_front
#define pob pop_back
#define pof pop_front
#define fir first
#define sec second
#define res resize
#define ins insert
#define era erase
const llint mod=10007;
const llint big=1e18;
const llint red=0xE869120;
const llint pro=1002001;
const llint eiya=5498513;
llint solve(llint num){
	//num?????§??????????????¨??????????????°????¨????
	//num???15????????°+10??????90<=num
	llint ans=5,i,j,gen=100,fu;
	ans+=4*(num/3+num/5);
	for(i=2;gen%10==0&&gen<=num;gen*=10){
		ans+=(8*i*(gen-gen/10))/15;i++;
		fu=gen;
	}
	ans+=(8*i*(num-fu))/15;
	return ans;
}
int main(void){
	llint s,bmin=6,bmax=5e15,gen;
	string out;
	cin>>s;
	if(s<1000){goto sless;}
	else{
	while(bmax-bmin!=1){
		gen=(bmax+bmin)/2;
		if(solve(gen*15+10)<s){bmin=gen;}
		else{bmax=gen;}
	}
	
	llint start=bmin-3,stl=solve(start*15+10),i=0;
	cout<<start<<" "<<stl<<endl;
	}
	i=start*15+11;
	if(s<1000){i=1;start=1;stl=0;}
	for(;stl+out.size()<s+20;i++){
		if(i%15==0){out+="FizzBuss";}
		else if(i%3==0){out+="Fizz";}
		else if(i%5==0){out+="Buzz";}
		else{out+=to_string(i);}
	}
	for(i=0;i<20;i++){cout<<out[s-1+i-stl];}
	cout<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:57:9: error: 'i' was not declared in this scope
   57 |         i=start*15+11;
      |         ^
a.cc:57:11: error: 'start' was not declared in this scope
   57 |         i=start*15+11;
      |           ^~~~~
a.cc:58:32: error: 'stl' was not declared in this scope; did you mean 'std'?
   58 |         if(s<1000){i=1;start=1;stl=0;}
      |                                ^~~
      |                                std
a.cc:59:14: error: 'stl' was not declared in this scope; did you mean 'std'?
   59 |         for(;stl+out.size()<s+20;i++){
      |              ^~~
      |              std
a.cc:65:43: error: 'stl' was not declared in this scope; did you mean 'std'?
   65 |         for(i=0;i<20;i++){cout<<out[s-1+i-stl];}
      |                                           ^~~
      |                                           std
a.cc:46:25: error: label 'sless' used but not defined
   46 |         if(s<1000){goto sless;}
      |                         ^~~~~
Language: C++

#include<string>
#include<deque>
#include<queue>
#include<vector>
#include<algorithm>
#include<iostream>
#include<set>
#include<cmath>
#include<tuple>
#include<map>
using namespace std;
typedef long long int llint;
typedef bool izryt;
#define mp make_pair
#define mt make_tuple
#define pub push_back
#define puf push_front
#define pob pop_back
#define pof pop_front
#define fir first
#define sec second
#define res resize
#define ins insert
#define era erase
const llint mod=10007;
const llint big=1e18;
const llint red=0xE869120;
const llint pro=1002001;
const llint eiya=5498513;
llint solve(llint num){
	//num?????§??????????????¨??????????????°????¨????
	//num???15????????°+10??????90<=num
	llint ans=5,i,j,gen=100,fu;
	ans+=4*(num/3+num/5);
	for(i=2;gen%10==0&&gen<=num;gen*=10){
		ans+=(8*i*(gen-gen/10))/15;i++;
		fu=gen;
	}
	ans+=(8*i*(num-fu))/15;
	return ans;
}
int main(void){
	llint s,bmin=6,bmax=5e15,gen;
	string out;
	cin>>s;
	if(s<1000){goto sless;}
	else{
	while(bmax-bmin!=1){
		gen=(bmax+bmin)/2;
		if(solve(gen*15+10)<s){bmin=gen;}
		else{bmax=gen;}
	}
	}
	llint start=bmin-3,stl=solve(start*15+10),i=0;
	i=start*15+11;
	if(s<1000){i=1;start=1;stl=0;}
	for(;stl+out.size()<s+20;i++){
		if(i%15==0){out+="FizzBuss";}
		else if(i%3==0){out+="Fizz";}
		else if(i%5==0){out+="Buzz";}
		else{out+=to_string(i);}
	}
	for(i=0;i<20;i++){cout<<out[s-1+i-stl];}
	cout<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:25: error: label 'sless' used but not defined
   46 |         if(s<1000){goto sless;}
      |                         ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
using P = pair<int, int>;
const int M = 1000000007;

long long cnt(long long n) {
    return n - n / 3 - n / 5 + n / 15;
}

long long len(long long n) {
    long long ret = (n / 3 + n / 5) * 4;
    long long l = 0, r = min(9, n), t = 1;
    while (l < n) {
        ret += (cnt(r) - cnt(l)) * t;
        ++t;
        l = r;
        r = min(r * 10 + 9, n);
    }
    return ret;
}

int main() {
    long long n;
    cin >> n;
    --n;
    long long ok = 0, ng = 1e18;
    while (ok + 1 < ng) {
        long long m = (ok + ng) / 2;
        if (len(m) <= n)
            ok = m;
        else
            ng = m;
    }
    string s = "";
    for (int i = 0; i < 20; ++i) {
        long long j = ok + 1 + i;
        if (!(j % 3)) s += "Fizz";
        if (!(j % 5)) s += "Buzz";
        if (j % 3 && j % 5) s += to_string(ok + 1 + i);
    }
    cout << s.substr(n - len(ok), 20) << "\n";
    return 0;
}



Compiler output:
a.cc: In function 'long long int len(long long int)':
a.cc:12:29: error: no matching function for call to 'min(int, long long int&)'
   12 |     long long l = 0, r = min(9, n), t = 1;
      |                          ~~~^~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:12:29: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   12 |     long long l = 0, r = min(9, n), t = 1;
      |                          ~~~^~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:12:29: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   12 |     long long l = 0, r = min(9, n), t = 1;
      |                          ~~~^~~~~~
a.cc:14:36: error: 't' was not declared in this scope
   14 |         ret += (cnt(r) - cnt(l)) * t;
      |                                    ^
Language: C++

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


int main(){
	string fizz="Fizz";
	string buzz="Buzz";
	long int n;
	cin>>n;
	long int scount=0;
	int i=0;
	for(;scount<n;){
		i++;
		if(i%3==0){
			scount=scount+4;
		}
		if(i%5==0){
			scount=scount+4;
		}
		if((i%3!=0)&&(i%5!=0)){
			scount=scount+int(log10(i))+1;
		}
	}
	
	if(i%3==0){
		for(int j=3-(scount-n);j<4;j++){
			if(j<0){
				if(i%5==0)break;
				j=j+4;
			}
			putchar(fizz[j]);
		}
	}
	if(i%5==0){
		for(int j=3-(scount-n);j<4;j++){
			if(j<0)j=0;
			putchar(buzz[j]); 
		}
	}
	if((i%3!=0)&&(i%5!=0)){
		for(int j=scount-n+1;j--;){
			if(j>0){
				cout<<(i/(10^(j-1)))%10;
			}else{
				cout<<i%10;
			}
		}
	}
	
	while(scount<n+19){
		i++;
		if(i%3==0){
			for(int j=0;(j<4)&&(scount<n+19);j++,scount++){
				putchar(fizz[j]);
			}
		}
		if(i%5==0){
			for(int j=0;(j<4)&&(scount<n+19);j++,scount++){
				putchar(buzz[j]);
			}
		}
		if((i%3!=0)&&(i%5!=0)){
			for(int j=int(log10(i));(scount<n+19)&&(j>=0);scount++,j--){
				if(j>0){
					cout<<(i/(10^(j-1)))%10;
				}else{
					cout<<i%10;
				}
			}
		}
	}
	return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:24:43: error: 'log10' was not declared in this scope
   24 |                         scount=scount+int(log10(i))+1;
      |                                           ^~~~~
a.cc:66:39: error: 'log10' was not declared in this scope
   66 |                         for(int j=int(log10(i));(scount<n+19)&&(j>=0);scount++,j--){
      |                                       ^~~~~
Language: C++

#include <iostream>
#include <vector>
#include <cstdlib>
#include <sstream>
using namespace std;


string simulate(unsigned long long l,unsigned long long r){
	stringstream ss;
	while( l < r ){
		ss << (l%15==0?"FizzBuzz":l%3==0?"Fizz":l%5==0?"Buzz":itos(l));
		l++;
	}
	return ss.str();
}
vector<unsigned long long> border;
int f(unsigned long long x){
	unsigned long long ten = 10;
	border.push_back(0);
	for(int i = 1 ; i <= 18 ; i++){
		border.push_back(ten);
		border.push_back(ten+(15-ten%15)%15);
		ten *= 10;
		border.push_back(ten-ten%15);
	}
	//for(int i = 0 ; i < border.size() ; i++) cout << border[i] << endl;
	
	for(int i = 0 ; i + 1 < border.size() ; i++){
		unsigned long long from = border[i];
		unsigned long long to   = border[i+1];
		if( to - from < 20 ){
			string str = simulate(from,to);
			unsigned long long sz = str.size();
			if( x <= sz ){
				cout << simulate(from,from+100).substr(x,20) << endl;
				exit(0);
			}else x -= sz;
		}else{
			int len = itos(from).size();
			unsigned long long sub = 32 + len * 8;
			unsigned long long sz = sub * (to-from) / 15;
			if( x <= sz){
				long long superFrom = from + 15 * (x / sub);
				x %= sub;
				cout << simulate(superFrom,superFrom+100).substr(x,20) << endl;
				exit(0);
			}else x -= sz;			
		}
		
	}
}


int main(){
	long long n;
	cin >> n;
	n--;
	n += 8;
	f(n);
}

Compiler output:
a.cc: In function 'std::string simulate(long long unsigned int, long long unsigned int)':
a.cc:11:71: error: 'itos' was not declared in this scope
   11 |                 ss << (l%15==0?"FizzBuzz":l%3==0?"Fizz":l%5==0?"Buzz":itos(l));
      |                                                                       ^~~~
a.cc: In function 'int f(long long unsigned int)':
a.cc:39:35: error: 'itos' was not declared in this scope; did you mean 'to'?
   39 |                         int len = itos(from).size();
      |                                   ^~~~
      |                                   to
a.cc:51:1: warning: control reaches end of non-void function [-Wreturn-type]
   51 | }
      | ^
Language: C++

#include <algorithm>
#include <cassert>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <vector>
#include <boost/lexical_cast.hpp>
using namespace std;

#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define FOREQ(i, a, b) for (int i = (a); i <= (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define REPEQ(i, n) FOREQ(i, 0, n)
#define ALL(c) (c).begin(), (c).end()

template <typename T> inline int size(const T& x) { return x.size(); }
typedef long long ll;

ll calc(ll n) {
  ll n_3 = 0, n_5 = 0, n_15 = 0, len = 0;
  for (ll i = 1, j = 10; ; ++i, j *= 10) {
    ll k = min(j - 1, n);
    ll m_3 = k / 3 - n_3, m_5 = k / 5 - n_5, m_15 = k / 15 - n_15;
    len += 4 * (m_3 + m_5);
    len += i * (k - j / 10 + 1 - m_3 - m_5 + m_15);
    n_3 = k / 3; n_5 = k / 5; n_15 = k / 15;
    if (j >= n) break;
  }
  return len;
}

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

  ll s;
  while (cin >> s) {
    ll lo = 1, hi = 1e18;
    while (lo < hi) {
      ll m = (lo + hi) / 2;
      if (calc(m) < s)
        lo = m + 1;
      else
        hi = m;
    }

    string ans;
    REP(i, 21) {
      ll j = lo + i;
      if (j % 15 == 0)
        ans += "FizzBuzz";
      else if (j % 3 == 0)
        ans += "Fizz";
      else if (j % 5 == 0)
        ans += "Buzz";
      else
        ans += boost::lexical_cast<string>(j);
    }
    ll len = calc(lo - 1);
    cout << ans.substr(s - len - 1, 20) << endl;
  }
}

Compiler output:
a.cc:12:10: fatal error: boost/lexical_cast.hpp: No such file or directory
   12 | #include <boost/lexical_cast.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <stdio.h>
int N, X[50], Y[50], sx, sy;
int main() {
	scanf("%d", &N);
	for(int i = 0; i < N; i++) {
		scanf("%d%d", &X[i], &Y[i]);
		sx += X[i];
		sy += Y[i];
	}
	if(N % 2 == 1) {
		printf("NA\n");
	}
	else {
		bool flag = true;
		for(int i = 0; i < N / 2; i++) {
			flag = flag && ((1.0 * sx / N - X[i]) * 2 == (X[N / 2 + i] - X[i]) && (1.0 * sy / N - Y[i]) * 2 == (Y[N / 2 + i] - Y[i]));
		}
		if(flag) {
			printf("%.9f %.9f\n", gx, gy);
		}
		else {
			printf("NA\n");
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:47: error: 'gx' was not declared in this scope; did you mean 'sx'?
   19 |                         printf("%.9f %.9f\n", gx, gy);
      |                                               ^~
      |                                               sx
a.cc:19:51: error: 'gy' was not declared in this scope; did you mean 'sy'?
   19 |                         printf("%.9f %.9f\n", gx, gy);
      |                                                   ^~
      |                                                   sy
Language: C++

/*
?????????????????¨?????????????????¨????????????
????±???¨?????????????????????????????¨????????????????????¨???????????´??????????????°???????????¶???????????°??¢
*/
#include <iostream>
#include <algorithm>
#include <functional>
#include <vector>
#include <cmath>
using namespace std;
typedef long long ll;
typedef pair<int,int> pint;
typedef vector<int> vint;
typedef vector<pint> vpint;
#define mp make_pair
#define fi first
#define se second
#define all(v) (v).begin(),(v).end()
#define rep(i,n) for(ll i=0;i<(n);i++)

const double EPS = 1e-14;
int main(void){
	ll n;???cin >> n;
	vector<pair<double, double> > point(n);//fi???;x??§?¨???? se ;y??§?¨?
	rep(i, n) scanf("%lf %lf", &point[i].fi, &point[i].se);

	//n????\???°??????????????????
	if(n % 2 == 1){
		printf("NA\n");
		return 0;
	}

	//???????????§??????
	vector<double> len(n);
	rep(i, n - 1){
		double tmp = pow(point[i + 1].fi - point[i].fi, 2) + pow(point[i + 1].se - point[i].se, 2);
		len.push_back(tmp);
	}
	double tmp = pow(point[0].fi - point[n - 1].fi, 2) + pow(point[0].se - point[n - 1].se, 2);
	len.push_back(tmp);
	sort(all(len));
	if(len[n - 1] - len[0] > EPS){
		printf("NA\n");
		return 0;
	}

	//????±???¨????????????????????????????±???????
	vector<double> Px;
	vector<double> Py;
	rep(i, n / 2){
		double x = (point[i].fi + point[i + n / 2].fi) / 2.0;
		Px.push_back(x);
		double y = (point[i].se + point[i + n / 2].se) / 2.0;
		Py.push_back(y);
	}

	//?????§?±???????????±???¨??????????????????????????????????????§??????????????¨?°?????????????????????´??????????????°??????????±???§??????
	sort(all(Px));
	if(Px[n / 2 - 1] - Px[0] > EPS){
		printf("NA\n");
		return 0;
	}
	sort(all(Py));
	if(Py[n / 2 - 1] - Py[0] > EPS){
		printf("NA\n");
		return 0;
	}

	printf("%.9f %.9f\n", Px[0], Py[0]);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:14: error: expected primary-expression before '?' token
   23 |         ll n;???cin >> n;
      |              ^
a.cc:23:15: error: expected primary-expression before '?' token
   23 |         ll n;???cin >> n;
      |               ^
a.cc:23:16: error: expected primary-expression before '?' token
   23 |         ll n;???cin >> n;
      |                ^
a.cc:23:25: error: expected ':' before ';' token
   23 |         ll n;???cin >> n;
      |                         ^
      |                         :
a.cc:23:25: error: expected primary-expression before ';' token
a.cc:23:25: error: expected ':' before ';' token
   23 |         ll n;???cin >> n;
      |                         ^
      |                         :
a.cc:23:25: error: expected primary-expression before ';' token
a.cc:23:25: error: expected ':' before ';' token
   23 |         ll n;???cin >> n;
      |                         ^
      |                         :
a.cc:23:25: error: expected primary-expression before ';' token
Language: C++

#Include<iostream>
#include<cmath>
#define EPS (1e-8)
#define N 50
using namespace std;
int n,x[N],y[N],flag=1;
double gx,gy;

int main(){
  cin>>n;
  for(int i=0;i<n;i++){
    cin>>x[i]>>y[i];
    gx+=x[i]; gy+=y[i];
  }
  gx/=n; gy/=n;
  for(int i=0;i<n;i++){
    double px=gx+(gx-x[i]),py=gy+(gy-y[i]);
    int f=0;
    for(int j=0;j<n;j++)
      if(min(abs(px-x[j]),abs(py-y[j]))<EPS)f=1;
    if(!f)flag=0;
  }
  if(flag)cout<<gx<<' '<<gy<<endl;
  else cout<<"NA"<<endl;
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:10:3: error: 'cin' was not declared in this scope
   10 |   cin>>n;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<cmath>
  +++ |+#include <iostream>
    3 | #define EPS (1e-8)
a.cc:23:11: error: 'cout' was not declared in this scope
   23 |   if(flag)cout<<gx<<' '<<gy<<endl;
      |           ^~~~
a.cc:23:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:30: error: 'endl' was not declared in this scope
   23 |   if(flag)cout<<gx<<' '<<gy<<endl;
      |                              ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<cmath>
  +++ |+#include <ostream>
    3 | #define EPS (1e-8)
a.cc:24:8: error: 'cout' was not declared in this scope
   24 |   else cout<<"NA"<<endl;
      |        ^~~~
a.cc:24:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:20: error: 'endl' was not declared in this scope
   24 |   else cout<<"NA"<<endl;
      |                    ^~~~
a.cc:24:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
#define REP(i,a,b) for(int i=a;i<(int)b;i++)
#define rep(i,n) REP(i,0,n)
 
typedef complex<double> P;
typedef vector<P> polygon;
 
double const eps = 1e-7;
 
polygon poly;
 
struct line : public vector<P> {
  line(P const& a, P const& b) {
    push_back(a), push_back(b);
  }
};
 
double dot(P a, P b) {
  return real(conj(a) * b);
}
 
double cross(P a, P b) {
  return imag(conj(a) * b);
}
 
int ccw(P const& p, P a, P b) {
  a -= p, b -= p;
  if(cross(a, b) > eps) return +1;
  if(cross(a, b) < -eps) return -1;
  if(dot(a, b) < -eps) return +2;
  if(norm(a) < norm(b)) return -2;
  return 0;
}
 
P crosspoint(line const& a, line const& b) {
  auto va = a[1] - a[0], vb = b[1] - b[0];
  double d = cross(vb, va);
  if(abs(d) < eps) return b[0];
  return a[0] + va * cross(vb, b[1] - a[0]) * (1.0 / d);
}
 
polygon convex_cut(polygon const& g, line const& l) {
  polygon ret;
  int n = g.size();
  rep(i, n) {
    auto curr = g[i % n], next = g[(i + 1) % n];
    if(ccw(l[0], l[1], curr) != -1) ret.push_back(curr);
    if(ccw(l[0], l[1], curr) * ccw(l[0], l[1], next) < 0) {
      ret.push_back(crosspoint(line(curr, next), l));
    }
  }
  return ret;
}
 
double area(polygon const& g) {
  double ret = 0;
  rep(i, g.size()) {
    ret += cross(g[i], g[(i + 1) % g.size()]);
  }
  return abs(ret) / 2.0;
}
 
bool ok(P const& p) {
  double ph = area(poly) / 2.0;
  for(double rad = 0.0; rad < 2 * cos(-1); rad += 0.01) {
    line l = line(p, p + polar(1.0, rad));
    auto k = convex_cut(poly, l);
    if(abs((area(k) - ph) / ph) > eps) return false;
  }
  return true;
}
 
int main() {
  int N; cin >> N;
  P g;
  rep(i, N) {
    double x, y; cin >> x >> y;
    poly.push_back(P(x, y));
    g += P(x, y);
  }
  g /= N;
  if(N % 2 || !ok(g)) cout << "NA" << endl;
  else printf("%.10f %.10f\n", g.real(), g.imag());

Compiler output:
a.cc: In function 'int main()':
a.cc:86:52: error: expected '}' at end of input
   86 |   else printf("%.10f %.10f\n", g.real(), g.imag());
      |                                                    ^
a.cc:76:12: note: to match this '{'
   76 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
#define r(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
  int a[50],b[50],n;
  cin>>n;
    double c=0,d=0;
    r(i,n){
      cin>>a[i]>>b[i];
      c+=a[i],d+=b[i];
    }
    c/=n,d/=n;
    if(n%2)goto L;
    r(i,n/2)if(!abs((a[i]+a[(i+n/2)%n])/2-c)<=0.0001||!abs((b[i]+b[(i+n/2)%n])/2-c))<=0.0001)goto L;
    printf("%.11f %.11f\n",c,d);
    if(0)L:cout<<"NA"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:85: error: expected primary-expression before '<=' token
   14 |     r(i,n/2)if(!abs((a[i]+a[(i+n/2)%n])/2-c)<=0.0001||!abs((b[i]+b[(i+n/2)%n])/2-c))<=0.0001)goto L;
      |                                                                                     ^~