0_0_24279502_18458.cpp: In function 'int main()': 0_0_24279502_18458.cpp:23:5: error: 'dp' was not declared in this scope dp[y][i]=inf; ^