0

Why this code print correct result on sololearn and some other online compiler but on other online compiler not?

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

27th Apr 2022, 5:32 AM
TeaserCode
7 Answers
+ 1
Chances are if your code prints correctly on multiple compilers and fails on one, process of elimination points to the other compiler
27th Apr 2022, 3:22 PM
Chris Coder
Chris Coder - avatar
0
Other online compiler probably has a bug
27th Apr 2022, 7:41 AM
Chris Coder
Chris Coder - avatar
0
What about if my code has a bug somewhere?
27th Apr 2022, 10:33 AM
TeaserCode
0
Do you think my code is correct?
27th Apr 2022, 5:40 PM
TeaserCode
0
What is it supposed to do?
27th Apr 2022, 6:50 PM
Chris Coder
Chris Coder - avatar
0
I try to rearrange the original elements of the string according to order of size in sorted array. So string elements must in such order like elements in sorted array. Here are important the indexes. Because you rearrange the string in such order that elements in string has the same indexes as sorted array.
28th Apr 2022, 3:40 AM
TeaserCode
0
I notice there is no output in sum_1: is that intended?
28th Apr 2022, 4:06 AM
Chris Coder
Chris Coder - avatar