/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'std::__cxx11::string get(int, int&)':
/in/foo.cc:26:6: warning: statement has no effect [-Wunused-value]
  for(pos; pos < s[i].size(); pos++)
      ^~~
/in/foo.cc:26:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(pos; pos < s[i].size(); pos++)
           ~~~~^~~~~~~~~~~~~
/in/foo.cc: In function 'int work(int, int, int)':
/in/foo.cc:49:11: warning: statement has no effect [-Wunused-value]
    for(pos; pos < s[idx].size(); )
           ^
/in/foo.cc:49:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(pos; pos < s[idx].size(); )
             ~~~~^~~~~~~~~~~~~~~
/in/foo.cc:54:34: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
      defined |= (1 << newword[0] - 'A');
                                   
/in/foo.cc:61:11: warning: statement has no effect [-Wunused-value]
    for(pos; pos < s[idx].size(); )
           ^
/in/foo.cc:61:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(pos; pos < s[idx].size(); )
             ~~~~^~~~~~~~~~~~~~~
/in/foo.cc:66:38: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
      if(!(defined & (1 << newword[0] - 'A')) && !(vis & (1 << newword[0] - 'A')))
                                       
/in/foo.cc:66:74: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
      if(!(defined & (1 << newword[0] - 'A')) && !(vis & (1 << newword[0] - 'A')))
                                                                           
/in/foo.cc:71:31: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
       vis |= (1 << newword[0] - 'A');
                                
/in/foo.cc:90:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      if(shown == 0xffffffff)
         ~~~~~~^~~~~~~~~~~~~
/in/foo.cc:110:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(shown & (1 << 27) && shown != 0xffffffff)
                            ~~~~~~^~~~~~~~~~~~~
/in/foo.cc:113:12: warning: statement has no effect [-Wunused-value]
     for(idx; idx <= r; idx++)
            ^
/in/foo.cc:130:78: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
    if(newword[0] >= 'A' && newword[0] <= 'Z' && !(defined & (1 << newword[0] - 'A')) && !(vis & (1 << newword[0] - 'A')))
                                                                               
/in/foo.cc:130:114: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
    if(newword[0] >= 'A' && newword[0] <= 'Z' && !(defined & (1 << newword[0] - 'A')) && !(vis & (1 << newword[0] - 'A')))
                                                                                                                   
/in/foo.cc:135:29: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
     vis |= (1 << newword[0] - 'A');
                              
/in/foo.cc:140:11: warning: statement has no effect [-Wunused-value]
    for(idx; idx <= r; idx++)
           ^
/in/foo.cc:156:11: warning: statement has no effect [-Wunused-value]
    for(pos; pos < s[idx].size(); )
           ^
/in/foo.cc:156:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(pos; pos < s[idx].size(); )
             ~~~~^~~~~~~~~~~~~~~
/in/foo.cc:161:38: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
      if(!(defined & (1 << newword[0] - 'A')) && !(vis & (1 << newword[0] - 'A')))
                                       
/in/foo.cc:161:74: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
      if(!(defined & (1 << newword[0] - 'A')) && !(vis & (1 << newword[0] - 'A')))
                                                                           
/in/foo.cc:166:31: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
       vis |= (1 << newword[0] - 'A');
                                
/in/foo.cc:170:25: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
    defined |= (1 << mem - 'A');
                     ~~~~^~~~~
/in/foo.cc:172:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(shown != 0xffffffff)
      ~~~~~~^~~~~~~~~~~~~
/in/foo.cc:41:11: warning: unused variable 'flag' [-Wunused-variable]
  int pos, flag = 0, shown = 0xffffffff;
           ^~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 616.0 KiB
#2 Accepted 1ms 632.0 KiB
#3 Wrong Answer 1ms 724.0 KiB
#4 Accepted 1ms 632.0 KiB
#5 Accepted 1ms 636.0 KiB
#6 Wrong Answer 1ms 632.0 KiB
#7 Accepted 1ms 616.0 KiB
#8 Accepted 1ms 724.0 KiB
#9 Accepted 1ms 616.0 KiB
#10 Accepted 1ms 608.0 KiB

信息

递交者
类型
递交
题目
P1387 警告
语言
C++
递交时间
2021-07-17 21:57:13
评测时间
2021-07-17 21:57:13
评测机
分数
80
总耗时
14ms
峰值内存
724.0 KiB