Can someoe tell me how did I solve the Challenge of Security?you can see clearly the mistakes in the last loop! ? correct=false | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
+ 1

# Can someoe tell me how did I solve the Challenge of Security?you can see clearly the mistakes in the last loop! ? correct=false

https://sololearn.com/compiler-playground/cYE6qZXST3BS/?ref=app

26th May 2024, 8:21 AM
‎Hasan Abouorra
+ 1
‎Hasan Abouorra, i'm always here to help, specially for C++ and C
27th May 2024, 3:50 PM
Alhaaz
+ 1
Alhaaz see here pls
26th May 2024, 6:02 PM
‎Hasan Abouorra
+ 1
‎Hasan Abouorra, i checked your code and it was 80% correct but give wrong output in some conditions like here xxxGxxx\$xxxT, your code says "quite" but it must be "Alarm", that happened cuz you are not providing more if-else for more conditions, so here i rewrite your whole code and now it working https://sololearn.com/compiler-playground/cBph01oo93qt/?ref=app
27th May 2024, 3:59 PM
Alhaaz
+ 1
Alhaaz thank u very much I knew that my Code was wrong I just wonderd how could the Challenge be passed with it! (If u paste the code in the challenge you will see) it is kinda funny. Thank u for correcting my Code and I am happy that we have a hlepfull C++ profi here:)
27th May 2024, 4:31 PM
‎Hasan Abouorra
+ 1
‎Hasan Abouorra yup as i said before your code was 80% correct but it give wrong output in some conditions, maybe it passed the challenge cuz their was not those conditions which leads to wrong output.
27th May 2024, 4:34 PM
Alhaaz
0
Note: I did the mistakes really by accident especielly the one with Floor[ch-1] !=G which did somehow solve the challenge! -? Correct = false, I mean with that that if you correct the code the challenge get no more solved, which is actually funny:)
26th May 2024, 8:23 AM
‎Hasan Abouorra
0
This should be the challenge so try it ur self with the code: https://www.sololearn.com/coach/77?ref=app
26th May 2024, 8:24 AM
‎Hasan Abouorra
0
Alhaaz C++ Profi Your Code was amazing! but check this for me now:) https://sololearn.com/compiler-playground/ch4aE50Gw5SC/?ref=app
28th May 2024, 2:56 PM
‎Hasan Abouorra