trapezoid.cpp:1:2: error: stray '#' in program
1 | v#include<bits/stdc++.h>
| ^
trapezoid.cpp:1:1: error: 'v' does not name a type
1 | v#include<bits/stdc++.h>
| ^
trapezoid.cpp:7:1: error: 'pair' does not name a type
7 | pair <long long,long long> dp[maxn];
| ^~~~
trapezoid.cpp:8:1: error: 'pair' does not name a type
8 | pair <long long,long long> a[maxn];
| ^~~~
trapezoid.cpp:20:1: error: 'vector' does not name a type
20 | vector <Coordinate> coordinates;
| ^~~~~~
trapezoid.cpp:22:1: error: 'pair' does not name a type
22 | pair <long long,long long> fen[maxq];
| ^~~~
trapezoid.cpp: In function 'void upd(long long int, long long int, long long int)':
trapezoid.cpp:27:14: error: 'fen' was not declared in this scope
27 | if(d>fen[p].first)
| ^~~
trapezoid.cpp: At global scope:
trapezoid.cpp:34:1: error: 'pair' does not name a type
34 | pair <long long,long long> rsq(long long p)
| ^~~~
trapezoid.cpp: In function 'int main()':
trapezoid.cpp:53:5: error: 'ios_base' has not been declared
53 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
trapezoid.cpp:54:5: error: 'cin' was not declared in this scope
54 | cin.tie(NULL);
| ^~~
trapezoid.cpp:54:13: error: 'NULL' was not declared in this scope
54 | cin.tie(NULL);
| ^~~~
trapezoid.cpp:1:1: note: 'NULL' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
+++ |+#include <cstddef>
1 | v#include<bits/stdc++.h>
trapezoid.cpp:55:5: error: 'cout' was not declared in this scope
55 | cout.tie(NULL);
| ^~~~
trapezoid.cpp:60:9: error: 'coordinates' was not declared in this scope; did you mean 'Coordinate'?
60 | coordinates.push_back({tr[i].a[1],1,i});
| ^~~~~~~~~~~
| Coordinate
trapezoid.cpp:65:10: error: 'coordinates' was not declared in this scope; did you mean 'Coordinate'?
65 | sort(coordinates.begin(),coordinates.end(),fff);
| ^~~~~~~~~~~
| Coordinate
trapezoid.cpp:65:5: error: 'sort' was not declared in this scope; did you mean 'short'?
65 | sort(coordinates.begin(),coordinates.end(),fff);
| ^~~~
| short
trapezoid.cpp:79:13: error: 'dp' was not declared in this scope; did you mean 'p'?
79 | dp[t.ind] = rsq(tr[t.ind].a[3]);
| ^~
| p
trapezoid.cpp:79:25: error: 'rsq' was not declared in this scope
79 | dp[t.ind] = rsq(tr[t.ind].a[3]);
| ^~~
trapezoid.cpp:84:32: error: 'dp' was not declared in this scope; did you mean 'p'?
84 | upd(tr[t.ind].a[4],dp[t.ind].first,dp[t.ind].second);
| ^~
| p
trapezoid.cpp:87:5: error: 'pair' was not declared in this scope
87 | pair <long long,long long> ans = rsq(4*n+3);
| ^~~~
trapezoid.cpp:87:11: error: expected primary-expression before 'long'
87 | pair <long long,long long> ans = rsq(4*n+3);
| ^~~~
trapezoid.cpp:88:11: error: 'ans' was not declared in this scope
88 | cout<<ans.first<<" "<<ans.second<<endl;
| ^~~
trapezoid.cpp:88:39: error: 'endl' was not declared in this scope
88 | cout<<ans.first<<" "<<ans.second<<endl;
| ^~~~