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
12 Réponses
+ 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.
+ 4
In your;
int Min_2_Number (char* pass)
function on line #44, you never initialized index prior to its use.
+ 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.
+ 2
ChaoticDawg Arsenic
Thanks a lot 🙏
+ 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.
0
Царь СОБАКА - Догго I
You mean the problem goes back to the Compiler running on SoloLearn Server!?
0
Царь СОБАКА - Догго I
Another User!!? Aren't you talking about this !?
https://www.sololearn.com/Discuss/2640653/?ref=app
0
ChaoticDawg They check the Codes Automatically or I've to send it?
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!?
0
no