记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:19:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for (i = 1; i <= s-1; i++)
    ^~~
/in/foo.cc:21:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     return 0;
     ^~~~~~
/in/foo.cc:6:10: warning: unused variable 'j' [-Wunused-variable]
  int  i, j, k = 0, m, s;
          ^
/in/foo.cc:7:8: warning: unused variable 'n' [-Wunused-variable]
  float n;
        ^
/in/foo.cc:24:13: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (m >= k-s) {
            ~^~
# 状态 耗时 内存占用
#1 Accepted 1ms 360.0 KiB
#2 Accepted 2ms 356.0 KiB
#3 Accepted 1ms 340.0 KiB
#4 Accepted 1ms 360.0 KiB

信息

递交者
类型
递交
题目
P1305 B. Round Decimal
比赛
2021年互联网创新创业科技节程序设计大赛
语言
C++
递交时间
2021-12-23 19:43:31
评测时间
2021-12-23 19:43:45
评测机
分数
100
总耗时
7ms
峰值内存
360.0 KiB