记录详情

Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:29:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
        if(read[0]==2) s[i]=4;break;
        ^~
/in/foo.c:29:30: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
        if(read[0]==2) s[i]=4;break;
                              ^~~~~
/in/foo.c:32:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
        if(read[0]==2) s[i]=5;break;
        ^~
/in/foo.c:32:30: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
        if(read[0]==2) s[i]=5;break;
                              ^~~~~
/in/foo.c:35:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
        if(read[0]==2) s[i]=2;break;
        ^~
/in/foo.c:35:30: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
        if(read[0]==2) s[i]=2;break;
                              ^~~~~
/in/foo.c:18:7: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
   s[i]=read[0];
   ~~~~^~~~~~~~
/in/foo.c:50:2: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%d %d",n,m);
  ^~~~~~~~~~~~~~~~~~~
/in/foo.c:50:2: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
# 状态 耗时 内存占用
#1 Runtime Error 0ms 216.0 KiB
#2 Runtime Error 0ms 228.0 KiB
#3 Runtime Error 0ms 224.0 KiB
#4 Runtime Error 0ms 228.0 KiB
#5 Runtime Error 0ms 228.0 KiB
#6 Runtime Error 0ms 228.0 KiB
#7 Runtime Error 0ms 224.0 KiB
#8 Runtime Error 0ms 228.0 KiB
#9 Runtime Error 0ms 228.0 KiB
#10 Runtime Error 0ms 228.0 KiB

信息

递交者
类型
递交
题目
P1004 小m的刷子
语言
C
递交时间
2021-01-30 11:07:53
评测时间
2021-01-30 11:07:53
评测机
分数
0
总耗时
8ms
峰值内存
228.0 KiB