0_0_14959836_1052.cpp:3:12: error: 'MAXN' was not declared in this scope
int cc[MAXN],n;
^
0_0_14959836_1052.cpp: In member function 'void BIT::init(int)':
0_0_14959836_1052.cpp:6:16: error: 'cc' was not declared in this scope
memset(cc,0,sizeof(int)*(n+1));
^
0_0_14959836_1052.cpp:6:38: error: 'memset' was not declared in this scope
memset(cc,0,sizeof(int)*(n+1));
^
0_0_14959836_1052.cpp: In member function 'void BIT::update(int, int)':
0_0_14959836_1052.cpp:10:13: error: 'cc' was not declared in this scope
cc[v]=max(cc[v],x);
^
0_0_14959836_1052.cpp:10:30: error: 'max' was not declared in this scope
cc[v]=max(cc[v],x);
^
0_0_14959836_1052.cpp: In member function 'int BIT::query(int)':
0_0_14959836_1052.cpp:17:25: error: 'cc' was not declared in this scope
ans=max(ans,cc[v]);
^
0_0_14959836_1052.cpp:17:30: error: 'max' was not declared in this scope
ans=max(ans,cc[v]);
^
0_0_14959836_1052.cpp: At global scope:
0_0_14959836_1052.cpp:23:9: error: 'MAXN' was not declared in this scope
int N,A[MAXN],C[MAXN],L,M,dp[MAXN][2];
^
0_0_14959836_1052.cpp:23:17: error: 'MAXN' was not declared in this scope
int N,A[MAXN],C[MAXN],L,M,dp[MAXN][2];
^
0_0_14959836_1052.cpp:23:30: error: 'MAXN' was not declared in this scope
int N,A[MAXN],C[MAXN],L,M,dp[MAXN][2];
^
0_0_14959836_1052.cpp: In function 'int main()':
0_0_14959836_1052.cpp:25:24: error: 'scanf' was not declared in this scope
int T;scanf("%d",&T);
^
0_0_14959836_1052.cpp:30:25: error: 'A' was not declared in this scope
scanf("%d",&A[i]);
^
0_0_14959836_1052.cpp:31:13: error: 'C' was not declared in this scope
C[L++]=A[i];
^
0_0_14959836_1052.cpp:33:14: error: 'C' was not declared in this scope
sort(C,C+L);
^
0_0_14959836_1052.cpp:33:19: error: 'sort' was not declared in this scope
sort(C,C+L);
^
0_0_14959836_1052.cpp:34:23: error: 'unique' was not declared in this scope
L=unique(C,C+L)-C;
^
0_0_14959836_1052.cpp:36:13: error: 'A' was not declared in this scope
A[i]=lower_bound(C,C+L,A[i])-C+1;
^
0_0_14959836_1052.cpp:36:40: error: 'lower_bound' was not declared in this scope
A[i]=lower_bound(C,C+L,A[i])-C+1;
^
0_0_14959836_1052.cpp:38:16: error: 'dp' was not declared in this scope
memset(dp,0,sizeof dp);
^
0_0_14959836_1052.cpp:38:30: error: 'memset' was not declared in this scope
memset(dp,0,sizeof dp);
^
0_0_14959836_1052.cpp:43:35: error: 'A' was not declared in this scope
dp[i][0]=bit[0].query(A[i]-1)+1;
^
0_0_14959836_1052.cpp:46:61: error: 'max' was not declared in this scope
dp[i][1]=max(dp[i][1],bit[1].query(A[i]-1)+1);
^
0_0_14959836_1052.cpp:49:61: error: 'max' was not declared in this scope
dp[i][1]=max(dp[i][1],bit[2].query(A[i]-1)+1);
^
0_0_14959836_1052.cpp:58:33: error: 'max' was not declared in this scope
ans=max(ans,dp[i][1]);
^
0_0_14959836_1052.cpp:60:31: error: 'max' was not declared in this scope
ans=max(ans,dp[N-M][0]);
^
0_0_14959836_1052.cpp:61:40: error: 'printf' was not declared in this scope
printf("Case #%d: %d\n",cas,ans);
^
|