rect.cpp: In function 'long long int count_rectangles(std::vector<std::vector<int> >)':
rect.cpp:78:31: warning: narrowing conversion of 'l' from 'int' to 'short int' [-Wnarrowing]
78 | dp[i].insert({l, r, 1});
| ^
rect.cpp:78:34: warning: narrowing conversion of 'r' from 'int' to 'short int' [-Wnarrowing]
78 | dp[i].insert({l, r, 1});
| ^
rect.cpp:81:27: warning: narrowing conversion of 'l' from 'int' to 'short int' [-Wnarrowing]
81 | dp[i].insert({l, r, get(i - 1, l, r) + 1});
| ^
rect.cpp:81:30: warning: narrowing conversion of 'r' from 'int' to 'short int' [-Wnarrowing]
81 | dp[i].insert({l, r, get(i - 1, l, r) + 1});
| ^
rect.cpp:81:50: warning: narrowing conversion of '(((int)get(((int)((short int)(i - 1))), ((int)((short int)l)), ((int)((short int)r)))) + 1)' from 'int' to 'short int' [-Wnarrowing]
81 | dp[i].insert({l, r, get(i - 1, l, r) + 1});
| ~~~~~~~~~~~~~~~~~^~~
rect.cpp:88:32: warning: narrowing conversion of 'l' from 'int' to 'short int' [-Wnarrowing]
88 | dpj[j].insert({l, r, 1});
| ^
rect.cpp:88:35: warning: narrowing conversion of 'r' from 'int' to 'short int' [-Wnarrowing]
88 | dpj[j].insert({l, r, 1});
| ^
rect.cpp:91:28: warning: narrowing conversion of 'l' from 'int' to 'short int' [-Wnarrowing]
91 | dpj[j].insert({l, r, getj(j - 1, l, r) + 1});
| ^
rect.cpp:91:31: warning: narrowing conversion of 'r' from 'int' to 'short int' [-Wnarrowing]
91 | dpj[j].insert({l, r, getj(j - 1, l, r) + 1});
| ^
rect.cpp:91:52: warning: narrowing conversion of '(((int)getj(((int)((short int)(j - 1))), ((int)((short int)l)), ((int)((short int)r)))) + 1)' from 'int' to 'short int' [-Wnarrowing]
91 | dpj[j].insert({l, r, getj(j - 1, l, r) + 1});
| ~~~~~~~~~~~~~~~~~~^~~
rect.cpp:100:100: warning: narrowing conversion of 'xu' from 'int' to 'short int' [-Wnarrowing]
100 | if (get(xd, yu, yd) >= (xd - xu + 1) && getj(yd, xu, xd) >= (yd - yu + 1)) ans.insert({xu, yu, xd, yd});
| ^~
rect.cpp:100:104: warning: narrowing conversion of 'yu' from 'int' to 'short int' [-Wnarrowing]
100 | if (get(xd, yu, yd) >= (xd - xu + 1) && getj(yd, xu, xd) >= (yd - yu + 1)) ans.insert({xu, yu, xd, yd});
| ^~
rect.cpp:100:108: warning: narrowing conversion of 'xd' from 'int' to 'short int' [-Wnarrowing]
100 | if (get(xd, yu, yd) >= (xd - xu + 1) && getj(yd, xu, xd) >= (yd - yu + 1)) ans.insert({xu, yu, xd, yd});
| ^~
rect.cpp:100:112: warning: narrowing conversion of 'yd' from 'int' to 'short int' [-Wnarrowing]
100 | if (get(xd, yu, yd) >= (xd - xu + 1) && getj(yd, xu, xd) >= (yd - yu + 1)) ans.insert({xu, yu, xd, yd});
| ^~