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 21ms 6.363 MiB
#2 Accepted Detail 24ms 6.406 MiB
#3 Accepted Detail 20ms 6.5 MiB
#4 Accepted Detail 28ms 6.484 MiB
#5 Accepted Detail 29ms 6.531 MiB
#6 Accepted Detail 23ms 6.711 MiB
#7 Accepted Detail 24ms 6.652 MiB
#8 Accepted Detail 37ms 6.637 MiB
#9 Accepted Detail 39ms 6.781 MiB
#10 Accepted Detail 28ms 6.812 MiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-15 20:34:35
Judged At
2021-11-21 15:06:01
Judged By
Score
100
Total Time
277ms
Peak Memory
6.812 MiB