Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
	bool nul[200];
int main() {
	ios_base::sync_with_stdio(false);
	cout.precision(17);
	int n;
	cin>>n;
	if(n==1){
        cout<<"1"<<endl;
        return 0;
	}
	if(n==2){
        cout<<"0.5"<<endl<<"0.5"<<endl;
        return 0;
	}
    double x[200], y[200];
	for(int i=0;i<n;i++){
        cin>>x[i]>>y[i];
	}
	int j1=0;
	for(int i=0;i<n;i++){
        for(int j=i+1;j<n;j++){
            int r=0;
            bool h=1;
            for(int k=0;k<n;k++){

                if(k!=i&&k!=j){
                    double s=(x[i]-x[k])*(y[i]-y[j])-(y[i]-y[k])*(x[i]-x[j]);
                    if(s>0){
                        if(r==-1){
                            h=0;
                 //           cout<<i<<" "<<j<<" "<<k<<endl;
                        }
                        r=1;
                    }
                    if(s<0){
                        if(r==1){
                            h=0;
               //             cout<<i<<" "<<j<<endl;
                        }
                        r=-1;
                    }
                }
            }
            //cout<<endl<<h<<endl;
            if(h==1){
                nul[i]=1;
                nul[j]=1;
            }
        }
	}
//	for(int i=0;i<n;i++){
  //      cout<<nul[i]<<" ";
//	}
    double ans[200];

    for(int i=0;i<n;i++){
        if(nul[i]==0){
            ans[i]=0;
        }
        else{
            int j1=0;
            int j2=0;
            bool sled=0;
            for(int j=0;j<n;j++){
                int r=0;
                bool h=1;
                for(int k=0;k<n;k++){
                    if(k!=i&&k!=j){
                        double s=(x[i]-x[k])*(y[i]-y[j])-(y[i]-y[k])*(x[i]-x[j]);
                        if(s>0){
                            if(r==-1){
                                h=0;
                 //           cout<<i<<" "<<j<<" "<<k<<endl;
                            }
                            r=1;
                        }
                        if(s<0){
                            if(r==1){
                                h=0;
               //             cout<<i<<" "<<j<<endl;
                            }
                            r=-1;
                        }
                    }
                }
                if(h==1&&sled==1&&j!=i){
                    j2=j;
                    //cout<<j<<" "<<i<<" "<<"lol"<<endl;
                }
                if(h==1&&sled==0&&j!=i){
                    j1=j;
                   // cout<<j<<" "<<i<<" "<<"kek"<<endl;
                    sled=1;
                }
            }
            double a=sqrt((x[j1]-x[j2])*(x[j1]-x[j2])+(y[j1]-y[j2])*(y[j1]-y[j2]));
            double b=sqrt((x[j1]-x[i])*(x[j1]-x[i])+(y[j1]-y[i])*(y[j1]-y[i]));
            double c=sqrt((x[j2]-x[i])*(x[j2]-x[i])+(y[j2]-y[i])*(y[j2]-y[i]));
            double angle=acos((c*c+b*b-a*a)/(2*b*c));
            double pi= acos(-1);
           // cout<<i<<" "<<j1<<" "<<j2<<" "<<(c*c+b*b-a*a)/(2*b*c)<<endl;
            ans[i] = (pi-angle)/(2*pi);
        }
    }
    for(int i=0;i<n;i++){
        cout<<ans[i]<<endl;
    }
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:111:18: error: expected '}' at end of input
  111 |         return 0;
      |                  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^