0_0_18336581_24947.cpp:5:9: error: 'maxn' was not declared in this scope
bool ok[maxn];
^
0_0_18336581_24947.cpp:6:8: error: 'maxn' was not declared in this scope
int dp[maxn];
^
0_0_18336581_24947.cpp: In function 'int main()':
0_0_18336581_24947.cpp:11:18: error: 'scanf' was not declared in this scope
scanf("%d",&T);
^
0_0_18336581_24947.cpp:15:16: error: 'ok' was not declared in this scope
memset(ok,0,sizeof ok);
^
0_0_18336581_24947.cpp:15:30: error: 'memset' was not declared in this scope
memset(ok,0,sizeof ok);
^
0_0_18336581_24947.cpp:16:21: error: 'strlen' was not declared in this scope
len=strlen(s);
^
0_0_18336581_24947.cpp:18:16: error: 'dp' was not declared in this scope
memset(dp,0x3f,sizeof dp);
^
0_0_18336581_24947.cpp:39:46: error: 'min' was not declared in this scope
dp[i]=min(dp[i],dp[i-j]+dp[j]); //或者是 x=(x-1)&x;
^
0_0_18336581_24947.cpp:42:29: error: 'printf' was not declared in this scope
printf("%d\n",dp[ed]);
^
|