0_0_29323827_26052.cpp:12:5: error: 'dp' does not name a type dp[MAX_V + 1]; ^ 0_0_29323827_26052.cpp: In function 'int main()': 0_0_29323827_26052.cpp:35:24: error: 'dp' was not declared in this scope memset(dp, -1, sizeof(dp)); ^