/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'void read(T&)':
/in/foo.cc:7:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (; isdigit(c); c = getchar()) x = (x << 3) + (x << 1) + c - 48; x *= f;
  ^~~
/in/foo.cc:7:70: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for (; isdigit(c); c = getchar()) x = (x << 3) + (x << 1) + c - 48; x *= f;
                                                                      ^
/in/foo.cc: In function 'void write(T)':
/in/foo.cc:10:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (x > 9) write(x / 10); putchar(x % 10 + 48);
  ^~
/in/foo.cc:10:28: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if (x > 9) write(x / 10); putchar(x % 10 + 48);
                            ^~~~~~~
/in/foo.cc: In function 'void print(T, char)':
/in/foo.cc:13:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (x < 0) putchar('-'), x = -x; write(x), putchar(ed);
  ^~
/in/foo.cc:13:35: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if (x < 0) putchar('-'), x = -x; write(x), putchar(ed);
                                   ^~~~~
# 状态 耗时 内存占用
#1 Runtime Error 1ms 356.0 KiB
#2 Runtime Error 1ms 352.0 KiB
#3 Runtime Error 1ms 360.0 KiB
#4 Runtime Error 1ms 356.0 KiB
#5 Runtime Error 1ms 352.0 KiB
#6 Runtime Error 1ms 376.0 KiB
#7 Runtime Error 1ms 376.0 KiB
#8 Runtime Error 1ms 348.0 KiB
#9 Runtime Error 1ms 352.0 KiB
#10 Runtime Error 1ms 376.0 KiB

信息

递交者
类型
递交
题目
P1000 A+B Problem
语言
C++
递交时间
2024-03-21 20:41:35
评测时间
2024-03-21 20:41:35
评测机
分数
0
总耗时
14ms
峰值内存
376.0 KiB