+ 15

Hey all.....need a help

What do these bundle of error mean...may u please resolve them.......the program to me appears absolutely correct...nd error free... don't know what troubles the compiler😑 https://code.sololearn.com/c7Nv2s1rAOPR/?ref=app

9th Nov 2020, 4:51 AM
𝑹𝒂𝒔𝒉𝒊🪷
𝑹𝒂𝒔𝒉𝒊🪷 - avatar
17 Answers
+ 8
Maybe you can try the code above. Your code has two problems. 1 Not "Void",the first letter shouldn't be uppercase,the correat one is "void". 2 if you want to get the right output, Maybe you should hava to change the turn of a,b.Not polygon(b,a),it should be polygon(a,b) https://code.sololearn.com/cXkdTq6lx0YL/?ref=app
10th Nov 2020, 7:47 AM
Nishino
Nishino - avatar
+ 9
Prathvi ....Steve Sajeev ....Oh...yeah....I didn't noticed....but still after that also..I need to change the program...coz it's not giving the desired output.....thanks a lot brothers.....for helping me..🙂🙂☺️☺️...I wish in this app we should be able to give points to those who help us...☺️
9th Nov 2020, 5:14 AM
𝑹𝒂𝒔𝒉𝒊🪷
𝑹𝒂𝒔𝒉𝒊🪷 - avatar
+ 9
Prathvi yeah... it's my turn...nd m doing it..🙂☺️...if I succeed...i will tell u for sure...nd I will do it for sure...coz I don't like to be defeated 🙂..or to be unable to do such an easy program 🙂🙂
9th Nov 2020, 5:48 AM
𝑹𝒂𝒔𝒉𝒊🪷
𝑹𝒂𝒔𝒉𝒊🪷 - avatar
+ 9
Steve Sajeev Prathvi heya brothers......the program is done...in my id...by the name maha pattern...I know the name is quite wierd....but it's okk.....I don't know why it's giving the error on '}'...I tried fixing it.....but couldn't.....do check it once...rest everything is correct...the functions are also absolutely correct...just that single error.....nd sorry...if I disturbed u🙂
9th Nov 2020, 9:57 AM
𝑹𝒂𝒔𝒉𝒊🪷
𝑹𝒂𝒔𝒉𝒊🪷 - avatar
+ 7
The main function should be inside the class.. Right now public static void main is outside the class pattern.. Put it inside https://code.sololearn.com/cG10f4hlnnVt/?ref=app
9th Nov 2020, 5:09 AM
Steve Sajeev
Steve Sajeev - avatar
+ 7
Steve Sajeev that's very kind of u brother...actually we need to create a rectangle filled with "@" and we have to take length and breadth as input by the user....for example If we input 2 5 Then it should give @@@@@ @@@@@ As output.....this is a part of my assignment question.....in which we have to overload a function polygon...three times......nd we have to print different patterns all the three times...second time we have to print this..☺️☺️...if u r really willing then only do....else I will manage....u know sometimes it's the time...that doesn't want that we should create a program...I will be trying later on on this one....right now m moving forward...☺️🙂
9th Nov 2020, 5:34 AM
𝑹𝒂𝒔𝒉𝒊🪷
𝑹𝒂𝒔𝒉𝒊🪷 - avatar
+ 7
Steve Sajeev Nd the question I m typing here...just for knowledge..if u want to know....nd also...if I m unable to explain the second part to u above..☺️ Design a class to overload a function polygon ()as follows: (i)void polygon(int. n,char ch)-with one integer and one character argument..that draws a filled square of side 'n' and filled with character'ch'. (ii)void polygon (int x,int y)-with both integer arguments..that draws a filled rectangle of length'x' and breadth'y' (iii)void polygon() -with no arguments that draws a filled triangle Sample input n=2,ch=O x=2,y=5 Output OO OO @@@@@ @@@@@ * ** *** I know this is quite simple....I have done the first part...second I was working on...🙂☺️..nd third appears to be simple....I don't know if it's easy...I'll try later🙂 edit:third pattern done☺️☺️
9th Nov 2020, 5:43 AM
𝑹𝒂𝒔𝒉𝒊🪷
𝑹𝒂𝒔𝒉𝒊🪷 - avatar
+ 6
Steve Sajeev I have done the third pattern also..1st nd 3rd just 2nd is left.....I will do it also...asap....but not now....m tired of trying for it...☺️☺️
9th Nov 2020, 6:09 AM
𝑹𝒂𝒔𝒉𝒊🪷
𝑹𝒂𝒔𝒉𝒊🪷 - avatar
+ 6
Srijan maybe you should ask ur own question....🙂🙂
10th Nov 2020, 12:48 PM
𝑹𝒂𝒔𝒉𝒊🪷
𝑹𝒂𝒔𝒉𝒊🪷 - avatar
+ 5
Please tell me whats ur desired output ❤️Rashi_Chauhan❤️ . I would like to help you out
9th Nov 2020, 5:17 AM
Steve Sajeev
Steve Sajeev - avatar
+ 4
Nishino thank uh sista....for helping.....☺️☺️🙂🙂
10th Nov 2020, 12:47 PM
𝑹𝒂𝒔𝒉𝒊🪷
𝑹𝒂𝒔𝒉𝒊🪷 - avatar
+ 2
https://code.sololearn.com/cW58xu5Y4aCl/?ref=app if the error is enum , interface and class expected that means you miss closing bracket of method and class . and you can not declare variables in method because it's store garbage value so next time if you declare variables in method initialise through default data type value.
9th Nov 2020, 5:03 AM
Prathvi
Prathvi - avatar
+ 2
now It's your turn , try if you got any problem than send the question . I am always here for solve the problem.
9th Nov 2020, 5:46 AM
Prathvi
Prathvi - avatar
+ 2
Good👍👍
9th Nov 2020, 5:50 AM
Prathvi
Prathvi - avatar
+ 1
I am sorry i was offline ❤️Rashi_Chauhan❤️
9th Nov 2020, 7:38 AM
Steve Sajeev
Steve Sajeev - avatar
9th Nov 2020, 10:09 AM
Prathvi
Prathvi - avatar