rot.cpp:17:71: error: 'll' does not name a type; did you mean 'all'?
17 | int n, val[mxN], sub[mxN], tin[mxN], tout[mxN], tour[mxN], Time, cur; ll ans;
| ^~
| all
rot.cpp: In function 'void dfs(int)':
rot.cpp:93:5: error: 'll' was not declared in this scope; did you mean 'all'?
93 | ll res=0, rres=0;
| ^~
| all
rot.cpp:98:17: error: 'res' was not declared in this scope
98 | res+=fwt.get(val[tour[i]]-1);
| ^~~
rot.cpp:99:17: error: 'rres' was not declared in this scope
99 | rres+=rfwt.get(val[tour[i]]+1);
| ^~~~
rot.cpp:110:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
110 | ans += min(res, rres);
| ^~~
| abs
rot.cpp:110:16: error: 'res' was not declared in this scope
110 | ans += min(res, rres);
| ^~~
rot.cpp:110:21: error: 'rres' was not declared in this scope
110 | ans += min(res, rres);
| ^~~~
rot.cpp: In function 'int main()':
rot.cpp:128:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
128 | cout << ans;
| ^~~
| abs
rot.cpp:119:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
119 | freopen("test.inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
rot.cpp:120:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
120 | freopen("test.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~