/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:11:22: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
  scanf("%ld%ld",&n,&m);
                      ^
/in/foo.cc:11:22: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:14:26: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[20]' [-Wformat=]
       scanf("%s%ld",&c,&t);
                          ^
/in/foo.cc:14:26: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:26:16: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%ld",s);
                ^
/in/foo.cc:19:12: warning: unused variable 'p' [-Wunused-variable]
  long long p=floor(log(m)/log(2));
            ^
# 状态 耗时 内存占用
#1 Accepted 1ms 200.0 KiB
#2 Accepted 1ms 208.0 KiB
#3 Accepted 1ms 204.0 KiB
#4 Accepted 16ms 312.0 KiB
#5 Accepted 16ms 308.0 KiB
#6 Accepted 16ms 312.0 KiB
#7 Accepted 17ms 308.0 KiB
#8 Accepted 20ms 308.0 KiB
#9 Accepted 16ms 200.0 KiB
#10 Accepted 19ms 308.0 KiB

信息

递交者
类型
递交
题目
P1864 起床困难综合症
语言
C++
递交时间
2019-03-18 21:09:47
评测时间
2019-03-18 21:09:47
评测机
分数
100
总耗时
127ms
峰值内存
312.0 KiB