0_0_36719282_4348.cpp: In member function 'void rd_ac()::Node1::rmq_init()':
0_0_36719282_4348.cpp:55:10: error: use of local variable with automatic storage from containing function
memset(f,0,sizeof(f));
^
0_0_36719282_4348.cpp:50:5: note: 'int f [400010][25]' declared here
int f[N][25];
^
0_0_36719282_4348.cpp:56:21: error: use of local variable with automatic storage from containing function
for(int i=1;i<=n;i++) f[i][0]=i;
^
0_0_36719282_4348.cpp:42:5: note: 'int n' declared here
int n,m;
^
0_0_36719282_4348.cpp:56:28: error: use of local variable with automatic storage from containing function
for(int i=1;i<=n;i++) f[i][0]=i;
^
0_0_36719282_4348.cpp:50:5: note: 'int f [400010][25]' declared here
int f[N][25];
^
0_0_36719282_4348.cpp:57:16: error: use of local variable with automatic storage from containing function
int t=log(n)/log(2)+1;
^
0_0_36719282_4348.cpp:42:5: note: 'int n' declared here
int n,m;
^
0_0_36719282_4348.cpp:59:25: error: use of local variable with automatic storage from containing function
for(int i=1;i<=n-(1<<j)+1;i++) {
^
0_0_36719282_4348.cpp:42:5: note: 'int n' declared here
int n,m;
^
0_0_36719282_4348.cpp:60:14: error: use of local variable with automatic storage from containing function
if(a[f[i][j-1]]<a[f[i+(1ll<<(j-1))][j-1]]) f[i][j]=f[i][j-1];
^
0_0_36719282_4348.cpp:43:5: note: 'int a [400010]' declared here
int a[N];
^
0_0_36719282_4348.cpp:60:16: error: use of local variable with automatic storage from containing function
if(a[f[i][j-1]]<a[f[i+(1ll<<(j-1))][j-1]]) f[i][j]=f[i][j-1];
^
0_0_36719282_4348.cpp:50:5: note: 'int f [400010][25]' declared here
int f[N][25];
^
0_0_36719282_4348.cpp:60:27: error: use of local variable with automatic storage from containing function
if(a[f[i][j-1]]<a[f[i+(1ll<<(j-1))][j-1]]) f[i][j]=f[i][j-1];
^
0_0_36719282_4348.cpp:43:5: note: 'int a [400010]' declared here
int a[N];
^
0_0_36719282_4348.cpp:60:29: error: use of local variable with automatic storage from containing function
if(a[f[i][j-1]]<a[f[i+(1ll<<(j-1))][j-1]]) f[i][j]=f[i][j-1];
^
0_0_36719282_4348.cpp:50:5: note: 'int f [400010][25]' declared here
int f[N][25];
^
0_0_36719282_4348.cpp:60:54: error: use of local variable with automatic storage from containing function
if(a[f[i][j-1]]<a[f[i+(1ll<<(j-1))][j-1]]) f[i][j]=f[i][j-1];
^
0_0_36719282_4348.cpp:50:5: note: 'int f [400010][25]' declared here
int f[N][25];
^
0_0_36719282_4348.cpp:60:62: error: use of local variable with automatic storage from containing function
if(a[f[i][j-1]]<a[f[i+(1ll<<(j-1))][j-1]]) f[i][j]=f[i][j-1];
^
0_0_36719282_4348.cpp:50:5: note: 'int f [400010][25]' declared here
int f[N][25];
^
0_0_36719282_4348.cpp:61:19: error: use of local variable with automatic storage from containing function
else if(a[f[i][j-1]]>=a[f[i+(1ll<<(j-1))][j-1]]) f[i][j]=f[i+(1ll<<(j-1))][j-1];
^
0_0_36719282_4348.cpp:43:5: note: 'int a [400010]' declared here
int a[N];
^
0_0_36719282_4348.cpp:61:21: error: use of local variable with automatic storage from containing function
else if(a[f[i][j-1]]>=a[f[i+(1ll<<(j-1))][j-1]]) f[i][j]=f[i+(1ll<<(j-1))][j-1];
^
0_0_36719282_4348.cpp:50:5: note: 'int f [400010][25]' declared here
int f[N][25];
^
0_0_36719282_4348.cpp:61:33: error: use of local variable with automatic storage from containing function
else if(a[f[i][j-1]]>=a[f[i+(1ll<<(j-1))][j-1]]) f[i][j]=f[i+(1ll<<(j-1))][j-1];
^
0_0_36719282_4348.cpp:43:5: note: 'int a [400010]' declared here
int a[N];
^
0_0_36719282_4348.cpp:61:35: error: use of local variable with automatic storage from containing function
else if(a[f[i][j-1]]>=a[f[i+(1ll<<(j-1))][j-1]]) f[i][j]=f[i+(1ll<<(j-1))][j-1];
^
0_0_36719282_4348.cpp:50:5: note: 'int f [400010][25]' declared here
int f[N][25];
^
0_0_36719282_4348.cpp:61:60: error: use of local variable with automatic storage from containing function
else if(a[f[i][j-1]]>=a[f[i+(1ll<<(j-1))][j-1]]) f[i][j]=f[i+(1ll<<(j-1))][j-1];
^
0_0_36719282_4348.cpp:50:5: note: 'int f [400010][25]' declared here
int f[N][25];
^
0_0_36719282_4348.cpp:61:68: error: use of local variable with automatic storage from containing function
else if(a[f[i][j-1]]>=a[f[i+(1ll<<(j-1))][j-1]]) f[i][j]=f[i+(1ll<<(j-1))][j-1];
^
0_0_36719282_4348.cpp:50:5: note: 'int f [400010][25]' declared here
int f[N][25];
^
0_0_36719282_4348.cpp: In member function 'int rd_ac()::Node1::query(int, int)':
0_0_36719282_4348.cpp:66:9: error: use of local variable with automatic storage from containing function
int t=len[r-l+1];
^
0_0_36719282_4348.cpp:47:5: note: 'int len [400010]' declared here
int len[N];
^
0_0_36719282_4348.cpp:67:6: error: use of local variable with automatic storage from containing function
if(a[f[l][t]]<a[f[r-(1<<t)+1][t]]) return f[l][t];
^
0_0_36719282_4348.cpp:43:5: note: 'int a [400010]' declared here
int a[N];
^
0_0_36719282_4348.cpp:67:8: error: use of local variable with automatic storage from containing function
if(a[f[l][t]]<a[f[r-(1<<t)+1][t]]) return f[l][t];
^
0_0_36719282_4348.cpp:50:5: note: 'int f [400010][25]' declared here
int f[N][25];
^
0_0_36719282_4348.cpp:67:17: error: use of local variable with automatic storage from containing function
if(a[f[l][t]]<a[f[r-(1<<t)+1][t]]) return f[l][t];
^
0_0_36719282_4348.cpp:43:5: note: 'int a [400010]' declared here
int a[N];
^
0_0_36719282_4348.cpp:67:19: error: use of local variable with automatic storage from containing function
if(a[f[l][t]]<a[f[r-(1<<t)+1][t]]) return f[l][t];
^
0_0_36719282_4348.cpp:50:5: note: 'int f [400010][25]' declared here
int f[N][25];
^
0_0_36719282_4348.cpp:67:45: error: use of local variable with automatic storage from containing function
if(a[f[l][t]]<a[f[r-(1<<t)+1][t]]) return f[l][t];
^
0_0_36719282_4348.cpp:50:5: note: 'int f [400010][25]' declared here
int f[N][25];
^
0_0_36719282_4348.cpp:68:16: error: use of local variable with automatic storage from containing function
else return f[r-(1<<t)+1][t];
^
0_0_36719282_4348.cpp:50:5: note: 'int f [400010][25]' declared here
int f[N][25];
^
0_0_36719282_4348.cpp: In member function 'void rd_ac()::Node1::init()':
0_0_36719282_4348.cpp:72:3: error: use of local variable with automatic storage from containing function
top=0;
^
0_0_36719282_4348.cpp:44:12: note: 'int top' declared here
int stk[N],top;
^
0_0_36719282_4348.cpp:73:3: error: use of local variable with automatic storage from containing function
suf[n+1]=0; ssum[n+1]=0;
^
0_0_36719282_4348.cpp:45:4: note: 'LL suf [400010]' declared here
LL suf[N],pre[N];
^
0_0_36719282_4348.cpp:73:7: error: use of local variable with automatic storage from containing function
suf[n+1]=0; ssum[n+1]=0;
^
0_0_36719282_4348.cpp:42:5: note: 'int n' declared here
int n,m;
^
0_0_36719282_4348.cpp:73:15: error: use of local variable with automatic storage from containing function
suf[n+1]=0; ssum[n+1]=0;
^
0_0_36719282_4348.cpp:46:12: note: 'LL ssum [400010]' declared here
LL psum[N],ssum[N];
^
0_0_36719282_4348.cpp:73:20: error: use of local variable with automatic storage from containing function
suf[n+1]=0; ssum[n+1]=0;
^
0_0_36719282_4348.cpp:42:5: note: 'int n' declared here
int n,m;
^
0_0_36719282_4348.cpp: In member function 'void rd_ac()::Node1::get()':
0_0_36719282_4348.cpp:78:10: error: use of local variable with automatic storage from containing function
memset(suf,0,sizeof(suf));
^
0_0_36719282_4348.cpp:45:4: note: 'LL suf [400010]' declared here
LL suf[N],pre[N];
^
0_0_36719282_4348.cpp:79:10: error: use of local variable with automatic storage from containing function
memset(pre,0,sizeof(pre));
^
0_0_36719282_4348.cpp:45:11: note: 'LL pre [400010]' declared here
LL suf[N],pre[N];
^
0_0_36719282_4348.cpp:80:10: error: use of local variable with automatic storage from containing function
memset(psum,0,sizeof(psum));
^
0_0_36719282_4348.cpp:46:4: note: 'LL psum [400010]' declared here
LL psum[N],ssum[N];
^
0_0_36719282_4348.cpp:81:10: error: use of local variable with automatic storage from containing function
memset(ssum,0,sizeof(ssum));
^
0_0_36719282_4348.cpp:46:12: note: 'LL ssum [400010]' declared here
LL psum[N],ssum[N];
^
0_0_36719282_4348.cpp:82:18: error: use of local variable with automatic storage from containing function
for(int i=1;i<=n;i++) {
^
0_0_36719282_4348.cpp:42:5: note: 'int n' declared here
int n,m;
|