Problem | knapsack |
---|---|
User | snorky |
Submission Time | 2024-01-24 12:46:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
knapsack.cpp:2:20: error: expected ‘;’ before ‘int’
2 | using namespace std
| ^
| ;
3 | int helper(int* v, int* w, int* k, int S, int index);
| ~~~
knapsack.cpp: In function ‘int main()’:
knapsack.cpp:7:15: error: expected initializer before ‘k’
7 | int v[N],w[N]k[N];
| ^
knapsack.cpp:13:8: error: ‘w’ was not declared in this scope
13 | cin>>w[i];
| ^
knapsack.cpp:16:8: error: ‘k’ was not declared in this scope
16 | cin>>k[i];
| ^
knapsack.cpp:18:17: error: ‘w’ was not declared in this scope
18 | cout<<helper(v,w,k,S,N);
| ^
knapsack.cpp:18:19: error: ‘k’ was not declared in this scope
18 | cout<<helper(v,w,k,S,N);
| ^
knapsack.cpp: In function ‘int helper(int*, int*, int*, int, int)’:
knapsack.cpp:31: