0_0_23582349_30799.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_23582349_30799.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_23582349_30799.cpp: In function 'int main()':
0_0_23582349_30799.cpp:6:18: error: expected ')' before ';' token
scanf("%d",&T;);
^
0_0_23582349_30799.cpp:6:19: error: expected primary-expression before ')' token
scanf("%d",&T;);
^
0_0_23582349_30799.cpp:10:24: error: expected ')' before ';' token
scanf("%d%d",&n;,&v;);
^
0_0_23582349_30799.cpp:10:25: error: expected primary-expression before ',' token
scanf("%d%d",&n;,&v;);
^
0_0_23582349_30799.cpp:10:29: error: expected primary-expression before ')' token
scanf("%d%d",&n;,&v;);
^
0_0_23582349_30799.cpp:11:28: error: 'j' was not declared in this scope
for(int i=0;i=V[i];j--){
^
0_0_23582349_30799.cpp:12:17: error: 'dp' was not declared in this scope
dp[j]=max(dp[j],dp[j-V[i]]+N[i]);
^
0_0_23582349_30799.cpp:12:48: error: 'max' was not declared in this scope
dp[j]=max(dp[j],dp[j-V[i]]+N[i]);
^
0_0_23582349_30799.cpp:15:23: error: 'dp' was not declared in this scope
printf("%d\n",dp[v]);
^
0_0_23582349_30799.cpp:15:28: error: 'printf' was not declared in this scope
printf("%d\n",dp[v]);
^
0_0_23582349_30799.cpp: At global scope:
0_0_23582349_30799.cpp:17:5: error: expected unqualified-id before 'return'
return 0;
^
0_0_23582349_30799.cpp:18:1: error: expected declaration before '}' token
}
^
|