记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:23:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   23 |  if(a[1]=='-') f1=-1,st1++,len1--;if(b[1]=='-') f2=-1,st2++,len2--;
      |  ^~
foo.cc:23:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   23 |  if(a[1]=='-') f1=-1,st1++,len1--;if(b[1]=='-') f2=-1,st2++,len2--;
      |                                   ^~
foo.cc:22:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   22 |  scanf("%s %s",a+1,b+1);len1=strlen(a+1);len2=strlen(b+1);
      |  ~~~~~^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 2ms 512.0 KiB
#3 Accepted 3ms 512.0 KiB
#4 Accepted 3ms 512.0 KiB
#5 Accepted 3ms 640.0 KiB
#6 Accepted 2ms 640.0 KiB
#7 Accepted 3ms 640.0 KiB
#8 Accepted 3ms 640.0 KiB
#9 Accepted 3ms 768.0 KiB
#10 Accepted 4ms 768.0 KiB

信息

递交者
类型
递交
题目
巴蜀中学签到题
语言
C++
递交时间
2022-01-04 12:33:15
评测时间
2022-01-04 12:33:15
评测机
分数
100
总耗时
34ms
峰值内存
768.0 KiB