Record Detail

Accepted

/in/database.c: In function 'main':
/in/database.c:39:14: warning: unused parameter 'argc' [-Wunused-parameter]
 int main(int argc,char** agrv)
              ^~~~
/in/database.c:39:26: warning: unused parameter 'agrv' [-Wunused-parameter]
 int main(int argc,char** agrv)
                          ^~~~
/in/database.c: In function 'list_table':
/in/database.c:268:61: warning: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
     qsort(database->tables,database->tableNum,sizeof(Table),strcmp);
                                                             ^~~~~~
In file included from /in/database.c:5:0:
/usr/include/stdlib.h:827:13: note: expected '__compar_fn_t {aka int (*)(const void *, const void *)}' but argument is of type 'int (*)(const char *, const char *)'
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
             ^~~~~
# Status Time Cost Memory Cost
#1 Accepted Detail 18ms 6.504 MiB
#2 Accepted Detail 17ms 6.496 MiB
#3 Accepted Detail 22ms 6.531 MiB
#4 Accepted Detail 18ms 6.523 MiB
#5 Accepted Detail 30ms 6.434 MiB
#6 Accepted Detail 18ms 6.492 MiB
#7 Accepted Detail 18ms 6.496 MiB
#8 Accepted Detail 17ms 6.5 MiB
#9 Accepted Detail 24ms 6.422 MiB
#10 Accepted Detail 18ms 6.488 MiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-15 20:33:59
Judged At
2021-11-21 15:06:02
Judged By
Score
100
Total Time
204ms
Peak Memory
6.531 MiB