prog.cpp:17:23: error: 'vector' has not been declared
double expectedArea(vector <int> x1, vector <int> y1, vector <int> x2, vector <int> y2, vector <int> Prob) {
^
prog.cpp:17:30: error: expected ',' or '...' before '<' token
double expectedArea(vector <int> x1, vector <int> y1, vector <int> x2, vector <int> y2, vector <int> Prob) {
^
prog.cpp: In member function 'double TrianglePainting::expectedArea(int)':
prog.cpp:19:5: error: 'vector' was not declared in this scope
vector<pair<Point, Point>> pts;
^
prog.cpp:19:12: error: 'pair' was not declared in this scope
vector<pair<Point, Point>> pts;
^
prog.cpp:19:22: error: expected primary-expression before ',' token
vector<pair<Point, Point>> pts;
^
prog.cpp:19:29: error: expected primary-expression before '>>' token
vector<pair<Point, Point>> pts;
^
prog.cpp:19:32: error: 'pts' was not declared in this scope
vector<pair<Point, Point>> pts;
^
prog.cpp:20:16: error: 'x1' was not declared in this scope
int n = SZ(x1);
^
prog.cpp:20:18: error: 'SZ' was not declared in this scope
int n = SZ(x1);
^
prog.cpp:21:12: error: 'LD' was not declared in this scope
vector<LD> pr(n);
^
prog.cpp:21:20: error: 'pr' was not declared in this scope
vector<LD> pr(n);
^
prog.cpp:22:8: error: expected ';' before 'res'
LD res = 0;
^
prog.cpp:23:10: error: 'i' was not declared in this scope
REP (i, n) {
^
prog.cpp:23:14: error: 'REP' was not declared in this scope
REP (i, n) {
^
prog.cpp:46:12: error: 'res' was not declared in this scope
return res;
^