记录详情

Compile Error

/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;
               ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:55:2: error: expected ';' before 'insert'
  insert(n*m,n*m*2,2,0),insert(1,n*m+1,2,0);
  ^~~~~~

信息

递交者
类型
递交
题目
传纸条
语言
C++
递交时间
2017-08-21 10:44:11
评测时间
2017-08-21 10:44:11
评测机
分数
0
总耗时
269ms
峰值内存
34.363 MiB