/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void Prim()':
/in/foo.cc:24:6: warning: unused variable 'tot' [-Wunused-variable]
  int tot=0;
      ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:95:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if(b[1]>b[tot]||b[tot]>b[tot-1])continue;int v=0;
    ^~
/in/foo.cc:95:45: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    if(b[1]>b[tot]||b[tot]>b[tot-1])continue;int v=0;
                                             ^~~
/in/foo.cc:95:49: error: redeclaration of 'int v'
    if(b[1]>b[tot]||b[tot]>b[tot-1])continue;int v=0;
                                                 ^
/in/foo.cc:88:8: note: 'int v' previously declared here
    int v=0;
        ^

信息

递交者
类型
递交
题目
P1422 教主的难题
语言
C++
递交时间
2018-09-29 14:24:42
评测时间
2018-09-29 14:24:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes