quality.cpp: In function 'bool check(int)':
quality.cpp:48:1: warning: control reaches end of non-void function [-Wreturn-type]
48 | }
| ^
quality.cpp:16:24: warning: iteration 5001 invokes undefined behavior [-Waggressive-loop-optimizations]
16 | pref[i][j] = 0;
| ~~~~~~~~~~~^~~
quality.cpp:3:33: note: within this loop
3 | #define FOR(i,x,y) for(ll i=x; i<y; i++)
......
15 | FOR(j,0,5002){
| ~~~~~~~~
quality.cpp:15:9: note: in expansion of macro 'FOR'
15 | FOR(j,0,5002){
| ^~~
quality.cpp:29:28: warning: iteration 5000 invokes undefined behavior [-Waggressive-loop-optimizations]
29 | pref[i][j] += pref[i-1][j];
| ~~~~~~~~~~~^~~~~~~~~~~~~~~
quality.cpp:3:33: note: within this loop
3 | #define FOR(i,x,y) for(ll i=x; i<y; i++)
......
28 | FOR(j,1,5002){
| ~~~~~~~~
quality.cpp:28:13: note: in expansion of macro 'FOR'
28 | FOR(j,1,5002){
| ^~~
quality.cpp:34:28: warning: iteration 5000 invokes undefined behavior [-Waggressive-loop-optimizations]
34 | pref[j][i] += pref[j-1][i];
| ~~~~~~~~~~~^~~~~~~~~~~~~~~
quality.cpp:3:33: note: within this loop
3 | #define FOR(i,x,y) for(ll i=x; i<y; i++)
......
33 | FOR(j,1,5002){
| ~~~~~~~~
quality.cpp:33:13: note: in expansion of macro 'FOR'
33 | FOR(j,1,5002){
| ^~~