alias.cpp:29:8: error: 'pii' was not declared in this scope
29 | vector<pii> e[maxn];
| ^~~
alias.cpp:29:11: error: template argument 1 is invalid
29 | vector<pii> e[maxn];
| ^
alias.cpp:29:11: error: template argument 2 is invalid
alias.cpp: In function 'int main()':
alias.cpp:47:19: error: request for member 'push_back' in 'e[ind(std::__cxx11::basic_string<char>(x))]', which is of non-class type 'int'
47 | e[ind(x)].push_back(pii(ind(y), t));
| ^~~~~~~~~
alias.cpp:47:29: error: 'pii' was not declared in this scope
47 | e[ind(x)].push_back(pii(ind(y), t));
| ^~~
alias.cpp:53:13: error: 'pli' was not declared in this scope; did you mean 'pll'?
53 | set<pli> s;
| ^~~
| pll
alias.cpp:53:16: error: template argument 1 is invalid
53 | set<pli> s;
| ^
alias.cpp:53:16: error: template argument 2 is invalid
alias.cpp:53:16: error: template argument 3 is invalid
alias.cpp:56:11: error: request for member 'insert' in 's', which is of non-class type 'int'
56 | s.insert(pli(0, ind(x)));
| ^~~~~~
alias.cpp:57:19: error: request for member 'empty' in 's', which is of non-class type 'int'
57 | while (!s.empty()) {
| ^~~~~
alias.cpp:58:16: error: expected ';' before 'curr'
58 | pli curr = *s.begin();
| ^~~~~
| ;
alias.cpp:59:15: error: request for member 'erase' in 's', which is of non-class type 'int'
59 | s.erase(curr);
| ^~~~~
alias.cpp:59:21: error: 'curr' was not declared in this scope
59 | s.erase(curr);
| ^~~~
alias.cpp:61:48: error: request for member 'size' in 'e[curr_ind]', which is of non-class type 'int'
61 | for (ll j = 0; j < (ll)e[curr_ind].size(); j++) {
| ^~~~
alias.cpp:62:37: error: invalid types 'int[long long int]' for array subscript
62 | ll nxt = e[curr_ind][j].first;
| ^
alias.cpp:63:35: error: invalid types 'int[long long int]' for array subscript
63 | ll d = e[curr_ind][j].second;
| ^
alias.cpp:65:23: error: request for member 'erase' in 's', which is of non-class type 'int'
65 | s.erase(pli(dist[nxt], nxt));
| ^~~~~
alias.cpp:67:23: error: request for member 'insert' in 's', which is of non-class type 'int'
67 | s.insert(pli(dist[nxt], nxt));
| ^~~~~~
alias.cpp:39:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | freopen("guard.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
alias.cpp:40:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | freopen("guard.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~