/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int say1(std::string*, int*, int*, std::string*, int*)':
foo.cc:35:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   35 |  if (a!=content.npos){
foo.cc:40:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   40 |  if (a!=content.npos){
foo.cc:45:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   45 |  if (a!=content.npos){
foo.cc:58:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   58 |  if (a!=content.npos){
foo.cc:70:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   70 |  if (a!=content.npos){
foo.cc:74:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   74 |         for(int i=a+10;i<a+20&&i<content.length();i++){
      |                                ~^~~~~~~~~~~~~~~~~
foo.cc:21:7: warning: variable 'b' set but not used [-Wunused-but-set-variable]
   21 |  bool b = true;
      |       ^
foo.cc: In function 'int ifshrs(int, std::string, std::string, std::string*, int*, std::string*, int*, int*)':
foo.cc:103:19: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  103 |               if(c!=b.npos){
foo.cc:110:19: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  110 |               if(c!=b.npos){
foo.cc:121:13: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  121 |         if(c!=b.npos){
foo.cc:128:14: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  128 |          if(c!=b.npos){
foo.cc:142:25: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
  142 |                 if(not c==b.npos){
      |                         ^~
foo.cc:142:20: note: add parentheses around left hand side expression to silence this warning
  142 |                 if(not c==b.npos){
      |                    ^~~~~
      |                    (    )
foo.cc:142:25: warning: comparison of constant '18446744073709551615' with boolean expression is always false [-Wbool-compare]
  142 |                 if(not c==b.npos){
foo.cc:155:10: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  155 |      if(c!=content.npos){
foo.cc:157:12: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  157 |       if (c!=content.npos){
foo.cc:162:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  162 |   if(c!=content.npos){
foo.cc:164:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  164 |    if(c==content.npos){
foo.cc:169:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  169 |   if(c!=content.npos){
foo.cc:171:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  171 |    if(c!=content.npos){
foo.cc:177:9: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  177 |    if (c!=content.npos){
foo.cc:183:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  183 |    if(c!=content.npos){
foo.cc: In function 'int main(int, char**)':
foo.cc:231:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  231 |  else if(Grs=0){
      |          ~~~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read , expect HELLO. 3ms 384.0 KiB
#2 Wrong Answer Read , expect Impossible. 3ms 384.0 KiB
#3 Wrong Answer User output longer than standard answer. 2ms 512.0 KiB
#4 Wrong Answer Read , expect FRIDAY. 2ms 384.0 KiB
#5 Accepted 2ms 512.0 KiB
#6 Runtime Error Aborted 3ms 384.0 KiB
#7 Wrong Answer Read , expect ALAN. 2ms 384.0 KiB
#8 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#9 Wrong Answer Read , expect I. 3ms 384.0 KiB
#10 Accepted 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1106 侦探推理
语言
C++
递交时间
2022-05-11 21:37:14
评测时间
2022-05-11 21:37:14
评测机
分数
20
总耗时
29ms
峰值内存
512.0 KiB