PQ.cpp: In function 'std::vector<std::vector<int> > solve(int, std::vector<std::vector<int> >)':
PQ.cpp:24:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size() + 1; i++) {
^
PQ.cpp:27:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = s; j < a.size(); j++) {
^
PQ.cpp:42:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = i; j < a[s].size(); j++) {
^
PQ.cpp:46:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = s + 1; j < a.size(); j++) {
^
PQ.cpp:48:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = i; k < a[j].size(); k++) {
^
PQ.cpp:58:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < t.size(); j++) {
^
PQ.cpp: In function 'std::vector<int> tsolve(int, std::vector<std::vector<int> >, std::vector<int>)':
PQ.cpp:77:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size() + 1; i++) {
^
PQ.cpp:80:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = s; j < a.size(); j++) {
^
PQ.cpp:98:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = i; j < a[s].size(); j++) {
^
PQ.cpp:102:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = s + 1; j < a.size(); j++) {
^
PQ.cpp:104:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = i; k < a[j].size(); k++) {
^
PQ.cpp:112:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < res.size(); j++) {
^
PQ.cpp:122:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = j + 1; k <= a.size(); k++) {
^
PQ.cpp: In function 'std::vector<std::vector<int> > pnsolve(int, int, std::vector<std::vector<int> >)':
PQ.cpp:136:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size(); i++) {
^
PQ.cpp:138:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < a[i].size(); j++) {
^
PQ.cpp:147:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size(); i++) {
^
PQ.cpp:150:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < a[i].size(); j++) {
^
PQ.cpp:156:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < spb.size(); i++) {
^
PQ.cpp:163:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < pres.size(); i++) {
^
PQ.cpp:169:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < pres.size(); j++) {
^
PQ.cpp: In function 'std::vector<std::vector<int> > crtsolve(int, int, std::vector<std::vector<int> >)':
PQ.cpp:200:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size(); i++) {
^
PQ.cpp:203:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < a[i].size(); j++) {
^
PQ.cpp:212:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < resa.size(); i++) {
^
PQ.cpp:213:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < resb.size(); j++) {
^
PQ.cpp: In function 'int main()':
PQ.cpp:228:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
PQ.cpp: In function 'std::vector<std::vector<int> > crtsolve(int, int, std::vector<std::vector<int> >)':
PQ.cpp:210:50: warning: 'pdiv' may be used uninitialized in this function [-Wmaybe-uninitialized]
vector<vector<int> > resa = pnsolve(pdiv, pn, aa);
^