/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int say1(std::string*, int*, int*, std::string*, int*)':
foo.cc:36:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   36 |  if (a!=content.npos){
foo.cc:41:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   41 |  if (a!=content.npos){
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:59:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   59 |  if (a!=content.npos){
foo.cc:71:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   71 |  if (a!=content.npos){
foo.cc:75:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   75 |         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: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: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:125:13: 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:132:14: 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:146:19: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  146 |               if(c!=b.npos){
foo.cc:159:10: 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:12: 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:173:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  173 |   if(c!=content.npos){
foo.cc:175:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  175 |    if(c!=content.npos){
foo.cc:181:9: 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:187:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  187 |    if(c!=content.npos){
foo.cc: In function 'int main(int, char**)':
foo.cc:238:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  238 |  else if(Grs=0){
      |          ~~~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 5ms 384.0 KiB
#2 Wrong Answer User output longer than standard answer. 3ms 384.0 KiB
#3 Wrong Answer User output longer than standard answer. 6ms 384.0 KiB
#4 Wrong Answer 1,67d0 < Today is Monday. < To 3ms 384.0 KiB
#5 Runtime Error Segmentation fault 6ms 436.0 KiB
#6 Runtime Error Segmentation fault 7ms 384.0 KiB
#7 Wrong Answer User output longer than standard answer. 5ms 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. 4ms 384.0 KiB
#10 Wrong Answer 1,12d0 < I love you! < I love 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1106 侦探推理
语言
C++
递交时间
2022-05-10 21:37:51
评测时间
2022-05-10 21:37:51
评测机
分数
0
总耗时
49ms
峰值内存
436.0 KiB