运行 ID: 35289

Main.cc: In function ‘int read()’:
Main.cc:29:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   if(ch=='-') f=-1;ch=gc();
   ^~
Main.cc:29:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
   if(ch=='-') f=-1;ch=gc();
                    ^~
Main.cc: In member function ‘void segtree::upd(int, int, int, int, int, int)’:
Main.cc:64:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
         if(pr>mid) upd(rs,mid+1,r,pl,pr,v);pu(p);
         ^~
Main.cc:64:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
         if(pr>mid) upd(rs,mid+1,r,pl,pr,v);pu(p);
                                            ^~
Main.cc: At global scope:
Main.cc:71:9: error: conflicting declaration ‘int S’
 int n,m,S,cnt=0,ans=0;
         ^
Main.cc:10:18: note: previous declaration as ‘char* S’
 char buf[1<<20],*S=buf,*E=buf;
                  ^
Main.cc: In function ‘int main()’:
Main.cc:75:29: error: invalid conversion from ‘int’ to ‘char*’ [-fpermissive]
     n=read();m=read();S=read();
                         ~~~~^~
Main.cc:88:17: error: invalid operands of types ‘char*’ and ‘int’ to binary ‘operator/’
         int ol=S/len;
                ~^~~~