记录详情

Accepted

foo.cc: In function 'void solve()':
foo.cc:18:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   18 |         for(i=0;i<s.size();i++){
      |                 ~^~~~~~~~~
foo.cc:28:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |         for(int j=i;j<s.size();j++){
      |                     ~^~~~~~~~~
foo.cc:30:40: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   30 |                         printf("Case #%d: %s\n",idx++,"NO");
      |                                       ~^        ~~~~~
      |                                        |           |
      |                                        int         long long int
      |                                       %lld
foo.cc:34:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   34 |         printf("Case #%d: %s\n",idx++,"YES");
      |                       ~^        ~~~~~
      |                        |           |
      |                        int         long long int
      |                       %lld
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 7ms 412.0 KiB
#2 Accepted 5ms 460.0 KiB
#3 Accepted 7ms 460.0 KiB
#4 Accepted 8ms 412.0 KiB
#5 Accepted 7ms 460.0 KiB

信息

递交者
类型
递交
题目
P1424 1-2 狗和猫
比赛
2023暑假集训7月3日训练题
语言
C++
递交时间
2023-07-03 09:46:45
评测时间
2023-07-03 09:46:45
评测机
分数
100
总耗时
36ms
峰值内存
460.0 KiB