Record Detail

Wrong Answer

/in/database.c: In function 'self':
/in/database.c:301:17: warning: unused variable 'l' [-Wunused-variable]
             int l=(*data).tables[num].assignNum;
                 ^
/in/database.c:327:29: warning: unused variable 'n' [-Wunused-variable]
             int k=0,delta=6,n=0;
                             ^
/in/database.c:99:24: warning: unused variable 'filename' [-Wunused-variable]
         char head[256],filename[256],tablename[256];
                        ^~~~~~~~
/in/database.c: In function 'main':
/in/database.c:414:5: warning: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
     gets(order);
     ^~~~
     fgets
/in/database.c:474:37: warning: unused variable 'process' [-Wunused-variable]
             int l=database.tableNum,process=0,numbers[10];
                                     ^~~~~~~
/in/database.c:616:17: warning: unused variable 'l' [-Wunused-variable]
             int l=database.tables[num].assignNum;
                 ^
/in/database.c:641:29: warning: unused variable 'n' [-Wunused-variable]
             int k=0,delta=6,n=0;
                             ^
/tmp/cc2u9x2N.o: In function `main':
database.c:(.text.startup+0x154): warning: the `gets' function is dangerous and should not be used.
# Status Time Cost Memory Cost
#1 Wrong Answer Detail 1ms 364.0 KiB
#2 Wrong Answer Detail 1ms 256.0 KiB
#3 Wrong Answer Detail 1ms 352.0 KiB
#4 Wrong Answer Detail 1ms 256.0 KiB
#5 Wrong Answer Detail 1ms 352.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-18 16:53:50
Judged At
2021-11-21 15:06:49
Judged By
Score
0
Total Time
6ms
Peak Memory
364.0 KiB