joi2019_ho_t4.cpp: In function 'int main()':
joi2019_ho_t4.cpp:43:24: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
43 | if (mp[i][2] > 1) {
| ~~~~~~~^
joi2019_ho_t4.cpp:44:26: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
44 | mp[i][2] -= 1;
| ~~~~~~~~~^~~~
joi2019_ho_t4.cpp:51:20: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
51 | if (mp[i][2] == 0) {
| ~~~~~~~^
joi2019_ho_t4.cpp:54:26: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
54 | mp[i][2] += 1;
| ~~~~~~~~~^~~~
joi2019_ho_t4.cpp:67:20: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
67 | if (mp[i][2] > 1) {
| ~~~~~~~^
joi2019_ho_t4.cpp:71:26: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
71 | mp[i][2] -= dif;
| ~~~~~~~~~^~~~~~
joi2019_ho_t4.cpp:82:20: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
82 | if (mp[i][2] > 1) {
| ~~~~~~~^
joi2019_ho_t4.cpp:86:26: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
86 | mp[i][2] -= dif;
| ~~~~~~~~~^~~~~~
joi2019_ho_t4.cpp:95:20: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
95 | if (mp[i][2] > 1) {
| ~~~~~~~^
joi2019_ho_t4.cpp:97:26: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
97 | mp[i + 1][2] += mp[i][2] - 1;
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
joi2019_ho_t4.cpp:97:26: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
joi2019_ho_t4.cpp:98:20: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
98 | mp[i][2] = 1;
| ~~~~~~~^