Problem | shopping |
---|---|
User | Pan |
Submission Time | 2024-05-20 18:36:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
shopping.cpp: In function ‘int main()’:
shopping.cpp:50:26: error: ‘now’ was not declared in this scope; did you mean ‘pow’?
50 | if ((1LL << bit) > s) now = s- (1LL << now);
| ^~~
| pow
shopping.cpp:51:9: error: ‘now’ was not declared in this scope; did you mean ‘pow’?
51 | else now = (1LL << bit);
| ^~~
| pow
shopping.cpp:52:8: error: ‘now’ was not declared in this scope; did you mean ‘pow’?
52 | if (now*b > d) break;
| ^~~
| pow
shopping.cpp:54:18: error: ‘now’ was not declared in this scope; did you mean ‘pow’?
54 | for (ll i=d-b*now; i>=0; --i) dp2[i + b*now] = max(dp2[i] + x*now, dp2[i + b*now]);
| ^~~
| pow
shopping.cpp:55:8: error: ‘now’ was not declared in this scope; did you mean ‘pow’?
55 | s-= now;