记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    8 |         for(int i=L;i<=R;i++)
      |         ^~~
/in/foo.cc:10:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   10 |                 int su=0;
      |                 ^~~
/in/foo.cc:9:21: warning: unused variable 'nu' [-Wunused-variable]
    9 |                 int nu=i;
      |                     ^~
/in/foo.cc:18:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   18 |         if(m==5)
      |         ^~
/in/foo.cc:20:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   20 |                 b+=i;
      |                 ^
/in/foo.cc:20:20: error: 'i' was not declared in this scope
   20 |                 b+=i;
      |                    ^
/in/foo.cc:10:21: warning: unused variable 'su' [-Wunused-variable]
   10 |                 int su=0;
      |                     ^~

信息

递交者
类型
递交
题目
P1086 xf1-9统计各位数字之和为5的数
比赛
2025程序设计与竞赛作业赛第一场(整装出发)
语言
C++
递交时间
2025-09-27 20:59:45
评测时间
2025-10-03 02:19:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes