knapsack.cpp: In function 'int main()':
knapsack.cpp:39:29: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
39 | #define FOR(a, b, c) for (ll(a) = (b); (a) < (c); ++(a))
| ^
knapsack.cpp:45:19: note: in expansion of macro 'FOR'
45 | #define rep(i, n) FOR(i, 0, n)
| ^~~
knapsack.cpp:250:5: note: in expansion of macro 'rep'
250 | rep(i,n){
| ^~~
knapsack.cpp:39:29: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
39 | #define FOR(a, b, c) for (ll(a) = (b); (a) < (c); ++(a))
| ^
knapsack.cpp:45:19: note: in expansion of macro 'FOR'
45 | #define rep(i, n) FOR(i, 0, n)
| ^~~
knapsack.cpp:254:5: note: in expansion of macro 'rep'
254 | rep(i,n){
| ^~~
knapsack.cpp:40:30: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
40 | #define FORN(a, b, c) for (ll(a) = (b); (a) <= (c); ++(a))
| ^
knapsack.cpp:257:5: note: in expansion of macro 'FORN'
257 | FORN(i,1,s) sort(item[i].begin(), item[i].end(), compf);
| ^~~~
knapsack.cpp:40:30: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
40 | #define FORN(a, b, c) for (ll(a) = (b); (a) <= (c); ++(a))
| ^
knapsack.cpp:259:5: note: in expansion of macro 'FORN'
259 | FORN(i,1,s) best[i].pb(0);
| ^~~~
knapsack.cpp:40:30: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
40 | #define FORN(a, b, c) for (ll(a) = (b); (a) <= (c); ++(a))
| ^
knapsack.cpp:261:5: note: in expansion of macro 'FORN'
261 | FORN(i,1,s){
| ^~~~
knapsack.cpp:264:19: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
264 | if(cur>=item[i].size()) break;
| ~~~^~~~~~~~~~~~~~~~
knapsack.cpp:39:29: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
39 | #define FOR(a, b, c) for (ll(a) = (b); (a) < (c); ++(a))
| ^
knapsack.cpp:45:19: note: in expansion of macro 'FOR'
45 | #define rep(i, n) FOR(i, 0, n)
| ^~~
knapsack.cpp:275:5: note: in expansion of macro 'rep'
275 | rep(i,s+1){
| ^~~
knapsack.cpp:39:29: warning: unnecessary parentheses in declaration of 'p' [-Wparentheses]
39 | #define FOR(a, b, c) for (ll(a) = (b); (a) < (c); ++(a))
| ^
knapsack.cpp:45:19: note: in expansion of macro 'FOR'
45 | #define rep(i, n) FOR(i, 0, n)
| ^~~
knapsack.cpp:276:9: note: in expansion of macro 'rep'
276 | rep(p,best[i].size()){
| ^~~
knapsack.cpp:39:44: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | #define FOR(a, b, c) for (ll(a) = (b); (a) < (c); ++(a))
| ~~~~^~~~~
knapsack.cpp:45:19: note: in expansion of macro 'FOR'
45 | #define rep(i, n) FOR(i, 0, n)
| ^~~
knapsack.cpp:276:9: note: in expansion of macro 'rep'
276 | rep(p,best[i].size()){
| ^~~
knapsack.cpp:39:29: warning: unnecessary parentheses in declaration of 'w' [-Wparentheses]
39 | #define FOR(a, b, c) for (ll(a) = (b); (a) < (c); ++(a))
| ^
knapsack.cpp:45:19: note: in expansion of macro 'FOR'
45 | #define rep(i, n) FOR(i, 0, n)
| ^~~
knapsack.cpp:277:13: note: in expansion of macro 'rep'
277 | rep(w,s+1){
| ^~~
knapsack.cpp:39:29: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
39 | #define FOR(a, b, c) for (ll(a) = (b); (a) < (c); ++(a))
| ^
knapsack.cpp:45:19: note: in expansion of macro 'FOR'
45 | #define rep(i, n) FOR(i, 0, n)
| ^~~
knapsack.cpp:284:5: note: in expansion of macro 'rep'
284 | rep(i,s+1) ans=max(ans,dp[i]);
| ^~~
knapsack.cpp:241:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
241 | freopen("sort.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
knapsack.cpp:242:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
242 | freopen("sort.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~