Record Detail

Accepted

/in/database.c: In function 'DataList':
/in/database.c:145: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:341:9: warning: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
         gets(command);
         ^~~~
         fgets
In file included from /usr/include/stdio.h:862:0,
                 from /in/database.c:1:
In function 'fgets',
    inlined from 'DataLoad' at /in/database.c:27:12:
/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/ccqFAlHu.o: In function `main':
database.c:(.text.startup+0x50e): warning: the `gets' function is dangerous and should not be used.
# Status Time Cost Memory Cost
#1 Accepted Detail 24ms 6.336 MiB
#2 Accepted Detail 19ms 6.426 MiB
#3 Accepted Detail 22ms 6.371 MiB
#4 Accepted Detail 19ms 6.426 MiB
#5 Accepted Detail 31ms 6.41 MiB
#6 Accepted Detail 32ms 6.406 MiB
#7 Accepted Detail 20ms 6.438 MiB
#8 Accepted Detail 24ms 6.309 MiB
#9 Accepted Detail 25ms 6.344 MiB
#10 Accepted Detail 19ms 6.48 MiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-13 23:53:46
Judged At
2021-11-21 15:06:16
Judged By
Score
100
Total Time
239ms
Peak Memory
6.48 MiB