sortbooks.cpp: In function 'void Read()':
sortbooks.cpp:12:40: warning: comparison of integer expressions of different signedness: 'ull' {aka 'long long unsigned int'} and 'll' {aka 'long long int'} [-Wsign-compare]
12 | #define FOR(i, a, b, c) for (ull i=a; i<=b; i+=c)
......
46 | FOR(i, 1, n, 1) cin >> A[i];
| ~~~~~~~
sortbooks.cpp:46:5: note: in expansion of macro 'FOR'
46 | FOR(i, 1, n, 1) cin >> A[i];
| ^~~
sortbooks.cpp:12:40: warning: comparison of integer expressions of different signedness: 'ull' {aka 'long long unsigned int'} and 'll' {aka 'long long int'} [-Wsign-compare]
12 | #define FOR(i, a, b, c) for (ull i=a; i<=b; i+=c)
......
47 | FOR(i, 1, m, 1) {
| ~~~~~~~
sortbooks.cpp:47:5: note: in expansion of macro 'FOR'
47 | FOR(i, 1, m, 1) {
| ^~~
sortbooks.cpp: In function 'void Solve()':
sortbooks.cpp:12:40: warning: comparison of integer expressions of different signedness: 'ull' {aka 'long long unsigned int'} and 'll' {aka 'long long int'} [-Wsign-compare]
12 | #define FOR(i, a, b, c) for (ull i=a; i<=b; i+=c)
......
57 | FOR(i, 1, m, 1) {
| ~~~~~~~
sortbooks.cpp:57:5: note: in expansion of macro 'FOR'
57 | FOR(i, 1, m, 1) {
| ^~~
sortbooks.cpp:12:40: warning: comparison of integer expressions of different signedness: 'ull' {aka 'long long unsigned int'} and 'll' {aka 'long long int'} [-Wsign-compare]
12 | #define FOR(i, a, b, c) for (ull i=a; i<=b; i+=c)
......
65 | FOR(i, 1, m, 1) cout << res[i] << '\n';
| ~~~~~~~
sortbooks.cpp:65:5: note: in expansion of macro 'FOR'
65 | FOR(i, 1, m, 1) cout << res[i] << '\n';
| ^~~
sortbooks.cpp: In function 'int main()':
sortbooks.cpp:70:17: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
70 | freopen (task".inp", "r", stdin);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
sortbooks.cpp:71:17: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
71 | freopen (task".out", "w", stdout);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~