memory2.cpp: In function 'void Solve(int, int)':
memory2.cpp:6:2: error: 'vector' was not declared in this scope
vector < pair < int, pii> > pos[55];
^~~~~~
memory2.cpp:6:11: error: 'pair' was not declared in this scope
vector < pair < int, pii> > pos[55];
^~~~
memory2.cpp:6:18: error: expected primary-expression before 'int'
vector < pair < int, pii> > pos[55];
^~~
memory2.cpp:10:3: error: 'memset' was not declared in this scope
memset(p,0,sizeof(p));
^~~~~~
memory2.cpp:30:7: error: 'pos' was not declared in this scope
pos[curr].pb(mp(i,mp(j,k)));
^~~
memory2.cpp:30:25: error: 'mp' was not declared in this scope
pos[curr].pb(mp(i,mp(j,k)));
^~
memory2.cpp:30:25: note: suggested alternative: 'p'
pos[curr].pb(mp(i,mp(j,k)));
^~
p
memory2.cpp:30:20: error: 'mp' was not declared in this scope
pos[curr].pb(mp(i,mp(j,k)));
^~
memory2.cpp:30:20: note: suggested alternative: 'p'
pos[curr].pb(mp(i,mp(j,k)));
^~
p
memory2.cpp:54:7: error: 'pos' was not declared in this scope
if(pos[i].empty())continue;
^~~
memory2.cpp:54:7: note: suggested alternative: 'pos2'
if(pos[i].empty())continue;
^~~
pos2
memory2.cpp:62:13: error: 'pos' was not declared in this scope
if(!vis[pos[i][j].fi])
^~~
memory2.cpp:62:13: note: suggested alternative: 'pos2'
if(!vis[pos[i][j].fi])
^~~
pos2
memory2.cpp:72:13: error: 'pos' was not declared in this scope
if(!vis[pos[i][j].se.fi])
^~~
memory2.cpp:72:13: note: suggested alternative: 'pos2'
if(!vis[pos[i][j].se.fi])
^~~
pos2
memory2.cpp:82:13: error: 'pos' was not declared in this scope
if(!vis[pos[i][j].se.se])
^~~
memory2.cpp:82:13: note: suggested alternative: 'pos2'
if(!vis[pos[i][j].se.se])
^~~
pos2