Record Detail

Wrong Answer

/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 'main':
/in/database.c:159:67: 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:178:19: warning: unused variable 'pright' [-Wunused-variable]
             char *pright = strtok(NULL, space); // pright = ")"
                   ^~~~~~
/in/database.c:172:19: warning: unused variable 'pleft' [-Wunused-variable]
             char *pleft = strtok(NULL, space); // pleft = "("
                   ^~~~~
/in/database.c:205:19: warning: unused variable 'pright2' [-Wunused-variable]
             char *pright2 = strtok(NULL, space);
                   ^~~~~~~
/in/database.c:202:19: warning: unused variable 'pleft2' [-Wunused-variable]
             char *pleft2 = strtok(NULL, space);
                   ^~~~~~
/in/database.c:199:19: warning: unused variable 'pright1' [-Wunused-variable]
             char *pright1 = strtok(NULL, space);
                   ^~~~~~~
/in/database.c:196:19: warning: unused variable 'pleft1' [-Wunused-variable]
             char *pleft1 = strtok(NULL, space);
                   ^~~~~~
/in/database.c:254:19: warning: unused variable 'pright' [-Wunused-variable]
             char *pright = strtok(NULL, space);
                   ^~~~~~
/in/database.c:251:19: warning: unused variable 'pleft' [-Wunused-variable]
             char *pleft  = strtok(NULL, space);
                   ^~~~~
/in/database.c:312:19: warning: unused variable 'lmt' [-Wunused-variable]
             char *lmt = strtok(NULL, space);
                   ^~~
/in/database.c:310:19: warning: unused variable 'srt' [-Wunused-variable]
             char *srt = strtok(NULL, space);
                   ^~~
/in/database.c:309:19: warning: unused variable 'pright' [-Wunused-variable]
             char *pright = strtok(NULL, space);
                   ^~~~~~
/in/database.c:306:19: warning: unused variable 'pleft' [-Wunused-variable]
             char *pleft = strtok(NULL, space);
                   ^~~~~
# Status Time Cost Memory Cost
#1 Wrong Answer Detail 18ms 6.344 MiB
#2 Wrong Answer Detail 20ms 6.418 MiB
#3 Wrong Answer Detail 19ms 6.445 MiB
#4 Wrong Answer Detail 24ms 6.332 MiB
#5 Wrong Answer Detail 30ms 6.371 MiB
#6 Wrong Answer Detail 26ms 6.355 MiB
#7 Wrong Answer Detail 30ms 6.359 MiB
#8 Wrong Answer Detail 28ms 6.352 MiB
#9 Wrong Answer Detail 21ms 6.426 MiB
#10 Wrong Answer Detail 18ms 6.43 MiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-15 19:03:37
Judged At
2021-11-21 15:06:26
Judged By
Score
0
Total Time
240ms
Peak Memory
6.445 MiB