0_0_20934212_11768.cpp:2:9: error: 'maxn' was not declared in this scope
int Min[maxn],Max[maxn];
^
0_0_20934212_11768.cpp:2:19: error: 'maxn' was not declared in this scope
int Min[maxn],Max[maxn];
^
0_0_20934212_11768.cpp: In function 'int SimpleSolve()':
0_0_20934212_11768.cpp:4:2: error: 'LL' was not declared in this scope
LL ANS=0;
^
0_0_20934212_11768.cpp:5:18: error: 'n' was not declared in this scope
for(int R=1;R <=n;++R){
^
0_0_20934212_11768.cpp:6:3: error: 'Min' was not declared in this scope
Min[R]=Max[R]=A[R];
^
0_0_20934212_11768.cpp:6:10: error: 'Max' was not declared in this scope
Min[R]=Max[R]=A[R];
^
0_0_20934212_11768.cpp:6:17: error: 'A' was not declared in this scope
Min[R]=Max[R]=A[R];
^
0_0_20934212_11768.cpp:9:26: error: 'min' was not declared in this scope
Min[L]=min(Min[L],A[R]);
^
0_0_20934212_11768.cpp:10:26: error: 'max' was not declared in this scope
Max[L]=max(Max[L],A[R]);
^
0_0_20934212_11768.cpp:12:4: error: 'ANS' was not declared in this scope
ANS=(ANS+(LL)Min[L]*Max[L]%MOD*(R-L+1))%MOD;
^
0_0_20934212_11768.cpp:12:17: error: expected ')' before 'Min'
ANS=(ANS+(LL)Min[L]*Max[L]%MOD*(R-L+1))%MOD;
^
0_0_20934212_11768.cpp:15:9: error: 'ANS' was not declared in this scope
return ANS;
^
|