/ 南湖ACM /

记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:8:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=0;i<=3;i++)
  ^~~
foo.c:16:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    for(i=0;i<=5;i++)
    ^~~
foo.c:7:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%c",&ch[i]); 
     ^~~~~~~~~~~~~~~~~~
foo.c:18:20: warning: iteration 5 invokes undefined behavior [-Waggressive-loop-optimizations]
     printf("%4c",ch[i]);
                  ~~^~~
foo.c:16:4: note: within this loop
    for(i=0;i<=5;i++)
    ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Binary files usrout and stdout 1ms 256.0 KiB
#2 Wrong Answer Binary files usrout and stdout 0ms 288.0 KiB
#3 Wrong Answer Binary files usrout and stdout 0ms 256.0 KiB
#4 Wrong Answer Binary files usrout and stdout 1ms 288.0 KiB

信息

递交者
类型
递交
题目
P1005 数字反转
比赛
NHACM
语言
C
递交时间
2021-09-26 10:21:28
评测时间
2021-09-26 10:21:28
评测机
分数
0
总耗时
4ms
峰值内存
288.0 KiB