F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;
         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-17 08:36:04, Gzip enabled