knapsack.cpp: In function 'void solve(int)':
knapsack.cpp:46:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Item>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | for(int pos = 0; pos < items[i].size(); pos++){
| ~~~~^~~~~~~~~~~~~~~~~
knapsack.cpp:9:19: warning: statement has no effect [-Wunused-value]
9 | #define pr(...) 69
| ^~
knapsack.cpp:58:3: note: in expansion of macro 'pr'
58 | pr(arr);
| ^~
knapsack.cpp:60:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for(int i = 1; i <= arr.size(); i++){
| ~~^~~~~~~~~~~~~
knapsack.cpp:34:8: warning: variable 'print' set but not used [-Wunused-but-set-variable]
34 | auto print = [&](vector<Item> a){
| ^~~~~
knapsack.cpp: In function 'int main()':
knapsack.cpp:9:19: warning: statement has no effect [-Wunused-value]
9 | #define pr(...) 69
| ^~
knapsack.cpp:78:5: note: in expansion of macro 'pr'
78 | pr(t); prs(string(50, '-'));
| ^~
knapsack.cpp:10:20: warning: statement has no effect [-Wunused-value]
10 | #define prs(...) 69
| ^~
knapsack.cpp:78:12: note: in expansion of macro 'prs'
78 | pr(t); prs(string(50, '-'));
| ^~~
knapsack.cpp:10:20: warning: statement has no effect [-Wunused-value]
10 | #define prs(...) 69
| ^~
knapsack.cpp:80:5: note: in expansion of macro 'prs'
80 | prs(string(50, '-') + "\n");
| ^~~