0_0_39345949_25199.cpp:2:9: error: 'N' was not declared in this scope
2 | char op[N];
| ^
0_0_39345949_25199.cpp:3:7: error: 'N' was not declared in this scope
3 | int v[N];
| ^
0_0_39345949_25199.cpp: In function 'int Mod(int)':
0_0_39345949_25199.cpp:6:15: error: 'P' was not declared in this scope
6 | return x>=P?x-P:x;
| ^
0_0_39345949_25199.cpp: In function 'void dfs(int, int, int, int)':
0_0_39345949_25199.cpp:14:12: error: 'op' was not declared in this scope
14 | if(op[i]=='+' && lst1<i) dfs(S-(1<<i),Mod(x+v[i]),i,-1);
| ^~
0_0_39345949_25199.cpp:14:53: error: 'v' was not declared in this scope
14 | if(op[i]=='+' && lst1<i) dfs(S-(1<<i),Mod(x+v[i]),i,-1);
| ^
0_0_39345949_25199.cpp:15:12: error: 'op' was not declared in this scope
15 | if(op[i]=='*' && lst2<i) dfs(S-(1<<i),1ll*x*v[i]%P,-1,i);
| ^~
0_0_39345949_25199.cpp:15:53: error: 'v' was not declared in this scope
15 | if(op[i]=='*' && lst2<i) dfs(S-(1<<i),1ll*x*v[i]%P,-1,i);
| ^
0_0_39345949_25199.cpp:15:58: error: 'P' was not declared in this scope
15 | if(op[i]=='*' && lst2<i) dfs(S-(1<<i),1ll*x*v[i]%P,-1,i);
| ^
0_0_39345949_25199.cpp: In function 'int main()':
0_0_39345949_25199.cpp:26:9: error: 'i' was not declared in this scope
26 | rep(i,0,9) bin[1<<i]=i;
| ^
0_0_39345949_25199.cpp:26:5: error: 'rep' was not declared in this scope
26 | rep(i,0,9) bin[1<<i]=i;
| ^~~
0_0_39345949_25199.cpp:28:9: error: '_' was not declared in this scope
28 | rep(_,1,rd()) {
| ^
0_0_39345949_25199.cpp:28:13: error: 'rd' was not declared in this scope
28 | rep(_,1,rd()) {
| ^~
|