![]() |
.. (לתיקייה המכילה) | |
Question: 16 lines per function bonus. Which lines are counted? | |
Only the implementation of the BODY of the function. No declaration, no header, no {,} symbols | |
קישור: Link: Ссылка: وصلة: | https://grades.cs.technion.ac.il/grades.cgi?dbdidciidc2a24b7b924a201173b0c+2+234114+Spring2019+hw/WCFiles/Line%20Counting%20Procedure.pdf |
Question: Should i implement all the questions without if/else/do-while/switch in order to get 10 point bonus? | |
No. Only question 1 is required for the bonus points. Check-out: using while to simulate plain if will be counted,as if was used !! |
Question: Should I implement all 3 questions with functions shorter than 17 lines to get the bonus? | |
Answer: No. Only Question 1 is counted for bonus. For readability of the code - a nice idea to implement it everywhere. |
Question: In question 1 I'm working to get the bonus, but I'm getting | |
The code should be refactored to make use of the variable. E.g. it could be returned from the function it is declared in (even main). |
Can we suppose that last element in matrix will be a proper integer number? | |
Yes. |
In q1 i am getting the following error: | |
You can return the unused variable, return res; instead of return 0; In the end of main. |
In q3 i am getting the following error: | |
It happens because you are declaring array with variable size and this is forbidden, You can declare it with size 25x25 as there is an assumption that the input size will be smaller than 25. Make sure to #define N 25. |
Should I #define 0 and 1 ? | |
No need. |
Which dragon should be sent for input "!"? | |
DragonC |
Can we assume that at least one warrior id will be entered? | |
No - if so the average should be 0. |