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_18149602_19851.cpp:4:8: error: 'N' was not declared in this scope
 int  a[N], g[N], d[N];    // g[i]用于记录 a[0...i]的最大长度
        ^
0_0_18149602_19851.cpp:4:14: error: 'N' was not declared in this scope
 int  a[N], g[N], d[N];    // g[i]用于记录 a[0...i]的最大长度
              ^
0_0_18149602_19851.cpp:4:20: error: 'N' was not declared in this scope
 int  a[N], g[N], d[N];    // g[i]用于记录 a[0...i]的最大长度
                    ^
0_0_18149602_19851.cpp: In function 'int main()':
0_0_18149602_19851.cpp:10:16: error: 'd' was not declared in this scope
         memset(d,0,sizeof(d));
                ^
0_0_18149602_19851.cpp:12:44: error: 'a' was not declared in this scope
         for( i=0; i < n; ++i )scanf("%d", &a[i]);
                                            ^
0_0_18149602_19851.cpp:14:32: error: 'g' was not declared in this scope
         for(int i=1; i<=n; i++)g[i]=inf;
                                ^
0_0_18149602_19851.cpp:16:29: error: 'g' was not declared in this scope
           int k=lower_bound(g+1, g+n+1, a[i])-g;//在g[1]到g[n]中找
                             ^
0_0_18149602_19851.cpp:16:41: error: 'a' was not declared in this scope
           int k=lower_bound(g+1, g+n+1, a[i])-g;//在g[1]到g[n]中找
                                         ^


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-16 05:10:41, Gzip enabled