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_35533851_9527.cpp: In function 'int main()':
0_0_35533851_9527.cpp:98:29: error: invalid types 'int[int]' for array subscript
             scanf("%d", &a[i]);
                             ^
0_0_35533851_9527.cpp:100:16: error: 'dp' was not declared in this scope
         memset(dp, -1, sizeof(dp));
                ^
0_0_35533851_9527.cpp:101:16: error: 'has' was not declared in this scope
         memset(has, 0, sizeof(has));
                ^
0_0_35533851_9527.cpp:103:9: error: 'll' was not declared in this scope
         ll ans = 0;
         ^
0_0_35533851_9527.cpp:105:36: error: invalid conversion from 'int' to 'ValueType* {aka int*}' [-fpermissive]
         findLIS(LIST_STRICTLY, a, n);
                                    ^
0_0_35533851_9527.cpp:68:6: note: initializing argument 2 of 'void findLIS(LISType, ValueType*, int)'
 void findLIS(LISType lt, ValueType *a, int asize) {
      ^
0_0_35533851_9527.cpp:111:23: error: 'ans' was not declared in this scope
                     ++ans;
                       ^
0_0_35533851_9527.cpp:120:41: error: invalid types 'int[int]' for array subscript
                             a[++tmpasize] = a[j];
                                         ^
0_0_35533851_9527.cpp:120:48: error: invalid types 'int[int]' for array subscript
                             a[++tmpasize] = a[j];
                                                ^
0_0_35533851_9527.cpp:128:40: error: invalid conversion from 'int' to 'ValueType* {aka int*}' [-fpermissive]
             findLIS(LIST_STRICTLY, a, n);
                                        ^
0_0_35533851_9527.cpp:68:6: note: initializing argument 2 of 'void findLIS(LISType, ValueType*, int)'
 void findLIS(LISType lt, ValueType *a, int asize) {
      ^
0_0_35533851_9527.cpp:136:35: error: 'ans' was not declared in this scope
         printf("%d\n%lld\n", len, ans);
                                   ^


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-09-28 23:00:12, Gzip enabled