| Problem | 01knapsack |
|---|---|
| User | dacashew |
| Submission Time | 2024-01-21 22:09:57 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
01knapsack.cpp:4:44: error: expected unqualified-id before ‘p’
4 | int knapsack(int n,int w,int pair<int,int> p[]){
| ^
01knapsack.cpp:4:43: error: expected ‘)’ before ‘p’
4 | int knapsack(int n,int w,int pair<int,int> p[]){
| ~ ^~
| )
01knapsack.cpp:4:44: error: expected initializer before ‘p’
4 | int knapsack(int n,int w,int pair<int,int> p[]){
| ^
01knapsack.cpp: In function ‘int main()’:
01knapsack.cpp:32:8: error: ‘knapsack’ was not declared in this scope
32 | cout<<knapsack(n,w,p);
| ^~~~~~~~