/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int say1(std::string*, int*, int*, std::string*, int*)':
foo.cc:55:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   55 |  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:65:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   65 |  if (a!=content.npos){
foo.cc:78:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   78 |  if (a!=content.npos){
foo.cc:90:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
   90 |  if (a!=content.npos){
foo.cc:94:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   94 |         for(int i=a+10;i<a+20&&i<content.length();i++){
      |                                ~^~~~~~~~~~~~~~~~~
foo.cc:41:7: warning: variable 'b' set but not used [-Wunused-but-set-variable]
   41 |  bool b = true;
      |       ^
foo.cc: In function 'int ifshrs(int, int, int, std::string, std::string, std::string*, int*, std::string*, int*, int*)':
foo.cc:125:19: 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:19: 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:143:13: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  143 |         if(c!=b.npos and c==0){
foo.cc:148:15: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  148 |      else if(c!= b.npos){
foo.cc:150:11: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  150 |       if(c!=b.npos){
foo.cc:159:14: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  159 |          if(c!=b.npos){
foo.cc:176:23: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  176 |                 if (c == b.npos){
foo.cc:206:10: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  206 |      if(c!=content.npos){
foo.cc:208:12: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  208 |       if (c!=content.npos){
foo.cc:213:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  213 |   if(c!=content.npos){
foo.cc:215:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  215 |    if(c==content.npos){
foo.cc:220:7: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  220 |   if(c!=content.npos){
foo.cc:222:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  222 |    if(c!=content.npos){
foo.cc:228:9: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  228 |    if (c!=content.npos){
foo.cc:234:8: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
  234 |    if(c!=content.npos){
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 1,14d0 < HELLO Monday 1 < 3ms 384.0 KiB
#2 Wrong Answer 1,7d0 < A Monday 27 < A 2ms 384.0 KiB
#3 Wrong Answer 1,35d0 < A Monday 27 < A 3ms 384.0 KiB
#4 Wrong Answer 1,49d0 < MONDAY Monday 4 < 3ms 376.0 KiB
#5 Wrong Answer 1,28d0 < KYO Monday 27 < K 4ms 384.0 KiB
#6 Wrong Answer 1,70d0 < A Monday 27 < A 9ms 384.0 KiB
#7 Wrong Answer 1,7d0 < ALAN Monday 0 < AL 2ms 384.0 KiB
#8 Wrong Answer 1,21d0 < SAM Monday 0 < SA 3ms 384.0 KiB
#9 Wrong Answer 1,70d0 < A Monday 7 < A 6ms 384.0 KiB
#10 Wrong Answer 1,7d0 < CENGJINGYOUYIDUANZHENZ 2ms 384.0 KiB

信息

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