❔ Two errors I cannot understand
I am trying to create a solution for this LC puzzle https://leetcode.com/problems/binary-tree-level-order-traversal/?envType=study-plan&id=level-1
My solution has a couple of errors like this;
`
ERROR 1: Argument 1: cannot convert from 'System.Collections.Generic.List<System.Collections.Generic.IList<int>>' to 'System.Collections.Generic.IList<int>'
ERRORS 2 & 3: The name 'level' does not exist in the current context (in Solution.cs)
ERROR 4: Argument 1: cannot convert from 'System.Collections.Generic.List<System.Collections.Generic.IList<int>>' to 'System.Collections.Generic.IList<int>' (in Solution.cs)
Could anyone kindly point me in the right direction?
LeetCode
LeetCode - The World's Leading Online Programming Learning Platform
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
5 Replies
Well, errors 1 and 4 are plenty clear
Something expects an apple
You're trying to cram a container of apples into it
Square peg doesn't go into round hole
2 and 3 are quite clear as well
There's no
level
wherever that error occurs
You can't reference something that does not existyou probably want
$scopes
$scopes
thing a
is available in scope A
and scope B
thing b
is available only in scope B
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.