/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void read(T&)':
/in/foo.cc:9:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while((ch=getchar())<'0'||ch>'9')if(ch=='-')flag=-1;res=ch-48;
  ^~~~~
/in/foo.cc:9:54: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  while((ch=getchar())<'0'||ch>'9')if(ch=='-')flag=-1;res=ch-48;
                                                      ^~~
/in/foo.cc:10:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while((ch=getchar())>='0'&&ch<='9')res=ch-48+res*10;res*=flag;
  ^~~~~
/in/foo.cc:10:54: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  while((ch=getchar())>='0'&&ch<='9')res=ch-48+res*10;res*=flag;
                                                      ^~~
# 状态 耗时 内存占用
#1 Accepted 4ms 256.0 KiB
#2 Accepted 3ms 328.0 KiB
#3 Accepted 4ms 256.0 KiB
#4 Accepted 9ms 512.0 KiB
#5 Accepted 5ms 612.0 KiB
#6 Accepted 30ms 3.586 MiB
#7 Accepted 43ms 3.93 MiB
#8 Accepted 51ms 4.125 MiB
#9 Accepted 52ms 4.199 MiB
#10 Accepted 59ms 4.09 MiB

信息

递交者
类型
递交
题目
P1971 紫电穿风刺
语言
C++
递交时间
2017-10-30 21:46:22
评测时间
2017-10-30 21:46:22
评测机
分数
100
总耗时
264ms
峰值内存
4.199 MiB