watching.cpp: In function 'bool solve(int, int, int, int)':
watching.cpp:36:32: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
return dp[i][p][q] = small || big;
^
watching.cpp: In function 'int prox(int, int)':
watching.cpp:23:16: warning: 'best' may be used uninitialized in this function [-Wmaybe-uninitialized]
return best + 1;
^
watching.cpp: In function 'bool solve(int, int, int, int)':
watching.cpp:23:16: warning: 'best' may be used uninitialized in this function [-Wmaybe-uninitialized]
watching.cpp:12:29: note: 'best' was declared here
int ini = i, fim = n, mid, best;
^
watching.cpp:23:16: warning: 'best' may be used uninitialized in this function [-Wmaybe-uninitialized]
return best + 1;
^
watching.cpp:12:29: note: 'best' was declared here
int ini = i, fim = n, mid, best;
^