rect.cpp: In function 'int check(int, int, int, int)':
rect.cpp:99:40: warning: left operand of comma operator has no effect [-Wunused-value]
debug("achou x:%d~%d y: %d~%d\n",xi,xf,yi,yf);
^~
rect.cpp:99:43: warning: right operand of comma operator has no effect [-Wunused-value]
debug("achou x:%d~%d y: %d~%d\n",xi,xf,yi,yf);
^~
rect.cpp:99:46: warning: right operand of comma operator has no effect [-Wunused-value]
debug("achou x:%d~%d y: %d~%d\n",xi,xf,yi,yf);
^~
rect.cpp:99:49: warning: right operand of comma operator has no effect [-Wunused-value]
debug("achou x:%d~%d y: %d~%d\n",xi,xf,yi,yf);
^~
rect.cpp: In function 'long long int go4(int, int, int, int, int)':
rect.cpp:107:20: warning: statement has no effect [-Wunused-value]
debug("oi4\n");
^
rect.cpp:121:24: warning: statement has no effect [-Wunused-value]
debug("tchau 4\n");
^
rect.cpp:110:10: warning: unused variable 'mx' [-Wunused-variable]
int mx = -1, id = -1;
^~
rect.cpp: In function 'long long int go3(int, int, int, int, int)':
rect.cpp:133:52: warning: left operand of comma operator has no effect [-Wunused-value]
debug("oi x: %d~%d y: %d~%d quebra A ? B ?\n",xi,xf,yi,yf);
^~
rect.cpp:133:55: warning: right operand of comma operator has no effect [-Wunused-value]
debug("oi x: %d~%d y: %d~%d quebra A ? B ?\n",xi,xf,yi,yf);
^~
rect.cpp:133:58: warning: right operand of comma operator has no effect [-Wunused-value]
debug("oi x: %d~%d y: %d~%d quebra A ? B ?\n",xi,xf,yi,yf);
^~
rect.cpp:133:61: warning: right operand of comma operator has no effect [-Wunused-value]
debug("oi x: %d~%d y: %d~%d quebra A ? B ?\n",xi,xf,yi,yf);
^~
rect.cpp:140:22: warning: left operand of comma operator has no effect [-Wunused-value]
debug("A %d\n",A);
^
rect.cpp:159:55: warning: left operand of comma operator has no effect [-Wunused-value]
debug("go3 x: %d~%d y: %d~%d quebra A %d B %d\n",xi,xf,yi,yf,A,B);
^~
rect.cpp:159:58: warning: right operand of comma operator has no effect [-Wunused-value]
debug("go3 x: %d~%d y: %d~%d quebra A %d B %d\n",xi,xf,yi,yf,A,B);
^~
rect.cpp:159:61: warning: right operand of comma operator has no effect [-Wunused-value]
debug("go3 x: %d~%d y: %d~%d quebra A %d B %d\n",xi,xf,yi,yf,A,B);
^~
rect.cpp:159:64: warning: right operand of comma operator has no effect [-Wunused-value]
debug("go3 x: %d~%d y: %d~%d quebra A %d B %d\n",xi,xf,yi,yf,A,B);
^~
rect.cpp:159:67: warning: right operand of comma operator has no effect [-Wunused-value]
debug("go3 x: %d~%d y: %d~%d quebra A %d B %d\n",xi,xf,yi,yf,A,B);
^
rect.cpp:159:69: warning: right operand of comma operator has no effect [-Wunused-value]
debug("go3 x: %d~%d y: %d~%d quebra A %d B %d\n",xi,xf,yi,yf,A,B);
^
rect.cpp: In function 'long long int go2(int, int, int, int, int)':
rect.cpp:170:36: warning: left operand of comma operator has no effect [-Wunused-value]
debug("go2 x %d~%d y %d~%d\n",xi,xf,yi,yf);
^~
rect.cpp:170:39: warning: right operand of comma operator has no effect [-Wunused-value]
debug("go2 x %d~%d y %d~%d\n",xi,xf,yi,yf);
^~
rect.cpp:170:42: warning: right operand of comma operator has no effect [-Wunused-value]
debug("go2 x %d~%d y %d~%d\n",xi,xf,yi,yf);
^~
rect.cpp:170:45: warning: right operand of comma operator has no effect [-Wunused-value]
debug("go2 x %d~%d y %d~%d\n",xi,xf,yi,yf);
^~
rect.cpp:172:10: warning: unused variable 'mx' [-Wunused-variable]
int mx = -1, id = -1;
^~
rect.cpp: In function 'long long int go(int, int)':
rect.cpp:195:19: warning: statement has no effect [-Wunused-value]
debug("oi\n");
^
rect.cpp: In function 'long long int count_rectangles(std::vector<std::vector<int> >)':
rect.cpp:236:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int j=0;j<m;j++)
^~~
rect.cpp:237:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
printf("%d ",RMQ[2][i].arr[j]); printf("\n");
^~~~~~
rect.cpp:238:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int j=0;j<m;j++)
^~~
rect.cpp:239:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
printf("%d ",RMQ[3][i].arr[j]); printf("\n\n");
^~~~~~