Record Detail

Accepted

/in/database.c: In function 'LIST':
/in/database.c:21:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j = 0; j < strlen(db->tables[i].name); j++) {
                           ^
/in/database.c: In function 'main':
/in/database.c:221:9: warning: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
         gets(str);
         ^~~~
         fgets
In file included from /usr/include/stdio.h:862:0,
                 from /in/database.c:5:
In function 'fgets',
    inlined from 'main' at /in/database.c:234:20:
/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/ccDo76rv.o: In function `main':
database.c:(.text.startup+0x6b): warning: the `gets' function is dangerous and should not be used.
# Status Time Cost Memory Cost
#1 Accepted Detail 1ms 260.0 KiB
#2 Accepted Detail 1ms 264.0 KiB
#3 Accepted Detail 1ms 260.0 KiB
#4 Accepted Detail 1ms 328.0 KiB
#5 Accepted Detail 1ms 348.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-13 19:39:30
Judged At
2021-11-21 15:06:15
Judged By
Score
100
Total Time
6ms
Peak Memory
348.0 KiB