Main.cc:3:0: warning: ignoring #pragma gcc optimize [-Wunknown-pragmas]
#pragma gcc optimize(2)
Main.cc: In member function ‘void SegTree::modify(int, int, int, int, int, int)’:
Main.cc:45:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(l<=s&&t<=r)return d[p].push(k);pd(p);
^~
Main.cc:45:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if(l<=s&&t<=r)return d[p].push(k);pd(p);
^~
Main.cc:46:18: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
int mid=s+t>>1;
~^~
Main.cc:47:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(l<=mid)modify(l,r,s,mid,ls(p),k);if(r>mid)modify(l,r,mid+1,t,rs(p),k);pu(p);
^~
Main.cc:47:45: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if(l<=mid)modify(l,r,s,mid,ls(p),k);if(r>mid)modify(l,r,mid+1,t,rs(p),k);pu(p);
^~
Main.cc: At global scope:
Main.cc:101:2: error: declaration does not declare anything [-fpermissive]
}_;
^
Main.cc: In function ‘int main()’:
Main.cc:96:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("1.in","r",stdin),freopen("1.out","w",stdout);
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Main.cc:96:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]