记录详情

Wrong Answer

foo.c: In function ‘main’:
foo.c:12:18: warning: ‘%lld’ directive writing between 1 and 20 bytes into a region of size 11 [-Wformat-overflow=]
   12 |     sprintf(str,"%lld",num);
      |                  ^~~~
foo.c:12:17: note: directive argument in the range [-9223372036854775808, 999999999]
   12 |     sprintf(str,"%lld",num);
      |                 ^~~~~~
foo.c:12:5: note: ‘sprintf’ output between 2 and 21 bytes into a destination of size 11
   12 |     sprintf(str,"%lld",num);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 288.0 KiB
#2 Accepted 1ms 288.0 KiB
#3 Accepted 0ms 548.0 KiB
#4 Wrong Answer Read 输入的整数必须小于10亿, expect 2975216251. 1ms 288.0 KiB

信息

递交者
类型
递交
题目
1-1 数字循环左移
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C
递交时间
2024-08-15 14:06:20
评测时间
2024-08-15 14:06:20
评测机
分数
75
总耗时
5ms
峰值内存
548.0 KiB