/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:18:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   while (c<65||c>90) c=getchar(); if (c=='H') nap[i]|=1<<m-1;
   ^~~~~
/in/foo.cc:18:35: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
   while (c<65||c>90) c=getchar(); if (c=='H') nap[i]|=1<<m-1;
                                   ^~
/in/foo.cc:18:59: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
   while (c<65||c>90) c=getchar(); if (c=='H') nap[i]|=1<<m-1;
                                                          ~^~
/in/foo.cc:19:64: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
   for (register int j=1;j<m;j++) nap[i]|=getchar()=='H'?(1<<m-j-1):0;
                                                             ~~~^~
/in/foo.cc:23:67: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
   for (register int j=0;j<m-1&&!flag;j++) if ((i&(1<<j))&&(i&(1<<j+1))) flag=1;
                                                                  ~^~
/in/foo.cc:25:73: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
         for (register int j=0;j<m-2&&!flag;j++) if ((i&(1<<j))&&(i&(1<<j+2))) flag=1;
                                                                        ~^~
/in/foo.cc:32:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (register int i=0;i<vec.size();i++) 
                        ~^~~~~~~~~~~
/in/foo.cc:34:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (register int i=0;i<vec.size();i++)
                        ~^~~~~~~~~~~
/in/foo.cc:36:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (register int j=0;j<vec.size();j++)
                         ~^~~~~~~~~~~
/in/foo.cc:42:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      for (register int i=0;i<vec.size();i++){
                            ~^~~~~~~~~~~
/in/foo.cc:44:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          for (register int j=0;j<vec.size();j++){
                                ~^~~~~~~~~~~
/in/foo.cc:46:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
              for (register int k=0;k<vec.size();k++){
                                    ~^~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 376.0 KiB
#2 Accepted 4ms 372.0 KiB
#3 Accepted 27ms 372.0 KiB
#4 Accepted 8ms 384.0 KiB
#5 Accepted 35ms 368.0 KiB
#6 Accepted 50ms 372.0 KiB
#7 Accepted 41ms 364.0 KiB
#8 Accepted 4ms 372.0 KiB
#9 Accepted 3ms 344.0 KiB
#10 Accepted 87ms 356.0 KiB

信息

递交者
类型
递交
题目
P1424 炮兵阵地
语言
C++
递交时间
2018-08-20 21:24:58
评测时间
2018-08-20 21:24:58
评测机
分数
100
总耗时
265ms
峰值内存
384.0 KiB