/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void read(int&)':
/in/foo.cc:28: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:28: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:29:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while((ch=getchar())>='0'&&ch<='9')res=res*10+ch-48;res*=flag;
  ^~~~~
/in/foo.cc:29: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=res*10+ch-48;res*=flag;
                                                      ^~~
# 状态 耗时 内存占用
#1 Accepted 4ms 384.0 KiB
#2 Accepted 4ms 256.0 KiB
#3 Accepted 4ms 384.0 KiB
#4 Accepted 306ms 190.875 MiB
#5 Accepted 7ms 508.0 KiB
#6 Accepted 8ms 348.0 KiB
#7 Accepted 4ms 496.0 KiB
#8 Accepted 32ms 4.625 MiB
#9 Accepted 41ms 4.609 MiB
#10 Accepted 3ms 356.0 KiB

信息

递交者
类型
递交
题目
P1328 小明的网络游戏
语言
C++
递交时间
2017-11-03 19:39:20
评测时间
2017-11-03 19:39:21
评测机
分数
100
总耗时
417ms
峰值内存
190.875 MiB