/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int say1(std::string*, int*, int*, std::string*, int*)':
foo.cc:46:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   46 |  if (a!=content.npos){
foo.cc:51:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   51 |  if (a!=content.npos){
foo.cc:56:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   56 |  if (a!=content.npos){
foo.cc:69:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   69 |  if (a!=content.npos){
foo.cc:81:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   81 |  if (a!=content.npos){
foo.cc:85:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   85 |         for(int i=a+10;i<a+20&&i<content.length();i++){
      |                                ~^~~~~~~~~~~~~~~~~
foo.cc:32:7: warning: variable 'b' set but not used [-Wunused-but-set-variable]
   32 |  bool b = true;
      |       ^
foo.cc: In function 'int ifshrs(int, std::string, std::string, std::string*, int*, std::string*, int*, int*)':
foo.cc:114:19: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  114 |               if(c!=b.npos){
foo.cc:121:19: 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:132:13: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  132 |         if(c!=b.npos){
foo.cc:139:14: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  139 |          if(c!=b.npos){
foo.cc:156:23: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  156 |                 if (c == b.npos){
foo.cc:174:10: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  174 |      if(c!=content.npos){
foo.cc:176:12: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  176 |       if (c!=content.npos){
foo.cc:181:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  181 |   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:188:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  188 |   if(c!=content.npos){
foo.cc:190:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  190 |    if(c!=content.npos){
foo.cc:196:9: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  196 |    if (c!=content.npos){
foo.cc:202:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  202 |    if(c!=content.npos){
foo.cc: In function 'int main(int, char**)':
foo.cc:254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  254 |  else if(Grs=0){
      |          ~~~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read , expect HELLO. 4ms 384.0 KiB
#2 Wrong Answer Read , expect Impossible. 2ms 384.0 KiB
#3 Wrong Answer Read , expect D. 2ms 256.0 KiB
#4 Wrong Answer 1,50d0 < < MONDAY Monday 3ms 384.0 KiB
#5 Wrong Answer 1,29d0 < < KYO Monday 2 < 5ms 384.0 KiB
#6 Runtime Error Segmentation fault 6ms 384.0 KiB
#7 Wrong Answer Read , expect ALAN. 5ms 384.0 KiB
#8 Wrong Answer Standard answer longer than user output. 3ms 384.0 KiB
#9 Wrong Answer Read , expect I. 4ms 384.0 KiB
#10 Wrong Answer 1,8d0 < < CENGJINGYOUYIDUANZH 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1106 侦探推理
语言
C++
递交时间
2022-05-15 20:26:15
评测时间
2022-05-15 20:26:15
评测机
分数
0
总耗时
43ms
峰值内存
384.0 KiB