/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void add1(long long int, long long int, long long int)':
/in/foo.cc:25:29: warning: left operand of comma operator has no effect [-Wunused-value]
   25 |     tot++; e[tot] = (node)( v,fl,h[u] ); h[u] = tot;
      |                             ^
/in/foo.cc:25:37: warning: right operand of comma operator has no effect [-Wunused-value]
   25 |     tot++; e[tot] = (node)( v,fl,h[u] ); h[u] = tot;
      |                                     ^
/in/foo.cc:25:39: error: no matching function for call to 'node::node(long long int&)'
   25 |     tot++; e[tot] = (node)( v,fl,h[u] ); h[u] = tot;
      |                                       ^
/in/foo.cc:19:8: note: candidate: 'node::node()'
   19 | struct node {
      |        ^~~~
/in/foo.cc:19:8: note:   candidate expects 0 arguments, 1 provided
/in/foo.cc:19:8: note: candidate: 'constexpr node::node(const node&)'
/in/foo.cc:19:8: note:   no known conversion for argument 1 from 'long long int' to 'const node&'
/in/foo.cc:19:8: note: candidate: 'constexpr node::node(node&&)'
/in/foo.cc:19:8: note:   no known conversion for argument 1 from 'long long int' to 'node&&'

信息

递交者
类型
递交
题目
P1590 笨笨的洪水堵截
语言
C++
递交时间
2025-06-01 09:01:07
评测时间
2025-06-01 09:01:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes