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_15320116_27205.cpp:8:34: error: 'maxn' was not declared in this scope
 void sol(vector<int> arr, int dp[maxn]) {
                                  ^
0_0_15320116_27205.cpp:11:9: error: 'maxn' was not declared in this scope
 int dp1[maxn], dp2[maxn];
         ^
0_0_15320116_27205.cpp:11:20: error: 'maxn' was not declared in this scope
 int dp1[maxn], dp2[maxn];
                    ^
0_0_15320116_27205.cpp:13:10: error: 'maxn' was not declared in this scope
 int same[maxn];
          ^
0_0_15320116_27205.cpp: In function 'int main()':
0_0_15320116_27205.cpp:27:18: error: 'dp1' was not declared in this scope
         sol(arr, dp1);
                  ^
0_0_15320116_27205.cpp:32:18: error: 'dp2' was not declared in this scope
         sol(arr, dp2);
                  ^
0_0_15320116_27205.cpp:35:46: error: 'same' was not declared in this scope
             ans = max(ans, dp1[i] + dp2[i] - same[i]);
                                              ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 12:47:50, Gzip enabled