/ WHOJ /

记录详情

Accepted

foo.cc: In function 'void out(int)':
foo.cc:26:36: warning: narrowing conversion of '((x % 10) + 48)' from 'int' to 'char' [-Wnarrowing]
   26 |         char sta[15] = { 1, x % 10 + '0' };
      |                             ~~~~~~~^~~~~
foo.cc:27:29: warning: array subscript has type 'char' [-Wchar-subscripts]
   27 |         while (x /= 10) sta[++sta[0]] = x % 10 + '0';
      |                             ^~~~~~~~
foo.cc:28:42: warning: array subscript has type 'char' [-Wchar-subscripts]
   28 |         while (sta[0]) putchar(sta[sta[0]--]);
      |                                    ~~~~~~^~
foo.cc: In function 'int main()':
foo.cc:37:13: warning: unused variable 'head' [-Wunused-variable]
   37 |         int head = 1;
      |             ^~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Accepted 3ms 256.0 KiB
#3 Accepted 5ms 384.0 KiB
#4 Accepted 3ms 256.0 KiB
#5 Accepted 5ms 384.0 KiB
#6 Accepted 4ms 256.0 KiB
#7 Accepted 4ms 384.0 KiB
#8 Accepted 6ms 512.0 KiB
#9 Accepted 5ms 384.0 KiB
#10 Accepted 6ms 384.0 KiB

信息

递交者
类型
递交
题目
P1755 喝红茶
题目数据
下载
语言
C++
递交时间
2022-10-01 14:59:41
评测时间
2022-10-09 23:09:19
评测机
分数
115
总耗时
47ms
峰值内存
512.0 KiB