/ 大熊 /

记录详情

Compile Error

/in/foo.cc: In function 'void find(int, int)':
/in/foo.cc:17:87: error: 'edeg' was not declared in this scope
 ans=sqrt((edge[l].x-edge[r].x)*(edge[l].x-edge[r].x)+(edge[l].y-edge[r].y)*(edge[l].y-edeg[r].y)+(edge[l].z-edge[r].z)*(edge[l].z-edeg[r].z))
                                                                                       ^~~~
/in/foo.cc:17:141: error: 'sqrt' was not declared in this scope
 ans=sqrt((edge[l].x-edge[r].x)*(edge[l].x-edge[r].x)+(edge[l].y-edge[r].y)*(edge[l].y-edeg[r].y)+(edge[l].z-edge[r].z)*(edge[l].z-edeg[r].z))
                                                                                                                                             ^
/in/foo.cc:27:4: error: 'else' without a previous 'if'
    else
    ^~~~
/in/foo.cc:28:9: warning: unused variable 'haha' [-Wunused-variable]
    {int haha=0;
         ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:46:12: error: expected ')' before ';' token
  (flag=true;int sum=0;)
            ^
/in/foo.cc:45:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while(t--)
  ^~~~~
/in/foo.cc:46:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  (flag=true;int sum=0;)
             ^~~
/in/foo.cc:46:23: error: expected primary-expression before ')' token
  (flag=true;int sum=0;)
                       ^
/in/foo.cc:52:14: warning: unused variable 'ans' [-Wunused-variable]
    long long ans;int hu=0;
              ^~~

信息

递交者
类型
递交
题目
cheese
语言
C++
递交时间
2017-11-21 20:16:46
评测时间
2017-11-21 20:16:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes