boxes.cpp: In function 'long long int solve(int, int)':
boxes.cpp:10:11: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
10 | #define s second
| ^~~~~~
boxes.cpp:57:16: note: in expansion of macro 's'
57 | tek -= fi[i].s;
| ^
boxes.cpp:10:11: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
10 | #define s second
| ^~~~~~
boxes.cpp:67:16: note: in expansion of macro 's'
67 | tek -= se[i].s;
| ^
boxes.cpp:14:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | #define FOR(i, j, n) for(int j = i; j < n; ++j)
......
72 | FOR(0, i, fi.size())
| ~~~~~~~~~~~~
boxes.cpp:72:2: note: in expansion of macro 'FOR'
72 | FOR(0, i, fi.size())
| ^~~
boxes.cpp:10:11: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
10 | #define s second
| ^~~~~~
boxes.cpp:86:16: note: in expansion of macro 's'
86 | tek -= fi[i].s;
| ^
boxes.cpp:14:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | #define FOR(i, j, n) for(int j = i; j < n; ++j)
......
90 | FOR(0, i, se.size())
| ~~~~~~~~~~~~
boxes.cpp:90:2: note: in expansion of macro 'FOR'
90 | FOR(0, i, se.size())
| ^~~
boxes.cpp:10:11: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
10 | #define s second
| ^~~~~~
boxes.cpp:104:16: note: in expansion of macro 's'
104 | tek -= se[i].s;
| ^
boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:14:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | #define FOR(i, j, n) for(int j = i; j < n; ++j)
......
133 | FOR(0, i, p.size())
| ~~~~~~~~~~~
boxes.cpp:133:2: note: in expansion of macro 'FOR'
133 | FOR(0, i, p.size())
| ^~~
boxes.cpp:10:11: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
10 | #define s second
| ^~~~~~
boxes.cpp:137:13: note: in expansion of macro 's'
137 | N += p[i].s;
| ^