/ Vijos /

记录详情

Accepted

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

信息

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