0_0_36632027_5340.cpp:27:9: error: 'N' was not declared in this scope
char op[N];
^
0_0_36632027_5340.cpp:28:7: error: 'N' was not declared in this scope
int v[N];
^
0_0_36632027_5340.cpp: In function 'int Mod(int)':
0_0_36632027_5340.cpp:31:15: error: 'P' was not declared in this scope
return x>=P?x-P:x;
^
0_0_36632027_5340.cpp: In function 'void dfs(int, int, int, int)':
0_0_36632027_5340.cpp:39:12: error: 'op' was not declared in this scope
if(op[i]=='+' && lst1<i) dfs(S-(1<<i),Mod(x+v[i]),i,-1);
^
0_0_36632027_5340.cpp:39:53: error: 'v' was not declared in this scope
if(op[i]=='+' && lst1<i) dfs(S-(1<<i),Mod(x+v[i]),i,-1);
^
0_0_36632027_5340.cpp:40:12: error: 'op' was not declared in this scope
if(op[i]=='*' && lst2<i) dfs(S-(1<<i),1ll*x*v[i]%P,-1,i);
^
0_0_36632027_5340.cpp:40:53: error: 'v' was not declared in this scope
if(op[i]=='*' && lst2<i) dfs(S-(1<<i),1ll*x*v[i]%P,-1,i);
^
0_0_36632027_5340.cpp:40:58: error: 'P' was not declared in this scope
if(op[i]=='*' && lst2<i) dfs(S-(1<<i),1ll*x*v[i]%P,-1,i);
^
0_0_36632027_5340.cpp: In function 'int main()':
0_0_36632027_5340.cpp:54:13: error: 'P' was not declared in this scope
ans=P;
^
0_0_36632027_5340.cpp:58:19: error: 'op' was not declared in this scope
while(op[i]=getchar(), op[i]!='*' && op[i]!='+');
^
0_0_36632027_5340.cpp:59:13: error: 'v' was not declared in this scope
v[i]=rd();
^
0_0_36632027_5340.cpp:64:25: error: 'op' was not declared in this scope
rep(i,0,n-1) if(op[i]=='*') S|=1<<i;
^
0_0_36632027_5340.cpp:81:51: error: 'v' was not declared in this scope
rep(i,0,n-1) if(x&(1<<i)) w=1ll*w*v[i]%P;
^
|