/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int say1(std::string*, int*, int*, std::string*, int*)':
foo.cc:37:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   37 |  if (a!=content.npos){
foo.cc:42:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   42 |  if (a!=content.npos){
foo.cc:47:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   47 |  if (a!=content.npos){
foo.cc:60:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   60 |  if (a!=content.npos){
foo.cc:72:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   72 |  if (a!=content.npos){
foo.cc:76:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   76 |         for(int i=a+10;i<a+20&&i<content.length();i++){
      |                                ~^~~~~~~~~~~~~~~~~
foo.cc:23:7: warning: variable 'b' set but not used [-Wunused-but-set-variable]
   23 |  bool b = true;
      |       ^
foo.cc: In function 'int ifshrs(int, std::string, std::string, std::string*, int*, std::string*, int*, int*)':
foo.cc:100:19: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  100 |               if(c!=b.npos){
foo.cc:107:19: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  107 |               if(c!=b.npos){
foo.cc:118:13: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  118 |         if(c!=b.npos){
foo.cc:125:14: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  125 |          if(c!=b.npos){
foo.cc:139:19: 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:152:10: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  152 |      if(c!=content.npos){
foo.cc:154:12: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  154 |       if (c!=content.npos){
foo.cc:159:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  159 |   if(c!=content.npos){
foo.cc:161:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  161 |    if(c==content.npos){
foo.cc:166:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  166 |   if(c!=content.npos){
foo.cc:168:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  168 |    if(c!=content.npos){
foo.cc:174:9: 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:180:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  180 |    if(c!=content.npos){
foo.cc: In function 'int main(int, char**)':
foo.cc:235:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  235 |  else if(Grs=0){
      |          ~~~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 3ms 384.0 KiB
#2 Wrong Answer User output longer than standard answer. 3ms 512.0 KiB
#3 Wrong Answer User output longer than standard answer. 2ms 384.0 KiB
#4 Wrong Answer User output longer than standard answer. 3ms 384.0 KiB
#5 Wrong Answer 1,21d0 < 1 0 < 0 1 < 0 0 < 3ms 384.0 KiB
#6 Runtime Error Segmentation fault 3ms 512.0 KiB
#7 Wrong Answer User output longer than standard answer. 3ms 384.0 KiB
#8 Wrong Answer User output longer than standard answer. 2ms 384.0 KiB
#9 Wrong Answer User output longer than standard answer. 3ms 384.0 KiB
#10 Wrong Answer 1,21d0 < 0 0 < 0 0 < 0 0 < 2ms 384.0 KiB

信息

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