| Problem | knapsack |
|---|---|
| User | LL |
| Submission Time | 2026-02-16 17:13:32 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
knapsack.cpp:3:21: error: expected ‘;’ before ‘using’
3 | using ll = long long
| ^
| ;
4 | using pll = pair<ll, ll>
| ~~~~~
knapsack.cpp:10:1: error: ‘ll’ does not name a type
10 | ll dp[2005];
| ^~
knapsack.cpp:12:12: error: variable or field ‘check’ declared void
12 | void check(ll curr_w, ll i){
| ^~
knapsack.cpp:12:12: error: ‘ll’ was not declared in this scope
knapsack.cpp:12:23: error: ‘ll’ was not declared in this scope
12 | void check(ll curr_w, ll i){
| ^~
knapsack.cpp: In function ‘int main()’:
knapsack.cpp:32:2: error: ‘ll’ was not declared in this scope
32 | ll s, n, v, w, k;
| ^~
knapsack.cpp:33:9: error: ‘s’ was not declared in this scope
33 | cin >> s >> n;
| ^
knapsack.cpp:33:14: error: ‘n’ was not declared in this s