Record Detail

Accepted

/in/database.c: In function 'strtoint':
/in/database.c:8:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < strlen(str); i++){
                       ^
/in/database.c: In function 'backslashrn':
/in/database.c:23:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < strlen(str); i++){
                       ^
/in/database.c: In function 'myauto':
/in/database.c:144:65: warning: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
         qsort(values, db->tableNum, sizeof(db->tables[0].name), strcmp);
                                                                 ^~~~~~
In file included from /in/database.c:4: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,
             ^~~~~
/in/database.c:163:15: warning: unused variable 'pright' [-Wunused-variable]
         char *pright = strtok(NULL, space); // pright = ")"
               ^~~~~~
/in/database.c:157:15: warning: unused variable 'pleft' [-Wunused-variable]
         char *pleft = strtok(NULL, space); // pleft = "("
               ^~~~~
/in/database.c:190:15: warning: unused variable 'pright2' [-Wunused-variable]
         char *pright2 = strtok(NULL, space);
               ^~~~~~~
/in/database.c:187:15: warning: unused variable 'pleft2' [-Wunused-variable]
         char *pleft2 = strtok(NULL, space);
               ^~~~~~
/in/database.c:184:15: warning: unused variable 'pright1' [-Wunused-variable]
         char *pright1 = strtok(NULL, space);
               ^~~~~~~
/in/database.c:181:15: warning: unused variable 'pleft1' [-Wunused-variable]
         char *pleft1 = strtok(NULL, space);
               ^~~~~~
/in/database.c:239:15: warning: unused variable 'pright' [-Wunused-variable]
         char *pright = strtok(NULL, space);
               ^~~~~~
/in/database.c:236:15: warning: unused variable 'pleft' [-Wunused-variable]
         char *pleft  = strtok(NULL, space);
               ^~~~~
/in/database.c:297:15: warning: unused variable 'lmt' [-Wunused-variable]
         char *lmt = strtok(NULL, space);
               ^~~
/in/database.c:295:15: warning: unused variable 'srt' [-Wunused-variable]
         char *srt = strtok(NULL, space);
               ^~~
/in/database.c:294:15: warning: unused variable 'pright' [-Wunused-variable]
         char *pright = strtok(NULL, space);
               ^~~~~~
/in/database.c:291:15: warning: unused variable 'pleft' [-Wunused-variable]
         char *pleft = strtok(NULL, space);
               ^~~~~
# Status Time Cost Memory Cost
#1 Accepted Detail 1ms 392.0 KiB
#2 Accepted Detail 1ms 388.0 KiB
#3 Accepted Detail 1ms 384.0 KiB
#4 Accepted Detail 1ms 384.0 KiB
#5 Accepted Detail 1ms 388.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-15 19:54:47
Judged At
2021-11-21 15:06:26
Judged By
Score
100
Total Time
6ms
Peak Memory
392.0 KiB