rect.cpp: In function 'std::vector<std::array<short int, 3> > Sub7::generate_pair(std::vector<std::vector<int> >)':
rect.cpp:68:54: warning: narrowing conversion of 'j' from 'int' to 'short int' [-Wnarrowing]
68 | if (r != j + 1) what.push_back({{j, r, i}});
| ^
rect.cpp:68:57: warning: narrowing conversion of 'r' from 'int' to 'short int' [-Wnarrowing]
68 | if (r != j + 1) what.push_back({{j, r, i}});
| ^
rect.cpp:68:60: warning: narrowing conversion of 'i' from 'int' to 'short int' [-Wnarrowing]
68 | if (r != j + 1) what.push_back({{j, r, i}});
| ^
rect.cpp:72:38: warning: narrowing conversion of 'j' from 'int' to 'short int' [-Wnarrowing]
72 | what.push_back({{j, st.back(), i}});
| ^
rect.cpp:72:48: warning: narrowing conversion of 'st.std::vector<int>::back()' from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'short int' [-Wnarrowing]
72 | what.push_back({{j, st.back(), i}});
| ~~~~~~~^~
rect.cpp:72:52: warning: narrowing conversion of 'i' from 'int' to 'short int' [-Wnarrowing]
72 | what.push_back({{j, st.back(), i}});
| ^
rect.cpp: In function 'll Sub7::solve(std::vector<std::vector<int> >)':
rect.cpp:119:41: warning: narrowing conversion of '(((int)j) - 1)' from 'int' to 'short int' [-Wnarrowing]
119 | array<short, 3> c1 = {{j-1, y+1, x}}, c2 = {{j-1, y+1, i}};
| ~^~
rect.cpp:119:46: warning: narrowing conversion of '(((int)y) + 1)' from 'int' to 'short int' [-Wnarrowing]
119 | array<short, 3> c1 = {{j-1, y+1, x}}, c2 = {{j-1, y+1, i}};
| ~^~
rect.cpp:119:63: warning: narrowing conversion of '(((int)j) - 1)' from 'int' to 'short int' [-Wnarrowing]
119 | array<short, 3> c1 = {{j-1, y+1, x}}, c2 = {{j-1, y+1, i}};
| ~^~
rect.cpp:119:68: warning: narrowing conversion of '(((int)y) + 1)' from 'int' to 'short int' [-Wnarrowing]
119 | array<short, 3> c1 = {{j-1, y+1, x}}, c2 = {{j-1, y+1, i}};
| ~^~
rect.cpp:122:41: warning: narrowing conversion of '(((int)i) - 1)' from 'int' to 'short int' [-Wnarrowing]
122 | array<short, 3> c3 = {{i-1, x+1, y}}, c4 = {{i-1, x+1, j}};
| ~^~
rect.cpp:122:46: warning: narrowing conversion of '(((int)x) + 1)' from 'int' to 'short int' [-Wnarrowing]
122 | array<short, 3> c3 = {{i-1, x+1, y}}, c4 = {{i-1, x+1, j}};
| ~^~
rect.cpp:122:63: warning: narrowing conversion of '(((int)i) - 1)' from 'int' to 'short int' [-Wnarrowing]
122 | array<short, 3> c3 = {{i-1, x+1, y}}, c4 = {{i-1, x+1, j}};
| ~^~
rect.cpp:122:68: warning: narrowing conversion of '(((int)x) + 1)' from 'int' to 'short int' [-Wnarrowing]
122 | array<short, 3> c3 = {{i-1, x+1, y}}, c4 = {{i-1, x+1, j}};
| ~^~