0

Please help: I don't find the errors in my code

https://code.sololearn.com/c5f5KW59xq0G/?ref=app

22nd Jul 2018, 8:41 PM
Dror Dahari
Dror Dahari - avatar
11 odpowiedzi
+ 2
In your code both functions return int. So, you can return value itself, as it is T type, int in your code. You can return anything of T type.
22nd Jul 2018, 9:12 PM
Микола Федосєєв
Микола Федосєєв - avatar
+ 4
line 29 you need to remove the semi colon
22nd Jul 2018, 9:22 PM
Manual
Manual - avatar
+ 3
Dror Dahari Sorry my mistake.😅
22nd Jul 2018, 8:55 PM
Manual
Manual - avatar
+ 3
Dror Dahari busy now. I believe you need a get value method, for the code as well.
22nd Jul 2018, 9:21 PM
Manual
Manual - avatar
+ 1
"ID: " + value= you can't add int to string
22nd Jul 2018, 9:03 PM
Микола Федосєєв
Микола Федосєєв - avatar
+ 1
Warn a what you return from method... To me seem that you try to add const char* to template type and its not good. Another problem its that you return this sum like template type. Futhermore there are some lexical errors (bad semicolon, missing parentesis etc)
22nd Jul 2018, 9:24 PM
KrOW
KrOW - avatar
0
its not js... just a name for a method...
22nd Jul 2018, 8:52 PM
Dror Dahari
Dror Dahari - avatar
0
its ok:) but still need an answer:(
22nd Jul 2018, 8:56 PM
Dror Dahari
Dror Dahari - avatar
0
So how I do that? Can I have an example for that line?
22nd Jul 2018, 9:06 PM
Dror Dahari
Dror Dahari - avatar
0
ohh ok, thanks!
22nd Jul 2018, 9:15 PM
Dror Dahari
Dror Dahari - avatar
0
ok. have a good day(or night)!
22nd Jul 2018, 9:24 PM
Dror Dahari
Dror Dahari - avatar