knapsack.cpp: In function 'void always424()':
knapsack.cpp:3:5: error: 'cin' was not declared in this scope
3 | cin >> s >> n;
| ^~~
knapsack.cpp:4:12: error: 'tuple' was not declared in this scope
4 | vector<tuple<int, int, int>> v(n);
| ^~~~~
knapsack.cpp:4:5: error: 'vector' was not declared in this scope
4 | vector<tuple<int, int, int>> v(n);
| ^~~~~~
knapsack.cpp:4:18: error: expected primary-expression before 'int'
4 | vector<tuple<int, int, int>> v(n);
| ^~~
knapsack.cpp:9:9: error: 'v' was not declared in this scope
9 | v[i] = make_tuple(a, b, c);
| ^
knapsack.cpp:9:16: error: 'make_tuple' was not declared in this scope
9 | v[i] = make_tuple(a, b, c);
| ^~~~~~~~~~
knapsack.cpp:12:5: error: 'll' was not declared in this scope
12 | ll tot = 0; // Start from zero weight
| ^~
knapsack.cpp:13:7: error: expected ';' before 'ans'
13 | ll ans = 0;
| ^~~~
| ;
knapsack.cpp:15:23: error: 'v' was not declared in this scope
15 | int cost = get<0>(v[0]);
| ^
knapsack.cpp:15:16: error: 'get' was not declared in this scope
15 | int cost = get<0>(v[0]);
| ^~~~~~
knapsack.cpp:19:28: error: 'tot' was not declared in this scope
19 | while (quantity > 0 && tot + weight <= s) {
| ^~~
knapsack.cpp:21:9: error: 'ans' was not declared in this scope
21 | ans += cost;
| ^~~
knapsack.cpp:25:5: error: 'cout' was not declared in this scope; did you mean 'cost'?
25 | cout << ans << '\n';
| ^~~~
| cost
knapsack.cpp:25:13: error: 'ans' was not declared in this scope
25 | cout << ans << '\n';
| ^~~