0_0_39345953_7454.cpp:5:9: error: 'N' was not declared in this scope
5 | char op[N];
| ^
0_0_39345953_7454.cpp:6:7: error: 'N' was not declared in this scope
6 | int v[N];
| ^
0_0_39345953_7454.cpp: In function 'int Mod(int)':
0_0_39345953_7454.cpp:9:15: error: 'P' was not declared in this scope
9 | return x>=P?x-P:x;
| ^
0_0_39345953_7454.cpp: In function 'void dfs(int, int, int, int)':
0_0_39345953_7454.cpp:17:12: error: 'op' was not declared in this scope
17 | if(op[i]=='+' && lst1<i) dfs(S-(1<<i),Mod(x+v[i]),i,-1);
| ^~
0_0_39345953_7454.cpp:17:53: error: 'v' was not declared in this scope
17 | if(op[i]=='+' && lst1<i) dfs(S-(1<<i),Mod(x+v[i]),i,-1);
| ^
0_0_39345953_7454.cpp:18:12: error: 'op' was not declared in this scope
18 | if(op[i]=='*' && lst2<i) dfs(S-(1<<i),1ll*x*v[i]%P,-1,i);
| ^~
0_0_39345953_7454.cpp:18:53: error: 'v' was not declared in this scope
18 | if(op[i]=='*' && lst2<i) dfs(S-(1<<i),1ll*x*v[i]%P,-1,i);
| ^
0_0_39345953_7454.cpp:18:58: error: 'P' was not declared in this scope
18 | if(op[i]=='*' && lst2<i) dfs(S-(1<<i),1ll*x*v[i]%P,-1,i);
| ^
0_0_39345953_7454.cpp: In function 'int main()':
0_0_39345953_7454.cpp:31:13: error: 'rd' was not declared in this scope
31 | rep(_,1,rd()) {
| ^~
0_0_39345953_7454.cpp:2:35: note: in definition of macro 'rep'
2 | #define rep(i,a,b) for(int i=a;i<=b;i++)
| ^
0_0_39345953_7454.cpp:32:13: error: 'P' was not declared in this scope
32 | ans=P;
| ^
0_0_39345953_7454.cpp:36:19: error: 'op' was not declared in this scope
36 | while(op[i]=getchar(), op[i]!='*' && op[i]!='+');
| ^~
0_0_39345953_7454.cpp:37:13: error: 'v' was not declared in this scope
37 | v[i]=rd();
| ^
0_0_39345953_7454.cpp:42:25: error: 'op' was not declared in this scope
42 | rep(i,0,n-1) if(op[i]=='*') S|=1<<i;
| ^~
0_0_39345953_7454.cpp:59:51: error: 'v' was not declared in this scope
59 | rep(i,0,n-1) if(x&(1<<i)) w=1ll*w*v[i]%P;
| ^
0_0_39345953_7454.cpp:2:33: error: lvalue required as left operand of assignment
2 | #define rep(i,a,b) for(int i=a;i<=b;i++)
| ^
0_0_39345953_7454.cpp:62:17: note: in expansion of macro 'rep'
62 | rep(i,1,c2=c) st2[i]=1ll*st[i]*w%P;
| ^~~
0_0_39345953_7454.cpp:65:17: error: 'sort' was not declared in this scope
65 | sort(st+1,st+c+1),sort(st2+1,st2+c2+1);
| ^~~~
0_0_39345953_7454.cpp:65:17: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:73,
from .\stdc++.h:51:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort'
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:63:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algo.h:1801:30: note: 'std::ranges::sort'
1801 | inline constexpr __sort_fn sort{};
| ^~~~
0_0_39345953_7454.cpp:67:17: error: 'drep' was not declared in this scope; did you mean 'rep'?
67 | drep(i,c,1) {
| ^~~~
| rep
|