Record Detail

Accepted

/in/database.c: In function 'AUTO':
/in/database.c:237:13: warning: writing into constant object (argument 3) [-Wformat=]
             sscanf(line, "%*s %s", filename);
             ^~~~~~
/in/database.c:242:13: warning: writing into constant object (argument 4) [-Wformat=]
             sscanf(line, "%*s %s %s\n", tname, filename);
             ^~~~~~
/in/database.c: In function 'main':
/in/database.c:286:9: warning: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
         gets(command);
         ^~~~
         fgets
/tmp/ccFz75zo.o: In function `main':
database.c:(.text.startup+0x5a): warning: the `gets' function is dangerous and should not be used.
# Status Time Cost Memory Cost
#1 Accepted Detail 1ms 276.0 KiB
#2 Accepted Detail 1ms 260.0 KiB
#3 Accepted Detail 1ms 368.0 KiB
#4 Accepted Detail 1ms 256.0 KiB
#5 Accepted Detail 1ms 328.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-14 16:37:48
Judged At
2021-11-21 15:05:57
Judged By
Score
100
Total Time
6ms
Peak Memory
368.0 KiB