/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:16:30: 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 j = 2, k = 0; j < a[i].size(); j++) {
      |                            ~~^~~~~~~~~~~~~
foo.cc:21:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   21 |     for (int j = 2, k = 0; j < b[i].size(); j++) {
      |                            ~~^~~~~~~~~~~~~
foo.cc:35:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   35 |         for (int j = 1, k = 0; j < tem.size(); j++) {
      |                                ~~^~~~~~~~~~~~
foo.cc:38:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   38 |           if (k == a[i].size()-1) {
      |               ~~^~~~~~~~~~~~~~~~
foo.cc:42:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   42 |             for (int z = 1; z < b[i].size(); z++) res += b[i][z];
      |                             ~~^~~~~~~~~~~~~
foo.cc:43:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   43 |             for (int z = j + 1; z < tem.size(); z++) res+=tem[z];
      |                                 ~~^~~~~~~~~~~~
foo.cc:56:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   56 |         for (int j = 1, k = 0; j < tem.size(); j++) {
      |                                ~~^~~~~~~~~~~~
foo.cc:59:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   59 |           if (k == b[i].size()-1) {
      |               ~~^~~~~~~~~~~~~~~~
foo.cc:63:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   63 |             for (int z = 1; z < a[i].size(); z++) res+=a[i][z];
      |                             ~~^~~~~~~~~~~~~
foo.cc:64:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   64 |             for (int z = j + 1; z < tem.size(); z++) res += tem[z];
      |                                 ~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 512.0 KiB
#2 Accepted 5ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 512.0 KiB
#5 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1124 字串变换
语言
C++
递交时间
2022-02-12 10:29:40
评测时间
2022-02-12 10:29:40
评测机
分数
50
总耗时
18ms
峰值内存
512.0 KiB