Record Detail

Wrong Answer

/in/database.c: In function 'main':
/in/database.c:466:13: warning: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
             gets(str);
             ^~~~
             fgets
/in/database.c:460:38: warning: variable 'thing' set but not used [-Wunused-but-set-variable]
         char *tablename, *filename, *thing, *course, *name, *deadline, *difficulty,*n;
                                      ^~~~~
In file included from /usr/include/stdio.h:862:0,
                 from /in/database.c:1:
In function 'fgets',
    inlined from 'main' at /in/database.c:536:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:260:9: warning: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer
  return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/ccbcub39.o: In function `main':
database.c:(.text.startup+0xd6): warning: the `gets' function is dangerous and should not be used.
# Status Time Cost Memory Cost
#1 Wrong Answer Detail 18ms 6.527 MiB
#2 Wrong Answer Detail 30ms 6.492 MiB
#3 Wrong Answer Detail 18ms 6.668 MiB
#4 Wrong Answer Detail 18ms 6.465 MiB
#5 Wrong Answer Detail 20ms 6.598 MiB
#6 Wrong Answer Detail 18ms 6.523 MiB
#7 Wrong Answer Detail 30ms 6.457 MiB
#8 Wrong Answer Detail 18ms 6.621 MiB
#9 Wrong Answer Detail 20ms 6.52 MiB
#10 Wrong Answer Detail 22ms 6.625 MiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-14 22:32:23
Judged At
2021-11-21 15:06:37
Judged By
Score
0
Total Time
216ms
Peak Memory
6.668 MiB