Record Detail

Compile Error

/in/hotel-ll.c: In function 'initialize':
/in/hotel-ll.c:34:14: error: too few arguments to function 'fopen'
     FILE* fp=fopen("hotel.db");
              ^~~~~
In file included from /in/hotel-ll.c:1:0:
/usr/include/stdio.h:274:14: note: declared here
 extern FILE *fopen (const char *__restrict __filename,
              ^~~~~
/in/hotel-ll.c: In function 'write_room':
/in/hotel-ll.c:59:5: error: implicit declaration of function 'fpprint' [-Werror=implicit-function-declaration]
     fpprint(fp,"[ %s ]\n",*room_number);
     ^~~~~~~
/in/hotel-ll.c:62:13: error: implicit declaration of function 'fprint' [-Werror=implicit-function-declaration]
             fprint(fp, "type = dorm\n");
             ^~~~~~
cc1: all warnings being treated as errors

Information

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