Created
May 10, 2021 21:48
-
-
Save mosbth/3b1f0ebed26ff24d77cee807c77ec2c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main.c:34:10: warning: declaration does not declare anything | |
}; | |
^ | |
main.c: In function ‘meny’: | |
main.c:58:14: warning: implicit declaration of function ‘isDigit’ [-Wimplicit-function-declaration] | |
choice = isDigit(); | |
^~~~~~~ | |
main.c:61:16: warning: unknown escape sequence: '\P' | |
printf("\Please enter patient info \n"); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
main.c:64:5: warning: implicit declaration of function ‘getPatientProfile’ [-Wimplicit-function-declaration] | |
getPatientProfile(i, &person[i]); | |
^~~~~~~~~~~~~~~~~ | |
main.c:70:5: warning: implicit declaration of function ‘readPatientProfile’ [-Wimplicit-function-declaration] | |
readPatientProfile(i, &person[i]); | |
^~~~~~~~~~~~~~~~~~ | |
main.c:76:5: warning: implicit declaration of function ‘getSortedBMI’ [-Wimplicit-function-declaration] | |
getSortedBMI(i, &person[i]); | |
^~~~~~~~~~~~ | |
main.c: At top level: | |
main.c:120:6: warning: conflicting types for ‘getPatientProfile’ | |
void getPatientProfile(int i,struct healthRecord person[i]){ | |
^~~~~~~~~~~~~~~~~ | |
main.c:64:5: note: previous implicit declaration of ‘getPatientProfile’ was here | |
getPatientProfile(i, &person[i]); | |
^~~~~~~~~~~~~~~~~ | |
main.c: In function ‘getPatientProfile’: | |
main.c:175:50: error: ‘struct healthRecord’ has no member named ‘sodiumLevel’ | |
if (temp >= 120 && temp <= 150){person[i].sodiumLevel = temp;} | |
^ | |
main.c:181:48: error: ‘struct healthRecord’ has no member named ‘potassiumLevel’ | |
if (temp1 >= 1 && temp1 <= 4){person[i].potassiumLevel = temp1;} | |
^ | |
main.c:192:50: error: ‘struct healthRecord’ has no member named ‘mySchool’ | |
if (temp3 >= -3 && temp3 <= -1){person[i].mySchool = temp3;} | |
^ | |
main.c:200:5: warning: implicit declaration of function ‘savePatientProfile’; did you mean ‘getPatientProfile’? [-Wimplicit-function-declaration] | |
savePatientProfile(i, &person[i]); | |
^~~~~~~~~~~~~~~~~~ | |
getPatientProfile | |
main.c: In function ‘showPatientProfile’: | |
main.c:238:18: error: ‘struct healthRecord’ has no member named ‘sodiumLevel’ | |
if (person[i].sodiumLevel >= 120 && person[i].sodiumLevel <= 150){ | |
^ | |
main.c:238:50: error: ‘struct healthRecord’ has no member named ‘sodiumLevel’ | |
if (person[i].sodiumLevel >= 120 && person[i].sodiumLevel <= 150){ | |
^ | |
main.c:239:46: error: ‘struct healthRecord’ has no member named ‘sodiumLevel’ | |
printf("sodiumLevel : %d\n",person[i].sodiumLevel);} | |
^ | |
main.c:241:18: error: ‘struct healthRecord’ has no member named ‘potassiumLevel’ | |
if (person[i].potassiumLevel >= 1 && person[i].potassiumLevel <= 4){ | |
^ | |
main.c:241:51: error: ‘struct healthRecord’ has no member named ‘potassiumLevel’ | |
if (person[i].potassiumLevel >= 1 && person[i].potassiumLevel <= 4){ | |
^ | |
main.c:242:49: error: ‘struct healthRecord’ has no member named ‘potassiumLevel’ | |
printf("potassiumLevel : %f\n",person[i].potassiumLevel);} | |
^ | |
main.c:244:18: error: ‘struct healthRecord’ has no member named ‘mySchool’ | |
if (person[i].mySchool == -1) | |
^ | |
main.c:246:18: error: ‘struct healthRecord’ has no member named ‘mySchool’ | |
if (person[i].mySchool == -2) | |
^ | |
main.c:248:18: error: ‘struct healthRecord’ has no member named ‘mySchool’ | |
if (person[i].mySchool == -3) | |
^ | |
main.c: At top level: | |
main.c:256:6: warning: conflicting types for ‘savePatientProfile’ | |
void savePatientProfile(int i, struct healthRecord person[i]){ | |
^~~~~~~~~~~~~~~~~~ | |
main.c:200:5: note: previous implicit declaration of ‘savePatientProfile’ was here | |
savePatientProfile(i, &person[i]); | |
^~~~~~~~~~~~~~~~~~ | |
main.c:287:6: warning: conflicting types for ‘readPatientProfile’ | |
void readPatientProfile(int j,struct healthRecord person[j]){ | |
^~~~~~~~~~~~~~~~~~ | |
main.c:70:5: note: previous implicit declaration of ‘readPatientProfile’ was here | |
readPatientProfile(i, &person[i]); | |
^~~~~~~~~~~~~~~~~~ | |
main.c:315:6: warning: conflicting types for ‘getSortedBMI’ | |
void getSortedBMI(int k,struct healthRecord person[k]){ | |
^~~~~~~~~~~~ | |
main.c:76:5: note: previous implicit declaration of ‘getSortedBMI’ was here | |
getSortedBMI(i, &person[i]); | |
^~~~~~~~~~~~ | |
main.c: In function ‘getSortedBMI’: | |
main.c:355:1: warning: implicit declaration of function ‘getch’; did you mean ‘getc’? [-Wimplicit-function-declaration] | |
getch(); | |
^~~~~ | |
getc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment