/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'double getd(int, int)':
/in/foo.cc:28:10: error: expected primary-expression before ')' token
  int dy=()fabs(bom[i].y-wea[j].y);
          ^
/in/foo.cc: In function 'void dfs(int, int, std::vector<int>)':
/in/foo.cc:42:13: error: 'ans' was not declared in this scope
  if(ac==n) {ans=min(ans,d);return;}
             ^~~
/in/foo.cc:42:13: note: suggested alternative: 'abs'
  if(ac==n) {ans=min(ans,d);return;}
             ^~~
             abs
/in/foo.cc:43:8: error: 'ans' was not declared in this scope
  if(d>=ans) return;
        ^~~
/in/foo.cc:43:8: note: suggested alternative: 'abs'
  if(d>=ans) return;
        ^~~
        abs
/in/foo.cc:44:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<wl.size();i++) 
              ~^~~~~~~~~~
/in/foo.cc:46:15: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}' to non-scalar type 'node1' requested
   node1 v=wl[i];
               ^
/in/foo.cc:47:6: error: expected primary-expression before ')' token
   if()  
      ^
/in/foo.cc:48:2: error: expected primary-expression before '}' token
  }
  ^

信息

递交者
类型
递交
题目
P1018 智破连环阵
语言
C++
递交时间
2018-10-31 18:03:12
评测时间
2018-10-31 18:03:12
评测机
分数
0
总耗时
347ms
峰值内存
41.812 MiB