/ Vijos /

记录详情

Compile Error

/in/foo.cc:15:25: error: 'edge' does not name a type
  bool operator < (const edge &x) const
                         ^~~~
/in/foo.cc: In member function 'bool Node::operator<(const int&) const':
/in/foo.cc:17:10: error: 'c' was not declared in this scope
   return c<x.c;
          ^
/in/foo.cc:17:14: error: request for member 'c' in 'x', which is of non-class type 'const int'
   return c<x.c;
              ^
/in/foo.cc: In function 'bool cmp(const Node&, const Node&)':
/in/foo.cc:22:15: error: expected unqualified-id before '<' token
  return(a.z<b.<z);
               ^
/in/foo.cc:22:16: error: 'z' was not declared in this scope
  return(a.z<b.<z);
                ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:36:15: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
  scanf("%d",&n);
               ^
/in/foo.cc:40:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   scanf("%d%d%d",&x,&y,&z);
                          ^
/in/foo.cc:40:26: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:40:26: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]

信息

递交者
类型
自测
题目
P1579 宿命的PSS
语言
C++
递交时间
2024-06-06 15:53:16
评测时间
2024-06-06 15:53:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes