blocks.cpp:3: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
3 | #pragma GCC optimization ("unroll-loops")
|
blocks.cpp: In function 'int main()':
blocks.cpp:58:19: error: 'llt' was not declared in this scope; did you mean 'll'?
58 | stack<pair<ll,llt> > av;
| ^~~
| ll
blocks.cpp:58:22: error: template argument 2 is invalid
58 | stack<pair<ll,llt> > av;
| ^
blocks.cpp:58:24: error: template argument 1 is invalid
58 | stack<pair<ll,llt> > av;
| ^
blocks.cpp:58:24: error: template argument 2 is invalid
blocks.cpp:61:17: error: request for member 'empty' in 'av', which is of non-class type 'int'
61 | while(!av.empty() && a[av.top().se] <= a[j]) {
| ^~~~~
blocks.cpp:61:33: error: request for member 'top' in 'av', which is of non-class type 'int'
61 | while(!av.empty() && a[av.top().se] <= a[j]) {
| ^~~
blocks.cpp:62:27: error: request for member 'top' in 'av', which is of non-class type 'int'
62 | cur = min(cur, av.top().se);
| ^~~
blocks.cpp:63:12: error: request for member 'pop' in 'av', which is of non-class type 'int'
63 | av.pop();
| ^~~
blocks.cpp:65:14: error: request for member 'empty' in 'av', which is of non-class type 'int'
65 | if(!av.empty()) dp[ck][j] = min(dp[ck][j], dp[ck][av.top().fi]);
| ^~~~~
blocks.cpp:65:60: error: request for member 'top' in 'av', which is of non-class type 'int'
65 | if(!av.empty()) dp[ck][j] = min(dp[ck][j], dp[ck][av.top().fi]);
| ^~~
blocks.cpp:67:10: error: request for member 'push' in 'av', which is of non-class type 'int'
67 | av.push(mp(j, cur));
| ^~~~