/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int F()':
/in/foo.cc:6:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while(ch=getc(),ch<'0'||ch>'9');aa=ch-'0';
     ^~~~~
/in/foo.cc:6:37: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
     while(ch=getc(),ch<'0'||ch>'9');aa=ch-'0';
                                     ^~
/in/foo.cc:7:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while(ch=getc(),ch>='0'&&ch<='9')aa=aa*10+ch-'0';return aa;
     ^~~~~
/in/foo.cc:7:54: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
     while(ch=getc(),ch>='0'&&ch<='9')aa=aa*10+ch-'0';return aa;
                                                      ^~~~~~
/in/foo.cc: In function 'void bt(int, int, int)':
/in/foo.cc:132:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid=l+r>>1;
             ~^~
/in/foo.cc: In function 'void mt(int, int, int)':
/in/foo.cc:159:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid=l+r>>1;
             ~^~
/in/foo.cc: In function 'void upd(int, int, int)':
/in/foo.cc:169:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
         else a1[o]--;return;
         ^~~~
/in/foo.cc:169:22: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
         else a1[o]--;return;
                      ^~~~~~
/in/foo.cc:171:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid=l+r>>1;pd(o,l,r);
             ~^~
/in/foo.cc: In function 'void query(int, int, int)':
/in/foo.cc:186:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid=l+r>>1;
             ~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:207:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
         while(op=getc(),op!='q'&&op!='p'&&op!='m');int l=F(),r=F();
         ^~~~~
/in/foo.cc:207:52: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
         while(op=getc(),op!='q'&&op!='p'&&op!='m');int l=F(),r=F();
                                                    ^~~
/in/foo.cc: In function 'V operator+(const V&, const V&)':
/in/foo.cc:118:32: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations]
     for(int i=0;i<=9;i++)c.m[i]=(a.m[i]+b.m[i])%p;
                                ^
/in/foo.cc:118:18: note: within this loop
     for(int i=0;i<=9;i++)c.m[i]=(a.m[i]+b.m[i])%p;
                 ~^~~
# 状态 耗时 内存占用
#1 Accepted 204ms 8.875 MiB
#2 Accepted 210ms 8.969 MiB
#3 Accepted 286ms 10.375 MiB
#4 Accepted 311ms 31.484 MiB
#5 Accepted 294ms 32.5 MiB
#6 Accepted 380ms 48.875 MiB
#7 Accepted 623ms 27.703 MiB
#8 Accepted 537ms 32.875 MiB
#9 Accepted 548ms 32.875 MiB
#10 Accepted 556ms 48.473 MiB
#11 Accepted 640ms 48.75 MiB
#12 Accepted 584ms 49.0 MiB
#13 Accepted 599ms 32.125 MiB
#14 Accepted 661ms 48.98 MiB
#15 Accepted 499ms 28.207 MiB
#16 Accepted 592ms 28.355 MiB
#17 Accepted 483ms 48.375 MiB
#18 Accepted 639ms 48.574 MiB
#19 Accepted 567ms 48.988 MiB
#20 Accepted 548ms 48.996 MiB

信息

递交者
类型
递交
题目
P1958 音质检测
语言
C++
递交时间
2018-02-26 11:44:03
评测时间
2018-02-26 11:44:03
评测机
分数
100
总耗时
9770ms
峰值内存
49.0 MiB