rt,一开始开了个 315 的dp,还用了long long ,后来看题解发现要动态开数组,可是POJ上却是CE(包括现有的题解),显示如下:
Main.cpp(20) : error C2087: 'dp' : missing subscript
Main.cpp(20) : error C2057: expected constant expression
Main.cpp(20) : error C2466: cannot allocate an array of constant size 0
也试过unsigned int和其他乱七八糟的东西,还是过不了,求大佬调试。
附上源码。