Problem | card |
---|---|
User | YH |
Submission Time | 2024-02-06 16:35:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
card.cpp: In function ‘int main()’:
card.cpp:32:19: error: ambiguous overload for ‘operator=’ (operand types are ‘Node’ and ‘Node*’)
32 | ending_node = &end;
| ^~~
card.cpp:5:7: note: candidate: ‘constexpr Node& Node::operator=(const Node&)’ <near match>
5 | class Node {
| ^~~~
card.cpp:5:7: note: conversion of argument 1 would be ill-formed:
card.cpp:32:18: error: invalid user-defined conversion from ‘Node*’ to ‘const Node&’ [-fpermissive]
32 | ending_node = &end;
| ^~~~
card.cpp:11:2: note: candidate is: ‘Node::Node(int)’ <near match>
11 | Node(int new_value=0) {
| ^~~~
card.cpp:11:2: note: conversion of argument 1 would be ill-formed:
card.cpp:32:18: error: invalid conversion from ‘Node*’ to ‘int’ [-fpermissive]
32 | ending_node = &end;
| ^~~~
| |
| Nod