/ WHOJ /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:12:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |         for(int i=0;i<a.length();i++)
      |                     ~^~~~~~~~~~~
foo.cc:14:60: warning: array subscript has type 'char' [-Wchar-subscripts]
   14 |                 if (a[i]>='A'&&a[i]<='Z') {a[i]-=64; z[a[i]]++;}
      |                                                            ^
foo.cc:16:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   16 |         for(int i=0;i<b.length();i++)
      |                     ~^~~~~~~~~~~
foo.cc:18:60: warning: array subscript has type 'char' [-Wchar-subscripts]
   18 |                 if (b[i]>='A'&&b[i]<='Z') {b[i]-=64; z[b[i]]++;}
      |                                                            ^
foo.cc:20:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   20 |         for(int i=0;i<c.length();i++)
      |                     ~^~~~~~~~~~~
foo.cc:22:60: warning: array subscript has type 'char' [-Wchar-subscripts]
   22 |                 if (c[i]>='A'&&c[i]<='Z') {c[i]-=64; z[c[i]]++;}
      |                                                            ^
foo.cc:24:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   24 |         for(int i=0;i<d.length();i++)
      |                     ~^~~~~~~~~~~
foo.cc:26:60: warning: array subscript has type 'char' [-Wchar-subscripts]
   26 |                 if (d[i]>='A'&&d[i]<='Z') {d[i]-=64; z[d[i]]++;}
      |                                                            ^
foo.cc:7:13: warning: unused variable 'e' [-Wunused-variable]
    7 |         int e=0;
      |             ^
正在同步测试数据,请稍后
Found 5 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 332.0 KiB
#2 Accepted 3ms 412.0 KiB
#3 Accepted 3ms 412.0 KiB
#4 Accepted 3ms 412.0 KiB
#5 Accepted 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1217 垂直柱状图
题目数据
下载
语言
C++
递交时间
2023-09-30 08:50:26
评测时间
2023-09-30 08:50:26
评测机
分数
100
总耗时
19ms
峰值内存
412.0 KiB