记录详情

Accepted

/in/foo.cc: In function 'void read(int&)':
/in/foo.cc:19: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:19: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:20: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:20: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;
                                                      ^~~
/in/foo.cc: In function 'void find()':
/in/foo.cc:43:15: warning: unused variable 'p' [-Wunused-variable]
  register int p,x,sum;
               ^
# 状态 耗时 内存占用
#1 Accepted 1ms 640.0 KiB
#2 Accepted 3ms 584.0 KiB
#3 Accepted 3ms 896.0 KiB
#4 Accepted 3ms 768.0 KiB
#5 Accepted 2ms 864.0 KiB
#6 Accepted 3ms 712.0 KiB
#7 Accepted 3ms 640.0 KiB
#8 Accepted 4ms 896.0 KiB
#9 Accepted 3ms 860.0 KiB
#10 Accepted 4ms 980.0 KiB

信息

递交者
类型
递交
题目
传纸条
语言
C++
递交时间
2017-08-21 10:44:24
评测时间
2017-08-21 10:44:24
评测机
分数
100
总耗时
34ms
峰值内存
980.0 KiB