Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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