0

SoloLearn C Compiler!!!! šŸ¤”

I've still some Problems with Compile and Run C Code in SoloLearn!!! Can anyone tell me what's going on!!? This Code is pretty simple without any Runtime Memory Allocation, Pointer Variables, Complex Input/Output Mechanism, ....etc; contrary to my previous Code (Sort String). But still I can't Compile and Run the Code using SoloLearn C Compiler!!!! I am neither a Professional Programmer nor a Computer Science student/graduate; any idea will be helpful. Thanks https://code.sololearn.com/cVP37we351VD/?ref=app

28th Dec 2020, 12:35 AM
H. Ahmadian
H. Ahmadian - avatar
10 Answers
+ 6
H. Ahmadian in function min_2_special() On line 67 if(pass[i++] == Special_Characters[j]) Special_Count++; on every check, you are incrementing the value of "i" by one. So everytime different value is evaluated with a different special character Also on line 33 printf ("\n Remember PASSWORD Must be At Least 7 Characters; Containing a Minimum of 2 Numbers and 2 Special characters [! @ # $ % & *]"); Convert it to Printf( "......[! @ # $ %% & *]"); to get rid of warning as it was confusing "%&" as a format specifier before.
28th Dec 2020, 2:14 AM
Arsenic
Arsenic - avatar
+ 4
In your; int Min_2_Number (char* pass) function on line #44, you never initialized index prior to its use.
28th Dec 2020, 1:20 AM
ChaoticDawg
ChaoticDawg - avatar
+ 4
As Arsenic stated you need to change your incrementation of i. Use opening and closing curly braces {} for you while loop and move the increment to the end of the loop. Then fix your warning issue.
28th Dec 2020, 2:17 AM
ChaoticDawg
ChaoticDawg - avatar
+ 2
ChaoticDawg Arsenic Thanks a lot šŸ™
28th Dec 2020, 2:30 AM
H. Ahmadian
H. Ahmadian - avatar
+ 1
If you are trying to pass the Password Validation code coach, the only output should be either 'Strong' or 'Weak'. So all the other prompting and responses that you're giving will make it fail even if you're correct.
28th Dec 2020, 12:56 AM
ChaoticDawg
ChaoticDawg - avatar
0
Š¦Š°Ń€ŃŒ Š”ŠžŠ‘ŠŠšŠ - Š”Š¾Š³Š³Š¾ I You mean the problem goes back to the Compiler running on SoloLearn Server!?
28th Dec 2020, 12:50 AM
H. Ahmadian
H. Ahmadian - avatar
28th Dec 2020, 1:14 AM
H. Ahmadian
H. Ahmadian - avatar
0
ChaoticDawg They check the Codes Automatically or I've to send it?
28th Dec 2020, 1:18 AM
H. Ahmadian
H. Ahmadian - avatar
0
ChaoticDawg Thanks, You're right! Now the program have some logical mistakes as I tested it with some inputs, can you review it quickly for further assistance!?
28th Dec 2020, 2:02 AM
H. Ahmadian
H. Ahmadian - avatar
0
no
1st Feb 2024, 3:29 PM
VAIBHAV PCE23AD057
VAIBHAV PCE23AD057 - avatar