prog.cpp:16:22: error: ‘vector’ has not been declared
long long countWays(vector <string> g) {
^
prog.cpp:16:29: error: expected ‘,’ or ‘...’ before ‘<’ token
long long countWays(vector <string> g) {
^
prog.cpp: In member function ‘long long int TwoLLogo::countWays(int)’:
prog.cpp:17:20: error: ‘g’ was not declared in this scope
ll i,j ,u,w, n = g.size(), m = g[0].size();
^
prog.cpp:18:3: error: ‘vector’ was not declared in this scope
vector<vector<pair<ll,ll> > > c(n, vector<pair<ll,ll>>(m, MP(0,0)));
^
prog.cpp:18:17: error: ‘pair’ was not declared in this scope
vector<vector<pair<ll,ll> > > c(n, vector<pair<ll,ll>>(m, MP(0,0)));
^
prog.cpp:1:12: error: expected primary-expression before ‘long’
#define ll long long
^
prog.cpp:18:22: note: in expansion of macro ‘ll’
vector<vector<pair<ll,ll> > > c(n, vector<pair<ll,ll>>(m, MP(0,0)));
^
prog.cpp:1:12: error: expected ‘;’ before ‘long’
#define ll long long
^
prog.cpp:18:22: note: in expansion of macro ‘ll’
vector<vector<pair<ll,ll> > > c(n, vector<pair<ll,ll>>(m, MP(0,0)));
^
prog.cpp:19:13: error: ‘rp’ was not declared in this scope
rp(i, 1, n) for (j = m - 2; j > -1; --j) if (g[i][j] =='.'){
^
prog.cpp:19:15: error: expected ‘;’ before ‘for’
rp(i, 1, n) for (j = m - 2; j > -1; --j) if (g[i][j] =='.'){
^
prog.cpp:19:33: warning: statement has no effect [-Wunused-value]
rp(i, 1, n) for (j = m - 2; j > -1; --j) if (g[i][j] =='.'){
^
prog.cpp:19:42: error: expected ‘;’ before ‘)’ token
rp(i, 1, n) for (j = m - 2; j > -1; --j) if (g[i][j] =='.'){
^
prog.cpp:27:43: error: ‘m’ was not declared in this scope
for (i = 0; i < n; ++i) for (j = 0; j < m; ++j) for (u = i; u < n; ++u) for (w = 0; w < m; ++w) if (i*n+j<= u*n+w && g[i][j] == '.' && g[u][w] == '.' && c[i][j] != MP(0, 0) && c[u][w] != MP(0, 0)){
^
prog.cpp:27:156: error: ‘c’ was not declared in this scope
for (i = 0; i < n; ++i) for (j = 0; j < m; ++j) for (u = i; u < n; ++u) for (w = 0; w < m; ++w) if (i*n+j<= u*n+w && g[i][j] == '.' && g[u][w] == '.' && c[i][j] != MP(0, 0) && c[u][w] != MP(0, 0)){
^
prog.cpp:27:174: error: ‘make_pair’ was not declared in this scope
for (i = 0; i < n; ++i) for (j = 0; j < m; ++j) for (u = i; u < n; ++u) for (w = 0; w < m; ++w) if (i*n+j<= u*n+w && g[i][j] == '.' && g[u][w] == '.' && c[i][j] != MP(0, 0) && c[u][w] != MP(0, 0)){
^
prog.cpp:30:57: error: ‘max’ was not declared in this scope
part1 = 1ll*c[i][j].X * c[i][j].Y * (max(u - i-1,0ll)) * c[u][w].Y;
^