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 1ms 276.0 KiB
#2 Accepted Detail 1ms 384.0 KiB
#3 Accepted Detail 1ms 256.0 KiB
#4 Accepted Detail 1ms 384.0 KiB
#5 Accepted Detail 1ms 400.0 KiB

Information

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