Record Detail

Wrong Answer

In file included from /in/database.c:4:0:
/in/persistence.h: In function 'loadTable':
/in/persistence.h:40:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(i=0;i<strlen(buff);i++){
                      ^
/in/persistence.h:43:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if(buff[i]==' ' || i==strlen(buff)-1){
                                     ^~
/in/database.c: In function 'main':
/in/database.c:118:9: warning: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
         gets(buff);
         ^~~~
         fgets
/tmp/ccS7hjsF.o: In function `main':
database.c:(.text.startup+0x36): warning: the `gets' function is dangerous and should not be used.
# Status Time Cost Memory Cost
#1 Wrong Answer Detail 1ms 392.0 KiB
#2 Wrong Answer Detail 1ms 340.0 KiB
#3 Wrong Answer Detail 1ms 384.0 KiB
#4 Wrong Answer Detail 1ms 388.0 KiB
#5 Wrong Answer Detail 1ms 384.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-15 18:14:21
Judged At
2021-11-21 15:06:44
Judged By
Score
0
Total Time
6ms
Peak Memory
392.0 KiB