Record Detail

Accepted

/in/database.c: In function 'main':
/in/database.c:477:5: warning: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
     gets(command);
     ^~~~
     fgets
/in/database.c: In function 'update':
/in/database.c:142:73: warning: 'value' may be used uninitialized in this function [-Wmaybe-uninitialized]
                                     db.tables[i].assignments[o].deadline=value;
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/tmp/ccMxzdqu.o: In function `main':
database.c:(.text.startup+0x37): warning: the `gets' function is dangerous and should not be used.
# Status Time Cost Memory Cost
#1 Accepted Detail 1ms 372.0 KiB
#2 Accepted Detail 1ms 256.0 KiB
#3 Accepted Detail 1ms 240.0 KiB
#4 Accepted Detail 1ms 256.0 KiB
#5 Accepted Detail 1ms 384.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-15 21:12:25
Judged At
2021-11-21 15:05:54
Judged By
Score
100
Total Time
6ms
Peak Memory
384.0 KiB