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_15469909_14139.cpp: In function 'int main(int, const char**)':
0_0_15469909_14139.cpp:4:18: error: 'scanf' was not declared in this scope
     scanf("%d",&T);
                  ^
0_0_15469909_14139.cpp:11:25: error: 'front_arr' was not declared in this scope
             scanf("%d",&front_arr[i]);
                         ^
0_0_15469909_14139.cpp:12:13: error: 'back_arr' was not declared in this scope
             back_arr[i] = -front_arr[i];
             ^
0_0_15469909_14139.cpp:15:21: error: 'puts' was not declared in this scope
             puts("0"); continue;
                     ^
0_0_15469909_14139.cpp:17:16: error: 'LIS' was not declared in this scope
         memset(LIS, 0x7f, sizeof(LIS));
                ^
0_0_15469909_14139.cpp:17:38: error: 'memset' was not declared in this scope
         memset(LIS, 0x7f, sizeof(LIS));
                                      ^
0_0_15469909_14139.cpp:20:49: error: 'back_arr' was not declared in this scope
             int pos = lower_bound(LIS, LIS + N, back_arr[i]) - LIS + 1;
                                                 ^
0_0_15469909_14139.cpp:20:60: error: 'lower_bound' was not declared in this scope
             int pos = lower_bound(LIS, LIS + N, back_arr[i]) - LIS + 1;
                                                            ^
0_0_15469909_14139.cpp:21:13: error: 'back_len' was not declared in this scope
             back_len[i] = pos;
             ^
0_0_15469909_14139.cpp:28:49: error: 'front_arr' was not declared in this scope
             int pos = lower_bound(LIS, LIS + N, front_arr[i]) - (LIS);
                                                 ^
0_0_15469909_14139.cpp:28:61: error: 'lower_bound' was not declared in this scope
             int pos = lower_bound(LIS, LIS + N, front_arr[i]) - (LIS);
                                                             ^
0_0_15469909_14139.cpp:29:28: error: 'back_len' was not declared in this scope
             ans = max(ans, back_len[i] + pos);
                            ^
0_0_15469909_14139.cpp:29:45: error: 'max' was not declared in this scope
             ans = max(ans, back_len[i] + pos);
                                             ^
0_0_15469909_14139.cpp:34:52: error: 'max' was not declared in this scope
         printf("Case #%d: %d\n",++ cas, max(ans, mx));
                                                    ^
0_0_15469909_14139.cpp:34:53: error: 'printf' was not declared in this scope
         printf("Case #%d: %d\n",++ cas, max(ans, mx));
                                                     ^


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 18:22:32, Gzip enabled