记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:15:20: warning: format '%u' expects argument of type 'unsigned int*', but argument 2 has type 'long long unsigned int*' [-Wformat=]
  scanf("%u%u",&N,&K);
                    ^
/in/foo.cc:15:20: warning: format '%u' expects argument of type 'unsigned int*', but argument 3 has type 'long long unsigned int*' [-Wformat=]
/in/foo.cc:16:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<=N;++i)
              ~^~~
/in/foo.cc:18:21: warning: format '%u' expects argument of type 'unsigned int*', but argument 2 has type 'long long unsigned int*' [-Wformat=]
   scanf("%u",&arr[i]);
                     ^
/in/foo.cc:36:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int l=1;l<=N;++l)
              ~^~~
/in/foo.cc:40:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int r=l;r<=N;++r)
               ~^~~
/in/foo.cc:49:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      if( tmp >= 1 && tmp <= cnt)
                      ~~~~^~~~~~
/in/foo.cc:72:17: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'long long unsigned int' [-Wformat=]
  printf("%u",ant);
                 ^
# 状态 耗时 内存占用
#1 Accepted 1ms 216.0 KiB
#2 Accepted 1ms 224.0 KiB
#3 Accepted 1ms 232.0 KiB
#4 Accepted 1ms 228.0 KiB
#5 Accepted 1ms 228.0 KiB
#6 Accepted 1ms 232.0 KiB
#7 Accepted 1ms 228.0 KiB
#8 Accepted 1ms 232.0 KiB
#9 Accepted 1ms 224.0 KiB
#10 Accepted 1ms 228.0 KiB
#11 Accepted 1ms 228.0 KiB
#12 Accepted 1ms 228.0 KiB
#13 Accepted 147ms 3.359 MiB
#14 Accepted 147ms 3.359 MiB
#15 Accepted 150ms 3.359 MiB
#16 Accepted 150ms 3.336 MiB
#17 Accepted 66ms 4.879 MiB
#18 Accepted 65ms 4.879 MiB
#19 Accepted 64ms 4.883 MiB
#20 Accepted 68ms 4.883 MiB

信息

递交者
类型
递交
比赛
NOIP2019模拟赛 Day1(重现)
语言
C++
递交时间
2019-02-16 22:59:33
评测时间
2019-02-16 22:59:33
评测机
分数
100
总耗时
878ms
峰值内存
4.883 MiB