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