记录详情

Accepted

foo.cc: In function 'bool judge(std::vector<std::vector<long long int> >&, long long int, long long int)':
foo.cc:9:21: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    9 |    ((m-1>=0)  &&(n+1<a[0].size()) ?(a[m-1][n+1] <a[m][n]) :1)&&
      |                  ~~~^~~~~~~~~~~~
foo.cc:11:9: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   11 |    ((n+1<a[0].size())     ?(a[m][n+1]  <a[m][n]) :1)&&
      |      ~~~^~~~~~~~~~~~
foo.cc:12:9: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::vector<long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |    ((m+1<a.size()) &&(n-1>=0)   ?(a[m+1][n-1] <a[m][n]) :1)&&
      |      ~~~^~~~~~~~~
foo.cc:13:9: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::vector<long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |    ((m+1<a.size())      ?(a[m+1][n]  <a[m][n]) :1)&&
      |      ~~~^~~~~~~~~
foo.cc:14:9: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::vector<long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 |    ((m+1<a.size()) &&(n+1<a[0].size()) ?(a[m+1][n+1] <a[m][n]) :1)
      |      ~~~^~~~~~~~~
foo.cc:14:26: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 |    ((m+1<a.size()) &&(n+1<a[0].size()) ?(a[m+1][n+1] <a[m][n]) :1)
      |                       ~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 380.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 4ms 512.0 KiB
#5 Accepted 6ms 512.0 KiB

信息

递交者
类型
递交
题目
4-4 有多少个山峰
比赛
2022暑期青少年社团(训练赛)
语言
C++
递交时间
2022-08-07 20:21:57
评测时间
2022-08-07 20:21:57
评测机
分数
100
总耗时
17ms
峰值内存
512.0 KiB