sterilizing.cpp: In function 'std::vector<int> operator+(const std::vector<int>&, const std::vector<int>&)':
sterilizing.cpp:22:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<p.size(); i++) ret[ret.size()-p.size()+i]+=p[i];
~^~~~~~~~~
sterilizing.cpp:23:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<q.size(); i++) ret[ret.size()-q.size()+i]+=q[i];
~^~~~~~~~~
sterilizing.cpp:18:9: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
sterilizing.cpp: In function 'void init(int, int, int)':
sterilizing.cpp:31:7: warning: unused variable 'i' [-Wunused-variable]
int i, j;
^
sterilizing.cpp:31:10: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
sterilizing.cpp:37:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=tl+tr>>1;
~~^~~
sterilizing.cpp: In function 'void busy(int, int, int)':
sterilizing.cpp:45:9: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
sterilizing.cpp: In function 'void update(int, int, int, int)':
sterilizing.cpp:58:7: warning: unused variable 'i' [-Wunused-variable]
int i, j;
^
sterilizing.cpp:58:10: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
sterilizing.cpp:65:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=tl+tr>>1;
~~^~~
sterilizing.cpp: In function 'std::vector<int> query(int, int, int, int, int)':
sterilizing.cpp:76:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=tl+tr>>1;
~~^~~
sterilizing.cpp: In function 'void update2(int, int, int, int, int)':
sterilizing.cpp:90:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=tl+tr>>1;
~~^~~
sterilizing.cpp: In function 'void debug(int, int, int)':
sterilizing.cpp:98:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(auto it : tree[node]) printf("%d ", it); printf(" : %d %d %d\n", node, tl, tr);
^~~
sterilizing.cpp:98:47: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(auto it : tree[node]) printf("%d ", it); printf(" : %d %d %d\n", node, tl, tr);
^~~~~~
sterilizing.cpp:100:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=tl+tr>>1;
~~^~~
sterilizing.cpp: In function 'int main()':
sterilizing.cpp:107:9: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
sterilizing.cpp:109:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &N, &Q, &K);
~~~~~^~~~~~~~~~~~~~~~~~~~~~
sterilizing.cpp:110:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=N; i++) scanf("%d", &C[i]);
~~~~~^~~~~~~~~~~~~
sterilizing.cpp:115:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &t, &l, &r);
~~~~~^~~~~~~~~~~~~~~~~~~~~~