Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error #2

Open
03343 opened this issue May 6, 2021 · 0 comments
Open

compilation error #2

03343 opened this issue May 6, 2021 · 0 comments

Comments

@03343
Copy link

03343 commented May 6, 2021

23tree.cpp:456:27: error: no matching constructor for initialization of 'usefulData'
usefulData s1 = insert(root, d, p);
^ ~~~~~~~~~~~~~~~~~~
23tree.cpp:1168:19: note: in instantiation of member function 'two3Tree::insert' requested here
tree1.insert(data);
^
23tree.cpp:31:5: note: candidate constructor not viable: no known conversion from 'usefulData' to 'two3node ' for 1st
argument
usefulData (two3node
c)
^
23tree.cpp:57:5: note: candidate constructor not viable: expects an l-value for 1st argument
usefulData(usefulData & otherusefulData)
^
23tree.cpp:25:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
usefulData()
^
23tree.cpp:37:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
usefulData (two3node* c, T m)
^
23tree.cpp:497:13: error: no viable constructor returning object of type 'usefulData'
return (NULL);
^ ~~~~~~
23tree.cpp:456:32: note: in instantiation of member function 'two3Tree::insert' requested here
usefulData s1 = insert(root, d, p);
^
23tree.cpp:1168:19: note: in instantiation of member function 'two3Tree::insert' requested here
tree1.insert(data);
^
23tree.cpp:31:5: note: candidate constructor not viable: no known conversion from 'usefulData' to 'two3node ' for 1st
argument
usefulData (two3node
c)
^
23tree.cpp:57:5: note: candidate constructor not viable: expects an l-value for 1st argument
usefulData(usefulData & otherusefulData)
^
23tree.cpp:25:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
usefulData()
^
23tree.cpp:37:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
usefulData (two3node* c, T m)
^
23tree.cpp:811:32: error: no viable overloaded '='
s1 = Delete (r -> left, d, r);
~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~
23tree.cpp:786:9: note: in instantiation of member function 'two3Tree::Delete' requested here
Delete(root,d,p);
^
23tree.cpp:1179:19: note: in instantiation of member function 'two3Tree::deleteNode' requested here
tree1.deleteNode(data);
^
23tree.cpp:45:19: note: candidate function not viable: expects an l-value for 1st argument
usefulData operator = (usefulData & otherusefulData)
^
23tree.cpp:854:21: error: no viable constructor returning object of type 'usefulData'
return (NULL);
^ ~~~~~~
23tree.cpp:31:5: note: candidate constructor not viable: no known conversion from 'usefulData' to 'two3node ' for 1st
argument
usefulData (two3node
c)
^
23tree.cpp:57:5: note: candidate constructor not viable: expects an l-value for 1st argument
usefulData(usefulData & otherusefulData)
^
23tree.cpp:25:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
usefulData()
^
23tree.cpp:37:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
usefulData (two3node* c, T m)
^
23tree.cpp:863:28: error: no viable overloaded '='
s1 = rotateRight(p,r,s1.midValue,s1.child); //MidValue is just a dummy here. Used to compl...
~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23tree.cpp:45:19: note: candidate function not viable: expects an l-value for 1st argument
usefulData operator = (usefulData & otherusefulData)
^
23tree.cpp:996:28: error: no viable overloaded '='
s1 = rotateRight(p,r,s1.midValue,NULL); //MidValue is just a dummy here. Used to compl...
~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23tree.cpp:45:19: note: candidate function not viable: expects an l-value for 1st argument
usefulData operator = (usefulData & otherusefulData)
^
23tree.cpp:1012:13: error: no viable constructor returning object of type 'usefulData'
return (NULL);
^ ~~~~~~
23tree.cpp:31:5: note: candidate constructor not viable: no known conversion from 'usefulData' to 'two3node ' for 1st
argument
usefulData (two3node
c)
^
23tree.cpp:57:5: note: candidate constructor not viable: expects an l-value for 1st argument
usefulData(usefulData & otherusefulData)
^
23tree.cpp:25:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
usefulData()
^
23tree.cpp:37:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
usefulData (two3node* c, T m)
^
23tree.cpp:324:9: error: no viable constructor returning object of type 'usefulData'
return (NULL);
^ ~~~~~~
23tree.cpp:863:31: note: in instantiation of member function 'two3Tree::rotateRight' requested here
s1 = rotateRight(p,r,s1.midValue,s1.child); //MidValue is just a dummy here. Used to compl...
^
23tree.cpp:786:9: note: in instantiation of member function 'two3Tree::Delete' requested here
Delete(root,d,p);
^
23tree.cpp:1179:19: note: in instantiation of member function 'two3Tree::deleteNode' requested here
tree1.deleteNode(data);
^
23tree.cpp:31:5: note: candidate constructor not viable: no known conversion from 'usefulData' to 'two3node ' for 1st
argument
usefulData (two3node
c)
^
23tree.cpp:57:5: note: candidate constructor not viable: expects an l-value for 1st argument
usefulData(usefulData & otherusefulData)
^
23tree.cpp:25:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
usefulData()
^
23tree.cpp:37:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
usefulData (two3node* c, T m)
^
8 errors generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant