记录详情

Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:9:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    9 |         for(int i;i<n;i++);
      |         ^~~
/in/foo.c:10:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   10 |         {
      |         ^
/in/foo.c:9:20: warning: 'i' is used uninitialized [-Wuninitialized]
    9 |         for(int i;i<n;i++);
      |                   ~^~
/in/foo.c:9:17: note: 'i' was declared here
    9 |         for(int i;i<n;i++);
      |                 ^
/in/foo.c:18:20: warning: 'i' is used uninitialized [-Wuninitialized]
   18 |         for(int i;i<n;i++)
      |                   ~^~
/in/foo.c:18:17: note: 'i' was declared here
   18 |         for(int i;i<n;i++)
      |                 ^
/in/foo.c:20:25: warning: 'j' may be used uninitialized [-Wmaybe-uninitialized]
   20 |                 for(int j;j<=i;j++)
      |                         ^
# 状态 耗时 内存占用
#1 Runtime Error 1ms 284.0 KiB

信息

递交者
类型
自测
语言
C
递交时间
2025-11-24 16:40:17
评测时间
2025-11-24 16:40:17
评测机
分数
0
总耗时
1ms
峰值内存
284.0 KiB