0_0_23845062_22792.cpp: In function 'int main()': 0_0_23845062_22792.cpp:49:38: error: 'I' was not declared in this scope dp[i]=Query(1,1,maxn,1,a[I] + 1)+1; ^