Record Detail

Wrong Answer

/in/database.c: In function 'LOAD':
/in/database.c:54:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                     for (int j = 0; j < strlen(token); j++) {
                                       ^
/in/database.c:58:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                     for (int j = 0; j < strlen(token); j++) {
                                       ^
/in/database.c: In function 'LIST':
/in/database.c:111:22: warning: ISO C forbids empty initializer braces [-Wpedantic]
     char temp[360] = {};
                      ^
/in/database.c:112:24: warning: ISO C forbids empty initializer braces [-Wpedantic]
     char *tempx[360] = {};
                        ^
/in/database.c: In function 'INSERT':
/in/database.c:141:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0;i<strlen(a);i++){
                    ^
/in/database.c:144:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int m = p+2;m< strlen(a);m++) {
                      ^
/in/database.c:155:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j=0;j<strlen(token);j++)
                           ^
/in/database.c:160:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j=0;j<strlen(token);j++)
                           ^
/in/database.c: In function 'UPDATE':
/in/database.c:191:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (; i < strlen(a); i++) {
              ^
/in/database.c:203:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int w=0;w<strlen(token);w++)
                       ^
/in/database.c:208:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int w=0;w<strlen(token);w++)
                       ^
/in/database.c:212:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (; f < strlen(a); f++) {
              ^
/in/database.c:220:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int m = g+2;m<strlen(a)-1;m++){
                      ^
/in/database.c:224:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int w=0;w<strlen(token);w++)
                   ^
/in/database.c:229:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int w=0;w<strlen(token);w++)
                   ^
/in/database.c:241:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                         for (int w = 0; w < strlen(db->tables[r].assignments[m].course); w++) {
                                           ^
/in/database.c:245:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                     else if(d[1]=='a'){for (int w=0;w<strlen(db->tables[r].assignments[m].name);w++)
                                                      ^
/in/database.c:260:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                           for (int w = 0; w < strlen(db->tables[r].assignments[m].course); w++) {
                                             ^
/in/database.c:264:56: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                       else if(d[1]=='a'){for (int w=0;w<strlen(db->tables[r].assignments[m].name);w++)
                                                        ^
/in/database.c:278:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                       for (int w = 0; w < strlen(db->tables[r].assignments[m].course); w++) {
                                         ^
/in/database.c:282:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                   else if(d[1]=='a'){for (int w=0;w<strlen(db->tables[r].assignments[m].name);w++)
                                                    ^
/in/database.c:296:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                           for (int w = 0; w < strlen(db->tables[r].assignments[m].course); w++) {
                                             ^
/in/database.c:300:56: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                       else if(d[1]=='a'){for (int w=0;w<strlen(db->tables[r].assignments[m].name);w++)
                                                        ^
/in/database.c: In function 'DELETE':
/in/database.c:325:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(;i<strlen(a);i++){
           ^
/in/database.c:331:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int m = p+2;m<strlen(a)-1;m++){
                      ^
/in/database.c:337:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int w=0;w<strlen(token);w++)
                   ^
/in/database.c:342:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int w=0;w<strlen(token);w++)
                   ^
/in/database.c: In function 'SELECT':
/in/database.c:425:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (t = n; t < strlen(a); t++) {
                       ^
/in/database.c:453:29: warning: statement with no effect [-Wunused-value]
                             for (m; m < db->tables[j].assignNum; m++) {
                             ^~~
/in/database.c:468:29: warning: statement with no effect [-Wunused-value]
                             for (m; m < db->tables[j].assignNum; m++) {
                             ^~~
/in/database.c:511:29: warning: statement with no effect [-Wunused-value]
                             for (m; m < db->tables[j].assignNum; m++) {
                             ^~~
/in/database.c:526:29: warning: statement with no effect [-Wunused-value]
                             for (m; m < db->tables[j].assignNum; m++) {
                             ^~~
/in/database.c: In function 'SELECT1':
/in/database.c:569:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(;i<strlen(a);i++){
           ^
/in/database.c:575:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(;q<strlen(a);q++){
           ^
/in/database.c:584:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int w=0;w<strlen(token);w++)
                   ^
/in/database.c:589:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int w=0;w<strlen(token);w++)
                   ^
/in/database.c:593:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int y = 0;y<strlen(a)-1;y++){
                    ^
/in/database.c:596:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int m = g+3;m<strlen(a);m++){
                      ^
/in/database.c:566:10: warning: unused variable 'l' [-Wunused-variable]
     char l[360]={0};
          ^
/in/database.c:565:10: warning: unused variable 'e' [-Wunused-variable]
     char e[360]={0};
          ^
/in/database.c: In function 'AUTO':
/in/database.c:777:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 for (int q = n + 1; q < strlen(query); q++){
                                       ^
/in/database.c: In function 'main':
/in/database.c:830:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 for (int q = n + 1; q < strlen(query); q++) {
                                       ^
/in/database.c: In function 'INSERT':
/in/database.c:147:5: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
     for(int m = 2;m<p;m++){
     ^~~
# Status Time Cost Memory Cost
#1 Wrong Answer Detail 25ms 6.391 MiB
#2 Wrong Answer Detail 25ms 6.383 MiB
#3 Wrong Answer Detail 19ms 6.441 MiB
#4 Wrong Answer Detail 31ms 6.379 MiB
#5 Wrong Answer Detail 31ms 6.398 MiB
#6 Wrong Answer Detail 25ms 6.391 MiB
#7 Wrong Answer Detail 31ms 6.387 MiB
#8 Wrong Answer Detail 25ms 6.387 MiB
#9 Wrong Answer Detail 35ms 6.395 MiB
#10 Wrong Answer Detail 25ms 6.383 MiB

Information

Submit By
Type
Submission
Homework
Lab 5 (TEST ONLY) (+AUTO)
Language
C
Submit At
2021-11-15 17:42:35
Judged At
2021-11-21 15:06:34
Judged By
Score
0
Total Time
276ms
Peak Memory
6.441 MiB