Record Detail

Compile Error

/in/hotel-main.c:5:21: fatal error: windows.h: No such file or directory
 #include <windows.h>
                     ^
compilation terminated.
/in/hotel-mt.c: In function 'roomList':
/in/hotel-mt.c:103:51: error: excess elements in scalar initializer [-Werror]
                 LTemp2 = (struct RList *) {LTemp, temp, NULL, temp->roomID};
                                                   ^~~~
/in/hotel-mt.c:103:51: note: (near initialization for '(anonymous)')
/in/hotel-mt.c:103:57: error: excess elements in scalar initializer [-Werror]
                 LTemp2 = (struct RList *) {LTemp, temp, NULL, temp->roomID};
                                                         ^~~~
/in/hotel-mt.c:103:57: note: (near initialization for '(anonymous)')
/in/hotel-mt.c:103:63: error: excess elements in scalar initializer [-Werror]
                 LTemp2 = (struct RList *) {LTemp, temp, NULL, temp->roomID};
                                                               ^~~~
/in/hotel-mt.c:103:63: note: (near initialization for '(anonymous)')
/in/hotel-mt.c:110:1: error: expected 'while' before '}' token
 }
 ^
/in/hotel-mt.c:112:1: error: ISO C forbids nested functions [-Werror=pedantic]
 void changeBreakfast(struct Room *head,int roomID,int num){
 ^~~~
/in/hotel-mt.c:125:1: error: ISO C forbids nested functions [-Werror=pedantic]
 void addNight(struct Room *head,int roomID){
 ^~~~
/in/hotel-mt.c:138:1: error: ISO C forbids nested functions [-Werror=pedantic]
 void fetchGuests(struct Room *head){
 ^~~~
/in/hotel-mt.c:185:1: error: ISO C forbids nested functions [-Werror=pedantic]
 void checkOut(struct Room *head,int roomID,char *id){
 ^~~~
/in/hotel-mt.c: In function 'checkOut':
/in/hotel-mt.c:195:25: error: implicit declaration of function 'generateReceipt' [-Werror=implicit-function-declaration]
                         generateReceipt(temp->days[i],temp->roomID,temp->breakfasts[i],(DORMPRICE*temp->days[i]+BREAKFAST*temp->breakfasts[i]),id);
                         ^~~~~~~~~~~~~~~
/in/hotel-mt.c: In function 'roomList':
/in/hotel-mt.c:229:1: error: ISO C forbids nested functions [-Werror=pedantic]
 void generateReceipt(int nights,int roomNumber,int breakfast,int total,char*id){
 ^~~~
/in/hotel-mt.c:242:1: error: ISO C forbids nested functions [-Werror=pedantic]
 void checkIn(struct Room *head,int roomID,int keys,int nights,int breakfast,int visitors,char (*id)[20],char (*name)[40]){
 ^~~~
/in/hotel-mt.c:274:1: error: ISO C forbids nested functions [-Werror=pedantic]
 void updateDB(struct Room *head,FILE *file){
 ^~~~
/in/hotel-mt.c:294:1: error: expected declaration or statement at end of input
 }
 ^
At top level:
/in/hotel-mt.c:274:6: error: 'updateDB' defined but not used [-Werror=unused-function]
 void updateDB(struct Room *head,FILE *file){
      ^~~~~~~~
/in/hotel-mt.c:242:6: error: 'checkIn' defined but not used [-Werror=unused-function]
 void checkIn(struct Room *head,int roomID,int keys,int nights,int breakfast,int visitors,char (*id)[20],char (*name)[40]){
      ^~~~~~~
/in/hotel-mt.c:229:6: error: 'generateReceipt' defined but not used [-Werror=unused-function]
 void generateReceipt(int nights,int roomNumber,int breakfast,int total,char*id){
      ^~~~~~~~~~~~~~~
/in/hotel-mt.c:185:6: error: 'checkOut' defined but not used [-Werror=unused-function]
 void checkOut(struct Room *head,int roomID,char *id){
      ^~~~~~~~
/in/hotel-mt.c:138:6: error: 'fetchGuests' defined but not used [-Werror=unused-function]
 void fetchGuests(struct Room *head){
      ^~~~~~~~~~~
/in/hotel-mt.c:125:6: error: 'addNight' defined but not used [-Werror=unused-function]
 void addNight(struct Room *head,int roomID){
      ^~~~~~~~
/in/hotel-mt.c:112:6: error: 'changeBreakfast' defined but not used [-Werror=unused-function]
 void changeBreakfast(struct Room *head,int roomID,int num){
      ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 2
Language
C
Submit At
2018-07-17 13:41:47
Judged At
2018-07-17 13:41:47
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes