Language: C++

#include<cstdio>
2.#include<iostream>
3.#include<cmath>
4.#include<algorithm>
5.#include<string>
6.#include<cstring>
7.#include<cctype>
8.#include<queue>
9.#include<stack>
10.#include<map>
11.#include<set>
12.#include<iomanip>
13.#include<sstream>
14.#include<cstdlib>
15.#include<ctime>
16.#include<list>
17.#define ull unsigned long long 
18.#define ll long long 
19.#define ld long double
20.#define pii pair<int,int >
21.#define iiii pair<int,pii >
22.#define mp make_pair
23.#define MAXN 202000
24.#define INF 1000000000
25.const double pi=3.141592653589;
26.using namespace std;
27. 
28.int X1,Y1,X2,Y2,n;
29.vector<pii >G;
30.int Mx[MAXN],My[MAXN];
31.bool cMx[MAXN],cMy[MAXN];
32.int ans[MAXN];
33. 
34.int main()
35.{
36.	cin>>X1>>Y1>>X2>>Y2;
37.	cin>>n;
38.	
39.	
40.	int maxx=max(X1,X2),minx=min(X1,X2),maxy=max(Y1,Y2),miny=min(Y1,Y2);
41.	
42.	for(int i=0;i<n;i++)
43.	{
44.		int x,y;
45.		cin>>x>>y;
46.		if(minx<=x&&x<=maxx&&miny<=y&&y<=maxy)
47.		{
48.			G.push_back(make_pair(x,y));
49.			cMx[x]=true;Mx[x]=y;
50.			cMy[y]=true;My[y]=x;
51.		}
52.			
53.	}
54.	
55.	if(minx==maxx)
56.	{
57.		double realres=(maxy-miny)*100;
58.		if(cMx[minx]&&miny<Mx[minx]&&Mx[minx]<maxy)
59.		{
60.			realres-=20;
61.			realres+=10*pi;
62.		}
63.		printf("%.11f\n",realres);
64.		return 0;
65.	}
66.	
67.	if(miny==maxy)
68.	{
69.		double realres=(maxx-minx)*100;
70.		if(cMy[miny]&&minx<My[miny]&&My[miny]<maxx)
71.		{
72.			realres-=20;
73.			realres+=10*pi;
74.		}
75.		printf("%.11f\n",realres);
76.		return 0;
77.	}
78.	
79.	for(int i=0;i<MAXN-3;i++)
80.		ans[i]=INF;
81.	
82.	
83.	for(int i=miny;i<=maxy;i++)
84.	{
85.		if(cMy[i])
86.			*lower_bound(ans,ans+n,My[i])=My[i];
87.	}
88.		
89.		
90.	int res=lower_bound(ans,ans+n,INF)-ans;
91. 
92.	double realres=(maxx-minx)*100+(double)(maxy-miny)*100-res*(20-5*pi);
93.	
94.	printf("%.11f\n",realres);
95.	
96.	
97.		
98.	
99.	
100.	return 0;	
101.} 


Compiler output:
a.cc:2:3: error: stray '#' in program
    2 | 2.#include<iostream>
      |   ^
a.cc:3:3: error: stray '#' in program
    3 | 3.#include<cmath>
      |   ^
a.cc:4:3: error: stray '#' in program
    4 | 4.#include<algorithm>
      |   ^
a.cc:5:3: error: stray '#' in program
    5 | 5.#include<string>
      |   ^
a.cc:6:3: error: stray '#' in program
    6 | 6.#include<cstring>
      |   ^
a.cc:7:3: error: stray '#' in program
    7 | 7.#include<cctype>
      |   ^
a.cc:8:3: error: stray '#' in program
    8 | 8.#include<queue>
      |   ^
a.cc:9:3: error: stray '#' in program
    9 | 9.#include<stack>
      |   ^
a.cc:10:4: error: stray '#' in program
   10 | 10.#include<map>
      |    ^
a.cc:11:4: error: stray '#' in program
   11 | 11.#include<set>
      |    ^
a.cc:12:4: error: stray '#' in program
   12 | 12.#include<iomanip>
      |    ^
a.cc:13:4: error: stray '#' in program
   13 | 13.#include<sstream>
      |    ^
a.cc:14:4: error: stray '#' in program
   14 | 14.#include<cstdlib>
      |    ^
a.cc:15:4: error: stray '#' in program
   15 | 15.#include<ctime>
      |    ^
a.cc:16:4: error: stray '#' in program
   16 | 16.#include<list>
      |    ^
a.cc:17:4: error: stray '#' in program
   17 | 17.#define ull unsigned long long
      |    ^
a.cc:18:4: error: stray '#' in program
   18 | 18.#define ll long long
      |    ^
a.cc:19:4: error: stray '#' in program
   19 | 19.#define ld long double
      |    ^
a.cc:20:4: error: stray '#' in program
   20 | 20.#define pii pair<int,int >
      |    ^
a.cc:21:4: error: stray '#' in program
   21 | 21.#define iiii pair<int,pii >
      |    ^
a.cc:22:4: error: stray '#' in program
   22 | 22.#define mp make_pair
      |    ^
a.cc:23:4: error: stray '#' in program
   23 | 23.#define MAXN 202000
      |    ^
a.cc:24:4: error: stray '#' in program
   24 | 24.#define INF 1000000000
      |    ^
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.#include<iostream>
      | ^~
a.cc:26:1: error: expected unqualified-id before numeric constant
   26 | 26.using namespace std;
      | ^~~~~~~~
a.cc:27:1: error: expected unqualified-id before numeric constant
   27 | 27.
      | ^~~
a.cc:29:1: error: expected unqualified-id before numeric constant
   29 | 29.vector<pii >G;
      | ^~~~~~~~~
a.cc:30:1: error: expected unqualified-id before numeric constant
   30 | 30.int Mx[MAXN],My[MAXN];
      | ^~~~~~
a.cc:31:1: error: expected unqualified-id before numeric constant
   31 | 31.bool cMx[MAXN],cMy[MAXN];
      | ^~~~~~~
a.cc:32:1: error: expected unqualified-id before numeric constant
   32 | 32.int ans[MAXN];
      | ^~~~~~
a.cc:33:1: error: expected unqualified-id before numeric constant
   33 | 33.
      | ^~~