记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:10:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |         for (int i=0;i<b.size();i++) {
      |                      ~^~~~~~~~~
foo.cc:11:23: warning: array subscript has type 'char' [-Wchar-subscripts]
   11 |                 t[b[i]]=1;
      |                       ^
foo.cc:13:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   13 |         if (t[a[0]]) {
      |                   ^
foo.cc:18:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   18 |         for (int i=1;i<a.size();i++) {
      |                      ~^~~~~~~~~
foo.cc:19:27: warning: array subscript has type 'char' [-Wchar-subscripts]
   19 |                 if (t[a[i]]) {
      |                           ^
foo.cc:20:37: warning: array subscript has type 'char' [-Wchar-subscripts]
   20 |                         if (t[a[i-1]]==0) cout<<" ";
      |                                     ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 6ms 300.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Accepted 3ms 284.0 KiB
#4 Accepted 3ms 412.0 KiB
#5 Accepted 3ms 412.0 KiB
#6 Accepted 3ms 412.0 KiB
#7 Accepted 3ms 332.0 KiB
#8 Accepted 3ms 412.0 KiB
#9 Accepted 4ms 412.0 KiB
#10 Accepted 3ms 412.0 KiB
#11 Accepted 4ms 412.0 KiB
#12 Accepted 4ms 412.0 KiB
#13 Accepted 3ms 284.0 KiB
#14 Accepted 3ms 412.0 KiB
#15 Accepted 3ms 328.0 KiB
#16 Accepted 4ms 412.0 KiB
#17 Accepted 3ms 412.0 KiB
#18 Accepted 3ms 412.0 KiB
#19 Accepted 3ms 412.0 KiB
#20 Accepted 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1556 Problem 8A. 兄妹的密文
比赛
2023秋 悬赏令第八周
语言
C++
递交时间
2023-11-28 20:09:29
评测时间
2023-11-28 20:09:29
评测机
分数
100
总耗时
81ms
峰值内存
412.0 KiB